varMde=Object.create;varFE=Object.defineProperty;varLde=Object.getOwnPropertyDescriptor;varFde=Object.getOwnPropertyNames;varUde=Object.getPrototypeOf,qde=Object.prototype.hasOwnProperty;varo=(t,e)=>FE(t,"name",{value:e,configurable:!0});varm=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Gde=(t,e)=>{for(varrine)FE(t,r,{get:e[r],enumerable:!0})},Hde=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofFde(e))!qde.call(t,s)&&s!==r&&FE(t,s,{get:()=>e[s],enumerable:!(n=Lde(e,s))||n.enumerable});returnt};varw=(t,e,r)=>(r=t!=null?Mde(Ude(t)):{},Hde(e||!t||!t.__esModule?FE(r,"default",{value:t,enumerable:!0}):r,t));varpH=m(Bd=>{"use strict";varmXe=require("net"),ufe=require("tls"),zx=require("http"),uH=require("https"),dfe=require("events"),gXe=require("assert"),Afe=require("util");Bd.httpOverHttp=pfe;Bd.httpsOverHttp=ffe;Bd.httpOverHttps=hfe;Bd.httpsOverHttps=mfe;functionpfe(t){vare=newia(t);returne.request=zx.request,e}o(pfe,"httpOverHttp");functionffe(t){vare=newia(t);returne.request=zx.request,e.createSocket=dH,e.defaultPort=443,e}o(ffe,"httpsOverHttp");functionhfe(t){vare=newia(t);returne.request=uH.request,e}o(hfe,"httpOverHttps");functionmfe(t){vare=newia(t);returne.request=uH.request,e.createSocket=dH,e.defaultPort=443,e}o(mfe,"httpsOverHttps");functionia(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||zx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(varc=AH(s,i,a),l=0,u=e.requests.length;l<u;++l){vard=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(ia,"TunnelingAgent");Afe.inherits(ia,dfe.EventEmitter);ia.prototype.addRequest=o(function(e,r,n,s){vari=this,a=$x({request:e},i.options,AH(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){i.emit("free",c,a)}o(l,"onFree");functionu(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");ia.prototype.createSocket=o(function(e,r){varn=this,s={};n.sockets.push(s);vari=$x({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+newBuffer(i.proxyAuth).toString("base64")),nc("making CONNECT request");vara=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();functionc(A){A.upgrade=!0}o(c,"onResponse");functionl(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");functionu(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){nc("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();varh=newError("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){nc("got illegal response body from proxy"),p.destroy();varh=newError("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}returnnc("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");functiond(A){a.removeAllListeners(),nc(`tunneling socket could not be established, cause=%s
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(Cz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($f.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:kge(t)}if((typeof s=="string"||$f.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!wz(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(xz,"extractBody");function Jge(t,e=!1){return t instanceof ReadableStream&&(jQ(!$f.isDisturbed(t),"The body has already been consumed."),jQ(!t.locked,"The stream is locked.")),xz(t,e)}o(Jge,"safelyExtractBody");function Yge(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(Yge,"cloneBody");function Wge(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Wge,"throwIfAborted");function jge(t){return{blob(){return Dd(this,r=>{let n=Bz(this);return n===null?n="":n&&(n=Vge(n)),new qge([r],{type:n})},t)},arrayBuffer(){return Dd(this,r=>new Uint8Array(r).buffer,t)},text(){return Dd(this,bz,t)},json(){return Dd(this,Xge,t)},formData(){return Dd(this,r=>{let n=Bz(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=zge(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Iz;return i[Od]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Iz;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){returnDd(this,r=>newUint8Array(r),t)}}}o(jge,"bodyMixinMethods");functionKge(t){Object.assign(t.prototype,jge(t))}o(Kge,"mixinBody");asyncfunctionDd(t,e,r){if(Uge.brandCheck(t,r),Qz(t))thrownewTypeError("Body is unusable: Body has already been read");Wge(t[Od]);letn=Mge(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");returnt[Od].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(awaitLge(t[Od].body,i,s),n.promise)}o(Dd,"consumeBody");functionQz(t){lete=t[Od].body;returne!=null&&(e.stream.locked||$f.isDisturbed(e.stream))}o(Qz,"bodyUnusable");functionXge(t){returnJSON.parse(bz(t))}o(Xge,"parseJSONFromBytes");functionBz(t){lete=t[Od].headersList,r=Fge(e);returnr==="failure"?null:r}o(Bz,"bodyMimeType");Rz.exports={extractBody:xz,safelyExtractBody:Jge,cloneBody:Yge,mixinBody:Kge,streamRegistry:Nz,hasFinalizationRegistry:Sz,bodyUnusable:Qz}});varzz=m((uZe,Vz)=>{"use strict";varZ=require("node:assert"),j=Be(),{channels:Tz}=wd(),XQ=PQ(),{RequestContentLengthMismatchError:Nl,ResponseContentLengthMismatchError:vz,RequestAbortedError:Fz,InvalidArgumentError:Zge,HeadersTimeoutError:eEe,HeadersOverflowError:tEe,SocketError:Ld,InformationalError:xl,BodyTimeoutError:rEe,HTTPParserError:nEe,ResponseExceededMaxSizeError:sEe}=_e(),{kUrl:Uz,kReset:fn,kClient:Ny,kParser:ot,kBlocking:Wf,kRunning:$t,kPending:qz,kSize:_z,kWriting:ic,kQueue:li,kNoRef:Jf,kKeepAliveDefaultTimeout:iEe,kHostHeader:oEe,kPendingIdx:aEe,kRunningIdx:Is,kError:$r,kPipelining:xy,kSocket:Ql,kKeepAliveTimeoutValue:Ry,kMaxHeadersSize:ZQ,kKeepAliveMaxTimeout:cEe,kKeepAliveTimeoutThreshold:lEe,kHeadersTimeout:uEe,kBodyTimeout:dEe,kStrictContentLength:rR,kMaxRequests:Pz,kCounter:AEe,kMaxResponseSize:pEe,kOnError:kz,kResume:ua,kHTTPContext:Gz}=At(),Vn=NV(),Dz=Buffer.alloc(0),by=Buffer[Symbol.species],wy=j.addListener,fEe=j.removeAllListeners,Rl=Symbol("kIdleSocketValidation"),Fd=Symbol("kIdleSocketValidationTimeout"),oR=Symbol("kSocketUsed"),eR;asyncfunctionhEe(){lett=process.env.J
`}return Tz.sendHeaders.hasSubscribers&&Tz.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?Mz(h,null,t,e,f,d,g,A):j.isBuffer(l)?Mz(h,l,t,e,f,d,g,A):j.isBlobLike(l)?typeof l.stream=="function"?Lz(h,l.stream(),t,e,f,d,g,A):bEe(h,l,t,e,f,d,g,A):j.isStream(l)?BEe(h,l,t,e,f,d,g,A):j.isIterable(l)?Lz(h,l,t,e,f,d,g,A):Z(!1),!0}o(IEe,"writeH1");function BEe(t,e,r,n,s,i,a,c){Z(i!==0||r[$t]===0,"stream body cannot be pipelined");let l=!1,u=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){j.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new Fz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,Z(s.destroyed||s[ic]&&r[$t]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?j.destroy(e,h):j.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(BEe,"writeStream");function Mz(t,e,r,n,s,i,a,c){try{e?j.isBuffer(e)&&(Z(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"):(Z(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[ua]()}catch(l){t(l)}}o(Mz,"writeBuffer");async function bEe(t,e,r,n,s,i,a,c){Z(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Nl;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length:${i}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[fn]=!0),r[ua]()}catch(l){t(l)}}o(bEe,"writeBlob");async function Lz(t,e,r,n,s,i,a,c){Z(i!==0||r[$t]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{Z(l===null),s[$r]?f(s[$r]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[$r])throw s[$r];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(Lz,"writeIterable");var Ty=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ic]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[$r])throw r[$r];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[rR])throw new Nl;process.emitWarning(new Nl)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[fn]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[rR])throw new Nl;process.emitWarning(new Nl)}e[ot].timeout&&e[ot].timeoutType===Ud&&e[ot].timeout.refresh&&e[ot].timeout.refresh(),n[ua]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[ic]=!1,e&&(Z(n[$t]<=1,"pipeline should only contain this request"),s(e))}};Vz.exports=gEe});var Zz=m((AZe,Xz)=>{"use strict";var Bs=require("node:assert"),{errorMonitor:aR}=require("node:events"),{pipeline:wEe}=require("node:stream"),we=Be(),{RequestContentLengthMismatchError:lR,RequestAbortedError:cR,SocketError:jf,InformationalError:vy}=_e(),{kUrl:_y,kReset:ky,kClient:qd,kRunning:Dy,kPending:SEe,kQueue:Tl,kPendingIdx:dR,kRunningIdx:Hi,kError:di,kSocket:dr,kStrictContentLength:NEe,kOnError:AR,kMaxConcurrentStreams:jz,kHTTP2Session:ui,kResume:ac,kSize:xEe,kHTTPContext:QEe}=At(),oc=Symbol("open streams"),$z,Jz=!1,Py;try{Py=require("node:http2")}catch{Py={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:REe,HTTP2_HEADER_METHOD:TEe,HTTP2_HEADER_PATH:vEe,HTTP2_HEADER_SCHEME:_Ee,HTTP2_HEADER_CONTENT_LENGTH:PEe,HTTP2_HEADER_EXPECT:kEe,HTTP2_HEADER_STATUS:uR}}=Py;function Kz(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(Kz,"parseH2Headers");function DEe(t){let{[uR]:e,...r}=t;return Kz(r)}o(DEe,"parseH2ResponseHeaders");async function OEe(t,e){t[dr]=e,Jz||(Jz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Py.connect(t[_y],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[jz]});r[oc]=0,r[qd]=t,r[dr]=e,we.addListener(r,"error",LEe),we.addListener(r,"frameError",FEe),we.addListener(r,"end",UEe),we.addListener(r,"goaway",qEe),we.addListener(r,"close",function(){let{[qd]:s}=this,{[dr]:i}=s,a=this[dr][di]||this[di]||new jf("closed",we.getSocketInfo(i));if(s[ui]=null,s.destroyed){Bs(s[SEe]===0);let c=s[Tl].splice(s[Hi]);for(let l=0;l<c.length;l++){let u=c[l];we.errorRequest(s,u,a)}}}),r.unref(),t[ui]=r,e[ui]=r,we.addListener(e,"error",function(s){Bs(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[di]=s,this[qd][AR](s)}),we.addListener(e,"end",function(){we.destroy(this,new jf("other side closed",we.getSocketInfo(this)))}),we.addListener(e,"close",function(){let s=this[di]||new jf("closed",we.getSocketInfo(this));t[dr]=null,this[ui]!=null&&this[ui].destroy(s),t[dR]=t[Hi],Bs(t[Dy]===0),t.emit("disconnect",t[_y],[t],s),t[ac]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return HEe(t,...s)},resume(){MEe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(OEe,"connectH2");function MEe(t){let e=t[dr];e?.destroyed===!1&&(t[xEe]===0&&t[jz]===0?(e.unref(),t[ui].unref()):(e.ref(),t[ui].ref()))}o(MEe,"resumeH2");function LEe(t){Bs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][di]=t,this[qd][AR](t)}o(LEe,"onHttp2SessionError");function FEe(t,e,r){if(r===0){let n=new vy(`HTTP/2:"frameError"received-type${t},code${e}`);this[dr][di]=n,this[qd][AR](n)}}o(FEe,"onHttp2FrameError");function UEe(){let t=new jf("other side closed",we.getSocketInfo(this[dr]));this.destroy(t),we.destroy(this[dr],t)}o(UEe,"onHttp2SessionEnd");function qEe(t){let e=this[di]||new jf(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,we.getSocketInfo(this)),r=this[qd];if(r[dr]=null,r[QEe]=null,this[ui]!=null&&(this[ui].destroy(e),this[ui]=null),we.destroy(this[dr],e),r[Hi]<r[Tl].length){let n=r[Tl][r[Hi]];r[Tl][r[Hi]++]=null,we.errorRequest(r,n,e),r[dR]=r[Hi]}Bs(r[Dy]===0),r.emit("disconnect",r[_y],[r],e),r[ac]()}o(qEe,"onHTTP2GoAway");function GEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(GEe,"shouldSendContentLength");function HEe(t,e){let r=t[ui],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return we.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<u.length;B+=2){let N=u[B+0],x=u[B+1];if(Array.isArray(x))f
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}:${i[p]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),UA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(UA("Creating `tls.Socket`: %o",this.connectOpts),i=_De.connect(this.connectOpts)):(UA("Creating `net.Socket`: %o",this.connectOpts),i=vDe.connect(this.connectOpts)),await(0,kDe.once)(i,"connect"),i}};dB.protocols=["http","https"];Ms.HttpProxyAgent=dB;function ODe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ODe,"omit")});var xX=m(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.state=void 0;SB.state={instrumenterImplementation:void 0}});var VX=m(TB=>{"use strict";Object.defineProperty(TB,"__esModule",{value:!0});TB.state=void 0;TB.state={operationRequestMap:new WeakMap}});var Bee=m(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});var rUe=require("os"),nUe=require("util");function sUe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(sUe,"_interopDefaultLegacy");var iUe=sUe(nUe);function oUe(t,...e){process.stderr.write(`${iUe.default.format(t,...e)}${rUe.EOL}`)}o(oUe,"log");var Aee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,fee,XM=[],ZM=[],Wb=[];Aee&&eL(Aee);var hee=Object.assign(t=>mee(t),{enable:eL,enabled:tL,disable:aUe,log:oUe});function eL(t){fee=t,XM=[],ZM=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?ZM.push(new RegExp(`^${n.substr(1)}$`)):XM.push(new RegExp(`^${n}$`));for(let n of Wb)n.enabled=tL(n.namespace)}o(eL,"enable");function tL(t){if(t.endsWith("*"))return!0;for(let e of ZM)if(e.test(t))return!1;for(let e of XM)if(e.test(t))return!0;return!1}o(tL,"enabled");function aUe(){let t=fee||"";return eL(""),t}o(aUe,"disable");function mee(t){let e=Object.assign(r,{enabled:tL(t),destroy:cUe,log:hee.log,namespace:t,extend:lUe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return o(r,"debug"),Wb.push(e),e}o(mee,"createDebugger");function cUe(){let t=Wb.indexOf(this);return t>=0?(Wb.splice(t,1),!0):!1}o(cUe,"destroy");function lUe(t){let e=mee(`${this.namespace}:${t}`);return e.log=this.log,e}o(lUe,"extend");var cg=hee,gee=new Set,Jb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,jb,Kb=cg("azure");Kb.log=(...t)=>{cg.log(...t)};var rL=["verbose","info","warning","error"];Jb&&(Iee(Jb)?Eee(Jb):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${Jb}';loggingisnotenabled.Acceptablevalues:${rL.join(", ")}.`));function Eee(t){if(t&&!Iee(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${rL.join(",")}`);jb=t;let e=[];for(let r of gee)Cee(r)&&e.push(r.namespace);cg.enable(e.join(","))}o(Eee,"setLogLevel");function uUe(){return jb}o(uUe,"getLogLevel");var pee={verbose:400,info:300,warning:200,error:100};function dUe(t){let e=Kb.extend(t);return yee(Kb,e),{error:Yb(e,"error"),warning:Yb(e,"warning"),info:Yb(e,"info"),verbose:Yb(e,"verbose")}}o(dUe,"createClientLogger");function yee(t,e){e.log=(...r)=>{t.log(...r)}}o(yee,"patchLogMethod");function Yb(t,e){let r=Object.assign(t.extend(e),{level:e});if(yee(t,r),Cee(r)){let n=cg.disable();cg.enable(n+","+r.namespace)}return gee.add(r),r}o(Yb,"createLogger");function Cee(t){return!!(jb&&pee[t.level]<=pee[jb])}o(Cee,"shouldEnable");function Iee(t){return rL.includes(t)}o(Iee,"isAzureLogLevel");sp.AzureLogger=Kb;sp.createClientLogger=dUe;sp.getLogLevel=uUe;sp.setLogLevel=Eee});var iL=m(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var ip=new WeakMap,Xb=new WeakMap,lg=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,ip.set(this,[]),Xb.set(this,!1)}get aborted(){if(!Xb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Xb.get(this)}static get none(){return new t}addEventListener(e,r){if(!ip.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");ip.get(this).push(r)}removeEventListener(e,r){if(!ip.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=ip.get(this),s=n.indexOf(r);s>-1&
Polling status: ${_ee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){letA=a(u,r);if(A!==void0)return{response:awaite(A).catch(Tee({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(QUe,"pollOperationHelper");asyncfunctionOee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void0){let{response:C,status:I}=awaitQUe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(kee({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!_ee.includes(I)){letB=d?.(C);B&&h(B);letN=c?.(C,r);if(N!==void0){letx=E!==N;r.config.operationLocation=N,u?.(N,x)}elseu?.(E,!1)}f?.(r,C)}}o(Oee,"pollOperation");functionMee(t){let{azureAsyncOperation:e,operationLocation:r}=t;returnr??e}o(Mee,"getOperationLocationPollingUrl");functionLee(t){returnt.headers.location}o(Lee,"getLocationHeader");functionFee(t){returnt.headers["operation-location"]}o(Fee,"getOperationLocationHeader");functionUee(t){returnt.headers["azure-asyncoperation"]}o(Uee,"getAzureAsyncOperationHeader");functionRUe(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":returnn;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":returnn;default:returne}}}o(RUe,"findResourceLocation");functionqee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=Fee(e),a=Uee(e),c=Mee({operationLocation:i,azureAsyncOperation:a}),l=Lee(e),u=r?.toLocaleUpperCase();returnc!==void0?{mode:"OperationLocation",operationLocation:c,resourceLocation:RUe({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void0}o(qee,"inferLroMode");functionGee(t){let{status:e,statusCode:r}=t;if(typeofe!="string"&&e!==void0)thrownewError(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){casevoid0:returnpL(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:returnQu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Gee,"transformStatus");functionTUe(t){vare;let{status:r}=(e=t.body)!==null&&e!==void0?e:{};returnGee({status:r,statusCode:t.statusCode})}o(TUe,"getStatus");functionvUe(t){vare,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void0?e:{},i=(r=n?.provisioningState)!==null&&r!==void0?r:s;returnGee({status:i,statusCode:t.statusCode})}o(vUe,"getProvisioningState");functionpL(t){returnt===202?"running":t<300?"succeeded":"failed"}o(pL,"toOperationStatus");functionHee({rawResponse:t}){lete=t.headers["retry-after"];if(e!==void0){letr=parseInt(e);returnisNaN(r)?_Ue(newDate(e)):r*1e3}}o(Hee,"parseRetryAfter");functionVee(t){lete=t.flatResponse.error;if(!e){Qu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Qu.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}returne}o(Vee,"getErrorFromResponse");function_Ue(t){lete=Math.floor(newDate().getTime()),r=t.getTime();if(e<r)returnr-e}o(_Ue,"calculatePollingIntervalFromDate");functionzee(t){let{response:e,state:r,operationLocation:n}=t;functions(){vara;switch((a=r.config.metadata)===null||a===void0?void0:a.mode){casevoid0:returnpL(e.rawResponse.sta
`)}};$w.RpcError=XL});vare1=m(Yw=>{"use strict";Object.defineProperty(Yw,"__esModule",{value:!0});Yw.mergeRpcOptions=void0;varsre=Gt();functionWqe(t,e){if(!e)returnt;letr={};Jw(t,r),Jw(e,r);for(letnofObject.keys(e)){lets=e[n];switch(n){case"jsonOptions":r.jsonOptions=sre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=sre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Jw(t.meta,r.meta),Jw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}returnr}o(Wqe,"mergeRpcOptions");Yw.mergeRpcOptions=Wqe;functionJw(t,e){if(!t)return;letr=e;for(let[n,s]ofObject.entries(t))sinstanceofDate?r[n]=newDate(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(Jw,"copy")});varr1=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.Deferred=Pu.DeferredState=void0;varDo;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Do=Pu.DeferredState||(Pu.DeferredState={}));vart1=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Do.PENDING,this._promise=newPromise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}getstate(){returnthis._state}getpromise(){returnthis._promise}resolve(e){if(this.state!==Do.PENDING)thrownewError(`cannot resolve ${Do[this.state].toLowerCase()}`);this._resolve(e),this._state=Do.RESOLVED}reject(e){if(this.state!==Do.PENDING)thrownewError(`cannot reject ${Do[this.state].toLowerCase()}`);this._reject(e),this._state=Do.REJECTED}resolvePending(e){this._state===Do.PENDING&&this.resolve(e)}rejectPending(e){this._state===Do.PENDING&&this.reject(e)}};Pu.Deferred=t1});vars1=m(Ww=>{"use strict";Object.defineProperty(Ww,"__esModule",{value:!0});Ww.RpcOutputStreamController=void0;varire=r1(),ku=Gt(),n1=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){returnthis.addLis(e,this._lis.nxt)}onMessage(e){returnthis.addLis(e,this._lis.msg)}onError(e){returnthis.addLis(e,this._lis.err)}onComplete(e){returnthis.addLis(e,this._lis.cmp)}addLis(e,r){returnr.push(e),()=>{letn=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(leteofObject.values(this._lis))e.splice(0,e.length)}getclosed(){returnthis._closed!==!1}notifyNext(e,r,n){ku.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){ku.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void0,!1))}notifyError(e){ku.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void0,e,!1)),this.clearLis()}notifyComplete(){ku.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void0,void0,!0)),this.clearLis()}[Symbol.asyncIterator](){returnthis._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{lete=this._itState;ku.assert(e,"bad state"),ku.assert(!e.p,"iterator contract broken");letr=e.q.shift();returnr?"value"inr?Promise.resolve(r):Promise.reject(r):(e.p=newire.Deferred,e.p.promise)},"next")}}pushIt(e){letr=this._itState;if(r.p){letn=r.p;ku.assert(n.state==ire.DeferredState.PENDING,"iterator contract broken"),"value"ine?n.resolve(e):n.reject(e),deleter.p}elser.q.push(e)}};Ww.RpcOutputStreamController=n1});varo1=m(Ep=>{"use strict";varjqe=Ep&&Ep.__awaiter||function(t,e,r,n){functions(i){returniinstanceofr?i:newr(function(a){a(i)})}returno(s,"adopt"),new(r||(r=Promise))(function(i,a){functionc(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");functionl(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");functionu(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.definePrope
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(rJe,"logUnexpecedPropertyAccessOnce");function nJe(){Object.keys(v0).forEach(function(t){delete v0[t]})}o(nJe,"resetLoggedProperties")});var P0=m(Fo=>{"use strict";Fo.__esModule=!0;Fo.HandlebarsEnvironment=QF;function gie(t){return t&&t.__esModule?t:{default:t}}o(gie,"_interopRequireDefault");var qu=cn(),sJe=ms(),NF=gie(sJe),iJe=BF(),oJe=pie(),aJe=wF(),_0=gie(aJe),cJe=SF(),lJe="4.7.9";Fo.VERSION=lJe;var uJe=8;Fo.COMPILER_REVISION=uJe;var dJe=7;Fo.LAST_COMPATIBLE_COMPILER_REVISION=dJe;var AJe={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"};Fo.REVISION_CHANGES=AJe;var xF="[object Object]";function QF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},iJe.registerDefaultHelpers(this),oJe.registerDefaultDecorators(this)}o(QF,"HandlebarsEnvironment");QF.prototype={constructor:QF,logger:_0.default,log:_0.default.log,registerHelper:o(function(e,r){if(qu.toString.call(e)===xF){if(r)throw new NF.default("Arg not supported with multiple helpers");qu.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(qu.toString.call(e)===xF)qu.extend(this.partials,e);else{if(typeof r>"u")throw new NF.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(qu.toString.call(e)===xF){if(r)throw new NF.default("Arg not supported with multiple decorators");qu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){cJe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var pJe=_0.default.log;Fo.log=pJe;Fo.createFrame=qu.createFrame;Fo.logger=_0.default});var yie=m((k0,Eie)=>{"use strict";k0.__esModule=!0;function RF(t){this.string=t}o(RF,"SafeString");RF.prototype.toString=RF.prototype.toHTML=function(){return""+this.string};k0.default=RF;Eie.exports=k0.default});var Cie=m(TF=>{"use strict";TF.__esModule=!0;TF.wrapHelper=fJe;function fJe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(fJe,"wrapHelper")});var Nie=m(Yc=>{"use strict";Yc.__esModule=!0;Yc.checkRevision=CJe;Yc.template=IJe;Yc.wrapProgram=D0;Yc.resolvePartial=BJe;Yc.invokePartial=bJe;Yc.noop=wie;function hJe(t){return t&&t.__esModule?t:{default:t}}o(hJe,"_interopRequireDefault");function mJe(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(mJe,"_interopRequireWildcard");var gJe=cn(),vp=mJe(gJe),EJe=ms(),qa=hJe(EJe),Ga=P0(),Iie=BF(),yJe=Cie(),Bie=SF();function CJe(t){var e=t&&t[0]||1,r=Ga.COMPILER_REVISION;if(!(e>=Ga.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ga.COMPILER_REVISION))if(e<Ga.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ga.REVISION_CHANGES[r],s=Ga.REVISION_CHANGES[e];throw new qa.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new qa.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(CJe,"checkRevision");function IJe(t,e){if(!e)throw new qa.default("No environment passed to template");if(!t||!t.main)throw new qa.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=vp.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Hr="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Hr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:de})}}if(v[0]instanceofArray&&v.length>1)thrownewError("Parse Error: multiple actions possible at state: "+x+", token: "+B);switch(v[0]){case1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case2:if(Ce=this.productions_[v[1]][1],qe.$=c[c.length-Ce],qe._$={first_line:l[l.length-(Ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(qe._$.range=[l[l.length-(Ce||1)].range[0],l[l.length-1].range[1]]),Me=this.performAction.call(qe,d,p,A,this.yy,v[1],c,l),typeofMe<"u")returnMe;Ce&&(a=a.slice(0,-1*Ce*2),c=c.slice(0,-1*Ce),l=l.slice(0,-1*Ce)),a.push(this.productions_[v[1]][0]),c.push(qe.$),l.push(qe._$),tt=u[a[a.length-2]][a[a.length-1]],a.push(tt);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);elsethrownewError(i)},"parseError"),setInput:o(function(i){returnthis._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){vari=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;vara=i.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){vara=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varl=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);varu=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){returnthis._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){vari=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){vari=this.match;returni.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){vari=this.pastInput(),a=newArray(i.length+1).join("-");returni+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);vari,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(varA=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);returna?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.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[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){vari=this.next();returntypeofi<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:o(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};returnn.options={},n.performAction=o(function(i,a,c,l){functionu(A,p){returna.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");vard=l;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(a.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returna.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;functionr(){this.yy={}}returno(r,"Parser"),r.prototype=t,t.Parser=r,newr})();U0.default=DJe;Die.exports=U0.default});varV0=m((H0,Fie)=>{"use strict";H0.__esModule=!0;functionOJe(t){returnt&&t.__esModule?t:{default:t}}o(OJe,"_interopRequireDefault");varMJe=ms(),OF=OJe(MJe);functionq0(){this.parents=[]}o(q0,"Visitor");q0.prototype={constructor:q0,mutating:!1,acceptKey:o(function(e,r){varn=this.accept(e[r]);if(this.mutating){if(n&&!q0.prototype[n.type])thrownewOF.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new zu(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof zu?e:(e=sU(e,this,r),new zu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=sU(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(sU(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};X0.default=Coe;Ioe.exports=X0.default});var xoe=m((Z0,Noe)=>{"use strict";Z0.__esModule=!0;function Soe(t){return t&&t.__esModule?t:{default:t}}o(Soe,"_interopRequireDefault");var boe=P0(),kYe=ms(),oU=Soe(kYe),DYe=cn(),OYe=Boe(),woe=Soe(OYe);function Mp(t){this.value=t}o(Mp,"Literal");function Lp(){}o(Lp,"JavaScriptCompiler");Lp.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=boe.COMPILER_REVISION,r=boe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return DYe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new oU.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`)}o(I9e,"fromDER")});varRN=m(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.SHA2_HASH_ALGOS=dl.RSA_SIGNATURE_ALGOS=dl.ECDSA_SIGNATURE_ALGOS=void0;dl.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};dl.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};dl.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});varIq=m(TN=>{"use strict";Object.defineProperty(TN,"__esModule",{value:!0});TN.RFC3161TimestampVerificationError=void0;varCq=classextendsError{static{o(this,"RFC3161TimestampVerificationError")}};TN.RFC3161TimestampVerificationError=Cq});varuue=m(Jo=>{"use strict";varB9e=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),b9e=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),w9e=Jo&&Jo.__importStar||(function(){vart=o(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(varsinr)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),s=0;s<n.length;s++)n[s]!=="default"&&B9e(r,e,n[s]);returnb9e(r,e),r}})();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.TSTInfo=void0;varlue=w9e(hf()),S9e=RN(),N9e=Iq(),Bq=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}getversion(){returnthis.root.subs[0].toInteger()}getgenTime(){returnthis.root.subs[4].toDate()}getmessageImprintHashAlgorithm(){lete=this.messageImprintObj.subs[0].subs[0].toOID();returnS9e.SHA2_HASH_ALGOS[e]}getmessageImprintHashedMessage(){returnthis.messageImprintObj.subs[1].value}getraw(){returnthis.root.toDER()}verify(e){letr=lue.digest(this.messageImprintHashAlgorithm,e);if(!lue.bufferEqual(r,this.messageImprintHashedMessage))thrownewN9e.RFC3161TimestampVerificationError("message imprint does not match artifact")}getmessageImprintObj(){returnthis.root.subs[2]}};Jo.TSTInfo=Bq});varAue=m(Yo=>{"use strict";varx9e=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,n){n===void0&&(n=r);vars=Object.getOwnPropertyDescriptor(e,r);(!s||("get"ins?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){returne[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void0&&(n=r),t[n]=e[r]})),Q9e=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),R9e=Yo&&Yo.__importStar||(function(){vart=o(function(e){returnt=Object.getOwnPropertyNames||function(r){varn=[];for(varsinr)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);returnn},t(e)},"ownKeys");returnfunction(e){if(e&&e.__esModule)returne;varr={};if(e!=null)for(varn=t(e),s=0;s<n.length;s++)n[s]!=="default"&&x9e(r,e,n[s]);returnQ9e(r,e),r}})();Object.defineProperty(Yo,"__esModule",{value:!0});Yo.RFC3161Timestamp=void0;varT9e=NN(),bq=R9e(hf()),due=RN(),QE=Iq(),v9e=uue(),_9e="1.2.840.113549.1.7.2",P9e="1.2.840.113549.1.9.16.1.4",k9e="1.2.840.113549.1.9.4",wq=classt{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}staticparse(e){letr=T9e.ASN1Obj.parseBuffer(e);returnnewt(r)}getstatus(){returnthis.pkiStatusInfoObj.subs[0].toInteger()}getcontentType(){returnthis.contentTypeObj.toOID()}geteContentType(){returnthis.eContentTypeObj.toOID()}getsigningTime(){returnthis.tstInfo.genTime}getsignerIssuer(){returnthis.signerSidObj.subs[0].value}getsignerSerialNumber(){returnthis.signerSidObj.subs[1].value}getsignerDigestAlgorith
`,eKe=/\u2014 (\S+) (\S+)\n/g;function tKe(t,e){let r=t.inclusionProof,n=eG.fromString(r.checkpoint.envelope),s=jN.fromString(n.note);if(!rKe(n,e))throw new Bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(tKe,"verifyCheckpoint");function rKe(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>$ue.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?$ue.crypto.verify(r,s.publicKey,n.signature):!1})}o(rKe,"verifySignedNote");var eG=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Zq))throw new Bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Zq),n=e.slice(0,r+1),i=e.slice(r+Zq.length).matchAll(eKe),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new Bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new Bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},jN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new Bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};PE.LogCheckpoint=jN});var Yue=m(nG=>{"use strict";Object.defineProperty(nG,"__esModule",{value:!0});nG.verifyMerkleInclusion=iKe;var rG=ki(),KN=Gr(),nKe=Buffer.from([0]),sKe=Buffer.from([1]);function iKe(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new KN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new KN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:i,border:a}=oKe(n,s);if(r.hashes.length!==i+a)throw new KN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=AKe(t.canonicalizedBody),d=cKe(aKe(u,c,n),l);if(!rG.crypto.bufferEqual(d,e.logHash))throw new KN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(iKe,"verifyMerkleInclusion");function oKe(t,e){let r=lKe(t,e),n=uKe(t>>BigInt(r));return{inner:r,border:n}}o(oKe,"decompInclProof");function aKe(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?tG(s,n):tG(n,s),t)}o(aKe,"chainInner");function cKe(t,e){return e.reduce((r,n)=>tG(n,r),t)}o(cKe,"chainBorderRight");function lKe(t,e){return dKe(t^e-BigInt(1))}o(lKe,"innerProofSize");function uKe(t){return t.toString(2).split("1").length-1}o(uKe,"onesCount");function dKe(t){return t===0n?0:t.toString(2).length}o(dKe,"bitLength");function tG(t,e){return rG.crypto.digest("sha256",sKe,t,e)}o(tG,"hashChildren");function AKe(t){return rG.crypto.digest("sha256",nKe,t)}o(AKe,"hashLeaf")});var jue=m(sG=>{"use strict";Object.defineProperty(sG,"__esModule",{value:!0});sG.verifyTLogSET=hKe;var Wue=ki(),pKe=Gr(),fKe=Ef();function hKe(t,e){if(!(0,fKe.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=mKe(t),a=Buffer.from(Wue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Wue.crypto.verify(a,s.publicKey,c)}))throw new pKe.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(hKe,"verifyTLogSET");function mKe(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(mKe,"toVerificationPayload")});var Xue=m(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0});ZN.verifyTLogBody=IKe;ZN.verifyTLogInclusion=BKe;var Kue=Gue(),XN=Gr(),iG=Hue(),oG=Vue(),gKe=zue(),EKe=Jue(),yKe=Yue(),CKe=jue();function IKe(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new XN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new XN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==iG.DSSE_API_VERSION_V1)return(0,iG.verifyDSSETLogBody)(s,e);{let i=Kue.Entry.fromJSON(s);return(0,iG.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,gKe.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==oG.HASHEDREKORD_API_VERSION_V1)return(0,oG.verifyHashedRekordTLogBody)(s,e);{let i=Kue.Entry.fromJSON(s);return(0,oG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new XN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}o(IKe,"verifyTLogBody");function BKe(t,e){let r=!1;if(bKe(t)&&((0,CKe.verifyTLogSET)(t,e),r=!0),wKe(t)){let n=(0,EKe.verifyCheckpoint)(t,e);(0,yKe.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new XN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion c
`),u}o(SG,"getBlockValue");functionipe(t,e){if(e.valueStart===XAe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)returnt.slice(r,n);switch(e.style){casebe.SINGLE_QUOTED:returnnpe(t,r,n);casebe.DOUBLE_QUOTED:returnspe(t,r,n);casebe.LITERAL_BLOCK:returnSG(t,r,n,e.indent,e.chomping,!1);casebe.FOLDED_BLOCK:returnSG(t,r,n,e.indent,e.chomping,!0);default:returnrpe(t,r,n)}}o(ipe,"getScalarValue");varope=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});functionUG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))returndecodeURIComponent(t.slice(2,-1));letr=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??ope[n]??n;returndecodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(UG,"tagNameFull");varmd=-1,ape="tag:yaml.org,2002:merge",Ox={filename:"",schema:JAe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};functioncpe(t){return"tagStart"int&&t.tagStart!==md?t.tagStart:"anchorStart"int&&t.anchorStart!==md?t.anchorStart:"valueStart"int&&t.valueStart!==md?t.valueStart:"start"int?t.start:0}o(cpe,"eventPosition$1");functionCr(t,e){yl.throwAt(t.source,t.position,e,t.filename)}o(Cr,"throwError$1");functionqG(t,e,r,n){try{returnr.finalize(n)}catch(s){if(sinstanceofyl)throws;yl.throwAt(t.source,e,sinstanceofError?s.message:String(s),t.filename)}}o(qG,"finalizeCollection");functionlpe(t,e){letr=ipe(t.source,e),n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};leti=UG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){letl=a.resolve(r,!0,i);returnl===ve&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}letc=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`);letl=c.create(i);return{value:c.carrierIsResult?l:qG(t,t.position,c,l),tag:c}}Cr(t,`unknown scalar tag !<${i}>`)}returne.style===be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o(lpe,"constructScalar");functionNG(t,e,r){letn=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd);returnn===""||n==="!"?r:UG(n,t.tagHandlers)}o(NG,"collectionTagName");functionGG(t){returnt.nodeKind==="mapping"}o(GG,"isMappingTag");functionxG(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Cr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}o(xG,"chargeMergeWork");functionQG(t,e,r,n){xG(t);for(letsofn.keys(r)){if(xG(t),e.tag.has(e.value,s))continue;leti=e.tag.addPair(e.value,s,n.get(r,s));i&&Cr(t,i),e.overridable??=newSet,e.overridable.add(s)}}o(QG,"mergeKeys");functionupe(t,e,r,n){if(t.position=e.keyPosition,GG(n))QG(t,e,r,n);elseif(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Cr(t,"abnormal merge sequence size");for(letsofr){leti=t.nodeTags.get(s);i||Cr(t,"cannot merge mappings; the provided source object is unacceptable"),QG(t,e,s,i)}}elseCr(t,"cannot merge mappings; the provided source object is unacceptable")}o(upe,"mergeSource");functiondpe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){upe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Cr(t,"duplicated mapping key");leti=e.tag.addPair(e.value,r,n);i&&Cr(t,i),e.overridable?.delete(r)}o(dpe,"addMappingValue");functionBx(t,e,r){letn=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;elseif(n.kind==="sequence"){GG(r)&&t.nodeTags.set(e,r);lets=n.tag.addItem(n.value,e,n.index++);s&&Cr(t,s)}elseif(n.hasKey){lets=n.key;n.key=void0,n.hasKey=!1,dpe(t,n,s,e,r)}elsen.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===ape}o(Bx,"addValue");functionbx(t,e,r,n,s){if(e.anchorStart!==md){leti={value:r,tag:n,isValueFinal:s};returnt.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}returnnull}o(bx,"storeAnchor");functionApe(t,e){letr={...Ox,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:newMap,nodeTags:newMap,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventInd
`,"utf-8")],s=jDe(n);s&&t.headers.set("Content-Length",s),t.body=awaithX(n)}o(KDe,"buildRequestBody");varBm="multipartPolicy",XDe=70,ZDe=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functioneOe(t){if(t.length>XDe)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ZDe.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}o(eOe,"assertValidBoundary");functionEB(){return{name:Bm,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);returnr??=a,r?eOe(r):r=JDe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),awaitKDe(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}o(EB,"multipartPolicy");functionyB(){returnGI()}o(yB,"createEmptyPipeline");varmX=FI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Wdt=mX.logger;functionoo(t){returnmX.createClientLogger(t)}o(oo,"createClientLogger");varao=oo("core-rest-pipeline");functionxP(t={}){returnYI({logger:ao.info,...t})}o(xP,"logPolicy");varQP=WI;functionRP(t={}){returnjI(t)}o(RP,"redirectPolicy");varCB=w(require("node:os"),1),IB=w(require("node:process"),1);functiongX(){return"User-Agent"}o(gX,"getHeaderName");asyncfunctionEX(t){if(IB.default&&IB.default.versions){lete=`${CB.default.type()}${CB.default.release()}; ${CB.default.arch()}`,r=IB.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(EX,"setPlatformSpecificData");varBB="1.22.2";functioncOe(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}o(cOe,"getUserAgentString");functionyX(){returngX()}o(yX,"getUserAgentHeaderName");asyncfunctionbB(t){lete=newMap;e.set("core-rest-pipeline",BB),awaitEX(e);letr=cOe(e);returnt?`${t}${r}`:r}o(bB,"getUserAgentValue");varCX=yX(),IX="userAgentPolicy";functionTP(t={}){lete=bB(t.userAgentPrefix);return{name:IX,asyncsendRequest(r,n){returnr.headers.has(CX)||r.headers.set(CX,awaite),n(r)}}}o(TP,"userAgentPolicy");varas=classextendsError{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionvP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((i,a)=>{functionc(){a(newas(s??"The operation was aborted."))}o(c,"rejectOnAbort");functionl(){n?.removeEventListener("abort",u)}o(l,"removeListeners");functionu(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)returnc();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(vP,"createAbortablePromise");varpOe="The delay was aborted.";functionbm(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnvP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??pOe})}o(bm,"delay");function_c(t){if(ou(t))returnt.message;{lete;try{typeoft=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(_c,"getErrorMessage");functionBX(t){returnou(t)}o(BX,"isError");functionqA(){returniu()}o(qA,"randomUUID");varFe=lu;varbX=Symbol("rawContent");functionPP(t){returntypeoft[bX]=="function"}o(PP,"hasRawContent");functionwX(t){returnPP(t)?t[bX]():t}o(wX,"getRawContent");varwB=Bm;functionkP(){lett=EB();return{name:wB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)PP(n.body)&&(n.body=wX(n.body));returnt.sendRequest(e,r)},"sendRequest")}}o(kP,"multipartPolicy");varDP=KI;functionOP(){returnXI()}o(OP,"decompressResponsePolicy");functionMP(t={}){returntB(t
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!MMe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Ft("InvalidTag",A,rn(t,i))}let u=_Me(t,i);if(u===!1)return Ft("InvalidAttr","Attributes for '"+l+"' have open quote.",rn(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=lZ(d,e);if(p===!0)n=!0;else return Ft(p.err.code,p.err.msg,rn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ft("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",rn(t,a));if(r.length===0)return Ft("InvalidTag","Closing tag '"+l+"' has not been opened.",rn(t,a));{let A=r.pop();if(l!==A.tagName){let p=rn(t,A.tagStartPos);return Ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",rn(t,a))}r.length==0&&(s=!0)}}else return Ft("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",rn(t,i));else{let A=lZ(d,e);if(A!==!0)return Ft(A.err.code,A.err.msg,rn(t,i-d.length+A.err.line));if(s===!0)return Ft("InvalidXml","Multiple possible root nodes found.",rn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=cZ(t,i);continue}else if(t[i+1]==="?"){if(i=aZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=DMe(t,i);if(A==-1)return Ft("InvalidChar","char '&' is not expected.",rn(t,i));i=A}else if(s===!0&&!oZ(t[i]))return Ft("InvalidXml","Extra text at the end",rn(t,i));t[i]==="<"&&i--}}else{if(oZ(t[i]))continue;return Ft("InvalidChar","char '"+t[i]+"' is not expected.",rn(t,i))}if(n){if(r.length==1)return Ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rn(t,r[0].tagStartPos));if(r.length>0)return Ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ft("InvalidXml","Start tag expected.",1);return!0}o(MB,"validate");function oZ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(oZ,"isWhiteSpace");function aZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ft("InvalidXml","XML declaration allowed only at the start of the document.",rn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(aZ,"readPI");function cZ(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(cZ,"readCommentAndCDATA");var TMe='"',vMe="'";function _Me(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===TMe||t[e]===vMe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(_Me,"readAttributeStr");var PMe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function lZ(t,e){let r=DB(t,PMe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dm(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dm(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ft("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dm(r[s]));let i=r[s][2];if(!OMe(i))return Ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dm(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Ft("InvalidAttr","Attribute '"+i+"' is repeated.",Dm(r[s]))}return!0}o(lZ,"validateAttributeString");function kMe(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(kMe,"validateNumberAmpersand");function DMe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,kMe(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(DMe,"validateAmpersand");function Ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ft,"getErrorObject");function OMe(t){return ak(t)}o(OMe,"validateAttrName");function MMe(t){return ak(t)}o(MMe,"validateTagName");function rn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(rn,"getLineNumberForPosition");function Dm(t){return t.startIndex+t[1].length}o(Dm,"getPositionFromMatch");var uZ={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"},dZ={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1"
`);let e=new wn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Lm(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=JA(t,">",c,"ClosingTagisnotclosed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=hk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=mk(t,c,!1,"?>");if(!d)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new wn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=JA(t,"-->",c+4,"Commentisnotclosed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=JA(t,"]]>",c,"CDATAisnotclosed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=mk(t,c,s.removeNSPrefix);if(!d){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=hk(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),h=A!==f);let C=null,I={},B;B=oLe(p),A!==e.tagname&&this.matcher.push(A,{},B),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=iLe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let re=this.readStopNodeData(t,p,g+1);if(!re)throw new Error(`Unexpected end of ${p}`);c=re.i,x=re.tagContent}let v=new wn(A);C&&(v[":@"]=C),v.add(s.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=hk(s.transformTagName,A,f,s));let x=new wn(A);C&&(x[":@"]=C),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let x=new wn(A);C&&(x[":@"]=C),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let x=new wn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),C&&(x[":@"]=C),this.addChild(r,x,this.readonlyMatcher,N),r=x}n="",c=g}}}else n+=t[c];return e.child},"parse
${c}:${decodeURIComponent(i[c])}`}returnn}};varxt=classextendsgu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewHm(e,r,this)}computeHMACSHA256(e){return(0,GZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varrr=oo("storage-common");varLs;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ls||(Ls={}));varLc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ls.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},FLe=newas("The operation was aborted."),Vm=classextendsAo{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Lc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Lc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Lc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Lc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Lc.maxRetryDelayInMs):Lc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Lc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Lc.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){lets=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=WB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Mc(s.url,Qa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(rr.info(`RetryPolicy: =====> Try=${n}${i?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))returna;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throwc}returnawaitthis.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returnrr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leti=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(letaofi)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)returnrr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){leta=n?n.status:s?s.statusCode:0;if(!e&&a===404)returnrr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnrr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(ce.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){lets=0;if(e)switch(this.retryOptions.retryPolicyType){caseLs.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseLs.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returnrr.info(`RetryPolicy: Delay for ${s}ms`),XB(s,n,FLe)}};varzm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewVm(e,r,this.retryOptions)}};varULe="storageBrowserPolicy";functionHZ(){return{name:ULe,asyncsendRequest(t,e){returnFe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Mc(t.url,Qa.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(ce.COOKIE),t.headers.delete(ce.CONTENT_LENGTH)),e(t)}}}o(HZ,"storageBrowserPolicy");varqLe="StorageCorrectContentLengthPolicy";functionVZ(){functiont(e){e.body&&(type
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=jB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=KB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:newxi(t.version,i,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(WFe,"generateBlobSASQueryParameters20150405");functionjFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Ro.parse(t.permissions.toString()).toString():s=To.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newxi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(jFe,"generateBlobSASQueryParameters20181109");functionKFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Ro.parse(t.permissions.toString()).toString():s=To.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newxi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:i}}o(KFe,"generateBlobSASQueryParameters20201206");functionXFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Ro.parse(t.permissions.toString()).toString():s=To.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newxi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(XFe,"generateBlobSASQueryParametersUDK20181109");functionZFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Ro.parse(t.permissions.toString()).toString():s=To.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newxi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(ZFe,"generateBlobSASQueryParametersUDK20200210");functioneUe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Ro.parse(t.permissions.toString()).toString():s=To.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newxi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(eUe,"generateBlobSASQueryParametersUDK20201206");functiontUe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Ro.parse(t.permissions.toString()).toString():s=To.parse(t.permissions.toString()).toString());leti=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Ni(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:newxi(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(tUe,"generateBlobSASQueryParametersUDK20250705");functionSu(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}o(Su,"getCanonicalName");functionNu(t){lete=t.version?t.version:rb;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}o(Nu,"SASSignatureValuesSanityCheckAndAutofill");varsg=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=qA()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Bi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Bi||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnz.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>X(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Bi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Bi||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnz.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=X(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,s})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMat
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ap.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Tu=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"}};Tu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var fg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var XUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},EL=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ite(t,e,r){return XUe(this,void 0,void 0,function*(){var n;let s=new Ma(t),i=s.getBlockBlobClient(),a=new EL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new aw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(ite,"uploadCacheArchiveSDK");var ate=w(require("buffer"),1),vo=w(require("fs"),1),cte=w(require("stream"),1),lte=w(require("util"),1);var cw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function lw(t){return t?t>=200&&t<300:!1}o(lw,"isSuccessStatusCode");function ZUe(t){return t?t>=500:!0}o(ZUe,"isServerErrorStatusCode");function e2e(t){return t?[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout].includes(t):!1}o(e2e,"isRetryableStatusCode");function t2e(t){return cw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(t2e,"sleep");function ote(t,e,r){return cw(this,arguments,void 0,function*(n,s,i,a=_I,c=PI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!ZUe(p)))return A;if(p&&(f=e2e(p),u=`Cache service responded with ${p}`),b(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){b(`${n} - Error is not retryable`);break}yield t2e(c),d++}throw Error(`${n} failed: ${u}`)})}o(ote,"retry");function hg(t,e){return cw(this,arguments,void 0,function*(r,n,s=_I,i=PI){return yield ote(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof ro)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(hg,"retryTypedResponse");function cp(t,e){return cw(this,arguments,void 0,function*(r,n,s=_I,i=PI){return yield ote(r,n,a=>a.message.statusCode,s,i)})}o(cp,"retryHttpClientResponse");var Hs=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a
Othercacheswithsimilarkey:`);for(let c of i?.artifactCaches||[])b(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}o(l2e,"printCachesListForDiagnostics");function bL(t,e,r){return Qn(this,void 0,void 0,function*(){let n=new Bte.URL(t),s=pte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield dte(t,e,s):s.concurrentBlobDownloads?yield ute(t,e,s):yield dw(t,e):yield dw(t,e)})}o(bL,"downloadCache");function wte(t,e,r){return Qn(this,void 0,void 0,function*(){let n=BL(),s=_A(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield hg("reserveCache",()=>Qn(this,void 0,void 0,function*(){return n.postJson(gg("caches"),i)}))})}o(wte,"reserveCache");function Ite(t,e){return`bytes${t}-${e}/*`}o(Ite,"getContentRange");function u2e(t,e,r,n,s){return Qn(this,void 0,void 0,function*(){b(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ite(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ite(n,s)},a=yield cp(`uploadChunk (start: ${n}, end: ${s})`,()=>Qn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(u2e,"uploadChunk");function d2e(t,e,r,n){return Qn(this,void 0,void 0,function*(){let s=to(r),i=gg(`caches/${e.toString()}`),a=lp.openSync(r,"r"),c=yL(n),l=Y_("uploadConcurrency",c.uploadConcurrency),u=Y_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];b("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>Qn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield u2e(t,i,()=>lp.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,h)}})))}finally{lp.closeSync(a)}})}o(d2e,"uploadFile");function A2e(t,e,r){return Qn(this,void 0,void 0,function*(){let n={size:r};return yield hg("commitCache",()=>Qn(this,void 0,void 0,function*(){return t.postJson(gg(`caches/${e.toString()}`),n)}))})}o(A2e,"commitCache");function wL(t,e,r,n){return Qn(this,void 0,void 0,function*(){if(yL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ite(r,e,n)}else{let i=BL();b("Upload cache"),yield d2e(i,t,e,n),b("Commiting cache");let a=to(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield A2e(i,t,a);if(!lw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(wL,"saveCache");var Ere=w(dre(),1),Ht=w(Gt(),1),ps=w(Gt(),1),Du=w(Gt(),1),Ou=w(Gt(),1),Mu=w(Gt(),1);var E1=w(Gt(),1),y1=w(Gt(),1),hre=w(Gt(),1),mre=w(Gt(),1),gre=w(Gt(),1);var h1=w(Gt(),1),m1=w(Gt(),1),Are=w(Gt(),1),pre=w(Gt(),1),fre=w(Gt(),1);var g1=class extends fre.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,pre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Are.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?m1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,h1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,h1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?m1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Xw=new g1;var C1=class extends gre.Mess
`));let n=yield D1(r,"create");yield O1(n,t)})}o(L1,"createTar");var Sp=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Ti=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Lu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},F1="cache write denied:",r0=class t extends Lu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Bre=kI,n0=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},s0=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function bre(t){if(!t||t.length===0)throw new Ti("Path Validation Error: At least one directory or file path is required")}o(bre,"checkPaths");function U1(t){if(t.length>512)throw new Ti(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ti(`Key Validation Error: ${t} cannot contain commas.`)}o(U1,"checkKey");function q1(){return mg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(q1,"isFeatureAvailable");function wre(t,e,r,n){return Sp(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=mg();b(`Cache service version: ${u}`),bre(s);let d=IL();if(!hte(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),b(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield xGe(s,i,a,c,l):yield NGe(s,i,a,c,l)})}o(wre,"restoreCache");function NGe(t,e,r,n){return Sp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(d)),d.length>10)throw new Ti("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)U1(f);let A=yield hm(),p="";try{let f;try{f=yield bte(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(Bre)?new n0(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=Pg.join(yield pm(),Rc(A)),b(`Archive Path: ${p}`),yield bL(f.archiveLocation,p,c),ya()&&(yield _g(p,A));let h=to(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield M1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===Ti.name)throw f;h instanceof ro&&typeof h.statusCode=="number"&&h.statusCode>=500?IA(`Failed to restore: ${f.message}`):Je(`Failed to restore: ${f.message}`)}finally{try{yield fm(p)}catch(f){b(`Failed to delete archive: ${f}`)}}})}o(NGe,"restoreCacheV1");function xGe(t,e,r,n){return Sp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(d)),d.length>10)throw new Ti("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)U1(p);let A="";try{let p=k1(),f=yield hm(),h={key:i,restoreKeys:a,version:_A(s,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Bre)?new n0(I):C}if(!g.ok){b(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=Pg.join(yield pm(),Rc(f)),b(`Archive path: ${A}`),b(`Starting download of archive to: ${A}`)
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:B,escape:N,quote:x,record_delimiter:v}=this.options,{bomSkipped:re,delimiterDiscovered:Me,delimiterBufPrevious:qe,rawBuffer:Ye,escapeIsQuote:Ce}=this.state;if(!Me&&u){let Ge;if(qe===void 0?Ge=n:qe!==void 0&&n===void 0?Ge=qe:Ge=Buffer.concat([qe,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(Loe(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:tt}=this.state,de;if(tt===void 0)if(n===void 0){a();return}else de=n;else tt!==void 0&&n===void 0?de=tt:de=Buffer.concat([tt,n]);if(re===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in qp)if(qp[Ge].compare(de,0,qp[Ge].length)===0){let Mi=qp[Ge].length;this.state.bufBytesStart+=Mi,de=de.slice(Mi);let tc=Up({...this.original_options,encoding:Ge});for(let bt in tc)this.options[bt]=tc[bt];({comment:B,escape:N,quote:x}=this.options);break}this.state.bomSkipped=!0}let Hr=de.length,$;for($=0;$<Hr&&!this.__needMoreData($,Hr,s);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&v.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(v=this.options.record_delimiter);let Ge=de[$];if(h===!0&&Ye.append(Ge),(Ge===e3e||Ge===t3e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Ge)&&$+N.length<Hr)if(Ce){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let bt=de[$+x.length],Li=y&&this.__isCharTrimable(de,$+x.length),Un=B!==null&&this.__compareBytes(B,de,$+x.length,bt),ml=this.__isDelimiter(de,$+x.length,bt),LE=v.length===0?this.__autoDiscoverRecordDelimiter(de,$+x.length):this.__isRecordDelimiter(bt,de,$+x.length);if(N!==null&&this.__isEscape(de,$,Ge)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!bt||ml||LE||Un||Li){this.state.quoting=!1,this.state.wasQuoting=!0,$+=x.length-1;continue}else if(g===!1){let yG=this.__error(new Ne("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(yG!==void 0)return yG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),$+=x.length-1}else if(this.state.field.length!==0){if(g===!1){let bt=this.__infoField(),Li=Object.keys(qp).map(ml=>qp[ml].equals(this.state.field.toString())?ml:!1).filter(Boolean)[0],Un=this.__error(new Ne("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Li?`(${Li} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Un!==void 0)return Un}}else{this.state.quoting=!0,$+=x.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ge,de,$);if(bt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=bt-1;continue}this.info.bytes=this.state.bufBytesSt
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var Hae=w(require("crypto"),1);var iS=require("fs"),zoe=require("os");var Gp=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,iS.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,iS.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${zoe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var mU=w(joe(),1),Koe=w(EA(),1);var f3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Xoe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Xoe,"getAuthString");function Zoe(t){return new mU.HttpClient().getAgent(t)}o(Zoe,"getProxyAgent");function h3e(t){return new mU.HttpClient().getAgentDispatcher(t)}o(h3e,"getProxyAgentDispatcher");function eae(t){let e=h3e(t);return o((n,s)=>f3e(this,void 0,void 0,function*(){return(0,Koe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}o(eae,"getProxyFetch");function tae(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(tae,"getApiBaseUrl");function gU(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}o(gU,"getUserAgentWithOrchestrationId");function jc(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(jc,"getUserAgent");function AS(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>AS.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}o(AS,"register");function rae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((i,a)=>
`)}o(J3e,"_buildMessageForResponseErrors");var Y3e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(J3e(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},W3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],j3e=["query","method","url"],Qae=/\/api\/v3\/?$/;function K3e(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(j3e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>W3e.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Qae.test(i)&&(s.url=i.replace(Qae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new Y3e(s,c,a.data)}return a.data.data})}o(K3e,"graphql");function bU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>K3e(r,s,i),"newApi"),{defaults:bU.bind(null,r),endpoint:r.endpoint})}o(bU,"withDefaults");var Ckt=bU(oE,{headers:{"user-agent":`octokit-graphql.js/${$3e} ${jc()}`},method:"POST",url:"/graphql"});function Rae(t){return bU(t,{method:"POST",url:"/graphql"})}o(Rae,"withCustomRequest");var wU="(?:[a-zA-Z0-9_-]+)",Tae="\\.",vae=new RegExp(`^${wU}${Tae}${wU}${Tae}${wU}$`),X3e=vae.test.bind(vae);async function Z3e(t){let e=X3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(Z3e,"auth");function eWe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(eWe,"withAuthorizationPrefix");async function tWe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=eWe(t),e(s)}o(tWe,"hook");var _ae=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(Z3e.bind(null,e),{hook:tWe.bind(null,e)})},"createTokenAuth2");var SU="7.0.6";var Pae=o(()=>{},"noop"),rWe=console.warn.bind(console),nWe=console.error.bind(console);function sWe(t={}){return typeof t.debug!="function"&&(t.debug=Pae),typeof t.info!="function"&&(t.info=Pae),typeof t.warn!="function"&&(t.warn=rWe),typeof t.error!="function"&&(t.error=nWe),t}o(sWe,"createLogger");var kae=`octokit-core.js/${SU} ${jc()}`,mS=class{static{o(this,"Octokit")}static VERSION=SU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new aae.Collection,n={baseUrl:oE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${kae}`:kae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=oE.defaults(n),this.graphql=Rae(this.request).defaults(n),this.log=sWe(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=_ae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),h=!0;break}h||b(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var Xc=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Ie}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(b(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(b(`Builder.exists error: ${s}`),!1));return b(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}returna&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};varju=w(require("fs"),1),MU=w(require("path"),1);varIS=classt{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||newIe,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}asyncgitContext(e){letr=newSet(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||un.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;letc=`${Xe.serverURL}/${un.repo.owner}/${un.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";elseif(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{awaitthis.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}letA=un.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeofun.payload.pull_request?.head?.sha=="string"?un.payload.pull_request.head.sha:a);letp=l||A;if(d==="query"){letf=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]ofs)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){returnMU.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){lete=this.getImageIDFilePath();if(ju.default.existsSync(e))returnju.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){returnMU.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!ju.default.existsSync(e))return;letr=ju.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"ine)returne["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"ine)returne["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"ine)returne["containerimage.digest"]}staticresolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}staticresolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}staticresolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}staticresolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!ju.default.existsSync(s))thrownewError(`secret file ${s} not found`);return[n,s]}leti=De.tmpName({tmpdir:De.tmpDir()});returnju.default.writeFileSync(i,s),[n,i]}staticgetProvenanceInput(e){letr=kr(e);if(!r)returnr;try{returnZl(e)?`builder-id=${Xe.workflowRunURL(!0)}`:"false"}catch{returnt.resolveProvenanceAttrs(r)}}staticresolveProvenanceAttrs(e){if(!e)return`builder-id=${Xe.workflowRunURL(!0)}`;letr=Es(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letnofr)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")returne;return`${e},builder-id=${Xe.workflowRunURL(!0)}`}staticresolveCacheToAttrs(e,r){if(!e)returne;letn="registry",s="",i="",a=Es(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letcofa){letl=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}returnn==="gha"&&(s||(e=`${e},repository=${Xe.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}statichasLocalExporter(e){returnt.hasExporterType("local",e)}statichasTarExporter(e){returnt.hasExporterType("tar",e)}statichasDockerExporter(e,r){returnr||t.hasExporterType("docker",e)}statichasExporterType(e,r){letn=Es(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letsofn){if(s.length==1&&!s[0].startsWith("type="))returne=="local";for(let[i,a]ofs.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}statichasAttestationType(e,r){letn=Es(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(letsofn)for(let[i,a]ofs.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}staticresolveAttestationAttrs(e){letr=Es(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(letsofr)for(letiofs)try{leta=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}returnn.join(",")}statichasGitAuthTokenSecret(e,r){for(letnofe){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}staticparseSecretKvp(e,r){letn=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)thrownewError(`${e} is not a valid secret`);returnr&&Wi(i),[s,i]}};varLU=w(require("fs"),1),Jae=w(require("path"),1);varBS=classt{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||newIe,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){returnJae.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){lete=this.getMetadataFilePath();if(!LU.default.existsSync(e))return;letr=LU.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")returnJSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;letr=newArray;for(letnine)"buildx.build.ref"ine[n]&&r.push(e[n]["buildx.build.ref"]);returnr.length>0?r:void0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"ine)returne["buildx.build.warnings"]}asyncgetDefinition(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}:{});letn=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(letlofa.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)thrownewError("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(letlofi)n.push("--file",l);if(e.overrides)for(letlofe.overrides)n.push("--set",l);if(e.vars)for(letlofe.vars)n.push("--var",l);if(e.allow)for(letlofe.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);letc=awaitthis.buildx.getCommand([...n,"--print",...e.targets||[]]);returnawaitY.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)thrownewError(`cannot parse bake definitions: ${Ie.getErrorMessage(l.stderr)}`);returnt.parseDefinition(l.stdout.trim())})}staticparseDefinition(e){letr=JSON.parse(e);for(letninr.target){lets=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}returnr}staticparseAttestEntry(e){if(typeofe!="string")returne;letr={type:""},n=Es(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(letsofn){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}returnr}staticparseCacheEntry(e){if(typeofe!="string")returne;letr={type:""},n=Es(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))returnr.type="registry",r.ref=n[0],r;for(letsofn){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of i){let c=`tag:${a.slice(10)}`;if(e===c||e.startsWith(`${c},`))return a}if(i.length===1)return i[0];throw new Error(`Cannotfinddetachedtagrefin"${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[s]=n.split(`
${u}`),awaitnewPromise(d=>setTimeout(d,Math.pow(2,a)*100));elsethrowi}elsethrownewError(`Cosign verify command failed with: ${Fn.getErrorMessage(c.stderr)}`)}throwi}asyncsignProvenanceBlobs(e){if(!awaitthis.cosign.isAvailable())thrownewError("Cosign is required to sign provenance blobs");letr={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)thrownewError('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');letn={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=awaitthis.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(letaofObject.keys(i))awaitnt(`Signing ${a}`,async()=>{letc=i[a],l=Zo.default.join(Zo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Je(`No subjects found in provenance ${a}, skip signing.`);return}letd=Zo.default.join(Zo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...awaitthis.bundleFormatArgs(),"--statement",a,"--type",cde,"--bundle",l,...s];S(`[command]${this.cosign.binPath}${[...A,d].join(" ")}`);letp=awaitY.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Fn.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){letg=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`