varK5=Object.create;varjm=Object.defineProperty;varX5=Object.getOwnPropertyDescriptor;varZ5=Object.getOwnPropertyNames;vare9=Object.getPrototypeOf,t9=Object.prototype.hasOwnProperty;varo=(t,e)=>jm(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),r9=(t,e)=>{for(varrine)jm(t,r,{get:e[r],enumerable:!0})},n9=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofZ5(e))!t9.call(t,s)&&s!==r&&jm(t,s,{get:()=>e[s],enumerable:!(n=X5(e,s))||n.enumerable});returnt};varQ=(t,e,r)=>(r=t!=null?K5(e9(t)):{},n9(e||!t||!t.__esModule?jm(r,"default",{value:t,enumerable:!0}):r,t));varak=g(pc=>{"use strict";varjNe=require("net"),a9=require("tls"),KC=require("http"),sk=require("https"),c9=require("events"),KNe=require("assert"),l9=require("util");pc.httpOverHttp=A9;pc.httpsOverHttp=u9;pc.httpOverHttps=d9;pc.httpsOverHttps=m9;functionA9(t){vare=newoi(t);returne.request=KC.request,e}o(A9,"httpOverHttp");functionu9(t){vare=newoi(t);returne.request=KC.request,e.createSocket=ik,e.defaultPort=443,e}o(u9,"httpsOverHttp");functiond9(t){vare=newoi(t);returne.request=sk.request,e}o(d9,"httpOverHttps");functionm9(t){vare=newoi(t);returne.request=sk.request,e.createSocket=ik,e.defaultPort=443,e}o(m9,"httpsOverHttps");functionoi(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||KC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(varc=ok(s,i,a),l=0,A=e.requests.length;l<A;++l){varu=e.requests[l];if(u.host===c.host&&u.port===c.port){e.requests.splice(l,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(oi,"TunnelingAgent");l9.inherits(oi,c9.EventEmitter);oi.prototype.addRequest=o(function(e,r,n,s){vari=this,a=XC({request:e},i.options,ok(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",A),c.on("agentRemove",A),e.onSocket(c);functionl(){i.emit("free",c,a)}o(l,"onFree");functionA(u){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",A),c.removeListener("agentRemove",A)}o(A,"onCloseOrRemove")})},"addRequest");oi.prototype.createSocket=o(function(e,r){varn=this,s={};n.sockets.push(s);vari=XC({},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")),Vi("making CONNECT request");vara=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",A),a.once("error",u),a.end();functionc(d){d.upgrade=!0}o(c,"onResponse");functionl(d,m,p){process.nextTick(function(){A(d,m,p)})}o(l,"onUpgrade");functionA(d,m,p){if(a.removeAllListeners(),m.removeAllListeners(),d.statusCode!==200){Vi("tunneling socket could not be established, statusCode=%d",d.statusCode),m.destroy();varh=newError("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(p.length>0){Vi("got illegal response body from proxy"),m.destroy();varh=newError("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}returnVi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}o(A,"onConnect");functionu(d){a.removeAllListeners(),Vi(`tunneling socket could not be established, cause=%s
`);m.push(f),i+=f.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let C of m)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(pM(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($A.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:vK(t)}if((typeof s=="string"||$A.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:d}=await l.next();if(d)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!yM(r)){let m=new Uint8Array(u);m.byteLength&&A.enqueue(m)}return A.desiredSize>0},async cancel(A){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(IM,"extractBody");function GK(t,e=!1){return t instanceof ReadableStream&&(nB(!$A.isDisturbed(t),"The body has already been consumed."),nB(!t.locked,"The stream is locked.")),IM(t,e)}o(GK,"safelyExtractBody");function YK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(YK,"cloneBody");function VK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(VK,"throwIfAborted");function JK(t){return{blob(){return Nc(this,r=>{let n=fM(this);return n===null?n="":n&&(n=qK(n)),new FK([r],{type:n})},t)},arrayBuffer(){return Nc(this,r=>new Uint8Array(r).buffer,t)},text(){return Nc(this,gM,t)},json(){return Nc(this,$K,t)},formData(){return Nc(this,r=>{let n=fM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=HK(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new hM;return i[Sc]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new hM;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){returnNc(this,r=>newUint8Array(r),t)}}}o(JK,"bodyMixinMethods");functionWK(t){Object.assign(t.prototype,JK(t))}o(WK,"mixinBody");asyncfunctionNc(t,e,r){if(_K.brandCheck(t,r),BM(t))thrownewTypeError("Body is unusable: Body has already been read");VK(t[Sc]);letn=TK(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");returnt[Sc].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(awaitMK(t[Sc].body,i,s),n.promise)}o(Nc,"consumeBody");functionBM(t){lete=t[Sc].body;returne!=null&&(e.stream.locked||$A.isDisturbed(e.stream))}o(BM,"bodyUnusable");function$K(t){returnJSON.parse(gM(t))}o($K,"parseJSONFromBytes");functionfM(t){lete=t[Sc].headersList,r=LK(e);returnr==="failure"?null:r}o(fM,"bodyMimeType");QM.exports={extractBody:IM,safelyExtractBody:GK,cloneBody:YK,mixinBody:WK,streamRegistry:CM,hasFinalizationRegistry:EM,bodyUnusable:BM}});varUM=g((GSe,FM)=>{"use strict";varV=require("node:assert"),$=ae(),{channels:xM}=fc(),iB=OI(),{RequestContentLengthMismatchError:Wo,ResponseContentLengthMismatchError:wM,RequestAbortedError:kM,InvalidArgumentError:jK,HeadersTimeoutError:KK,HeadersOverflowError:XK,SocketError:Pc,InformationalError:vc,BodyTimeoutError:ZK,HTTPParserError:eX,ResponseExceededMaxSizeError:tX}=ge(),{kUrl:TM,kReset:Ar,kClient:Np,kParser:ke,kBlocking:XA,kRunning:ut,kPending:MM,kSize:bM,kWriting:Wi,kQueue:Tn,kNoRef:jA,kKeepAliveDefaultTimeout:rX,kHostHeader:nX,kPendingIdx:sX,kRunningIdx:nn,kError:$t,kPipelining:Sp,kSocket:jo,kKeepAliveTimeoutValue:Pp,kMaxHeadersSize:oB,kKeepAliveMaxTimeout:iX,kKeepAliveTimeoutThreshold:oX,kHeadersTimeout:aX,kBodyTimeout:cX,kStrictContentLength:lB,kMaxRequests:NM,kCounter:lX,kMaxResponseSize:AX,kOnError:SM,kResume:di,kHTTPContext:LM}=Fe(),Dr=CT(),RM=Buffer.alloc(0),xp=Buffer[Symbol.species],wp=$.addListener,uX=$.removeAllListeners,Ko=Symbol("kIdleSocketValidation"),$o=Symbol("kIdleSocketValidationTimeout"),mB=Symbol("kSocketUsed"),aB;asyncfunctiondX(){lett=process.env.JEST_WORKER_ID?zI():void0,e;try{e=awaitWeb
`}return xM.sendHeaders.hasSubscribers&&xM.sendHeaders.publish({request:e,headers:f,socket:p}),!l||m===0?vM(h,null,t,e,p,u,f,d):$.isBuffer(l)?vM(h,l,t,e,p,u,f,d):$.isBlobLike(l)?typeof l.stream=="function"?DM(h,l.stream(),t,e,p,u,f,d):CX(h,l,t,e,p,u,f,d):$.isStream(l)?EX(h,l,t,e,p,u,f,d):$.isIterable(l)?DM(h,l,t,e,p,u,f,d):V(!1),!0}o(yX,"writeH1");function EX(t,e,r,n,s,i,a,c){V(i!==0||r[ut]===0,"stream body cannot be pipelined");let l=!1,A=new vp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),u=o(function(h){if(!l)try{!A.write(h)&&this.pause&&this.pause()}catch(f){$.destroy(this,f)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),m=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let h=new kM;queueMicrotask(()=>p(h))}},"onClose"),p=o(function(h){if(!l){if(l=!0,V(s.destroyed||s[Wi]&&r[ut]<=1),s.off("drain",d).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",m),!h)try{A.end()}catch(f){h=f}A.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?$.destroy(e,h):$.destroy(e)}},"onFinished");e.on("data",u).on("end",p).on("error",p).on("close",m),e.resume&&e.resume(),s.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}o(EX,"writeStream");function vM(t,e,r,n,s,i,a,c){try{e?$.isBuffer(e)&&(V(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1")),n.onRequestSent(),r[di]()}catch(l){t(l)}}o(vM,"writeBuffer");async function CX(t,e,r,n,s,i,a,c){V(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Wo;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Ar]=!0),r[di]()}catch(l){t(l)}}o(CX,"writeBlob");async function DM(t,e,r,n,s,i,a,c){V(i!==0||r[ut]===0,"iterator body cannot be pipelined");let l=null;function A(){if(l){let m=l;l=null,m()}}o(A,"onDrain");let u=o(()=>new Promise((m,p)=>{V(l===null),s[$t]?p(s[$t]):l=m}),"waitForDrain");s.on("close",A).on("drain",A);let d=new vp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[$t])throw s[$t];d.write(m)||await u()}d.end()}catch(m){d.destroy(m)}finally{s.off("close",A).off("drain",A)}}o(DM,"writeIterable");var vp=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Wi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[$t])throw r[$t];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&a+A>s){if(i[lB])throw new Wo;process.emitWarning(new Wo)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Ar]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[lB])throw new Wo;process.emitWarning(new Wo)}e[ke].timeout&&e[ke].timeoutType===Dc&&e[ke].timeout.refresh&&e[ke].timeout.refresh(),n[di]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wi]=!1,e&&(V(n[ut]<=1,"pipeline should only contain this request"),s(e))}};FM.exports=pX});var JM=g((VSe,VM)=>{"use strict";var sn=require("node:assert"),{pipeline:IX}=require("node:stream"),de=ae(),{RequestContentLengthMismatchError:pB,RequestAbortedError:OM,SocketError:ZA,InformationalError:hB}=ge(),{kUrl:Dp,kReset:Tp,kClient:kc,kRunning:Mp,kPending:BX,kQueue:$i,kPendingIdx:fB,kRunningIdx:Mn,kError:_n,kSocket:Nt,kStrictContentLength:QX,kOnError:gB,kMaxConcurrentStreams:YM,kHTTP2Session:Ln,kResume:ji,kSize:xX,kHTTPContext:wX}=Fe(),mi=Symbol("open streams"),qM,HM=!1,kp;try{kp=require("node:http2")}catch{kp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bX,HTTP2_HEADER_METHOD:NX,HTTP2_HEADER_PATH:SX,HTTP2_HEADER_SCHEME:RX,HTTP2_HEADER_CONTENT_LENGTH:PX,HTTP2_HEADER_EXPECT:vX,HTTP2_HEADER_STATUS:DX}}=kp;function kX(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}o(kX,"parseH2Headers");async function TX(t,e){t[Nt]=e,HM||(HM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=kp.connect(t[Dp],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[YM]});r[mi]=0,r[kc]=t,r[Nt]=e,de.addListener(r,"error",LX),de.addListener(r,"frameError",_X),de.addListener(r,"end",FX),de.addListener(r,"goaway",UX),de.addListener(r,"close",function(){let{[kc]:s}=this,{[Nt]:i}=s,a=this[Nt][_n]||this[_n]||new ZA("closed",de.getSocketInfo(i));if(s[Ln]=null,s.destroyed){sn(s[BX]===0);let c=s[$i].splice(s[Mn]);for(let l=0;l<c.length;l++){let A=c[l];de.errorRequest(s,A,a)}}}),r.unref(),t[Ln]=r,e[Ln]=r,de.addListener(e,"error",function(s){sn(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_n]=s,this[kc][gB](s)}),de.addListener(e,"end",function(){de.destroy(this,new ZA("other side closed",de.getSocketInfo(this)))}),de.addListener(e,"close",function(){let s=this[_n]||new ZA("closed",de.getSocketInfo(this));t[Nt]=null,this[Ln]!=null&&this[Ln].destroy(s),t[fB]=t[Mn],sn(t[Mp]===0),t.emit("disconnect",t[Dp],[t],s),t[ji]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return qX(t,...s)},resume(){MX(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(TX,"connectH2");function MX(t){let e=t[Nt];e?.destroyed===!1&&(t[xX]===0&&t[YM]===0?(e.unref(),t[Ln].unref()):(e.ref(),t[Ln].ref()))}o(MX,"resumeH2");function LX(t){sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nt][_n]=t,this[kc][gB](t)}o(LX,"onHttp2SessionError");function _X(t,e,r){if(r===0){let n=new hB(`HTTP/2:"frameError"received-type${t},code${e}`);this[Nt][_n]=n,this[kc][gB](n)}}o(_X,"onHttp2FrameError");function FX(){let t=new ZA("other side closed",de.getSocketInfo(this[Nt]));this.destroy(t),de.destroy(this[Nt],t)}o(FX,"onHttp2SessionEnd");function UX(t){let e=this[_n]||new ZA(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,de.getSocketInfo(this)),r=this[kc];if(r[Nt]=null,r[wX]=null,this[Ln]!=null&&(this[Ln].destroy(e),this[Ln]=null),de.destroy(this[Nt],e),r[Mn]<r[$i].length){let n=r[$i][r[Mn]];r[$i][r[Mn]++]=null,de.errorRequest(r,n,e),r[fB]=r[Mn]}sn(r[Mp]===0),r.emit("disconnect",r[Dp],[r],e),r[ji]()}o(UX,"onHTTP2GoAway");function OX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(OX,"shouldSendContentLength");function qX(t,e){let r=t[Ln],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:A}=e,{body:u}=e;if(a)return de.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<A.length;B+=2){let N=A[B+0],S=A[B+1];if(Array.isArray(S))for(let F=0;F<S.length;F++)d[N]?d[N]+=`,${S[F]}`:d[N]=S[F];else d[N]=S}let m,{hostname:p,port:h}=t[Dp];d[bX]=i||`${p}${h?`:${h}`:""}`,d[NX]=n;let f=o(B=>{e.ab
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(i))c+=`${m}: ${i[m]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),kl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(kl("Creating `tls.Socket`: %o",this.connectOpts),i=rfe.connect(this.connectOpts)):(kl("Creating `net.Socket`: %o",this.connectOpts),i=tfe.connect(this.connectOpts)),await(0,sfe.once)(i,"connect"),i}};lg.protocols=["http","https"];En.HttpProxyAgent=lg;function ofe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ofe,"omit")});var pV=g(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});Qg.state=void 0;Qg.state={instrumenterImplementation:void 0}});var vV=g(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.state=void 0;Sg.state={operationRequestMap:new WeakMap}});var l4=g(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var bIe=require("os"),NIe=require("util");function SIe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(SIe,"_interopDefaultLegacy");var RIe=SIe(NIe);function PIe(t,...e){process.stderr.write(`${RIe.default.format(t,...e)}${bIe.EOL}`)}o(PIe,"log");var Z3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,t4,eP=[],tP=[],Jy=[];Z3&&rP(Z3);var r4=Object.assign(t=>n4(t),{enable:rP,enabled:nP,disable:vIe,log:PIe});function rP(t){t4=t,eP=[],tP=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?tP.push(new RegExp(`^${n.substr(1)}$`)):eP.push(new RegExp(`^${n}$`));for(let n of Jy)n.enabled=nP(n.namespace)}o(rP,"enable");function nP(t){if(t.endsWith("*"))return!0;for(let e of tP)if(e.test(t))return!1;for(let e of eP)if(e.test(t))return!0;return!1}o(nP,"enabled");function vIe(){let t=t4||"";return rP(""),t}o(vIe,"disable");function n4(t){let e=Object.assign(r,{enabled:nP(t),destroy:DIe,log:r4.log,namespace:t,extend:kIe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return o(r,"debug"),Jy.push(e),e}o(n4,"createDebugger");function DIe(){let t=Jy.indexOf(this);return t>=0?(Jy.splice(t,1),!0):!1}o(DIe,"destroy");function kIe(t){let e=n4(`${this.namespace}:${t}`);return e.log=this.log,e}o(kIe,"extend");var cm=r4,s4=new Set,Yy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Wy,$y=cm("azure");$y.log=(...t)=>{cm.log(...t)};var sP=["verbose","info","warning","error"];Yy&&(c4(Yy)?i4(Yy):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${Yy}';loggingisnotenabled.Acceptablevalues:${sP.join(", ")}.`));function i4(t){if(t&&!c4(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${sP.join(",")}`);Wy=t;let e=[];for(let r of s4)a4(r)&&e.push(r.namespace);cm.enable(e.join(","))}o(i4,"setLogLevel");function TIe(){return Wy}o(TIe,"getLogLevel");var e4={verbose:400,info:300,warning:200,error:100};function MIe(t){let e=$y.extend(t);return o4($y,e),{error:Vy(e,"error"),warning:Vy(e,"warning"),info:Vy(e,"info"),verbose:Vy(e,"verbose")}}o(MIe,"createClientLogger");function o4(t,e){e.log=(...r)=>{t.log(...r)}}o(o4,"patchLogMethod");function Vy(t,e){let r=Object.assign(t.extend(e),{level:e});if(o4(t,r),a4(r)){let n=cm.disable();cm.enable(n+","+r.namespace)}return s4.add(r),r}o(Vy,"createLogger");function a4(t){return!!(Wy&&e4[t.level]<=e4[Wy])}o(a4,"shouldEnable");function c4(t){return sP.includes(t)}o(c4,"isAzureLogLevel");Kl.AzureLogger=$y;Kl.createClientLogger=MIe;Kl.getLogLevel=TIe;Kl.setLogLevel=i4});var aP=g(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var Xl=new WeakMap,jy=new WeakMap,lm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Xl.set(this,[]),jy.set(this,!1)}get aborted(){if(!jy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return jy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Xl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Xl.get(this).push(r)}removeEventListener(e,r){if(!Xl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Xl.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){thro
Polling status: ${E4.includes(u)?"Stopped":"Running"}`),u==="succeeded"){letd=a(A,r);if(d!==void0)return{response:awaite(d).catch(g4({state:r,stateProxy:n,isOperationError:c})),status:u}}return{response:A,status:u}}o(uBe,"pollOperationHelper");asyncfunctionQ4(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:A,getPollingInterval:u,processResult:d,getError:m,updateState:p,setDelay:h,isDone:f,setErrorAsResult:C}=t,{operationLocation:y}=r.config;if(y!==void0){let{response:E,status:I}=awaituBe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(I4({status:I,response:E,state:r,stateProxy:n,isDone:f,processResult:d,getError:m,setErrorAsResult:C}),!E4.includes(I)){letB=u?.(E);B&&h(B);letN=c?.(E,r);if(N!==void0){letS=y!==N;r.config.operationLocation=N,A?.(N,S)}elseA?.(y,!1)}p?.(r,E)}}o(Q4,"pollOperation");functionx4(t){let{azureAsyncOperation:e,operationLocation:r}=t;returnr??e}o(x4,"getOperationLocationPollingUrl");functionw4(t){returnt.headers.location}o(w4,"getLocationHeader");functionb4(t){returnt.headers["operation-location"]}o(b4,"getOperationLocationHeader");functionN4(t){returnt.headers["azure-asyncoperation"]}o(N4,"getAzureAsyncOperationHeader");functiondBe(t){vare;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":returns;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void0?e:s;default:returna()}functiona(){switch(i){case"azure-async-operation":return;case"original-uri":returns;default:returnr}}o(a,"getDefault")}o(dBe,"findResourceLocation");functionS4(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=b4(e),a=N4(e),c=x4({operationLocation:i,azureAsyncOperation:a}),l=w4(e),A=r?.toLocaleUpperCase();returnc!==void0?{mode:"OperationLocation",operationLocation:c,resourceLocation:dBe({requestMethod:A,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void0?{mode:"ResourceLocation",operationLocation:l}:A==="PUT"&&n?{mode:"Body",operationLocation:n}:void0}o(S4,"inferLroMode");functionR4(t){let{status:e,statusCode:r}=t;if(typeofe!="string"&&e!==void0)thrownewError(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){casevoid0:returnyP(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return$a.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(R4,"transformStatus");functionmBe(t){vare;let{status:r}=(e=t.body)!==null&&e!==void0?e:{};returnR4({status:r,statusCode:t.statusCode})}o(mBe,"getStatus");functionpBe(t){vare,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void0?e:{},i=(r=n?.provisioningState)!==null&&r!==void0?r:s;returnR4({status:i,statusCode:t.statusCode})}o(pBe,"getProvisioningState");functionyP(t){returnt===202?"running":t<300?"succeeded":"failed"}o(yP,"toOperationStatus");functionP4({rawResponse:t}){lete=t.headers["retry-after"];if(e!==void0){letr=parseInt(e);returnisNaN(r)?hBe(newDate(e)):r*1e3}}o(P4,"parseRetryAfter");functionv4(t){lete=t.flatResponse.error;if(!e){$a.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){$a.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}returne}o(v4,"getErrorFromResponse");functionhBe(t){lete=Math.floor(newDate().getTime()),r=t.getTime();if(e<r)returnr-e}o(hBe,"calculatePollingIntervalFromDate");functionD4(t){let{response:e,state:r,operationLocation:n}=t;functions(){vara;switch((a=r.config.metadata)===null
`)}};GE.RpcError=nv});variv=g(VE=>{"use strict";Object.defineProperty(VE,"__esModule",{value:!0});VE.mergeRpcOptions=void0;varYW=ct();functionDxe(t,e){if(!e)returnt;letr={};YE(t,r),YE(e,r);for(letnofObject.keys(e)){lets=e[n];switch(n){case"jsonOptions":r.jsonOptions=YW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=YW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},YE(t.meta,r.meta),YE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}returnr}o(Dxe,"mergeRpcOptions");VE.mergeRpcOptions=Dxe;functionYE(t,e){if(!t)return;letr=e;for(let[n,s]ofObject.entries(t))sinstanceofDate?r[n]=newDate(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(YE,"copy")});varav=g(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.Deferred=ec.DeferredState=void0;varXs;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Xs=ec.DeferredState||(ec.DeferredState={}));varov=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Xs.PENDING,this._promise=newPromise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}getstate(){returnthis._state}getpromise(){returnthis._promise}resolve(e){if(this.state!==Xs.PENDING)thrownewError(`cannot resolve ${Xs[this.state].toLowerCase()}`);this._resolve(e),this._state=Xs.RESOLVED}reject(e){if(this.state!==Xs.PENDING)thrownewError(`cannot reject ${Xs[this.state].toLowerCase()}`);this._reject(e),this._state=Xs.REJECTED}resolvePending(e){this._state===Xs.PENDING&&this.resolve(e)}rejectPending(e){this._state===Xs.PENDING&&this.reject(e)}};ec.Deferred=ov});varlv=g(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.RpcOutputStreamController=void0;varVW=av(),tc=ct(),cv=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){returnthis.addLis(e,this._lis.nxt)}onMessage(e){returnthis.addLis(e,this._lis.msg)}onError(e){returnthis.addLis(e,this._lis.err)}onComplete(e){returnthis.addLis(e,this._lis.cmp)}addLis(e,r){returnr.push(e),()=>{letn=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(leteofObject.values(this._lis))e.splice(0,e.length)}getclosed(){returnthis._closed!==!1}notifyNext(e,r,n){tc.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){tc.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void0,!1))}notifyError(e){tc.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void0,e,!1)),this.clearLis()}notifyComplete(){tc.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void0,void0,!0)),this.clearLis()}[Symbol.asyncIterator](){returnthis._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{lete=this._itState;tc.assert(e,"bad state"),tc.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newVW.Deferred,e.p.promise)},"next")}}pushIt(e){letr=this._itState;if(r.p){letn=r.p;tc.assert(n.state==VW.DeferredState.PENDING,"iterator contract broken"),"value"ine?n.resolve(e):n.reject(e),deleter.p}elser.q.push(e)}};JE.RpcOutputStreamController=cv});varuv=g(uA=>{"use strict";varkxe=uA&&uA.__awaiter||function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");functionl(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");functionA(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};Object.defineProperty(uA
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Tbe,"logUnexpecedPropertyAccessOnce");function Mbe(){Object.keys(gC).forEach(function(t){delete gC[t]})}o(Mbe,"resetLoggedProperties")});var EC=g(ri=>{"use strict";ri.__esModule=!0;ri.HandlebarsEnvironment=dD;function g8(t){return t&&t.__esModule?t:{default:t}}o(g8,"_interopRequireDefault");var cc=Yt(),Lbe=Pn(),AD=g8(Lbe),_be=oD(),Fbe=m8(),Ube=cD(),yC=g8(Ube),Obe=lD(),qbe="4.7.10";ri.VERSION=qbe;var Hbe=8;ri.COMPILER_REVISION=Hbe;var zbe=7;ri.LAST_COMPATIBLE_COMPILER_REVISION=zbe;var Gbe={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"};ri.REVISION_CHANGES=Gbe;var uD="[object Object]";function dD(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},_be.registerDefaultHelpers(this),Fbe.registerDefaultDecorators(this)}o(dD,"HandlebarsEnvironment");dD.prototype={constructor:dD,logger:yC.default,log:yC.default.log,registerHelper:o(function(e,r){if(cc.toString.call(e)===uD){if(r)throw new AD.default("Arg not supported with multiple helpers");cc.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(cc.toString.call(e)===uD)cc.extend(this.partials,e);else{if(typeof r>"u")throw new AD.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(cc.toString.call(e)===uD){if(r)throw new AD.default("Arg not supported with multiple decorators");cc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Obe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Ybe=yC.default.log;ri.log=Ybe;ri.createFrame=cc.createFrame;ri.logger=yC.default});var E8=g((CC,y8)=>{"use strict";CC.__esModule=!0;function mD(t){this.string=t}o(mD,"SafeString");mD.prototype.toString=mD.prototype.toHTML=function(){return""+this.string};CC.default=mD;y8.exports=CC.default});var C8=g(pD=>{"use strict";pD.__esModule=!0;pD.wrapHelper=Vbe;function Vbe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(Vbe,"wrapHelper")});var w8=g(Uo=>{"use strict";Uo.__esModule=!0;Uo.checkRevision=Xbe;Uo.template=Zbe;Uo.wrapProgram=IC;Uo.resolvePartial=e0e;Uo.invokePartial=t0e;Uo.noop=Q8;function Jbe(t){return t&&t.__esModule?t:{default:t}}o(Jbe,"_interopRequireDefault");function Wbe(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}o(Wbe,"_interopRequireWildcard");var $be=Yt(),lc=Wbe($be),jbe=Pn(),rs=Jbe(jbe),qi=EC(),I8=oD(),Kbe=C8(),hD=lD();function Xbe(t){var e=t&&t[0]||1,r=qi.COMPILER_REVISION;if(!(e>=qi.LAST_COMPATIBLE_COMPILER_REVISION&&e<=qi.COMPILER_REVISION))if(e<qi.LAST_COMPATIBLE_COMPILER_REVISION){var n=qi.REVISION_CHANGES[r],s=qi.REVISION_CHANGES[e];throw new rs.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new rs.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(Xbe,"checkRevision");function Zbe(t,e){if(!e)throw new rs.default("No environment passed to template");if(!t||!t.main)throw new rs.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=lc.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.c
Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":kn="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(kn,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:se})}}if(F[0]instanceofArray&&F.length>1)thrownewError("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(F[0]){case1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(F[1]),B=null,N?(B=N,N=null):(m=this.lexer.yyleng,u=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case2:if(ce=this.productions_[F[1]][1],Se.$=c[c.length-ce],Se._$={first_line:l[l.length-(ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ce||1)].first_column,last_column:l[l.length-1].last_column},y&&(Se._$.range=[l[l.length-(ce||1)].range[0],l[l.length-1].range[1]]),Ye=this.performAction.call(Se,u,m,d,this.yy,F[1],c,l),typeofYe<"u")returnYe;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),l=l.slice(0,-1*ce)),a.push(this.productions_[F[1]][0]),c.push(Se.$),l.push(Se._$),At=A[a[a.length-2]][a[a.length-1]],a.push(At);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);elsethrownewError(i)},"parseError"),setInput:o(function(i){returnthis._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){vari=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;vara=i.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){vara=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varl=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);varA=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-a]),this},"unput"),more:o(function(){returnthis._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){vari=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){vari=this.match;returni.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){vari=this.pastInput(),a=newArray(i.length+1).join("-");returni+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vari,a,c,l,A,u;this._more||(this.yytext="",this.match="");for(vard=this._currentRules(),m=0;m<d.length&&(c=this._input.match(this.rules[d[m]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=m,!this.options.flex)));m++);returna?(u=a[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}o(Ux,"getBooleanInput");functionnO(t,e){if(process.env.GITHUB_OUTPUT||"")return$C("OUTPUT",jC(t,e));process.stdout.write(Fx.EOL),Yi("set-output",{name:t},ii(e))}o(nO,"setOutput");functionsO(t){process.exitCode=_x.Failure,hl(t)}o(sO,"setFailed");functionEa(){returnprocess.env.RUNNER_DEBUG==="1"}o(Ea,"isDebug");functionx(t){Yi("debug",{},t)}o(x,"debug");functionhl(t,e={}){Yi("error",VC(e),tinstanceofError?t.toString():t)}o(hl,"error");functionpt(t,e={}){Yi("warning",VC(e),tinstanceofError?t.toString():t)}o(pt,"warning");functionle(t){process.stdout.write(t+Fx.EOL)}o(le,"info");functionDoe(t){WC("group",t)}o(Doe,"startGroup");functionkoe(){WC("endgroup")}o(koe,"endGroup");functionfs(t,e){returnvoe(this,void0,void0,function*(){Doe(t);letr;try{r=yielde()}finally{koe()}returnr})}o(fs,"group");functionXh(t,e){if(process.env.GITHUB_STATE||"")return$C("STATE",jC(t,e));Yi("save-state",{name:t},ii(e))}o(Xh,"saveState");functioniO(t){returnprocess.env[`STATE_${t}`]||""}o(iO,"getState");varTm=Q(require("fs"),1),Jv=Q(require("os"),1),Wv=Q(require("path"),1);varaO=Q(require("os"),1);functionzu(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(zu,"toCommandValue");functioncO(t,e,r){letn=newOx(t,e,r);process.stdout.write(n.toString()+aO.EOL)}o(cO,"issueCommand");varoO="::",Ox=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=oO+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}=${Moe(s)}`)}}returne+=`${oO}${Toe(this.message)}`,e}};functionToe(t){returnzu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Toe,"escapeData");functionMoe(t){returnzu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Moe,"escapeProperty");varAO=require("os"),Gu=require("fs");varqx=function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");functionl(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");functionA(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},{access:Loe,appendFile:_oe,writeFile:Foe}=Gu.promises,lO="GITHUB_STEP_SUMMARY";varHx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){returnqx(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[lO];if(!e)thrownewError(`Unable to find environment variable for $${lO}. Check if your runtime environment supports job summaries.`);try{yieldLoe(e,Gu.constants.R_OK|Gu.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,a])=>` ${i}="${a}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnqx(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?Foe:_oe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnqx(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(AO.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(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(s=>{leti=s.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:l,colspan:A,rowspan:u}=a
`,"utf-8")],s=Cfe(n);s&&t.headers.set("Content-Length",s),t.body=awaitrV(n)}o(Ife,"buildRequestBody");varBd="multipartPolicy",Bfe=70,Qfe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionxfe(t){if(t.length>Bfe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Qfe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}o(xfe,"assertValidBoundary");functionfg(){return{name:Bd,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,a]=s;if(a&&r&&a!==r)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);returnr??=a,r?xfe(r):r=gfe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),awaitIfe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}o(fg,"multipartPolicy");functiongg(){returnOf()}o(gg,"createEmptyPipeline");varnV=_f({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),rqe=nV.logger;functionxs(t){returnnV.createClientLogger(t)}o(xs,"createClientLogger");varws=xs("core-rest-pipeline");functionRb(t={}){returnVf({logger:ws.info,...t})}o(Rb,"logPolicy");varPb=Jf;functionvb(t={}){returnWf(t)}o(vb,"redirectPolicy");varyg=Q(require("node:os"),1),Eg=Q(require("node:process"),1);functionsV(){return"User-Agent"}o(sV,"getHeaderName");asyncfunctioniV(t){if(Eg.default&&Eg.default.versions){lete=`${yg.default.type()}${yg.default.release()}; ${yg.default.arch()}`,r=Eg.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})`)}}o(iV,"setPlatformSpecificData");varCg="1.22.2";functionDfe(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}o(Dfe,"getUserAgentString");functionoV(){returnsV()}o(oV,"getUserAgentHeaderName");asyncfunctionIg(t){lete=newMap;e.set("core-rest-pipeline",Cg),awaitiV(e);letr=Dfe(e);returnt?`${t}${r}`:r}o(Ig,"getUserAgentValue");varaV=oV(),cV="userAgentPolicy";functionDb(t={}){lete=Ig(t.userAgentPrefix);return{name:cV,asyncsendRequest(r,n){returnr.headers.has(aV)||r.headers.set(aV,awaite),n(r)}}}o(Db,"userAgentPolicy");varJr=classextendsError{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionkb(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((i,a)=>{functionc(){a(newJr(s??"The operation was aborted."))}o(c,"rejectOnAbort");functionl(){n?.removeEventListener("abort",A)}o(l,"removeListeners");functionA(){r?.(),l(),c()}if(o(A,"onAbort"),n?.aborted)returnc();try{t(u=>{l(),i(u)},u=>{l(),a(u)})}catch(u){a(u)}n?.addEventListener("abort",A)})}o(kb,"createAbortablePromise");var_fe="The delay was aborted.";functionQd(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnkb(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??_fe})}o(Qd,"delay");functionxo(t){if(Na(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}`}}o(xo,"getErrorMessage");functionlV(t){returnNa(t)}o(lV,"isError");functionTl(){returnba()}o(Tl,"randomUUID");varCe=Pa;varAV=Symbol("rawContent");functionMb(t){returntypeoft[AV]=="function"}o(Mb,"hasRawContent");functionuV(t){returnMb(t)?t[AV]():t}o(uV,"getRawContent");varBg=Bd;functionLb(){lett=fg();return{name:Bg,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)Mb(n.body)&&(n.body=uV(n.body));returnt.sendRequest(e,r)},"sendRequest")}}o(Lb,"multipartPolicy");var_b=$f;functionFb(){returnjf()}o(Fb,"decompressResponsePolicy");functionUb(t={}){returnZf(t
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!aye(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",it("InvalidTag",d,or(t,i))}let A=rye(t,i);if(A===!1)return it("InvalidAttr","Attributes for '"+l+"' have open quote.",or(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let d=i-u.length;u=u.substring(0,u.length-1);let m=jV(u,e);if(m===!0)n=!0;else return it(m.err.code,m.err.msg,or(t,d+m.err.line))}else if(c)if(A.tagClosed){if(u.trim().length>0)return it("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",or(t,a));if(r.length===0)return it("InvalidTag","Closing tag '"+l+"' has not been opened.",or(t,a));{let d=r.pop();if(l!==d.tagName){let m=or(t,d.tagStartPos);return it("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",or(t,a))}r.length==0&&(s=!0)}}else return it("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",or(t,i));else{let d=jV(u,e);if(d!==!0)return it(d.err.code,d.err.msg,or(t,i-u.length+d.err.line));if(s===!0)return it("InvalidXml","Multiple possible root nodes found.",or(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=$V(t,i);continue}else if(t[i+1]==="?"){if(i=WV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=iye(t,i);if(d==-1)return it("InvalidChar","char '&' is not expected.",or(t,i));i=d}else if(s===!0&&!JV(t[i]))return it("InvalidXml","Extra text at the end",or(t,i));t[i]==="<"&&i--}}else{if(JV(t[i]))continue;return it("InvalidChar","char '"+t[i]+"' is not expected.",or(t,i))}if(n){if(r.length==1)return it("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",or(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}o(Mg,"validate");function JV(t){return t===" "||t===" "||t===`
`||t==="\r"}o(JV,"isWhiteSpace");function WV(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.",or(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(WV,"readPI");function $V(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}o($V,"readCommentAndCDATA");var eye='"',tye="'";function rye(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===eye||t[e]===tye)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}}o(rye,"readAttributeStr");var nye=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jV(t,e){let r=kg(t,nye),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.",Md(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return it("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Md(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return it("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Md(r[s]));let i=r[s][2];if(!oye(i))return it("InvalidAttr","Attribute '"+i+"' is an invalid name.",Md(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return it("InvalidAttr","Attribute '"+i+"' is repeated.",Md(r[s]))}return!0}o(jV,"validateAttributeString");function sye(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}o(sye,"validateNumberAmpersand");function iye(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,sye(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}o(iye,"validateAmpersand");function it(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(it,"getErrorObject");function oye(t){return l0(t)}o(oye,"validateAttrName");function aye(t){return l0(t)}o(aye,"validateTagName");function or(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(or,"getLineNumberForPosition");function Md(t){return t.startIndex+t[1].length}o(Md,"getPositionFromMatch");var KV={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"},XV={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"
`);let e=new Br("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Fd(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let A=t.charCodeAt(c+1);if(A===47){let u=Ol(t,">",c,"ClosingTagisnotclosed."),d=t.substring(c+2,u).trim();if(s.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=g0(s.transformTagName,d,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(d&&s.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=u}else if(A===63){let u=y0(t,c,!1,"?>");if(!u)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(d){let m=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),i.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let m=new Br(u.tagName);m.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=d),this.addChild(r,m,this.readonlyMatcher,c)}c=u.closeIndex+1}else if(A===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let u=Ol(t,"-->",c+4,"Commentisnotclosed.");if(s.commentPropName){let d=t.substring(c+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:d}])}c=u}else if(A===33&&t.charCodeAt(c+2)===68){let u=i.readDocType(t,c);this.entityDecoder.addInputEntities(u.entities),c=u.i}else if(A===33&&t.charCodeAt(c+2)===91){let u=Ol(t,"]]>",c,"CDATAisnotclosed.")-2,d=t.substring(c+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:d}]):r.add(s.textNodeName,m),c=u+2}else{let u=y0(t,c,s.removeNSPrefix);if(!u){let S=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${S}"`)}let d=u.tagName,m=u.rawTagName,p=u.tagExp,h=u.attrExpPresent,f=u.closeIndex;if({tagName:d,tagExp:p}=g0(s.transformTagName,d,p,s),s.strictReservedNames&&(d===s.commentPropName||d===s.cdataPropName||d===s.textNodeName||d===s.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),h=d!==p);let E=null,I={},B;B=Pye(m),d!==e.tagname&&this.matcher.push(d,{},B),d!==p&&h&&(E=this.buildAttributesMap(p,this.matcher,d),E&&(I=Rye(E,s))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let S="";if(y)c=u.closeIndex;else if(s.unpairedTagsSet.has(d))c=u.closeIndex;else{let ye=this.readStopNodeData(t,m,f+1);if(!ye)throw new Error(`Unexpected end of ${m}`);c=ye.i,S=ye.tagContent}let F=new Br(d);E&&(F[":@"]=E),F.add(s.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,N)}else{if(y){({tagName:d,tagExp:p}=g0(s.transformTagName,d,p,s));let S=new Br(d);E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(d)){let S=new Br(d);E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=u.closeIndex;continue}else{let S=new Br(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,N),r=S}n="",c=f}}}else n+=t[c];return e.child},"parse
${c}:${decodeURIComponent(i[c])}`}returnn}};varWe=classextendsFa{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewzd(e,r,this)}computeHMACSHA256(e){return(0,RJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varCt=xs("storage-common");varCn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Cn||(Cn={}));varPo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Cn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},lEe=newJr("The operation was aborted."),Gd=classextendsRs{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Po){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Po.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Po.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Po.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Po.maxRetryDelayInMs):Po.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Po.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Po.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=Jg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Ro(s.url,Ri.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(Ct.info(`RetryPolicy: =====> Try=${n}${i?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))returna;r=r||!i&&a.status===404}catch(c){if(Ct.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throwc}returnawaitthis.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returnCt.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(letaofi)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)returnCt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){leta=n?n.status:s?s.statusCode:0;if(!e&&a===404)returnCt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnCt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Z.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Ct.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){caseCn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseCn.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returnCt.info(`RetryPolicy: Delay for ${s}ms`),jg(s,n,lEe)}};varYd=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewGd(e,r,this.retryOptions)}};varAEe="storageBrowserPolicy";functionPJ(){return{name:AEe,asyncsendRequest(t,e){returnCe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ro(t.url,Ri.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Z.COOKIE),t.headers.delete(Z.CONTENT_LENGTH)),e(t)}}}o(PJ,"storageBrowserPolicy");varuEe="StorageCorrectContentLengthPolicy";functionvJ(){functiont(e){e.body&&(typeof
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=Wg(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=$g(i.url),A={};if(l){let u=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let m=d.toLowerCase();A[m]=l[d],u.push(m)}u.sort();for(let d of u)c+=`
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:newXn(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}}o(EIe,"generateBlobSASQueryParameters20150405");functionCIe(t,e){if(t=Ja(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=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Kn(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newXn(t.version,a,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}}o(CIe,"generateBlobSASQueryParameters20181109");functionIIe(t,e){if(t=Ja(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=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Kn(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(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newXn(t.version,a,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}}o(IIe,"generateBlobSASQueryParameters20201206");functionBIe(t,e){if(t=Ja(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=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newXn(t.version,a,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}}o(BIe,"generateBlobSASQueryParametersUDK20181109");functionQIe(t,e){if(t=Ja(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=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newXn(t.version,a,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}}o(QIe,"generateBlobSASQueryParametersUDK20200210");functionxIe(t,e){if(t=Ja(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=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newXn(t.version,a,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}}o(xIe,"generateBlobSASQueryParametersUDK20201206");functionwIe(t,e){if(t=Ja(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=Vs.parse(t.permissions.toString()).toString():s=Js.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Va(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Kn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newXn(t.version,a,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}}o(wIe,"generateBlobSASQueryParametersUDK20250705");functionVa(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}o(Va,"getCanonicalName");functionJa(t){lete=t.version?t.version:ey;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}o(Ja,"SASSignatureValuesSanityCheckAndAutofill");varsm=class{static{o(this,"BlobLeaseClient")}_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=Tl()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Jn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Jn||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!==Jn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Jn||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?.ifMat
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints: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"}};eA.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ka=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
Moreinfoonstoragelimits:https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ka.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var MBe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},QP=class{static{o(this,"UploadProgress")}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);le(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function V4(t,e,r){return MBe(this,void 0,void 0,function*(){var n;let s=new Fi(t),i=s.getBlockBlobClient(),a=new QP((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),x(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new iE(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw pt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(V4,"uploadCacheArchiveSDK");var W4=Q(require("buffer"),1),Ws=Q(require("fs"),1),$4=Q(require("stream"),1),j4=Q(require("util"),1);var oE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function aE(t){return t?t>=200&&t<300:!1}o(aE,"isSuccessStatusCode");function LBe(t){return t?t>=500:!0}o(LBe,"isServerErrorStatusCode");function _Be(t){return t?[Je.BadGateway,Je.ServiceUnavailable,Je.GatewayTimeout].includes(t):!1}o(_Be,"isRetryableStatusCode");function FBe(t){return oE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(FBe,"sleep");function J4(t,e,r){return oE(this,arguments,void 0,function*(n,s,i,a=Pf,c=vf,l=void 0){let A="",u=1;for(;u<=a;){let d,m,p=!1;try{d=yield s()}catch(h){l&&(d=l(h)),p=!0,A=h.message}if(d&&(m=i(d),!LBe(m)))return d;if(m&&(p=_Be(m),A=`Cache service responded with ${m}`),x(`${n} - Attempt ${u} of ${a} failed with error: ${A}`),!p){x(`${n} - Error is not retryable`);break}yield FBe(c),u++}throw Error(`${n} failed: ${A}`)})}o(J4,"retry");function hm(t,e){return oE(this,arguments,void 0,function*(r,n,s=Pf,i=vf){return yield J4(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Cs)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(hm,"retryTypedResponse");function tA(t,e){return oE(this,arguments,void 0,function*(r,n,s=Pf,i=vf){return yield J4(r,n,a=>a.message.statusCode,s,i)})}o(tA,"retryHttpClientResponse");var wn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})
Othercacheswithsimilarkey:`);for(let c of i?.artifactCaches||[])x(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(VBe,"printCachesListForDiagnostics");function SP(t,e,r){return br(this,void 0,void 0,function*(){let n=new lW.URL(t),s=eW(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield X4(t,e,s):s.concurrentBlobDownloads?yield K4(t,e,s):yield lE(t,e):yield lE(t,e)})}o(SP,"downloadCache");function uW(t,e,r){return br(this,void 0,void 0,function*(){let n=NP(),s=wl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield hm("reserveCache",()=>br(this,void 0,void 0,function*(){return n.postJson(gm("caches"),i)}))})}o(uW,"reserveCache");function cW(t,e){return`bytes${t}-${e}/*`}o(cW,"getContentRange");function JBe(t,e,r,n,s){return br(this,void 0,void 0,function*(){x(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${cW(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":cW(n,s)},a=yield tA(`uploadChunk (start: ${n}, end: ${s})`,()=>br(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!aE(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(JBe,"uploadChunk");function WBe(t,e,r,n){return br(this,void 0,void 0,function*(){let s=Es(r),i=gm(`caches/${e.toString()}`),a=rA.openSync(r,"r"),c=xP(n),l=Kw("uploadConcurrency",c.uploadConcurrency),A=Kw("uploadChunkSize",c.uploadChunkSize),u=[...new Array(l).keys()];x("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>br(this,void 0,void 0,function*(){for(;d<s;){let m=Math.min(s-d,A),p=d,h=d+m-1;d+=A,yield JBe(t,i,()=>rA.createReadStream(r,{fd:a,start:p,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,h)}})))}finally{rA.closeSync(a)}})}o(WBe,"uploadFile");function $Be(t,e,r){return br(this,void 0,void 0,function*(){let n={size:r};return yield hm("commitCache",()=>br(this,void 0,void 0,function*(){return t.postJson(gm(`caches/${e.toString()}`),n)}))})}o($Be,"commitCache");function RP(t,e,r,n){return br(this,void 0,void 0,function*(){if(xP(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield V4(r,e,n)}else{let i=NP();x("Upload cache"),yield WBe(i,t,e,n),x("Commiting cache");let a=Es(e);le(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield $Be(i,t,a);if(!aE(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);le("Cache saved successfully")}})}o(RP,"saveCache");var i$=Q(XW(),1),lt=Q(ct(),1),Zr=Q(ct(),1),rc=Q(ct(),1),nc=Q(ct(),1),sc=Q(ct(),1);var Qv=Q(ct(),1),xv=Q(ct(),1),r$=Q(ct(),1),n$=Q(ct(),1),s$=Q(ct(),1);var Cv=Q(ct(),1),Iv=Q(ct(),1),ZW=Q(ct(),1),e$=Q(ct(),1),t$=Q(ct(),1);var Bv=class extends t$.MessageType{static{o(this,"CacheScope$Type")}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,e$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ZW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let u=e.skip(l);A!==!1&&(A===!0?Iv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Cv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Cv.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Iv.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},jE=new Bv;var wv=class extends s$.MessageType{static{o(this
`));let{commands:n}=yield c$(r,"create");yield A$(n,t)})}o(Hv,"createTar");var yA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},ts=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ic=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},zv="cache write denied:",eC=class t extends ic{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d$=Df,tC=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},rC=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function m$(t){if(!t||t.length===0)throw new ts("Path Validation Error: At least one directory or file path is required")}o(m$,"checkPaths");function Gv(t){if(t.length>512)throw new ts(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ts(`Key Validation Error: ${t} cannot contain commas.`)}o(Gv,"checkKey");function Yv(){return fm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Yv,"isFeatureAvailable");function p$(t,e,r,n){return yA(this,arguments,void 0,function*(s,i,a,c,l=!1){let A=fm();x(`Cache service version: ${A}`),m$(s);let u=bP();if(!rW(u)){le(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),x(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield Awe(s,i,a,c,l):yield lwe(s,i,a,c,l)})}o(p$,"restoreCache");function lwe(t,e,r,n){return yA(this,arguments,void 0,function*(s,i,a,c,l=!1){var A;a=a||[];let u=[i,...a];if(x("Resolved Keys:"),x(JSON.stringify(u)),u.length>10)throw new ts("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Gv(p);let d=yield hd(),m="";try{let p;try{p=yield AW(u,s,{compressionMethod:d,enableCrossOsArchive:l})}catch(f){let C=(A=f?.message)!==null&&A!==void 0?A:"";throw C.includes(d$)?new tC(C):f}if(!p?.archiveLocation)return;if(c?.lookupOnly)return le("Lookup only - skipping download"),p.cacheKey;m=km.join(yield wa(),Io(d)),x(`Archive Path: ${m}`),yield SP(p.archiveLocation,m,c),Ea()&&(yield Dm(m,d));let h=Es(m);return le(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield qv(m,d),le("Cache restored successfully"),p.cacheKey}catch(p){let h=p;if(h.name===ts.name)throw p;h instanceof Cs&&typeof h.statusCode=="number"&&h.statusCode>=500?hl(`Failed to restore: ${p.message}`):pt(`Failed to restore: ${p.message}`)}finally{try{yield pd(m)}catch(p){x(`Failed to delete archive: ${p}`)}}})}o(lwe,"restoreCacheV1");function Awe(t,e,r,n){return yA(this,arguments,void 0,function*(s,i,a,c,l=!1){var A;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[i,...a];if(x("Resolved Keys:"),x(JSON.stringify(u)),u.length>10)throw new ts("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of u)Gv(m);let d="";try{let m=Uv(),p=yield hd(),h={key:i,restoreKeys:a,version:wl(s,p,l)},f;try{f=yield m.GetCacheEntryDownloadURL(h)}catch(E){let I=(A=E?.message)!==null&&A!==void 0?A:"";throw I.includes(d$)?new tC(I):E}if(!f.ok){x(`Cache not found for version ${h.version} of keys: ${u.join(", ")}`);return}if(h.key!==f.matchedKey?le(`Cache hit for restore-key: ${f.matchedKey}`):le(`Cache hit for: ${f.matchedKey}`),c?.lookupOnly)return le("Lookup only - skipping download"),f.matchedKey;d=km.join(yield wa(),Io(p)),x(`Archive path: ${d}`),x(`Starting download of archive to:
`,a).length:d,A?(c===null?0:c.length)+l.length:0,A?l.length+d:0);return m<p},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:A,encoding:u,from_line:d,ltrim:m,max_record_size:p,raw:h,relax_quotes:f,rtrim:C,skip_empty_lines:y,to:E,to_line:I}=this.options,{comment:B,escape:N,quote:S,record_delimiter:F}=this.options,{bomSkipped:ye,delimiterDiscovered:Ye,delimiterBufPrevious:Se,rawBuffer:Pe,escapeIsQuote:ce}=this.state;if(!Ye&&A){let xe;if(Se===void 0?xe=n:Se!==void 0&&n===void 0?xe=Se:xe=Buffer.concat([Se,n]),n=void 0,s||xe.length>A.size)this.options.delimiter=[Buffer.from(H5(xe,this.options.delimiter_auto))],this.state.previousBuf=xe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=xe;return}}let{previousBuf:At}=this.state,se;if(At===void 0)if(n===void 0){a();return}else se=n;else At!==void 0&&n===void 0?se=At:se=Buffer.concat([At,n]);if(ye===!1)if(c===!1)this.state.bomSkipped=!0;else if(se.length<3){if(s===!1){this.state.previousBuf=se;return}}else{for(let xe in MA)if(MA[xe].compare(se,0,MA[xe].length)===0){let Gi=MA[xe].length;this.state.bufBytesStart+=Gi,se=se.slice(Gi);let Wm=TA({...this.original_options,encoding:xe});for(let gt in Wm)this.options[gt]=Wm[gt];({comment:B,escape:N,quote:S}=this.options);break}this.state.bomSkipped=!0}let kn=se.length,H;for(H=0;H<kn&&!this.__needMoreData(H,kn,s);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&F.length===0&&this.__autoDiscoverRecordDelimiter(se,H)&&(F=this.options.record_delimiter);let xe=se[H];if(h===!0&&Pe.append(xe),(xe===_Ne||xe===FNe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(se,H,xe)&&H+N.length<kn)if(ce){if(this.__isQuote(se,H+N.length)){this.state.escaping=!0,H+=N.length-1;continue}}else{this.state.escaping=!0,H+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(se,H))if(this.state.quoting===!0){let gt=se[H+S.length],Ho=C&&this.__isCharTrimable(se,H+S.length),si=B!==null&&this.__compareBytes(B,se,H+S.length,gt),zo=this.__isDelimiter(se,H+S.length,gt),$m=F.length===0?this.__autoDiscoverRecordDelimiter(se,H+S.length):this.__isRecordDelimiter(gt,se,H+S.length);if(N!==null&&this.__isEscape(se,H,xe)&&this.__isQuote(se,H+N.length))H+=N.length-1;else if(!gt||zo||$m||si||Ho){this.state.quoting=!1,this.state.wasQuoting=!0,H+=S.length-1;continue}else if(f===!1){let ek=this.__error(new ue("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(gt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(ek!==void 0)return ek}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),H+=S.length-1}else if(this.state.field.length!==0){if(f===!1){let gt=this.__infoField(),Ho=Object.keys(MA).map(zo=>MA[zo].equals(this.state.field.toString())?zo:!1).filter(Boolean)[0],si=this.__error(new ue("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(gt.column)} at line ${gt.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Ho?`(${Ho} bom)`:void 0],this.options,gt,{field:this.state.field}));if(si!==void 0)return si}}else{this.state.quoting=!0,H+=S.length-1;continue}if(this.state.quoting===!1){let gt=this.__isRecordDelimiter(xe,se,H);if(gt!==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)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=gt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=gt-1;continue}this.info.bytes=this.state.bufBytesSta