varPXe=Object.create;var_4=Object.defineProperty;varkXe=Object.getOwnPropertyDescriptor;varUXe=Object.getOwnPropertyNames;varGXe=Object.getPrototypeOf,HXe=Object.prototype.hasOwnProperty;varo=(t,e)=>_4(t,"name",{value:e,configurable:!0});varXXe=(t,e)=>()=>(t&&(e=t(t=0)),e);varb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wre=(t,e)=>{for(varrine)_4(t,r,{get:e[r],enumerable:!0})},VXe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letnofUXe(e))!HXe.call(t,n)&&n!==r&&_4(t,n,{get:()=>e[n],enumerable:!(s=kXe(e,n))||s.enumerable});returnt};varx=(t,e,r)=>(r=t!=null?PXe(GXe(t)):{},VXe(e||!t||!t.__esModule?_4(r,"default",{value:t,enumerable:!0}):r,t));varWre=b(Zf=>{"use strict";varf1t=require("net"),ZXe=require("tls"),vx=require("http"),vre=require("https"),eVe=require("events"),h1t=require("assert"),tVe=require("util");Zf.httpOverHttp=rVe;Zf.httpsOverHttp=sVe;Zf.httpOverHttps=nVe;Zf.httpsOverHttps=iVe;functionrVe(t){vare=newsu(t);returne.request=vx.request,e}o(rVe,"httpOverHttp");functionsVe(t){vare=newsu(t);returne.request=vx.request,e.createSocket=Tre,e.defaultPort=443,e}o(sVe,"httpsOverHttp");functionnVe(t){vare=newsu(t);returne.request=vre.request,e}o(nVe,"httpOverHttps");functioniVe(t){vare=newsu(t);returne.request=vre.request,e.createSocket=Tre,e.defaultPort=443,e}o(iVe,"httpsOverHttps");functionsu(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||vx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(varc=xre(n,i,a),u=0,p=e.requests.length;u<p;++u){varl=e.requests[u];if(l.host===c.host&&l.port===c.port){e.requests.splice(u,1),l.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(su,"TunnelingAgent");tVe.inherits(su,eVe.EventEmitter);su.prototype.addRequest=o(function(e,r,s,n){vari=this,a=Tx({request:e},i.options,xre(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);functionu(){i.emit("free",c,a)}o(u,"onFree");functionp(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");su.prototype.createSocket=o(function(e,r){vars=this,n={};s.sockets.push(n);vari=Tx({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),tl("making CONNECT request");vara=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();functionc(A){A.upgrade=!0}o(c,"onResponse");functionu(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");functionp(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){tl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();varm=newError("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(h.length>0){tl("got illegal response body from proxy"),d.destroy();varm=newError("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}returntl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");functionl(A){a.removeAllListeners(),tl(`tunneling socket could not be established, cause=%s
`);d.push(z),i+=z.byteLength,m&&(i=null),n=t,s=o(async function*(){for(let C of d)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data;boundary=${u}`}else if(Hne(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Yg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yYe(t)}if((typeof n=="string"||Yg.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let u;r=new ReadableStream({async start(){u=s(t)[Symbol.asyncIterator]()},async pull(p){let{value:l,done:A}=await u.next();if(A)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!$ne(r)){let d=new Uint8Array(l);d.byteLength&&p.enqueue(d)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(Kne,"extractBody");function xYe(t,e=!1){return t instanceof ReadableStream&&(LW(!Yg.isDisturbed(t),"The body has already been consumed."),LW(!t.locked,"The stream is locked.")),Kne(t,e)}o(xYe,"safelyExtractBody");function WYe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(WYe,"cloneBody");function _Ye(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(_Ye,"throwIfAborted");function LYe(t){return{blob(){return Ah(this,r=>{let s=Vne(this);return s===null?s="":s&&(s=FYe(s)),new wYe([r],{type:s})},t)},arrayBuffer(){return Ah(this,r=>new Uint8Array(r).buffer,t)},text(){return Ah(this,jne,t)},json(){return Ah(this,PYe,t)},formData(){return Ah(this,r=>{let s=Vne(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vYe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Xne;return i[dh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Xne;for(let[a,c]of n)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Ah(this,r=>new Uint8Array(r),t)}}}o(LYe,"bodyMixinMethods");function QYe(t){Object.assign(t.prototype,LYe(t))}o(QYe,"mixinBody");async function Ah(t,e,r){if(RYe.brandCheck(t,r),Zne(t))throw new TypeError("Body is unusable: Body has already been read");_Ye(t[dh]);let s=DYe(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[dh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await qYe(t[dh].body,i,n),s.promise)}o(Ah,"consumeBody");function Zne(t){let e=t[dh].body;return e!=null&&(e.stream.locked||Yg.isDisturbed(e.stream))}o(Zne,"bodyUnusable");function PYe(t){return JSON.parse(jne(t))}o(PYe,"parseJSONFromBytes");function Vne(t){let e=t[dh].headersList,r=IYe(e);return r==="failure"?null:r}o(Vne,"bodyMimeType");eie.exports={extractBody:Kne,safelyExtractBody:xYe,cloneBody:WYe,mixinBody:QYe,streamRegistry:Jne,hasFinalizationRegistry:Yne,bodyUnusable:Zne}});var lie=b((crt,pie)=>{"use strict";var we=require("node:assert"),Pe=r0(),{channels:tie}=th(),PW=EW(),{RequestContentLengthMismatchError:ed,ResponseContentLengthMismatchError:kYe,RequestAbortedError:aie,HeadersTimeoutError:UYe,HeadersOverflowError:GYe,SocketError:gB,InformationalError:hh,BodyTimeoutError:HYe,HTTPParserError:XYe,ResponseExceededMaxSizeError:VYe}=g0(),{kUrl:cie,kReset:Ss,kClient:HW,kParser:Bt,kBlocking:Zg,kRunning:Mr,kPending:jYe,kSize:rie,kWriting:nl,kQueue:ho,kNoRef:Jg,kKeepAliveDefaultTimeout:$Ye,kHostHeader:YYe,kPendingIdx:JYe,kRunningIdx:ai,kError:ci,kPipelining:MB,kSocket:bh,kKeepAliveTimeoutValue:zB,kMaxHeadersSize:kW,kKeepAliveMaxTimeout:KYe,kKeepAliveTimeoutThreshold:ZYe,kHeadersTimeout:eJe,kBodyTimeout:tJe,kStrictContentLength:XW,kMaxRequests:sie,kCounter:rJe,kMaxResponseSize:sJe,kOnError:nJe,kResume:sl,kHTTPContext:uie}=ut(),ua=Jse(),iJe=Buffer.alloc(0),fB=Buffer[Symbol.species],hB=Pe.addListener,oJe=Pe.removeAllListeners,UW;async function aJe(){let t=process.env.JEST_WORKER_ID?BW():void 0,e;try{e=await WebAssembly.compile(ene())}catch{e=await WebAssemb
`}return tie.sendHeaders.hasSubscribers&&tie.sendHeaders.publish({request:e,headers:z,socket:h}),!u||d===0?iie(m,null,t,e,h,l,z,A):Pe.isBuffer(u)?iie(m,u,t,e,h,l,z,A):Pe.isBlobLike(u)?typeof u.stream=="function"?oie(m,u.stream(),t,e,h,l,z,A):fJe(m,u,t,e,h,l,z,A):Pe.isStream(u)?dJe(m,u,t,e,h,l,z,A):Pe.isIterable(u)?oie(m,u,t,e,h,l,z,A):we(!1),!0}o(AJe,"writeH1");function dJe(t,e,r,s,n,i,a,c){we(i!==0||r[Mr]===0,"stream body cannot be pipelined");let u=!1,p=new OB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),l=o(function(m){if(!u)try{!p.write(m)&&this.pause&&this.pause()}catch(z){Pe.destroy(this,z)}},"onData"),A=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!u){let m=new aie;queueMicrotask(()=>h(m))}},"onClose"),h=o(function(m){if(!u){if(u=!0,we(n.destroyed||n[nl]&&r[Mr]<=1),n.off("drain",A).off("error",h),e.removeListener("data",l).removeListener("end",h).removeListener("close",d),!m)try{p.end()}catch(z){m=z}p.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Pe.destroy(e,m):Pe.destroy(e)}},"onFinished");e.on("data",l).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(dJe,"writeStream");function iie(t,e,r,s,n,i,a,c){try{e?Pe.isBuffer(e)&&(we(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length:${i}\r
`,"latin1")),s.onRequestSent(),r[sl]()}catch(u){t(u)}}o(iie,"writeBuffer");async function fJe(t,e,r,s,n,i,a,c){we(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ed;let u=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length:${i}\r
`,"latin1"),n.write(u),n.uncork(),s.onBodySent(u),s.onRequestSent(),!c&&s.reset!==!1&&(n[Ss]=!0),r[sl]()}catch(u){t(u)}}o(fJe,"writeBlob");async function oie(t,e,r,s,n,i,a,c){we(i!==0||r[Mr]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let d=u;u=null,d()}}o(p,"onDrain");let l=o(()=>new Promise((d,h)=>{we(u===null),n[ci]?h(n[ci]):u=d}),"waitForDrain");n.on("close",p).on("drain",p);let A=new OB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(n[ci])throw n[ci];A.write(d)||await l()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",p).off("drain",p)}}o(oie,"writeIterable");var OB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[nl]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[ci])throw r[ci];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(n!==null&&a+p>n){if(i[XW])throw new ed;process.emitWarning(new ed)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Ss]=!0),n===null?r.write(`${u}transfer-encoding:chunked\r
`,"latin1"),r!==null&&n!==r){if(s[XW])throw new ed;process.emitWarning(new ed)}e[Bt].timeout&&e[Bt].timeoutType===Mh&&e[Bt].timeout.refresh&&e[Bt].timeout.refresh(),s[sl]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[nl]=!1,e&&(we(s[Mr]<=1,"pipeline should only contain this request"),n(e))}};pie.exports=uJe});var gie=b((prt,mie)=>{"use strict";var ui=require("node:assert"),{pipeline:hJe}=require("node:stream"),o0=r0(),{RequestContentLengthMismatchError:YW,RequestAbortedError:Aie,SocketError:ez,InformationalError:JW}=g0(),{kUrl:EB,kReset:CB,kClient:mh,kRunning:BB,kPending:bJe,kQueue:il,kPendingIdx:KW,kRunningIdx:bo,kError:mo,kSocket:I1,kStrictContentLength:MJe,kOnError:ZW,kMaxConcurrentStreams:Mie,kHTTP2Session:Mo,kResume:ol,kSize:mJe,kHTTPContext:gJe}=ut(),uu=Symbol("open streams"),die,fie=!1,yB;try{yB=require("node:http2")}catch{yB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:zJe,HTTP2_HEADER_METHOD:OJe,HTTP2_HEADER_PATH:EJe,HTTP2_HEADER_SCHEME:yJe,HTTP2_HEADER_CONTENT_LENGTH:CJe,HTTP2_HEADER_EXPECT:BJe,HTTP2_HEADER_STATUS:DJe}}=yB;function qJe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(qJe,"parseH2Headers");async function IJe(t,e){t[I1]=e,fie||(fie=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=yB.connect(t[EB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Mie]});r[uu]=0,r[mh]=t,r[I1]=e,o0.addListener(r,"error",wJe),o0.addListener(r,"frameError",SJe),o0.addListener(r,"end",NJe),o0.addListener(r,"goaway",FJe),o0.addListener(r,"close",function(){let{[mh]:n}=this,{[I1]:i}=n,a=this[I1][mo]||this[mo]||new ez("closed",o0.getSocketInfo(i));if(n[Mo]=null,n.destroyed){ui(n[bJe]===0);let c=n[il].splice(n[bo]);for(let u=0;u<c.length;u++){let p=c[u];o0.errorRequest(n,p,a)}}}),r.unref(),t[Mo]=r,e[Mo]=r,o0.addListener(e,"error",function(n){ui(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[mo]=n,this[mh][ZW](n)}),o0.addListener(e,"end",function(){o0.destroy(this,new ez("other side closed",o0.getSocketInfo(this)))}),o0.addListener(e,"close",function(){let n=this[mo]||new ez("closed",o0.getSocketInfo(this));t[I1]=null,this[Mo]!=null&&this[Mo].destroy(n),t[KW]=t[bo],ui(t[BB]===0),t.emit("disconnect",t[EB],[t],n),t[ol]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return TJe(t,...n)},resume(){RJe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(IJe,"connectH2");function RJe(t){let e=t[I1];e?.destroyed===!1&&(t[mJe]===0&&t[Mie]===0?(e.unref(),t[Mo].unref()):(e.ref(),t[Mo].ref()))}o(RJe,"resumeH2");function wJe(t){ui(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[I1][mo]=t,this[mh][ZW](t)}o(wJe,"onHttp2SessionError");function SJe(t,e,r){if(r===0){let s=new JW(`HTTP/2:"frameError"received-type${t},code${e}`);this[I1][mo]=s,this[mh][ZW](s)}}o(SJe,"onHttp2FrameError");function NJe(){let t=new ez("other side closed",o0.getSocketInfo(this[I1]));this.destroy(t),o0.destroy(this[I1],t)}o(NJe,"onHttp2SessionEnd");function FJe(t){let e=this[mo]||new ez(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,o0.getSocketInfo(this)),r=this[mh];if(r[I1]=null,r[gJe]=null,this[Mo]!=null&&(this[Mo].destroy(e),this[Mo]=null),o0.destroy(this[I1],e),r[bo]<r[il].length){let s=r[il][r[bo]];r[il][r[bo]++]=null,o0.errorRequest(r,s,e),r[KW]=r[bo]}ui(r[BB]===0),r.emit("disconnect",r[EB],[r],e),r[ol]()}o(FJe,"onHTTP2GoAway");function vJe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(vJe,"shouldSendContentLength");function TJe(t,e){let r=t[Mo],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:l}=e;if(a)return o0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<p.length;w+=2){let F=p[w+0],W=p[w+1];if(Array.isArray(W))for(let Q=0;Q<W.length;Q++)A[F]?A[F]+=`,${W[Q]}`:A[F]=W[Q];else A[F]=W}let d,{hostname:h,port:m}=t[EB];A[zJ
globstarwhile`,t,l,e,A,d),this.matchOne(t.slice(l),e.slice(A),r))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,A);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}:${i[d]}\r
`)+4,e.outputData[0].data=e._header+s.substring(n),mb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(mb("Creating `tls.Socket`: %o",this.connectOpts),i=dd0.connect(this.connectOpts)):(mb("Creating `net.Socket`: %o",this.connectOpts),i=Ad0.connect(this.connectOpts)),await(0,hd0.once)(i,"connect"),i}};Zq.protocols=["http","https"];Ci.HttpProxyAgent=Zq;function Md0(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(Md0,"omit")});var Vbe=b(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0});dI.state=void 0;dI.state={instrumenterImplementation:void 0}});var pMe=b(mI=>{"use strict";Object.defineProperty(mI,"__esModule",{value:!0});mI.state=void 0;mI.state={operationRequestMap:new WeakMap}});var kge=b(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0});var WM0=require("os"),_M0=require("util");function LM0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(LM0,"_interopDefaultLegacy");var QM0=LM0(_M0);function PM0(t,...e){process.stderr.write(`${QM0.default.format(t,...e)}${WM0.EOL}`)}o(PM0,"log");var Nge=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,vge,LU=[],QU=[],W5=[];Nge&&PU(Nge);var Tge=Object.assign(t=>xge(t),{enable:PU,enabled:kU,disable:kM0,log:PM0});function PU(t){vge=t,LU=[],QU=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?QU.push(new RegExp(`^${s.substr(1)}$`)):LU.push(new RegExp(`^${s}$`));for(let s of W5)s.enabled=kU(s.namespace)}o(PU,"enable");function kU(t){if(t.endsWith("*"))return!0;for(let e of QU)if(e.test(t))return!1;for(let e of LU)if(e.test(t))return!0;return!1}o(kU,"enabled");function kM0(){let t=vge||"";return PU(""),t}o(kM0,"disable");function xge(t){let e=Object.assign(r,{enabled:kU(t),destroy:UM0,log:Tge.log,namespace:t,extend:GM0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return o(r,"debug"),W5.push(e),e}o(xge,"createDebugger");function UM0(){let t=W5.indexOf(this);return t>=0?(W5.splice(t,1),!0):!1}o(UM0,"destroy");function GM0(t){let e=xge(`${this.namespace}:${t}`);return e.log=this.log,e}o(GM0,"extend");var p3=Tge,Wge=new Set,T5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,_5,L5=p3("azure");L5.log=(...t)=>{p3.log(...t)};var UU=["verbose","info","warning","error"];T5&&(Pge(T5)?_ge(T5):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${T5}';loggingisnotenabled.Acceptablevalues:${UU.join(", ")}.`));function _ge(t){if(t&&!Pge(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${UU.join(",")}`);_5=t;let e=[];for(let r of Wge)Qge(r)&&e.push(r.namespace);p3.enable(e.join(","))}o(_ge,"setLogLevel");function HM0(){return _5}o(HM0,"getLogLevel");var Fge={verbose:400,info:300,warning:200,error:100};function XM0(t){let e=L5.extend(t);return Lge(L5,e),{error:x5(e,"error"),warning:x5(e,"warning"),info:x5(e,"info"),verbose:x5(e,"verbose")}}o(XM0,"createClientLogger");function Lge(t,e){e.log=(...r)=>{t.log(...r)}}o(Lge,"patchLogMethod");function x5(t,e){let r=Object.assign(t.extend(e),{level:e});if(Lge(t,r),Qge(r)){let s=p3.disable();p3.enable(s+","+r.namespace)}return Wge.add(r),r}o(x5,"createLogger");function Qge(t){return!!(_5&&Fge[t.level]<=Fge[_5])}o(Qge,"shouldEnable");function Pge(t){return UU.includes(t)}o(Pge,"isAzureLogLevel");xb.AzureLogger=L5;xb.createClientLogger=XM0;xb.getLogLevel=HM0;xb.setLogLevel=_ge});var XU=b(A3=>{"use strict";Object.defineProperty(A3,"__esModule",{value:!0});var Wb=new WeakMap,Q5=new WeakMap,l3=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Wb.set(this,[]),Q5.set(this,!1)}get aborted(){if(!Q5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Q5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Wb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Wb.get(this).push(r)}removeEventListener(e,r){if(!Wb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Wb.get(this),n=s.indexOf(r);n>-
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(oy0,"logUnexpecedPropertyAccessOnce");function ay0(){Object.keys(Ow).forEach(function(t){delete Ow[t]})}o(ay0,"resetLoggedProperties")});var yw=b(ic=>{"use strict";ic.__esModule=!0;ic.HandlebarsEnvironment=zX;function vEe(t){return t&&t.__esModule?t:{default:t}}o(vEe,"_interopRequireDefault");var d2=cs(),cy0=Un(),mX=vEe(cy0),uy0=fX(),py0=wEe(),ly0=bX(),Ew=vEe(ly0),Ay0=MX(),dy0="4.7.9";ic.VERSION=dy0;var fy0=8;ic.COMPILER_REVISION=fy0;var hy0=7;ic.LAST_COMPATIBLE_COMPILER_REVISION=hy0;var by0={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"};ic.REVISION_CHANGES=by0;var gX="[object Object]";function zX(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},uy0.registerDefaultHelpers(this),py0.registerDefaultDecorators(this)}o(zX,"HandlebarsEnvironment");zX.prototype={constructor:zX,logger:Ew.default,log:Ew.default.log,registerHelper:o(function(e,r){if(d2.toString.call(e)===gX){if(r)throw new mX.default("Arg not supported with multiple helpers");d2.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(d2.toString.call(e)===gX)d2.extend(this.partials,e);else{if(typeof r>"u")throw new mX.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(d2.toString.call(e)===gX){if(r)throw new mX.default("Arg not supported with multiple decorators");d2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Ay0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var My0=Ew.default.log;ic.log=My0;ic.createFrame=d2.createFrame;ic.logger=Ew.default});var xEe=b((Cw,TEe)=>{"use strict";Cw.__esModule=!0;function OX(t){this.string=t}o(OX,"SafeString");OX.prototype.toString=OX.prototype.toHTML=function(){return""+this.string};Cw.default=OX;TEe.exports=Cw.default});var WEe=b(EX=>{"use strict";EX.__esModule=!0;EX.wrapHelper=my0;function my0(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(my0,"wrapHelper")});var UEe=b(jl=>{"use strict";jl.__esModule=!0;jl.checkRevision=Cy0;jl.template=By0;jl.wrapProgram=Bw;jl.resolvePartial=Dy0;jl.invokePartial=qy0;jl.noop=PEe;function gy0(t){return t&&t.__esModule?t:{default:t}}o(gy0,"_interopRequireDefault");function zy0(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(zy0,"_interopRequireWildcard");var Oy0=cs(),lM=zy0(Oy0),Ey0=Un(),Uu=gy0(Ey0),Gu=yw(),_Ee=fX(),yy0=WEe(),LEe=MX();function Cy0(t){var e=t&&t[0]||1,r=Gu.COMPILER_REVISION;if(!(e>=Gu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Gu.COMPILER_REVISION))if(e<Gu.LAST_COMPATIBLE_COMPILER_REVISION){var s=Gu.REVISION_CHANGES[r],n=Gu.REVISION_CHANGES[e];throw new Uu.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new Uu.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(Cy0,"checkRevision");function By0(t,e){if(!e)throw new Uu.default("No environment passed to template");if(!t||!t.main)throw new Uu.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 s(a,c,u){u.hash&&(c=lM.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,u,p,l;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(c=this._input.match(this.rules[A[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(l=a[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.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,A[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
${VN(p)}${p}`)}catch(p){if(p.code==="ENOENT")return;throw p}return jN(t,u)}o(j5e,"insert");Zn.exports.find=kN0;async function kN0(t,e){let r=ny(t,e);try{return(await XN(r)).reduce((n,i)=>i&&i.key===e?jN(t,i):n,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}o(kN0,"find");Zn.exports.delete=UN0;function UN0(t,e,r={}){if(!r.removeFully)return j5e(t,e,null,r);let s=ny(t,e);return V5e(s,{recursive:!0,force:!0})}o(UN0,"del");Zn.exports.lsStream=$5e;function $5e(t){let e=eJ(t),r=new vN0({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(HN(),GN)),n=await KY(e);return await s(n,async i=>{let a=Bc.join(e,i),c=await KY(a);await s(c,async u=>{let p=Bc.join(a,u),l=await KY(p);await s(l,async A=>{let d=Bc.join(p,A);try{let m=(await XN(d)).reduce((z,C)=>(z.set(C.key,C),z),new Map);for(let z of m.values()){let C=jN(t,z);C&&r.write(C)}}catch(h){if(h.code==="ENOENT")return;throw h}},{concurrency:JY})},{concurrency:JY})},{concurrency:JY}),r.end(),r}).catch(s=>r.emit("error",s)),r}o($5e,"lsStream");Zn.exports.ls=GN0;async function GN0(t){return(await $5e(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}o(GN0,"ls");Zn.exports.bucketEntries=XN;async function XN(t,e){let r=await SN0(t,"utf8");return HN0(r,e)}o(XN,"bucketEntries");function HN0(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||VN(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}o(HN0,"_bucketEntries");Zn.exports.bucketDir=eJ;function eJ(t){return Bc.join(t,`index-v${LN0}`)}o(eJ,"bucketDir");Zn.exports.bucketPath=ny;function ny(t,e){let r=Y5e(e);return Bc.join.apply(Bc,[eJ(t)].concat(_N0(r)))}o(ny,"bucketPath");Zn.exports.hashKey=Y5e;function Y5e(t){return J5e(t,"sha256")}o(Y5e,"hashKey");Zn.exports.hashEntry=VN;function VN(t){return J5e(t,"sha1")}o(VN,"hashEntry");function J5e(t,e){return RN0.createHash(e).update(t).digest("hex")}o(J5e,"hash");function jN(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?WN0(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(jN,"formatEntry");function KY(t){return NN0(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(KY,"readdirOrEmpty")});var rm=b(YN=>{"use strict";Object.defineProperty(YN,"__esModule",{value:!0});YN.LRUCache=void 0;var XN0=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Z5e=new Set,tJ=typeof process=="object"&&process?process:{},eRe=o((t,e,r,s)=>{typeof tJ.emitWarning=="function"?tJ.emitWarning(t,e,r,s):console.error(`[${r}]${e}:${t}`)},"emitWarning"),$N=globalThis.AbortController,K5e=globalThis.AbortSignal;if(typeof $N>"u"){K5e=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},$N=class{static{o(this,"AbortController")}constructor(){e()}signal=new K5e;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=tJ.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,eRe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var VN0=o(t=>!Z5e.has(t),"shouldWarn"),AA=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),tRe=o(t=>AA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?tm:null:null,"getUintArray"),tm=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},rJ=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=tRe(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},sJ=class t{static{o(this,"LRUCache")}#e;#t;#s;#r;#n;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:o(r=>e.#f(r),"isBackgroundFetch"),backgroundFetch:o((r,s,n,i)=>e.#U(r,s,n,i),"backgroundFetch"),moveToTail:o(r=>e.#W(r),"moveToTail"),indexes:o(r=>e.#w(r),"indexes"),rindexes:o(r=>e.#N(r),"rindexes"),isStale:o(r=>e.#I(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution
globstarwhile`,e,d,r,h,m),this.matchOne(e.slice(d),r.slice(h),s))return this.debug("globstar found match!",d,u,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(s&&(this.debug(`
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}:${i[d]}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200){if(e.once("socket",mx0),r.secureEndpoint){_y("Upgrading socket connection to TLS");let d=r.servername||r.host;return dSe.connect({...fSe(r,"host","path","port"),socket:n,servername:Wy.isIP(d)?void 0:d})}return n}n.destroy();let A=new Wy.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{_y("Replaying proxy buffer for failed request"),(0,dx0.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};Z6.protocols=["http","https"];$i.HttpsProxyAgent=Z6;function mx0(t){t.resume()}o(mx0,"resume");function fSe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(fSe,"omit")});var OSe=b(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var mSe=require("buffer"),tf={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Np.ERRORS=tf;function gx0(t){if(!mSe.Buffer.isEncoding(t))throw new Error(tf.INVALID_ENCODING)}o(gx0,"checkEncoding");Np.checkEncoding=gx0;function gSe(t){return typeof t=="number"&&isFinite(t)&&yx0(t)}o(gSe,"isFiniteInteger");Np.isFiniteInteger=gSe;function zSe(t,e){if(typeof t=="number"){if(!gSe(t)||t<0)throw new Error(e?tf.INVALID_OFFSET:tf.INVALID_LENGTH)}else throw new Error(e?tf.INVALID_OFFSET_NON_NUMBER:tf.INVALID_LENGTH_NON_NUMBER)}o(zSe,"checkOffsetOrLengthValue");function zx0(t){zSe(t,!1)}o(zx0,"checkLengthValue");Np.checkLengthValue=zx0;function Ox0(t){zSe(t,!0)}o(Ox0,"checkOffsetValue");Np.checkOffsetValue=Ox0;function Ex0(t,e){if(t<0||t>e.length)throw new Error(tf.INVALID_TARGET_OFFSET)}o(Ex0,"checkTargetOffset");Np.checkTargetOffset=Ex0;function yx0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(yx0,"isInteger");function Cx0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof mSe.Buffer.prototype[t]>"u")throw new Error(`PlatformdoesnotsupportBuffer.prototype.${t}.`)}o(Cx0,"bigIntAndBufferInt64Check");Np.bigIntAndBufferInt64Check=Cx0});var ySe=b(gK=>{"use strict";Object.defineProperty(gK,"__esModule",{value:!0});var e0=OSe(),ESe=4096,Bx0="utf8",mK=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=Bx0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(e0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(e0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(e0.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(e0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(ESe);else{if(typeof e<"u")throw new Error(e0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(ESe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}read
`,q90=/\u2014 (\S+) (\S+)\n/g;function I90(t,e){let r=t.inclusionProof,s=f0e.fromString(r.checkpoint.envelope),n=_v.fromString(s.note);if(!R90(s,e))throw new fC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(I90,"verifyCheckpoint");function R90(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>Bve.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?Bve.crypto.verify(r,n.publicKey,s.signature):!1})}o(R90,"verifySignedNote");var f0e=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(d0e))throw new fC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(d0e),s=e.slice(0,r+1),i=e.slice(r+d0e.length).matchAll(q90),a=Array.from(i,c=>{let[,u,p]=c,l=Buffer.from(p,"base64");if(l.length<5)throw new fC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(a.length===0)throw new fC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},_v=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new fC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};hC.LogCheckpoint=_v});var qve=b(m0e=>{"use strict";Object.defineProperty(m0e,"__esModule",{value:!0});m0e.verifyMerkleInclusion=N90;var M0e=Xn(),h0e=Pr(),w90=Buffer.from([0]),S90=Buffer.from([1]);function N90(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new h0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${s}`});let{inner:i,border:a}=F90(s,n);if(r.hashes.length!==i+a)throw new h0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=L90(t.canonicalizedBody),l=T90(v90(p,c,s),u);if(!M0e.crypto.bufferEqual(l,e.logHash))throw new h0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(N90,"verifyMerkleInclusion");function F90(t,e){let r=x90(t,e),s=W90(t>>BigInt(r));return{inner:r,border:s}}o(F90,"decompInclProof");function v90(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?b0e(n,s):b0e(s,n),t)}o(v90,"chainInner");function T90(t,e){return e.reduce((r,s)=>b0e(s,r),t)}o(T90,"chainBorderRight");function x90(t,e){return _90(t^e-BigInt(1))}o(x90,"innerProofSize");function W90(t){return t.toString(2).split("1").length-1}o(W90,"onesCount");function _90(t){return t===0n?0:t.toString(2).length}o(_90,"bitLength");function b0e(t,e){return M0e.crypto.digest("sha256",S90,t,e)}o(b0e,"hashChildren");function L90(t){return M0e.crypto.digest("sha256",w90,t)}o(L90,"hashLeaf")});var Rve=b(g0e=>{"use strict";Object.defineProperty(g0e,"__esModule",{value:!0});g0e.verifyTLogSET=k90;var Ive=Xn(),Q90=Pr(),P90=eg();function k90(t,e){if(!(0,P90.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=U90(t),a=Buffer.from(Ive.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Ive.crypto.verify(a,n.publicKey,c)}))throw new Q90.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(k90,"verifyTLogSET");function U90(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(U90,"toVerificationPayload")});var Sve=b(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});Lv.verifyTLogBody=j90;Lv.verifyTLogInclusion=$90;var wve=dZ(),E0e=Pr(),z0e=Eve(),O0e=yve(),G90=Cve(),H90=Dve(),X90=qve(),V90=Rve();function j90(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new E0e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${s},received:${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==z0e.DSSE_API_VERSION_V1)return(0,z0e.verifyDSSETLogBody)(n,e);{let i=wve.Entry.fromJSON(n);return(0,z0e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,G90.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==O0e.HASHEDREKORD_API_VERSION_V1)return(0,O0e.verifyHashedRekordTLogBody)(n,e);{let i=wve.Entry.fromJSON(n);return(0,O0e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new E0e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}o(j90,"verifyTLogBody");function $90(t,e){let r=!1;if(Y90(t)&&((0,V90.verifyTLogSET)(t,e),r=!0),J90(t)){let s=(0,H90.verifyCheckpoint)(t,e);(0,X90.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new E0e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o($90,"verifyTLogInclusion");function Y90(t){return t.inclusionPromise!==void 0}o(Y90,"isTLogEntryWithInclusionPromise");function J90(t){return t.inclusionProof!==void 0}o(J90,"isTLogEntryWithInclusionProof")});var xve=b(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});Qv.Verifier=v
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,vet.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(e4,"_createForOfIteratorHelper");function ket(t,e){var r;if(t){if(typeof t=="string")return $7e(t,e);var s=(0,oo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,_et.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return $7e(t,e)}}o(ket,"_unsupportedIterableToArray");function $7e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}o($7e,"_arrayLikeToArray");var at="xregexp",Nf={astral:!1,namespacing:!1},Qt={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},$c={},KC={},Eg={},S1e=[],yg="default",Y7e="class",Uet={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},Get=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,Het=Qt.exec.call(/()??/,"")[1]===void 0,Xet=(0,Sf.default)(/x/)!==void 0,Vet={},t9e=Vet.toString;function F1e(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}o(F1e,"hasNativeFlag");var r9e=F1e("u"),v1e=F1e("y"),s9e={g:!0,i:!0,m:!0,u:r9e,y:v1e};function n9e(t,e,r,s,n){var i;if(t[at]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=ae.prototype;else for(var a in ae.prototype)t[a]=ae.prototype[a];return t[at].source=r,t[at].flags=s&&(0,Pet.default)(i=s.split("")).call(i).join(""),t}o(n9e,"augment");function ZC(t){return Qt.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}o(ZC,"clipDuplicates");function vf(t,e){var r;if(!ae.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[at]||{},n=jet(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(n=Qt.replace.call(n,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=ZC(n+i)),e.isInternalOnly||(s.source!==void 0&&(c=s.source),(0,Sf.default)(s)!=null&&(u=i?ZC((0,Sf.default)(s)+i):(0,Sf.default)(s))),t=n9e(new RegExp(e.source||t.source,n),$et(t)?(0,oo.default)(r=s.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}o(vf,"copyRegex");function i9e(t){return(0,e9e.default)(t,16)}o(i9e,"dec");function o9e(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||Qt.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||Yet(t.input,t.index+t[0].length,r)?"":"(?:)"}o(o9e,"getContextualTokenSeparator");function jet(t){return Xet?(0,Sf.default)(t):Qt.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}o(jet,"getNativeFlags");function $et(t){return!!(t[at]&&t[at].captureNames)}o($et,"hasNamedCapture");function a9e(t){return(0,e9e.default)(t,10).toString(16)}o(a9e,"hex");function Yet(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return Qt.test.call((0,Ff.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,oo.default)(t).call(t,e))}o(Yet,"isQuantifierNext");function T1e(t,e){return t9e.call(t)==="[object ".concat(e,"]")}o(T1e,"isType");function c9e(t){for(;t.length<4;)t="0".concat(t);return t}o(c9e,"pad4");function Jet(t,e){if(ZC(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=Qt.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(Qt.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=ZC(e
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,F0t.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(P0t,"_createForOfIteratorHelper");function k0t(t,e){var r;if(t){if(typeof t=="string")return $9e(t,e);var s=(0,_0t.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,W0t.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return $9e(t,e)}}o(k0t,"_unsupportedIterableToArray");function $9e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}o($9e,"_arrayLikeToArray");var U0t=o(function(e){var r={},s=e._dec,n=e._hex,i=e._pad4;function a(d){return d.replace(/[- _]+/g,"").toLowerCase()}o(a,"normalize");function c(d){var h=/^\\[xu](.+)/.exec(d);return h?s(h[1]):d.charCodeAt(d[0]==="\\"?1:0)}o(c,"charCode");function u(d){var h="",m=-1;return(0,Q0t.default)(e).call(e,d,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(z){var C=c(z[1]);C>m+1&&(h+="\\u".concat(i(n(m+1))),C>m+2&&(h+="-\\u".concat(i(n(C-1))))),m=c(z[2]||z[1])}),m<65535&&(h+="\\u".concat(i(n(m+1))),m<65534&&(h+="-\\uFFFF")),h}o(u,"invertBmp");function p(d){var h="b!";return r[d][h]||(r[d][h]=u(r[d].bmp))}o(p,"cacheInvertedBmp");function l(d,h){var m=r[d],z="";if(m.bmp&&!m.isBmpLast){var C;z=(0,L1e.default)(C="[".concat(m.bmp,"]")).call(C,m.astral?"|":"")}if(m.astral&&(z+=m.astral),m.isBmpLast&&m.bmp){var E;z+=(0,L1e.default)(E="".concat(m.astral?"|":"","[")).call(E,m.bmp,"]")}return h?"(?:(?!".concat(z,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(z,")")}o(l,"buildAstral");function A(d,h){var m=h?"a!":"a=";return r[d][m]||(r[d][m]=l(d,h))}o(A,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(d,h,m){var z="Invalid double negation ",C="Unknown Unicode token ",E="Unicode token missing data ",D="Astral mode required for Unicode token ",R="Astral mode does not support Unicode tokens within character classes",w=d[1]==="P"||!!d[2],F=(0,L0t.default)(m).call(m,"A"),W=a(d[4]||d[3]),Q=r[W];if(d[1]==="P"&&d[2])throw new SyntaxError(z+d[0]);if(!r.hasOwnProperty(W))throw new SyntaxError(C+d[0]);if(Q.inverseOf){if(W=a(Q.inverseOf),!r.hasOwnProperty(W)){var $;throw new ReferenceError((0,L1e.default)($="".concat(E+d[0]," -> ")).call($,Q.inverseOf))}Q=r[W],w=!w}if(!(Q.bmp||F))throw new SyntaxError(D+d[0]);if(F){if(h==="class")throw new SyntaxError(R);return A(W,w)}return h==="class"?w?p(W):Q.bmp:"".concat((w?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(d){var h="Unicode token requires name",m="Unicode token has no character data ",z=P0t(d),C;try{for(z.s();!(C=z.n()).done;){var E=C.value;if(!E.name)throw new Error(h);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(m+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(D){z.e(D)}finally{z.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(d){var h=a(d);return r[h]}},"_default");o4.default=U0t;Y9e.exports=o4.default});var Z9e=b((vKt,K9e)=>{K9e.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}o(wle,"getBooleanInput");functiong8(t,e){if(process.env.GITHUB_OUTPUT||"")returnWg("OUTPUT",P4(t,e));process.stdout.write(m8.EOL),ia("set-output",{name:t},na(e))}o(g8,"setOutput");functionSle(t){process.exitCode=M8.Failure,Kh(t)}o(Sle,"setFailed");functiongu(){returnprocess.env.RUNNER_DEBUG==="1"}o(gu,"isDebug");functionT(t){ia("debug",{},t)}o(T,"debug");functionKh(t,e={}){ia("error",wx(e),tinstanceofError?t.toString():t)}o(Kh,"error");functionz0(t,e={}){ia("warning",wx(e),tinstanceofError?t.toString():t)}o(z0,"warning");function_(t){process.stdout.write(t+m8.EOL)}o(_,"info");functionEd(t){Nx("group",t)}o(Ed,"startGroup");functionyd(){Nx("endgroup")}o(yd,"endGroup");functioncr(t,e){returnwn0(this,void0,void0,function*(){Ed(t);letr;try{r=yielde()}finally{yd()}returnr})}o(cr,"group");functionkD(t,e){if(process.env.GITHUB_STATE||"")returnWg("STATE",P4(t,e));ia("save-state",{name:t},na(e))}o(kD,"saveState");functionNle(t){returnprocess.env[`STATE_${t}`]||""}o(Nle,"getState");varHR=x(require("fs"),1),SH=x(require("os"),1),NH=x(require("path"),1);varvle=x(require("os"),1);functionHz(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}o(Hz,"toCommandValue");functionTle(t,e,r){lets=newz8(t,e,r);process.stdout.write(s.toString()+vle.EOL)}o(Tle,"issueCommand");varFle="::",z8=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=Fle+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){letn=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${Nn0(n)}`)}}returne+=`${Fle}${Sn0(this.message)}`,e}};functionSn0(t){returnHz(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Sn0,"escapeData");functionNn0(t){returnHz(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Nn0,"escapeProperty");varLle=x(require("os"),1);varWle=require("os"),Xz=require("fs");varO8=function(t,e,r,s){functionn(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(n,"adopt"),new(r||(r=Promise))(function(i,a){functionc(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");functionu(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");functionp(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},{access:Fn0,appendFile:vn0,writeFile:Tn0}=Xz.promises,xle="GITHUB_STEP_SUMMARY";varE8=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){returnO8(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[xle];if(!e)thrownewError(`Unable to find environment variable for $${xle}. Check if your runtime environment supports job summaries.`);try{yieldFn0(e,Xz.constants.R_OK|Xz.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,s={}){letn=Object.entries(s).map(([i,a])=>`${i}="${a}"`).join("");returnr?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){returnO8(this,void0,void0,function*(){letr=!!e?.overwrite,s=yieldthis.filePath();returnyield(r?Tn0:vn0)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnO8(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(Wle.EOL)}addCodeBlock(e,r){lets=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);returnthis.addRaw(n).addEOL()}addList(e,r=!1){lets=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);returnthis.addRaw(i).addEOL()}addTable(e){letr=e.map(n=>{leti=n.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{he
${Vl0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Nq(t){return t instanceof ts?!0:Rd(t)&&t.name==="RestError"}o(Nq,"isRestError");function xs(t,e){return Buffer.from(t,e)}o(xs,"stringToUint8Array");var Fq=x(require("node:http"),1),vq=x(require("node:https"),1),VQ=x(require("node:zlib"),1),Nhe=require("node:stream");var Oi=gO("ts-http-runtime");var jl0={};function zO(t){return t&&typeof t.pipe=="function"}o(zO,"isReadableStream");function She(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(She,"isStreamComplete");function Fhe(t){return t&&typeof t.byteLength=="number"}o(Fhe,"isArrayBuffer");var Tq=class extends Nhe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},jQ=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ba("The operation was aborted. Request has already been canceled.");s=o(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let p=new Io;Oi.info(`requestto'${p.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=Kl0(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,z=new Tq(m);z.on("error",C=>{Oi.error("Error in upload progress",C)}),zO(c)?c.pipe(z):z.end(c),c=z}let p=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let l=$l0(p),d={status:p.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return p.resume(),d;u=a?Yl0(p,l):p;let h=e.onDownloadProgress;if(h){let m=new Tq(h);m.on("error",z=>{Oi.error("Error in download progress",z)}),u.pipe(m),u=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await Jl0(u),d}finally{if(e.abortSignal&&s){let p=Promise.resolve();zO(c)&&(p=She(c));let l=Promise.resolve();zO(u)&&(l=She(u)),Promise.all([p,l]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{Oi.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let l=i?Fq.default.request(c,u):vq.default.request(c,u);l.once("error",A=>{p(new ts(A.message,{code:A.code??ts.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Ba("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(A),p(A)}),s&&zO(s)?s.pipe(l):s?typeof s=="string"||Buffer.isBuffer(s)?l.end(s):Fhe(s)?l.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Oi.error("Unrecognized body type",s),p(new ts("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Fq.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Fq.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return vq.default.globalAgent;let n=e.tlsSettings??jl0,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Oi.info("No cached TLS Agent exi
`;return e}o(Rd0,"encodeHeaders");function wd0(t){return t instanceof Uint8Array?t.byteLength:nI(t)?t.size===-1?void 0:t.size:void 0}o(wd0,"getLength");function Sd0(t){let e=0;for(let r of t){let s=wd0(r);if(s===void 0)return;e+=s}return e}o(Sd0,"getTotalLength");async function Nd0(t,e,r){let s=[xs(`--${r}`,"utf-8"),...e.flatMap(i=>[xs(`\r
`,"utf-8")],n=Sd0(s);n&&t.headers.set("Content-Length",n),t.body=await Tbe(s)}o(Nd0,"buildRequestBody");var CO="multipartPolicy",Fd0=70,vd0=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Td0(t){if(t.length>Fd0)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!vd0.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}o(Td0,"assertValidBoundary");function oI(){return{name:CO,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,i,a]=n;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?Td0(r):r=Id0(),t.headers.set("Content-Type",`${i};boundary=${r}`),await Nd0(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(oI,"multipartPolicy");function aI(){return Sq()}o(aI,"createEmptyPipeline");var xbe=Iq({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Gft=xbe.logger;function Ia(t){return xbe.createClientLogger(t)}o(Ia,"createClientLogger");var Ra=Ia("core-rest-pipeline");function fP(t={}){return Wq({logger:Ra.info,...t})}o(fP,"logPolicy");var hP=_q;function bP(t={}){return Lq(t)}o(bP,"redirectPolicy");var cI=x(require("node:os"),1),uI=x(require("node:process"),1);function Wbe(){return"User-Agent"}o(Wbe,"getHeaderName");async function _be(t){if(uI.default&&uI.default.versions){let e=`${cI.default.type()}${cI.default.release()};${cI.default.arch()}`,r=uI.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(_be,"setPlatformSpecificData");var pI="1.22.2";function Ud0(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(Ud0,"getUserAgentString");function Lbe(){return Wbe()}o(Lbe,"getUserAgentHeaderName");async function lI(t){let e=new Map;e.set("core-rest-pipeline",pI),await _be(e);let r=Ud0(e);return t?`${t}${r}`:r}o(lI,"getUserAgentValue");var Qbe=Lbe(),Pbe="userAgentPolicy";function MP(t={}){let e=lI(t.userAgentPrefix);return{name:Pbe,async sendRequest(r,s){return r.headers.has(Qbe)||r.headers.set(Qbe,await e),s(r)}}}o(MP,"userAgentPolicy");var vn=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function mP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new vn(n??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){s?.removeEventListener("abort",p)}o(u,"removeListeners");function p(){r?.(),u(),c()}if(o(p,"onAbort"),s?.aborted)return c();try{t(l=>{u(),i(l)},l=>{u(),a(l)})}catch(l){a(l)}s?.addEventListener("abort",p)})}o(mP,"createAbortablePromise");var jd0="The delay was aborted.";function BO(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return mP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??jd0})}o(BO,"delay");function Sl(t){if(Rd(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}o(Sl,"getErrorMessage");function kbe(t){return Rd(t)}o(kbe,"isError");function gb(){return Id()}o(gb,"randomUUID");var q0=Nd;var Ube=Symbol("rawContent");function zP(t){return typeof t[Ube]=="function"}o(zP,"hasRawContent");function Gbe(t){return zP(t)?t[Ube]():t}o(Gbe,"getRawContent");var AI=CO;function OP(){let t=oI();return{name:AI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)zP(s.body)&&(s.body=Gbe(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(OP,"multipartPolicy");var EP=Qq;function yP(){return Pq()}o(yP,"decompressResponsePolicy");fun
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!mf0(u)){let A;return u.trim().length===0?A="Invalid space after '<'.":A="Tag '"+u+"' is an invalid name.",jt("InvalidTag",A,rs(t,i))}let p=df0(t,i);if(p===!1)return jt("InvalidAttr","Attributes for '"+u+"' have open quote.",rs(t,i));let l=p.value;if(i=p.index,l[l.length-1]==="/"){let A=i-l.length;l=l.substring(0,l.length-1);let d=RMe(l,e);if(d===!0)s=!0;else return jt(d.err.code,d.err.msg,rs(t,A+d.err.line))}else if(c)if(p.tagClosed){if(l.trim().length>0)return jt("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",rs(t,a));if(r.length===0)return jt("InvalidTag","Closing tag '"+u+"' has not been opened.",rs(t,a));{let A=r.pop();if(u!==A.tagName){let d=rs(t,A.tagStartPos);return jt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",rs(t,a))}r.length==0&&(n=!0)}}else return jt("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",rs(t,i));else{let A=RMe(l,e);if(A!==!0)return jt(A.err.code,A.err.msg,rs(t,i-l.length+A.err.line));if(n===!0)return jt("InvalidXml","Multiple possible root nodes found.",rs(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=IMe(t,i);continue}else if(t[i+1]==="?"){if(i=qMe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=bf0(t,i);if(A==-1)return jt("InvalidChar","char '&' is not expected.",rs(t,i));i=A}else if(n===!0&&!DMe(t[i]))return jt("InvalidXml","Extra text at the end",rs(t,i));t[i]==="<"&&i--}}else{if(DMe(t[i]))continue;return jt("InvalidChar","char '"+t[i]+"' is not expected.",rs(t,i))}if(s){if(r.length==1)return jt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rs(t,r[0].tagStartPos));if(r.length>0)return jt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return jt("InvalidXml","Start tag expected.",1);return!0}o(BI,"validate");function DMe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(DMe,"isWhiteSpace");function qMe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return jt("InvalidXml","XML declaration allowed only at the start of the document.",rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(qMe,"readPI");function IMe(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(IMe,"readCommentAndCDATA");var lf0='"',Af0="'";function df0(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===lf0||t[e]===Af0)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(df0,"readAttributeStr");var ff0=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function RMe(t,e){let r=yI(t,ff0),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return jt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",WO(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return jt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",WO(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return jt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",WO(r[n]));let i=r[n][2];if(!Mf0(i))return jt("InvalidAttr","Attribute '"+i+"' is an invalid name.",WO(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return jt("InvalidAttr","Attribute '"+i+"' is repeated.",WO(r[n]))}return!0}o(RMe,"validateAttributeString");function hf0(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(hf0,"validateNumberAmpersand");function bf0(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,hf0(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(bf0,"validateAmpersand");function jt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(jt,"getErrorObject");function Mf0(t){return jP(t)}o(Mf0,"validateAttrName");function mf0(t){return jP(t)}o(mf0,"validateTagName");function rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(rs,"getLineNumberForPosition");function WO(t){return t.startIndex+t[1].length}o(WO,"getPositionFromMatch");var wMe={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"},SMe={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",ntil
`);let e=new Qs("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new QO(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let l=Bb(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,l).trim();if(n.removeNSPrefix){let h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}A=rk(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${A}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=l}else if(p===63){let l=sk(t,c,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&l.tagName==="?xml"||n.ignorePiTags)){let d=new Qs(l.tagName);d.add(n.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,c)}c=l.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let l=Bb(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,l-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=l}else if(p===33&&t.charCodeAt(c+2)===68){let l=i.readDocType(t,c);this.entityDecoder.addInputEntities(l.entities),c=l.i}else if(p===33&&t.charCodeAt(c+2)===91){let l=Bb(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,l);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,d),c=l+2}else{let l=sk(t,c,n.removeNSPrefix);if(!l){let W=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${W}"`)}let A=l.tagName,d=l.rawTagName,h=l.tagExp,m=l.attrExpPresent,z=l.closeIndex;if({tagName:A,tagExp:h}=rk(n.transformTagName,A,h,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),h=A):h=h.substr(0,h.length-1),m=A!==h);let D=null,R={},w;w=Pf0(d),A!==e.tagname&&this.matcher.push(A,{},w),A!==h&&m&&(D=this.buildAttributesMap(h,this.matcher,A),D&&(R=Qf0(D,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=c;if(this.isCurrentNodeStopNode){let W="";if(E)c=l.closeIndex;else if(n.unpairedTagsSet.has(A))c=l.closeIndex;else{let $=this.readStopNodeData(t,d,z+1);if(!$)throw new Error(`Unexpected end of ${d}`);c=$.i,W=$.tagContent}let Q=new Qs(A);D&&(Q[":@"]=D),Q.add(n.textNodeName,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,F)}else{if(E){({tagName:A,tagExp:h}=rk(n.transformTagName,A,h,n));let W=new Qs(A);D&&(W[":@"]=D),this.addChild(r,W,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let W=new Qs(A);D&&(W[":@"]=D),this.addChild(r,W,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=l.closeIndex;continue}else{let W=new Qs(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),D&&(W[":@"]=D),this.addChild(r,W,this.readonlyMatcher,F),r=W}s="",c=z}}}else s+=t[c];return e.child},"parseXml"
`}),s}getCanonicalizedResourceString(e){let r=_I(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=LI(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let u=c.toLowerCase();i[u]=n[c],a.push(u)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var qt=class extends Pd{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new HO(e,r,this)}computeHMACSHA256(e){return(0,cme.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var g1=Ia("storage-common");var Bi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Bi||(Bi={}));var Wl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},zh0=new vn("The operation was aborted."),XO=class extends Fa{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Wl){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Wl.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Wl.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Wl.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Wl.maxRetryDelayInMs):Wl.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Wl.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Wl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=WI(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=xl(n.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(g1.info(`RetryPolicy:=====>Try=${s}${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(g1.error(`RetryPolicy:Caughterror,message:${c.message},code:${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return g1.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return g1.info(`RetryPolicy:Networkerror${a}found,willretry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return g1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return g1.info(`RetryPolicy:Willretryforstatuscode${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(_e.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(g1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Bi.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Bi.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return g1.info(`RetryPolicy:Delayfor${n}ms`),QI(n,s,zh0)}};var VO=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new XO(e,r,this.retryOptions)}};var Oh0="storageBrowserPolicy";function ume(){return{name:Oh0,async sendRequest(t,e){return q0||((t.method==="GET"||t.method==="HEAD")&&(t.url=xl(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(_e.COOKIE),t.headers.delete(_e.CONTENT_LENGTH)),e(t)}}}o(ume,"storageBrowserPolicy");var Eh0="StorageCorrectContentLengthPolicy";function pme(){function t(e){e.body&&(
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=_I(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=LI(i.url),p={};if(u){let l=[];for(let A in u)if(Object.prototype.hasOwnProperty.call(u,A)){let d=A.toLowerCase();p[d]=u[A],l.push(d)}l.sort();for(let A of l)c+=`
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new vo(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(wM0,"generateBlobSASQueryParameters20150405");function SM0(t,e){if(t=Yd(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ya.parse(t.permissions.toString()).toString():n=Ja.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",$d(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Fo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new vo(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(SM0,"generateBlobSASQueryParameters20181109");function NM0(t,e){if(t=Yd(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ya.parse(t.permissions.toString()).toString():n=Ja.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",$d(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Fo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new vo(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(NM0,"generateBlobSASQueryParameters20201206");function FM0(t,e){if(t=Yd(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ya.parse(t.permissions.toString()).toString():n=Ja.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",$d(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Fo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new vo(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(FM0,"generateBlobSASQueryParametersUDK20181109");function vM0(t,e){if(t=Yd(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ya.parse(t.permissions.toString()).toString():n=Ja.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",$d(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Fo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new vo(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(vM0,"generateBlobSASQueryParametersUDK20200210");function TM0(t,e){if(t=Yd(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ya.parse(t.permissions.toString()).toString():n=Ja.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",$d(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Fo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new vo(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(TM0,"generateBlobSASQueryParametersUDK20201206");function xM0(t,e){if(t=Yd(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Ya.parse(t.permissions.toString()).toString():n=Ja.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",$d(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Fo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new vo(t.version,a,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(xM0,"generateBlobSASQueryParametersUDK20250705");function $d(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o($d,"getCanonicalName");function Yd(t){let e=t.version?t.version:GI;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Yd,"SASSignatureValuesSanityCheckAndAutofill");var o3=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=gb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ro||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ro||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ge.withSpan("BlobLeaseClient-acquireLease",r,async s=>Ce(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ro||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ro||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ge.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Ce(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
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"}};Lb.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var e2=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"}};e2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var b3=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Xm0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},cG=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),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);_(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=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 Bze(t,e,r){return Xm0(this,void 0,void 0,function*(){var s;let n=new Wu(t),i=n.getBlockBlobClient(),a=new cG((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new $5(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw z0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(Bze,"uploadCacheArchiveSDK");var qze=x(require("buffer"),1),Ka=x(require("fs"),1),Ize=x(require("stream"),1),Rze=x(require("util"),1);var Y5=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};function J5(t){return t?t>=200&&t<300:!1}o(J5,"isSuccessStatusCode");function Vm0(t){return t?t>=500:!0}o(Vm0,"isServerErrorStatusCode");function jm0(t){return t?[Dt.BadGateway,Dt.ServiceUnavailable,Dt.GatewayTimeout].includes(t):!1}o(jm0,"isRetryableStatusCode");function $m0(t){return Y5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o($m0,"sleep");function Dze(t,e,r){return Y5(this,arguments,void 0,function*(s,n,i,a=Eq,c=yq,u=void 0){let p="",l=1;for(;l<=a;){let A,d,h=!1;try{A=yield n()}catch(m){u&&(A=u(m)),h=!0,p=m.message}if(A&&(d=i(A),!Vm0(d)))return A;if(d&&(h=jm0(d),p=`Cache service responded with ${d}`),T(`${s} - Attempt ${l} of ${a} failed with error: ${p}`),!h){T(`${s} - Error is not retryable`);break}yield $m0(c),l++}throw Error(`${s} failed: ${p}`)})}o(Dze,"retry");function M3(t,e){return Y5(this,arguments,void 0,function*(r,s,n=Eq,i=yq){return yield Dze(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Ca)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(M3,"retryTypedResponse");function Qb(t,e){return Y5(this,arguments,void 0,function*(r,s,n=Eq,i=yq){return yield Dze(r,s,a=>a.message.statusCode,n,i)})}o(Qb,"retryHttpClientResponse");var wi=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a
Othercacheswithsimilarkey:`);for(let c of i?.artifactCaches||[])T(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(sg0,"printCachesListForDiagnostics");function AG(t,e,r){return Gs(this,void 0,void 0,function*(){let s=new Lze.URL(t),n=Fze(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Sze(t,e,n):n.concurrentBlobDownloads?yield wze(t,e,n):yield Z5(t,e):yield Z5(t,e)})}o(AG,"downloadCache");function Pze(t,e,r){return Gs(this,void 0,void 0,function*(){let s=lG(),n=pb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield M3("reserveCache",()=>Gs(this,void 0,void 0,function*(){return s.postJson(g3("caches"),i)}))})}o(Pze,"reserveCache");function _ze(t,e){return`bytes${t}-${e}/*`}o(_ze,"getContentRange");function ng0(t,e,r,s,n){return Gs(this,void 0,void 0,function*(){T(`Uploadingchunkofsize${n-s+1}bytesatoffset${s}withcontentrange:${_ze(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":_ze(s,n)},a=yield Qb(`uploadChunk(start:${s},end:${n})`,()=>Gs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!J5(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}o(ng0,"uploadChunk");function ig0(t,e,r,s){return Gs(this,void 0,void 0,function*(){let n=ya(r),i=g3(`caches/${e.toString()}`),a=Pb.openSync(r,"r"),c=uG(s),u=vQ("uploadConcurrency",c.uploadConcurrency),p=vQ("uploadChunkSize",c.uploadChunkSize),l=[...new Array(u).keys()];T("Awaiting all uploads");let A=0;try{yield Promise.all(l.map(()=>Gs(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,p),h=A,m=A+d-1;A+=p,yield ng0(t,i,()=>Pb.createReadStream(r,{fd:a,start:h,end:m,autoClose:!1}).on("error",z=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${z.message}`)}),h,m)}})))}finally{Pb.closeSync(a)}})}o(ig0,"uploadFile");function og0(t,e,r){return Gs(this,void 0,void 0,function*(){let s={size:r};return yield M3("commitCache",()=>Gs(this,void 0,void 0,function*(){return t.postJson(g3(`caches/${e.toString()}`),s)}))})}o(og0,"commitCache");function dG(t,e,r,s){return Gs(this,void 0,void 0,function*(){if(uG(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Bze(r,e,s)}else{let i=lG();T("Upload cache"),yield ig0(i,t,e,s),T("Commiting cache");let a=ya(e);_(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield og0(i,t,a);if(!J5(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);_("Cache saved successfully")}})}o(dG,"saveCache");var TOe=x(IOe(),1),Kt=x(Jt(),1),Qn=x(Jt(),1),i2=x(Jt(),1),o2=x(Jt(),1),a2=x(Jt(),1);var aH=x(Jt(),1),cH=x(Jt(),1),NOe=x(Jt(),1),FOe=x(Jt(),1),vOe=x(Jt(),1);var nH=x(Jt(),1),iH=x(Jt(),1),ROe=x(Jt(),1),wOe=x(Jt(),1),SOe=x(Jt(),1);var oH=class extends SOe.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,wOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ROe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=s.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknownfield${c}(wiretype${u})for${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?iH.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,nH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,nH.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?iH.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},QR=new oH;var uH=class extends vOe.Mess
`));let s=yield CH(r,"create");yield BH(s,t)})}o(qH,"createTar");var nM=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},Wo=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},sM=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},GR=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function LOe(t){if(!t||t.length===0)throw new Wo("Path Validation Error: At least one directory or file path is required")}o(LOe,"checkPaths");function IH(t){if(t.length>512)throw new Wo(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Wo(`KeyValidationError:${t}cannotcontaincommas.`)}o(IH,"checkKey");function RH(){return m3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(RH,"isFeatureAvailable");function QOe(t,e,r,s){return nM(this,arguments,void 0,function*(n,i,a,c,u=!1){let p=m3();return T(`Cacheserviceversion:${p}`),LOe(n),p==="v2"?yield OO0(n,i,a,c,u):yield zO0(n,i,a,c,u)})}o(QOe,"restoreCache");function zO0(t,e,r,s){return nM(this,arguments,void 0,function*(n,i,a,c,u=!1){a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new Wo("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of p)IH(d);let l=yield bO(),A="";try{let d=yield Qze(p,n,{compressionMethod:l,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return _("Lookup only - skipping download"),d.cacheKey;A=T3.join(yield fO(),Il(l)),T(`ArchivePath:${A}`),yield AG(d.archiveLocation,A,c),gu()&&(yield v3(A,l));let h=ya(A);return _(`CacheSize:~${Math.round(h/(1024*1024))}MB(${h}B)`),yield DH(A,l),_("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Wo.name)throw d;h instanceof Ca&&typeof h.statusCode=="number"&&h.statusCode>=500?Kh(`Failedtorestore:${d.message}`):z0(`Failedtorestore:${d.message}`)}finally{try{yield hO(A)}catch(d){T(`Failedtodeletearchive:${d}`)}}})}o(zO0,"restoreCacheV1");function OO0(t,e,r,s){return nM(this,arguments,void 0,function*(n,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new Wo("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of p)IH(A);let l="";try{let A=yH(),d=yield bO(),h={key:i,restoreKeys:a,version:pb(n,d,u)},m=yield A.GetCacheEntryDownloadURL(h);if(!m.ok){T(`Cachenotfoundforversion${h.version}ofkeys:${p.join(", ")}`);return}if(h.key!==m.matchedKey?_(`Cachehitforrestore-key:${m.matchedKey}`):_(`Cachehitfor:${m.matchedKey}`),c?.lookupOnly)return _("Lookup only - skipping download"),m.matchedKey;l=T3.join(yield fO(),Il(d)),T(`Archivepath:${l}`),T(`Startingdownloadofarchiveto:${l}`),yield AG(m.signedDownloadUrl,l,c);let C=ya(l);return _(`CacheSize:~${Math.round(C/(1024*1024))}MB(${C}B)`),gu()&&(yield v3(l,d)),yield DH(l,d),_("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===Wo.name)throw A;d instanceof Ca&&typeof d.statusCode=="number"&&d.statusCode>=500?Kh(`Failedtorestore:${A.message}`):z0(`Failedtorestore:${A.message}`)}finally{try{l&&(yield hO(l))}catch(A){T(`Failedtodeletearchive:${A}`)}}})}o(OO0,"restoreCacheV2");function wH(t,e,r){return nM(this,arguments,void 0,function*(s,n,i,a=!1){let c=m3();return T(`Cacheserviceversion:${c}`),LOe(s),IH(n),c==="v2"?yield yO0(s,n,i,a):yield EO0(s,n,i,a)})}o(wH,"saveCache");function EO0(t,e,r){return nM(this,arguments,void 0,fu
`)}o(M30,"_buildMessageForResponseErrors");var m30=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(M30(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},g30=["method","baseUrl","url","headers","request","query","mediaType","operationName"],z30=["query","method","url"],q3e=/\/api\/v3\/?$/;function O30(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(z30.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>g30.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return q3e.test(i)&&(n.url=i.replace(q3e,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new m30(n,c,a.data)}return a.data.data})}o(O30,"graphql");function UH(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>O30(r,n,i),"newApi"),{defaults:UH.bind(null,r),endpoint:r.endpoint})}o(UH,"withDefaults");var ESt=UH(L3,{headers:{"user-agent":`octokit-graphql.js/${b30}${Xl()}`},method:"POST",url:"/graphql"});function I3e(t){return UH(t,{method:"POST",url:"/graphql"})}o(I3e,"withCustomRequest");var GH="(?:[a-zA-Z0-9_-]+)",R3e="\\.",w3e=new RegExp(`^${GH}${R3e}${GH}${R3e}${GH}$`),E30=w3e.test.bind(w3e);async function y30(t){let e=E30(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(y30,"auth");function C30(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}o(C30,"withAuthorizationPrefix");async function B30(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=C30(t),e(n)}o(B30,"hook");var S3e=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(y30.bind(null,e),{hook:B30.bind(null,e)})},"createTokenAuth2");var HH="7.0.6";var N3e=o(()=>{},"noop"),D30=console.warn.bind(console),q30=console.error.bind(console);function I30(t={}){return typeof t.debug!="function"&&(t.debug=N3e),typeof t.info!="function"&&(t.info=N3e),typeof t.warn!="function"&&(t.warn=D30),typeof t.error!="function"&&(t.error=q30),t}o(I30,"createLogger");var F3e=`octokit-core.js/${HH}${Xl()}`,sw=class{static{o(this,"Octokit")}static VERSION=HH;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new o3e.Collection,s={baseUrl:L3.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent}${F3e}`:F3e,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=L3.defaults(s),this.graphql=I3e(this.request).defaults(s),this.log=I30(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=S3e(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)
Moreinfo:${u.url}`);let h=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,m=!1;for(let z of a)if(z.remote||z.path.endsWith(p)&&z.content===l){c.push({title:A,message:d,file:z.path,startLine:h}),m=!0;break}m||T(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${p}:${A}`)}return c}};var m2=x(require("fs"),1),aV=x(require("path"),1);var jw=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Y0,this.iidFilename=`build-iidfile-${E0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${E0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([h])=>!r.has(h)),i=E0.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||os.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&E0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${O0.serverURL}/${os.repo.owner}/${os.repo.repo}.git`,u=e?.checksum||s.checksum,p=e?.subdir||s.subdir,l=e?.format;if(!l){if(l="fragment",n.length>0)l="query";else if(E0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(l="query")}catch{}}let A=os.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof os.payload.pull_request?.head?.sha=="string"?os.payload.pull_request.head.sha:a);let d=u||A;if(l==="query"){let h=[`ref=${i||u?a:d}`],m=i?d:u;m&&h.push(`checksum=${m}`),p&&p!=="."&&h.push(`subdir=${p}`);for(let[z,C]of n)h.push(`${z}=${C}`);return`${c}?${h.join("&")}`}return`${c}#${d}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return aV.default.join(b0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(m2.default.existsSync(e))return m2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return aV.default.join(b0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!m2.default.existsSync(e))return;let r=m2.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!m2.default.existsSync(n))throw new Error(`secretfile${n}notfound`);return[s,n]}let i=b0.tmpName({tmpdir:b0.tmpDir()});return m2.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=Dn(e);if(!r)return r;try{return wle(e)?`builder-id=${O0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${O0.workflowRunURL(!0)}`;let r=d1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${O0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=d1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?s=u[1]:u[0]==="repository"?n=u[1]:u[0]==="ghtoken"&&(i=u[1])}return s==="gha"&&(n||(e=`${e},repository=${O0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExp
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=d1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=d1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let a=E0.parseBool(i);s.push(`disabled=${!a}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&Ma(i),[n,i]}};var cV=x(require("fs"),1),aCe=x(require("path"),1);var $w=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Y0,this.metadataFilename=`bake-metadata-${E0.generateRandomString()}.json`}getMetadataFilePath(){return aCe.default.join(b0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!cV.default.existsSync(e))return;let r=cV.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],n,i=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!E0.isValidRef(u)){i.push(u);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=u}}n&&s.push(n);for(let u of i)s.push("--file",u);if(e.overrides)for(let u of e.overrides)s.push("--set",u);if(e.vars)for(let u of e.vars)s.push("--var",u);if(e.allow)for(let u of e.allow)s.push("--allow",u);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await ve.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=d1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=E0.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=d1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,a]=n.toString().
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Hve=require("crypto"),Qc=x(require("fs"),1),NA=x(require("path"),1);var bC=x(iE(),1),Pc=x(a6e(),1),Xve=x(Jee(),1),rg=x(_ve(),1);var B0e=x(iE(),1);var Qve=x(In(),1);var Lve="application/vnd.oci.empty.v1+json";var Wp=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await ve.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailableerror:${r}`),!1));return T(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ve.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await ve.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return T("Cosign.versionSatisfies false: undefined version"),!1;let n=Qve.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return T(`Cosign.versionSatisfies${s}statisfies${e}:${n}`),n}static parseCommandOutput(e){let r,s,n,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===B0e.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Lve&&typeof p.digest=="string"&&(s=p.digest)}if(!n&&u&&u.mediaType===B0e.BUNDLE_V03_MEDIA_TYPE&&(n=u),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var D0e=x(require("fs"),1);var Pv=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Y0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=i.get(c);return u?u.platform?.os===n.os&&u.platform?.architecture===n.architecture&&(u.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=b0.tmpName({tmpdir:b0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&n.push(u);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of n)r.push("--file",c
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,s){return await ve.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Pve="application/vnd.in-toto+json";var kve="https://fulcio.sigstore.dev",Uve="https://rekor.sigstore.dev",Gve="https://timestamp.sigstore.dev",zf="https://search.sigstore.dev";var rU0="slsaprovenance1",FA=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Wp,this.imageTools=e?.imageTools||new Pv}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);_(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await cr("Creating Sigstore protobuf signing config",async()=>{let a=b0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:b0.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];n&&c.push("--no-default-rekor=true"),await ve.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),_(JSON.stringify(JSON.parse(Qc.default.readFileSync(a,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${a}`)}):(i.push("--use-signing-config"),n&&i.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let p=`${a}@${u}`;await cr(`Signingattestationmanifest${p}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];_(`[command]${this.cosign.binPath}${[...l,p].join(" ")}`);let A=await ve.getExecOutput(this.cosign.binPath,["--verbose",...l,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Wp.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(d.errors&&d.errors.length>0){let m=d.errors.map(z=>`-[${z.code}]${z.message}:${z.detail}`).join(`
${p}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosignverifycommandfailedwith:${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);_(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await cr(`Signing${i}`,async()=>{let a=n[i],c=NA.default.join(NA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){z0(`Nosubjectsfoundinprovenance${i},skipsigning.`);return}let p=await t.signPayload({data:a,type:Pve},s),l=t.parseBundle(p);_("Provenance blob signed for:");for(let A of u){let[d,h]=Object.entries(A.digest)[0]||[];_(`-${A.name}(${d}:${h})`)}l.tlogID&&_(`AttestationsignatureuploadedtoRekortransparencylog:${zf}?logIndex=${l.tlogID}`),_(`WritingSigstorebundleto:${c}`),Qc.default.writeFileSync(c,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[i]={...l,bundlePath:c,subjects:u}})}catch(s){throw new Error(`SigningBuildKitprovenanceblobsfailed:${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let a=NA.default.dirname(n);await cr(`Verifyingsignaturebundle${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=NA.default.join(a,c.name);_(`Verifyingsignedartifact${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??rU0];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await ve.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);s[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return s}async verifyArtifact(e,r,s){_("Verifying keyless verification bundle signature");let n=JSON.parse(Qc.default.readFileSync(r,"utf-8")),i=(0,bC.bundleFromJSON)(n);_("Fetching Sigstore TUF trusted root metadata");let a=await Xve.getTrustedRoot(),c=(0,rg.toTrustMaterial)(a);try{_("Verifying artifact signature");let u=(0,rg.toSignedEntity)(i,Qc.default.readFileSync(e)),p=t.parseCertificate(i),l=i.verificationMaterial.tlogEntries,A=l.length>0?l[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let m=p.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(s.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${m}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let h=new rg.Verifier(c).verify(u,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return T(`Sigstore.verifyArtifactsigner:${JSON.stringify(h)}`),{payload:n,certificate:p.toString(),tlogID:A}}catch(u){throw new Error(`Failedtoverifyartifactsignature:${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),_(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:kve,rekorURL:e?void 0:Uve,tsaServerURL:Gve}}static noTransparencyLog(e){return e??O0.context.payload.repository?.private}static getProvenanceBlobs(e){let r=NA.default.join(e.localExportDir,"provenance.json");if(Qc.default.existsSync(r))return{[r]:Qc.default.readFileSync(r)};let s=Qc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Qc.default.existsSync(NA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=
`,bakeTarget:Dn("bake-target")||"docker-metadata-action",githubToken:Dn("github-token")}}o(Jve,"getInputs");async function Kve(t,e){switch(t){case"workflow":return await sU0(e);case"git":return await nU0();default:throw new Error(`Invalidcontextsource:${t}`)}}o(Kve,"getContext");async function sU0(t){let e=O0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await iU0(e.sha,t),...e}}o(sU0,"getContextFromWorkflow");async function nU0(){let t=await Xu.context();return{commitDate:await Xu.commitDate(t.sha),...t}}o(nU0,"getContextFromGit");async function iU0(t,e){let r=O0.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:O0.context.repo.owner,repo:O0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return T(`FailedtogetcommitdatefromGitHubAPI:${s.message}`),new Date}}o(iU0,"getCommitDateFromWorkflow");var jp=x(tV(),1),GUe=x(require("fs"),1),HUe=x(require("path"),1),d4=x(nTe(),1),ni=x(LUe(),1),Bg=x(In(),1);function PUe(t){let e=[];if(t.length==1){let r=!1,s=d1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return QUe(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=d1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)s.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{s.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalidenableattributevalue:${r}`);s.enable=/true/i.test(u);break}default:throw new Error(`Unknownimageattribute:${r}`)}}}if(s.name.length==0)throw new Error(`Imagenameattributeempty:${r}`);e.push(s)}return QUe(e)}o(PUe,"Transform");function QUe(t){Ed("Processing images input");for(let e of t)_(`name=${e.name},enable=${e.enable}`);return yd(),t}o(QUe,"output");var Z1e=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(Z1e||{}),$T=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))($T||{}),YT=(r=>(r.Short="short",r.Long="long",r))(YT||{}),K1e=class{static{o(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},Jtt={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function kUe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(Ktt(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);Ed("Processing tags input");for(let s of r)_(s.toString());return yd(),r}o(kUe,"Transform");function Ktt(t){let e=d1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new K1e;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),a=n[1];switch(i){case"type":{if(!Object.values(Z1e).includes(a))throw new Error(`Unknowntagtypeattribute:${a}`);r.type=a;break}default:{r.attrs[i]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missingpatternattributefor${t}`);Object.prototype.hasOwnProperty.call(r.attrs