varDIe=Object.create;varlz=Object.defineProperty;varIIe=Object.getOwnPropertyDescriptor;varRIe=Object.getOwnPropertyNames;varNIe=Object.getPrototypeOf,wIe=Object.prototype.hasOwnProperty;vari=(t,e)=>lz(t,"name",{value:e,configurable:!0});varm=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),SIe=(t,e)=>{for(varrine)lz(t,r,{get:e[r],enumerable:!0})},FIe=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letoofRIe(e))!wIe.call(t,o)&&o!==r&&lz(t,o,{get:()=>e[o],enumerable:!(n=IIe(e,o))||n.enumerable});returnt};varw=(t,e,r)=>(r=t!=null?DIe(NIe(t)):{},FIe(e||!t||!t.__esModule?lz(r,"default",{value:t,enumerable:!0}):r,t));varZ9=m(AA=>{"use strict";vardB0=require("net"),_Ie=require("tls"),nI=require("http"),$9=require("https"),QIe=require("events"),bB0=require("assert"),PIe=require("util");AA.httpOverHttp=kIe;AA.httpsOverHttp=UIe;AA.httpOverHttps=GIe;AA.httpsOverHttps=HIe;functionkIe(t){vare=newgi(t);returne.request=nI.request,e}i(kIe,"httpOverHttp");functionUIe(t){vare=newgi(t);returne.request=nI.request,e.createSocket=j9,e.defaultPort=443,e}i(UIe,"httpsOverHttp");functionGIe(t){vare=newgi(t);returne.request=$9.request,e}i(GIe,"httpOverHttps");functionHIe(t){vare=newgi(t);returne.request=$9.request,e.createSocket=j9,e.defaultPort=443,e}i(HIe,"httpsOverHttps");functiongi(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||nI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(varc=K9(o,s,a),u=0,p=e.requests.length;u<p;++u){varA=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(gi,"TunnelingAgent");PIe.inherits(gi,QIe.EventEmitter);gi.prototype.addRequest=i(function(e,r,n,o){vars=this,a=oI({request:e},s.options,K9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);functionu(){s.emit("free",c,a)}i(u,"onFree");functionp(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");gi.prototype.createSocket=i(function(e,r){varn=this,o={};n.sockets.push(o);vars=oI({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+newBuffer(s.proxyAuth).toString("base64")),wa("making CONNECT request");vara=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();functionc(l){l.upgrade=!0}i(c,"onResponse");functionu(l,b,M){process.nextTick(function(){p(l,b,M)})}i(u,"onUpgrade");functionp(l,b,M){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){wa("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();varz=newError("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(M.length>0){wa("got illegal response body from proxy"),b.destroy();varz=newError("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}returnwa("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");functionA(l){a.removeAllListeners(),wa(`tunneling socket could not be established, cause=%s
`);b.push(O),s+=O.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data;boundary=${u}`}else if(iH(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ab.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:uwe(t)}if((typeof o=="string"||ab.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!pH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(dH,"extractBody");function Ewe(t,e=!1){return t instanceof ReadableStream&&(u5(!ab.isDisturbed(t),"The body has already been consumed."),u5(!t.locked,"The stream is locked.")),dH(t,e)}i(Ewe,"safelyExtractBody");function Cwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Cwe,"cloneBody");function ywe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(ywe,"throwIfAborted");function Bwe(t){return{blob(){return yA(this,r=>{let n=cH(this);return n===null?n="":n&&(n=zwe(n)),new Mwe([r],{type:n})},t)},arrayBuffer(){return yA(this,r=>new Uint8Array(r).buffer,t)},text(){return yA(this,uH,t)},json(){return yA(this,Dwe,t)},formData(){return yA(this,r=>{let n=cH(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=gwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new aH;return s[BA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new aH;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return yA(this,r=>new Uint8Array(r),t)}}}i(Bwe,"bodyMixinMethods");function qwe(t){Object.assign(t.prototype,Bwe(t))}i(qwe,"mixinBody");async function yA(t,e,r){if(fwe.brandCheck(t,r),bH(t))throw new TypeError("Body is unusable: Body has already been read");ywe(t[BA]);let n=lwe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[BA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await dwe(t[BA].body,s,o),n.promise)}i(yA,"consumeBody");function bH(t){let e=t[BA].body;return e!=null&&(e.stream.locked||ab.isDisturbed(e.stream))}i(bH,"bodyUnusable");function Dwe(t){return JSON.parse(uH(t))}i(Dwe,"parseJSONFromBytes");function cH(t){let e=t[BA].headersList,r=bwe(e);return r==="failure"?null:r}i(cH,"bodyMimeType");fH.exports={extractBody:dH,safelyExtractBody:Ewe,cloneBody:Cwe,mixinBody:qwe,streamRegistry:lH,hasFinalizationRegistry:AH,bodyUnusable:bH}});var wH=m((aq0,NH)=>{"use strict";var fe=require("node:assert"),ge=Xe(),{channels:MH}=dA(),A5=XI(),{RequestContentLengthMismatchError:nu,ResponseContentLengthMismatchError:mH,RequestAbortedError:BH,HeadersTimeoutError:Iwe,HeadersOverflowError:Rwe,SocketError:DA,InformationalError:IA,BodyTimeoutError:Nwe,HTTPParserError:wwe,ResponseExceededMaxSizeError:Swe}=u0(),{kUrl:qH,kReset:rr,kClient:Hz,kParser:T0,kBlocking:pb,kRunning:w1,kPending:DH,kSize:hH,kWriting:Fa,kQueue:so,kNoRef:cb,kKeepAliveDefaultTimeout:Fwe,kHostHeader:Wwe,kPendingIdx:xwe,kRunningIdx:dn,kError:Ft,kPipelining:Xz,kSocket:su,kKeepAliveTimeoutValue:Jz,kMaxHeadersSize:l5,kKeepAliveMaxTimeout:Twe,kKeepAliveTimeoutThreshold:vwe,kHeadersTimeout:Lwe,kBodyTimeout:_we,kStrictContentLength:f5,kMaxRequests:zH,kCounter:Qwe,kMaxResponseSize:Pwe,kOnError:gH,kResume:qi,kHTTPContext:IH}=G0(),wr=lG(),OH=Buffer.alloc(0),kz=Buffer[Symbol.species],Uz=ge.addListener,kwe=ge.removeAllListeners,iu=Symbol("kIdleSocketValidation"),ou=Symbol("kIdleSocketValidationTimeout"),z5=Symbol("kSocketUsed"),d5;async function Uwe(){let t=process.env.JEST_WORKER_ID?YI():vo
`}return MH.sendHeaders.hasSubscribers&&MH.sendHeaders.publish({request:e,headers:O,socket:M}),!u||b===0?CH(z,null,t,e,M,A,O,l):ge.isBuffer(u)?CH(z,u,t,e,M,A,O,l):ge.isBlobLike(u)?typeof u.stream=="function"?yH(z,u.stream(),t,e,M,A,O,l):jwe(z,u,t,e,M,A,O,l):ge.isStream(u)?$we(z,u,t,e,M,A,O,l):ge.isIterable(u)?yH(z,u,t,e,M,A,O,l):fe(!1),!0}i(Ywe,"writeH1");function $we(t,e,r,n,o,s,a,c){fe(s!==0||r[w1]===0,"stream body cannot be pipelined");let u=!1,p=new Yz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(O){ge.destroy(this,O)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",M)}),!u){let z=new BH;queueMicrotask(()=>M(z))}},"onClose"),M=i(function(z){if(!u){if(u=!0,fe(o.destroyed||o[Fa]&&r[w1]<=1),o.off("drain",l).off("error",M),e.removeListener("data",A).removeListener("end",M).removeListener("close",b),!z)try{p.end()}catch(O){z=O}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?ge.destroy(e,z):ge.destroy(e)}},"onFinished");e.on("data",A).on("end",M).on("error",M).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",M),e.errorEmitted??e.errored?setImmediate(()=>M(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>M(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i($we,"writeStream");function CH(t,e,r,n,o,s,a,c){try{e?ge.isBuffer(e)&&(fe(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length:${s}\r
`,"latin1"):(fe(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[qi]()}catch(u){t(u)}}i(CH,"writeBuffer");async function jwe(t,e,r,n,o,s,a,c){fe(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new nu;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length:${s}\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[rr]=!0),r[qi]()}catch(u){t(u)}}i(jwe,"writeBlob");async function yH(t,e,r,n,o,s,a,c){fe(s!==0||r[w1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,M)=>{fe(u===null),o[Ft]?M(o[Ft]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new Yz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[Ft])throw o[Ft];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(yH,"writeIterable");var Yz=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Fa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Ft])throw r[Ft];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[f5])throw new nu;process.emitWarning(new nu)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[rr]=!0),o===null?r.write(`${u}transfer-encoding:chunked\r
`,"latin1"),r!==null&&o!==r){if(n[f5])throw new nu;process.emitWarning(new nu)}e[T0].timeout&&e[T0].timeoutType===RA&&e[T0].timeout.refresh&&e[T0].timeout.refresh(),n[qi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Fa]=!1,e&&(fe(n[w1]<=1,"pipeline should only contain this request"),o(e))}};NH.exports=Hwe});var _H=m((uq0,LH)=>{"use strict";var bn=require("node:assert"),{pipeline:Kwe}=require("node:stream"),Ze=Xe(),{RequestContentLengthMismatchError:g5,RequestAbortedError:SH,SocketError:Ab,InformationalError:O5}=u0(),{kUrl:$z,kReset:Kz,kClient:NA,kRunning:Zz,kPending:Zwe,kQueue:Wa,kPendingIdx:E5,kRunningIdx:io,kError:co,kSocket:$1,kStrictContentLength:e6e,kOnError:C5,kMaxConcurrentStreams:vH,kHTTP2Session:ao,kResume:xa,kSize:t6e,kHTTPContext:r6e}=G0(),Di=Symbol("open streams"),FH,WH=!1,jz;try{jz=require("node:http2")}catch{jz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:n6e,HTTP2_HEADER_METHOD:o6e,HTTP2_HEADER_PATH:s6e,HTTP2_HEADER_SCHEME:i6e,HTTP2_HEADER_CONTENT_LENGTH:a6e,HTTP2_HEADER_EXPECT:c6e,HTTP2_HEADER_STATUS:u6e}}=jz;function p6e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(p6e,"parseH2Headers");async function A6e(t,e){t[$1]=e,WH||(WH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=jz.connect(t[$z],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[vH]});r[Di]=0,r[NA]=t,r[$1]=e,Ze.addListener(r,"error",d6e),Ze.addListener(r,"frameError",b6e),Ze.addListener(r,"end",f6e),Ze.addListener(r,"goaway",M6e),Ze.addListener(r,"close",function(){let{[NA]:o}=this,{[$1]:s}=o,a=this[$1][co]||this[co]||new Ab("closed",Ze.getSocketInfo(s));if(o[ao]=null,o.destroyed){bn(o[Zwe]===0);let c=o[Wa].splice(o[io]);for(let u=0;u<c.length;u++){let p=c[u];Ze.errorRequest(o,p,a)}}}),r.unref(),t[ao]=r,e[ao]=r,Ze.addListener(e,"error",function(o){bn(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[co]=o,this[NA][C5](o)}),Ze.addListener(e,"end",function(){Ze.destroy(this,new Ab("other side closed",Ze.getSocketInfo(this)))}),Ze.addListener(e,"close",function(){let o=this[co]||new Ab("closed",Ze.getSocketInfo(this));t[$1]=null,this[ao]!=null&&this[ao].destroy(o),t[E5]=t[io],bn(t[Zz]===0),t.emit("disconnect",t[$z],[t],o),t[xa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return h6e(t,...o)},resume(){l6e(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(A6e,"connectH2");function l6e(t){let e=t[$1];e?.destroyed===!1&&(t[t6e]===0&&t[vH]===0?(e.unref(),t[ao].unref()):(e.ref(),t[ao].ref()))}i(l6e,"resumeH2");function d6e(t){bn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$1][co]=t,this[NA][C5](t)}i(d6e,"onHttp2SessionError");function b6e(t,e,r){if(r===0){let n=new O5(`HTTP/2:"frameError"received-type${t},code${e}`);this[$1][co]=n,this[NA][C5](n)}}i(b6e,"onHttp2FrameError");function f6e(){let t=new Ab("other side closed",Ze.getSocketInfo(this[$1]));this.destroy(t),Ze.destroy(this[$1],t)}i(f6e,"onHttp2SessionEnd");function M6e(t){let e=this[co]||new Ab(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,Ze.getSocketInfo(this)),r=this[NA];if(r[$1]=null,r[r6e]=null,this[ao]!=null&&(this[ao].destroy(e),this[ao]=null),Ze.destroy(this[$1],e),r[io]<r[Wa].length){let n=r[Wa][r[io]];r[Wa][r[io]++]=null,Ze.errorRequest(r,n,e),r[E5]=r[io]}bn(r[Zz]===0),r.emit("disconnect",r[$z],[r],e),r[xa]()}i(M6e,"onHTTP2GoAway");function m6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(m6e,"shouldSendContentLength");function h6e(t,e){let r=t[ao],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Ze.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let D=0;D<p.length;D+=2){let F=p[D+0],x=p[D+1];if(Array.isArray(x))for(let _=0;_<x.length;_++)l[F]?l[F]+=`,${x[_]}`:l[F]=x[_];else l[F]=x}let b,{hostname:M,port:z}=t[$z];l[n6e]=s||`${M}
globstarwhile`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic${Buffer.from(b).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(s))c+=`${b}:${s[b]}\r
`)+4,e.outputData[0].data=e._header+n.substring(o),Nl("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Nl("Creating `tls.Socket`: %o",this.connectOpts),s=YHe.connect(this.connectOpts)):(Nl("Creating `net.Socket`: %o",this.connectOpts),s=JHe.connect(this.connectOpts)),await(0,jHe.once)(s,"connect"),s}};R3.protocols=["http","https"];Rn.HttpProxyAgent=R3;function ZHe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(ZHe,"omit")});var Mre=m(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.state=void 0;U3.state={instrumenterImplementation:void 0}});var Fre=m(J3=>{"use strict";Object.defineProperty(J3,"__esModule",{value:!0});J3.state=void 0;J3.state={operationRequestMap:new WeakMap}});var Ase=m(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});var zje=require("os"),gje=require("util");function Oje(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(Oje,"_interopDefaultLegacy");var Eje=Oje(gje);function Cje(t,...e){process.stderr.write(`${Eje.default.format(t,...e)}${zje.EOL}`)}i(Cje,"log");var tse=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,nse,uT=[],pT=[],dC=[];tse&&AT(tse);var ose=Object.assign(t=>sse(t),{enable:AT,enabled:lT,disable:yje,log:Cje});function AT(t){nse=t,uT=[],pT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?pT.push(new RegExp(`^${n.substr(1)}$`)):uT.push(new RegExp(`^${n}$`));for(let n of dC)n.enabled=lT(n.namespace)}i(AT,"enable");function lT(t){if(t.endsWith("*"))return!0;for(let e of pT)if(e.test(t))return!1;for(let e of uT)if(e.test(t))return!0;return!1}i(lT,"enabled");function yje(){let t=nse||"";return AT(""),t}i(yje,"disable");function sse(t){let e=Object.assign(r,{enabled:lT(t),destroy:Bje,log:ose.log,namespace:t,extend:qje});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return i(r,"debug"),dC.push(e),e}i(sse,"createDebugger");function Bje(){let t=dC.indexOf(this);return t>=0?(dC.splice(t,1),!0):!1}i(Bje,"destroy");function qje(t){let e=sse(`${this.namespace}:${t}`);return e.log=this.log,e}i(qje,"extend");var EM=ose,ise=new Set,AC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,bC,fC=EM("azure");fC.log=(...t)=>{EM.log(...t)};var dT=["verbose","info","warning","error"];AC&&(pse(AC)?ase(AC):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${AC}';loggingisnotenabled.Acceptablevalues:${dT.join(", ")}.`));function ase(t){if(t&&!pse(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${dT.join(",")}`);bC=t;let e=[];for(let r of ise)use(r)&&e.push(r.namespace);EM.enable(e.join(","))}i(ase,"setLogLevel");function Dje(){return bC}i(Dje,"getLogLevel");var rse={verbose:400,info:300,warning:200,error:100};function Ije(t){let e=fC.extend(t);return cse(fC,e),{error:lC(e,"error"),warning:lC(e,"warning"),info:lC(e,"info"),verbose:lC(e,"verbose")}}i(Ije,"createClientLogger");function cse(t,e){e.log=(...r)=>{t.log(...r)}}i(cse,"patchLogMethod");function lC(t,e){let r=Object.assign(t.extend(e),{level:e});if(cse(t,r),use(r)){let n=EM.disable();EM.enable(n+","+r.namespace)}return ise.add(r),r}i(lC,"createLogger");function use(t){return!!(bC&&rse[t.level]<=rse[bC])}i(use,"shouldEnable");function pse(t){return dT.includes(t)}i(pse,"isAzureLogLevel");Jl.AzureLogger=fC;Jl.createClientLogger=Ije;Jl.getLogLevel=Dje;Jl.setLogLevel=ase});var MT=m(yM=>{"use strict";Object.defineProperty(yM,"__esModule",{value:!0});var Yl=new WeakMap,MC=new WeakMap,CM=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Yl.set(this,[]),MC.set(this,!1)}get aborted(){if(!MC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return MC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Yl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Yl.get(this).push(r)}removeEventListener(e,r){if(!Yl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Yl.get(this),o=n.indexOf(r);o>-
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(Yo0,"logUnexpecedPropertyAccessOnce");function $o0(){Object.keys(A4).forEach(function(t){delete A4[t]})}i($o0,"resetLoggedProperties")});var d4=m(Ps=>{"use strict";Ps.__esModule=!0;Ps.HandlebarsEnvironment=l_;function jpe(t){return t&&t.__esModule?t:{default:t}}i(jpe,"_interopRequireDefault");var zp=$t(),jo0=on(),p_=jpe(jo0),Ko0=i_(),Zo0=Vpe(),es0=c_(),l4=jpe(es0),ts0=u_(),rs0="4.7.9";Ps.VERSION=rs0;var ns0=8;Ps.COMPILER_REVISION=ns0;var os0=7;Ps.LAST_COMPATIBLE_COMPILER_REVISION=os0;var ss0={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"};Ps.REVISION_CHANGES=ss0;var A_="[object Object]";function l_(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Ko0.registerDefaultHelpers(this),Zo0.registerDefaultDecorators(this)}i(l_,"HandlebarsEnvironment");l_.prototype={constructor:l_,logger:l4.default,log:l4.default.log,registerHelper:i(function(e,r){if(zp.toString.call(e)===A_){if(r)throw new p_.default("Arg not supported with multiple helpers");zp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(zp.toString.call(e)===A_)zp.extend(this.partials,e);else{if(typeof r>"u")throw new p_.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(zp.toString.call(e)===A_){if(r)throw new p_.default("Arg not supported with multiple decorators");zp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){ts0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var is0=l4.default.log;Ps.log=is0;Ps.createFrame=zp.createFrame;Ps.logger=l4.default});var Zpe=m((b4,Kpe)=>{"use strict";b4.__esModule=!0;function d_(t){this.string=t}i(d_,"SafeString");d_.prototype.toString=d_.prototype.toHTML=function(){return""+this.string};b4.default=d_;Kpe.exports=b4.default});var eAe=m(b_=>{"use strict";b_.__esModule=!0;b_.wrapHelper=as0;function as0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(as0,"wrapHelper")});var iAe=m(yc=>{"use strict";yc.__esModule=!0;yc.checkRevision=ds0;yc.template=bs0;yc.wrapProgram=f4;yc.resolvePartial=fs0;yc.invokePartial=Ms0;yc.noop=oAe;function cs0(t){return t&&t.__esModule?t:{default:t}}i(cs0,"_interopRequireDefault");function us0(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}i(us0,"_interopRequireWildcard");var ps0=$t(),y2=us0(ps0),As0=on(),aa=cs0(As0),ca=d4(),tAe=i_(),ls0=eAe(),rAe=u_();function ds0(t){var e=t&&t[0]||1,r=ca.COMPILER_REVISION;if(!(e>=ca.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ca.COMPILER_REVISION))if(e<ca.LAST_COMPATIBLE_COMPILER_REVISION){var n=ca.REVISION_CHANGES[r],o=ca.REVISION_CHANGES[e];throw new aa.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 ("+o+").")}else throw new aa.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(ds0,"checkRevision");function bs0(t,e){if(!e)throw new aa.default("No environment passed to template");if(!t||!t.main)throw new aa.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,u){u.hash&&(c=y2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.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],s=this.performAction.call(this,this.yy,this,l[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
`,q20=/\u2014 (\S+) (\S+)\n/g;function D20(t,e){let r=t.inclusionProof,n=fP.fromString(r.checkpoint.envelope),o=bq.fromString(n.note);if(!I20(n,e))throw new Xm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i(D20,"verifyCheckpoint");function I20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>Ebe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.match(n.name));return o?Ebe.crypto.verify(r,o.publicKey,n.signature):!1})}i(I20,"verifySignedNote");var fP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(bP))throw new Xm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(bP),n=e.slice(0,r+1),s=e.slice(r+bP.length).matchAll(q20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new Xm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new Xm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},bq=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Xm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Vm.LogCheckpoint=bq});var ybe=m(zP=>{"use strict";Object.defineProperty(zP,"__esModule",{value:!0});zP.verifyMerkleInclusion=w20;var hP=wo(),MP=It(),R20=Buffer.from([0]),N20=Buffer.from([1]);function w20(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),o=BigInt(e.logSize);if(n<0n||n>=o)throw new MP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${n}`});let{inner:s,border:a}=S20(n,o);if(r.hashes.length!==s+a)throw new MP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=L20(t.canonicalizedBody),A=W20(F20(p,c,n),u);if(!hP.crypto.bufferEqual(A,e.logHash))throw new MP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(w20,"verifyMerkleInclusion");function S20(t,e){let r=x20(t,e),n=T20(t>>BigInt(r));return{inner:r,border:n}}i(S20,"decompInclProof");function F20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?mP(o,n):mP(n,o),t)}i(F20,"chainInner");function W20(t,e){return e.reduce((r,n)=>mP(n,r),t)}i(W20,"chainBorderRight");function x20(t,e){return v20(t^e-BigInt(1))}i(x20,"innerProofSize");function T20(t){return t.toString(2).split("1").length-1}i(T20,"onesCount");function v20(t){return t===0n?0:t.toString(2).length}i(v20,"bitLength");function mP(t,e){return hP.crypto.digest("sha256",N20,t,e)}i(mP,"hashChildren");function L20(t){return hP.crypto.digest("sha256",R20,t)}i(L20,"hashLeaf")});var qbe=m(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.verifyTLogSET=P20;var Bbe=wo(),_20=It(),Q20=id();function P20(t,e){if(!(0,Q20.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=k20(t),a=Buffer.from(Bbe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Bbe.crypto.verify(a,o.publicKey,c)}))throw new _20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(P20,"verifyTLogSET");function k20(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(k20,"toVerificationPayload")});var Ibe=m(fq=>{"use strict";Object.defineProperty(fq,"__esModule",{value:!0});fq.verifyTLogBody=V20;fq.verifyTLogInclusion=J20;var Dbe=hbe(),CP=It(),OP=zbe(),EP=gbe(),U20=Obe(),G20=Cbe(),H20=ybe(),X20=qbe();function V20(t,e){let{kind:r,version:n}=t.kindVersion,o=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==o.kind||n!==o.apiVersion)throw new CP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${n},received:${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==OP.DSSE_API_VERSION_V1)return(0,OP.verifyDSSETLogBody)(o,e);{let s=Dbe.Entry.fromJSON(o);return(0,OP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,U20.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==EP.HASHEDREKORD_API_VERSION_V1)return(0,EP.verifyHashedRekordTLogBody)(o,e);{let s=Dbe.Entry.fromJSON(o);return(0,EP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new CP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}i(V20,"verifyTLogBody");function J20(t,e){let r=!1;if(Y20(t)&&((0,X20.verifyTLogSET)(t,e),r=!0),$20(t)){let n=(0,G20.verifyCheckpoint)(t,e);(0,H20.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new CP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(J20,"verifyTLogInclusion");function Y20(t){return t.inclusionPromise!==void 0}i(Y20,"isTLogEntryWithInclusionPromise");function $20(t){return t.inclusionProof!==void 0}i($20,"isTLogEntryWithInclusionProof")});var Fbe=m(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});Mq.Verifier=void 0;var j20=require("util"),
[`+I+"] ";for(W in arguments[0])s(arguments[0],W)&&(C+=W+": "+arguments[0][W]+", ");C=C.slice(0,-2)}else C=arguments[I];g.push(C)}_(d+`
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,NC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(wh,"_createForOfIteratorHelper");function LC0(t,e){var r;if(t){if(typeof t=="string")return UCe(t,e);var n=(0,ro.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,WC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UCe(t,e)}}i(LC0,"_unsupportedIterableToArray");function UCe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(UCe,"_arrayLikeToArray");var k0="xregexp",Zp={astral:!1,namespacing:!1},M1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},pi={},Rh={},Fd={},S7=[],Wd="default",GCe="class",_C0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},QC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,PC0=M1.exec.call(/()??/,"")[1]===void 0,kC0=(0,Kp.default)(/x/)!==void 0,UC0={},YCe=UC0.toString;function W7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(W7,"hasNativeFlag");var $Ce=W7("u"),x7=W7("y"),jCe={g:!0,i:!0,m:!0,u:$Ce,y:x7};function KCe(t,e,r,n,o){var s;if(t[k0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=K.prototype;else for(var a in K.prototype)t[a]=K.prototype[a];return t[k0].source=r,t[k0].flags=n&&(0,vC0.default)(s=n.split("")).call(s).join(""),t}i(KCe,"augment");function Nh(t){return M1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Nh,"clipDuplicates");function tA(t,e){var r;if(!K.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[k0]||{},o=GC0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=M1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Nh(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Kp.default)(n)!=null&&(u=s?Nh((0,Kp.default)(n)+s):(0,Kp.default)(n))),t=KCe(new RegExp(e.source||t.source,o),HC0(t)?(0,ro.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(tA,"copyRegex");function ZCe(t){return(0,JCe.default)(t,16)}i(ZCe,"dec");function eye(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||M1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||XC0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(eye,"getContextualTokenSeparator");function GC0(t){return kC0?(0,Kp.default)(t):M1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(GC0,"getNativeFlags");function HC0(t){return!!(t[k0]&&t[k0].captureNames)}i(HC0,"hasNamedCapture");function tye(t){return(0,JCe.default)(t,10).toString(16)}i(tye,"hex");function XC0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return M1.test.call((0,eA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,ro.default)(t).call(t,e))}i(XC0,"isQuantifierNext");function T7(t,e){return YCe.call(t)==="[object ".concat(e,"]")}i(T7,"isType");function rye(t){for(;t.length<4;)t="0".concat(t);return t}i(rye,"pad4");function VC0(t,e){if(Nh(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=M1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(M1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=Nh(e+a),""});var
Inordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,Ry0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(vy0,"_createForOfIteratorHelper");function Ly0(t,e){var r;if(t){if(typeof t=="string")return Uye(t,e);var n=(0,Wy0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,Fy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uye(t,e)}}i(Ly0,"_unsupportedIterableToArray");function Uye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(Uye,"_arrayLikeToArray");var _y0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var M=/^\\[xu](.+)/.exec(b);return M?n(M[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var M="",z=-1;return(0,Ty0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(O){var y=c(O[1]);y>z+1&&(M+="\\u".concat(s(o(z+1))),y>z+2&&(M+="-\\u".concat(s(o(y-1))))),z=c(O[2]||O[1])}),z<65535&&(M+="\\u".concat(s(o(z+1))),z<65534&&(M+="-\\uFFFF")),M}i(u,"invertBmp");function p(b){var M="b!";return r[b][M]||(r[b][M]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,M){var z=r[b],O="";if(z.bmp&&!z.isBmpLast){var y;O=(0,Q7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(O+=z.astral),z.isBmpLast&&z.bmp){var E;O+=(0,Q7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return M?"(?:(?!".concat(O,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(O,")")}i(A,"buildAstral");function l(b,M){var z=M?"a!":"a=";return r[b][z]||(r[b][z]=A(b,M))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,M,z){var O="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",D=b[1]==="P"||!!b[2],F=(0,xy0.default)(z).call(z,"A"),x=a(b[4]||b[3]),_=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(O+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(_.inverseOf){if(x=a(_.inverseOf),!r.hasOwnProperty(x)){var ce;throw new ReferenceError((0,Q7.default)(ce="".concat(E+b[0]," -> ")).call(ce,_.inverseOf))}_=r[x],D=!D}if(!(_.bmp||F))throw new SyntaxError(B+b[0]);if(F){if(M==="class")throw new SyntaxError(q);return l(x,D)}return M==="class"?D?p(x):_.bmp:"".concat((D?"[^":"[")+_.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var M="Unicode token requires name",z="Unicode token has no character data ",O=vy0(b),y;try{for(O.s();!(y=O.n()).done;){var E=y.value;if(!E.name)throw new Error(M);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){O.e(B)}finally{O.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var M=a(b);return r[M]}},"_default");vh.default=_y0;Gye.exports=vh.default});var Vye=m((cM1,Xye)=>{Xye.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}i($j,"getBooleanInput");functionGN(t,e){if(process.env.GITHUB_OUTPUT||"")returnJd("OUTPUT",fz(t,e));process.stdout.write(UN.EOL),Po("set-output",{name:t},Qo(e))}i(GN,"setOutput");functionjj(t){process.exitCode=kN.Failure,pl(t)}i(jj,"setFailed");functionvi(){returnprocess.env.RUNNER_DEBUG==="1"}i(vi,"isDebug");functionN(t){Po("debug",{},t)}i(N,"debug");functionpl(t,e={}){Po("error",ZD(e),tinstanceofError?t.toString():t)}i(pl,"error");functionp0(t,e={}){Po("warning",ZD(e),tinstanceofError?t.toString():t)}i(p0,"warning");functionS(t){process.stdout.write(t+UN.EOL)}i(S,"info");functionIu(t){tI("group",t)}i(Iu,"startGroup");functionRu(){tI("endgroup")}i(Ru,"endGroup");functionct(t,e){returnlQe(this,void0,void0,function*(){Iu(t);letr;try{r=yielde()}finally{Ru()}returnr})}i(ct,"group");functionMO(t,e){if(process.env.GITHUB_STATE||"")returnJd("STATE",fz(t,e));Po("save-state",{name:t},Qo(e))}i(MO,"saveState");functionKj(t){returnprocess.env[`STATE_${t}`]||""}i(Kj,"getState");varCy=w(require("fs"),1),nL=w(require("os"),1),oL=w(require("path"),1);vareK=w(require("os"),1);functionnf(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}i(nf,"toCommandValue");functiontK(t,e,r){letn=newHN(t,e,r);process.stdout.write(n.toString()+eK.EOL)}i(tK,"issueCommand");varZj="::",HN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=Zj+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){leto=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${bQe(o)}`)}}returne+=`${Zj}${dQe(this.message)}`,e}};functiondQe(t){returnnf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(dQe,"escapeData");functionbQe(t){returnnf(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(bQe,"escapeProperty");varsK=w(require("os"),1);varnK=require("os"),of=require("fs");varXN=function(t,e,r,n){functiono(s){returnsinstanceofr?s:newr(function(a){a(s)})}returni(o,"adopt"),new(r||(r=Promise))(function(s,a){functionc(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");functionu(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");functionp(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:fQe,appendFile:MQe,writeFile:mQe}=of.promises,rK="GITHUB_STEP_SUMMARY";varVN=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){returnXN(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[rK];if(!e)thrownewError(`Unable to find environment variable for $${rK}. Check if your runtime environment supports job summaries.`);try{yieldfQe(e,of.constants.R_OK|of.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){leto=Object.entries(n).map(([s,a])=>`${s}="${a}"`).join("");returnr?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){returnXN(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?mQe:MQe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnXN(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(nK.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(o).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);returnthis.addRaw(s).addEOL()}addTable(e){letr=e.map(o=>{lets=o.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:u,cols
${RGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function a3(t){return t instanceof kt?!0:xu(t)&&t.name==="RestError"}i(a3,"isRestError");function ar(t,e){return Buffer.from(t,e)}i(ar,"stringToUint8Array");var c3=w(require("node:http"),1),u3=w(require("node:https"),1),h6=w(require("node:zlib"),1),Z1e=require("node:stream");var qn=Sf("ts-http-runtime");var NGe={};function Ff(t){return t&&typeof t.pipe=="function"}i(Ff,"isReadableStream");function K1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(K1e,"isStreamComplete");function ete(t){return t&&typeof t.byteLength=="number"}i(ete,"isArrayBuffer");var p3=class extends Z1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},z6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new is("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new zo;qn.info(`requestto'${p.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=WGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,O=new p3(z);O.on("error",y=>{qn.error("Error in upload progress",y)}),Ff(c)?c.pipe(O):O.end(c),c=O}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=wGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?SGe(p,A):p;let M=e.onDownloadProgress;if(M){let z=new p3(M);z.on("error",O=>{qn.error("Error in download progress",O)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await FGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();Ff(c)&&(p=K1e(c));let A=Promise.resolve();Ff(u)&&(A=K1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{qn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?c3.default.request(c,u):u3.default.request(c,u);A.once("error",l=>{p(new kt(l.message,{code:l.code??kt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new is("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&Ff(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):ete(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(qn.error("Unrecognized body type",n),p(new kt("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?c3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new c3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return u3.default.globalAgent;let o=e.tlsSettings??NGe,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(qn.info("No cached TLS Agent exi
`;return e}i(AXe,"encodeHeaders");function lXe(t){return t instanceof Uint8Array?t.byteLength:W3(t)?t.size===-1?void 0:t.size:void 0}i(lXe,"getLength");function dXe(t){let e=0;for(let r of t){let n=lXe(r);if(n===void 0)return;e+=n}return e}i(dXe,"getTotalLength");async function bXe(t,e,r){let n=[ar(`--${r}`,"utf-8"),...e.flatMap(s=>[ar(`\r
`,"utf-8")],o=dXe(n);o&&t.headers.set("Content-Length",o),t.body=await ore(n)}i(bXe,"buildRequestBody");var Tf="multipartPolicy",fXe=70,MXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function mXe(t){if(t.length>fXe)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!MXe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}i(mXe,"assertValidBoundary");function T3(){return{name:Tf,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,s,a]=o;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?mXe(r):r=pXe(),t.headers.set("Content-Type",`${s};boundary=${r}`),await bXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(T3,"multipartPolicy");function v3(){return i3()}i(v3,"createEmptyPipeline");var sre=n3({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Uv0=sre.logger;function us(t){return sre.createClientLogger(t)}i(us,"createClientLogger");var ps=us("core-rest-pipeline");function L6(t={}){return l3({logger:ps.info,...t})}i(L6,"logPolicy");var _6=d3;function Q6(t={}){return b3(t)}i(Q6,"redirectPolicy");var L3=w(require("node:os"),1),_3=w(require("node:process"),1);function ire(){return"User-Agent"}i(ire,"getHeaderName");async function are(t){if(_3.default&&_3.default.versions){let e=`${L3.default.type()}${L3.default.release()};${L3.default.arch()}`,r=_3.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})`)}}i(are,"setPlatformSpecificData");var Q3="1.22.2";function BXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}i(BXe,"getUserAgentString");function cre(){return ire()}i(cre,"getUserAgentHeaderName");async function P3(t){let e=new Map;e.set("core-rest-pipeline",Q3),await are(e);let r=BXe(e);return t?`${t}${r}`:r}i(P3,"getUserAgentValue");var ure=cre(),pre="userAgentPolicy";function P6(t={}){let e=P3(t.userAgentPrefix);return{name:pre,async sendRequest(r,n){return r.headers.has(ure)||r.headers.set(ure,await e),n(r)}}}i(P6,"userAgentPolicy");var Yr=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function k6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new Yr(o??"The operation was aborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(k6,"createAbortablePromise");var NXe="The delay was aborted.";function vf(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return k6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??NXe})}i(vf,"delay");function ic(t){if(xu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}i(ic,"getErrorMessage");function Are(t){return xu(t)}i(Are,"isError");function wl(){return Wu()}i(wl,"randomUUID");var f0=Lu;var lre=Symbol("rawContent");function G6(t){return typeof t[lre]=="function"}i(G6,"hasRawContent");function dre(t){return G6(t)?t[lre]():t}i(dre,"getRawContent");var k3=Tf;function H6(){let t=T3();return{name:k3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)G6(n.body)&&(n.body=dre(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(H6,"multipartPolicy");var X6=f3;function V6(){return M3()}i(V6,"decompressResponsePolicy");fun
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!eJe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",C1("InvalidTag",l,Ut(t,s))}let p=YVe(t,s);if(p===!1)return C1("InvalidAttr","Attributes for '"+u+"' have open quote.",Ut(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=Kre(A,e);if(b===!0)n=!0;else return C1(b.err.code,b.err.msg,Ut(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return C1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Ut(t,a));if(r.length===0)return C1("InvalidTag","Closing tag '"+u+"' has not been opened.",Ut(t,a));{let l=r.pop();if(u!==l.tagName){let b=Ut(t,l.tagStartPos);return C1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Ut(t,a))}r.length==0&&(o=!0)}}else return C1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Ut(t,s));else{let l=Kre(A,e);if(l!==!0)return C1(l.err.code,l.err.msg,Ut(t,s-A.length+l.err.line));if(o===!0)return C1("InvalidXml","Multiple possible root nodes found.",Ut(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=jre(t,s);continue}else if(t[s+1]==="?"){if(s=$re(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=KVe(t,s);if(l==-1)return C1("InvalidChar","char '&' is not expected.",Ut(t,s));s=l}else if(o===!0&&!Yre(t[s]))return C1("InvalidXml","Extra text at the end",Ut(t,s));t[s]==="<"&&s--}}else{if(Yre(t[s]))continue;return C1("InvalidChar","char '"+t[s]+"' is not expected.",Ut(t,s))}if(n){if(r.length==1)return C1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ut(t,r[0].tagStartPos));if(r.length>0)return C1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return C1("InvalidXml","Start tag expected.",1);return!0}i(tE,"validate");function Yre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Yre,"isWhiteSpace");function $re(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 C1("InvalidXml","XML declaration allowed only at the start of the document.",Ut(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i($re,"readPI");function jre(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}i(jre,"readCommentAndCDATA");var VVe='"',JVe="'";function YVe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===VVe||t[e]===JVe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(YVe,"readAttributeStr");var $Ve=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Kre(t,e){let r=Z3(t,$Ve),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return C1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",Yf(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return C1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",Yf(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return C1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",Yf(r[o]));let s=r[o][2];if(!ZVe(s))return C1("InvalidAttr","Attribute '"+s+"' is an invalid name.",Yf(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return C1("InvalidAttr","Attribute '"+s+"' is repeated.",Yf(r[o]))}return!0}i(Kre,"validateAttributeString");function jVe(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}i(jVe,"validateNumberAmpersand");function KVe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,jVe(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}i(KVe,"validateAmpersand");function C1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(C1,"getErrorObject");function ZVe(t){return hS(t)}i(ZVe,"validateAttrName");function eJe(t){return hS(t)}i(eJe,"validateTagName");function Ut(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Ut,"getLineNumberForPosition");function Yf(t){return t.startIndex+t[1].length}i(Yf,"getPositionFromMatch");var Zre={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"},ene={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new Ar("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new Kf(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=vl(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let M=l.indexOf(":");M!==-1&&(l=l.substr(M+1))}l=qS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=DS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new Ar(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=vl(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=vl(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=DS(t,c,o.removeNSPrefix);if(!A){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 l=A.tagName,b=A.rawTagName,M=A.tagExp,z=A.attrExpPresent,O=A.closeIndex;if({tagName:l,tagExp:M}=qS(o.transformTagName,l,M,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;M.length>0&&M.lastIndexOf("/")===M.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),M=l):M=M.substr(0,M.length-1),z=l!==M);let B=null,q={},D;D=CJe(b),l!==e.tagname&&this.matcher.push(l,{},D),l!==M&&z&&(B=this.buildAttributesMap(M,this.matcher,l),B&&(q=EJe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ce=this.readStopNodeData(t,b,O+1);if(!ce)throw new Error(`Unexpected end of ${b}`);c=ce.i,x=ce.tagContent}let _=new Ar(l);B&&(_[":@"]=B),_.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,F)}else{if(E){({tagName:l,tagExp:M}=qS(o.transformTagName,l,M,o));let x=new Ar(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new Ar(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new Ar(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,F),r=x}n="",c=O}}}else n+=t[c];return e.child},"parse
`}),n}getCanonicalizedResourceString(e){let r=bE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=fE(e.url),s={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();s[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var i1=class extends Xu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nM(e,r,this)}computeHMACSHA256(e){return(0,wne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var P1=us("storage-common");var Nn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Nn||(Nn={}));var lc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Nn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rYe=new Yr("The operation was aborted."),oM=class extends bs{static{i(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}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=dE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=Ac(o.url,Xi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(P1.info(`RetryPolicy:=====>Try=${n}${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(P1.error(`RetryPolicy:Caughterror,message:${c.message},code:${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return P1.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(let a of s)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return P1.info(`RetryPolicy:Networkerror${a}found,willretry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return P1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return P1.info(`RetryPolicy:Willretryforstatuscode${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Re.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(P1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case Nn.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Nn.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return P1.info(`RetryPolicy:Delayfor${o}ms`),ME(o,n,rYe)}};var sM=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new oM(e,r,this.retryOptions)}};var nYe="storageBrowserPolicy";function Sne(){return{name:nYe,async sendRequest(t,e){return f0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ac(t.url,Xi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Re.COOKIE),t.headers.delete(Re.CONTENT_LENGTH)),e(t)}}}i(Sne,"storageBrowserPolicy");var oYe="StorageCorrectContentLengthPolicy";function Fne(){function t(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=bE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=fE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:new Bo(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(lje,"generateBlobSASQueryParameters20150405");function dje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(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(s);return{sasQueryParameters:new Bo(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(dje,"generateBlobSASQueryParameters20181109");function bje(t,e){if(t=tp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?yo(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(s);return{sasQueryParameters:new Bo(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}i(bje,"generateBlobSASQueryParameters20201206");function fje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}i(fje,"generateBlobSASQueryParametersUDK20181109");function Mje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Bo(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}i(Mje,"generateBlobSASQueryParametersUDK20200210");function mje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?yo(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(s);return{sasQueryParameters:new Bo(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}i(mje,"generateBlobSASQueryParametersUDK20201206");function hje(t,e){if(t=tp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=ws.parse(t.permissions.toString()).toString():o=Ss.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?M0(t.startsOn,!1):"",t.expiresOn?M0(t.expiresOn,!1):"",ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?M0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?M0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?yo(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(s);return{sasQueryParameters:new Bo(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}i(hje,"generateBlobSASQueryParametersUDK20250705");function ep(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(ep,"getCanonicalName");function tp(t){let e=t.version?t.version:gE;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(tp,"SASSignatureValuesSanityCheckAndAutofill");var hM=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=wl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Ae.withSpan("BlobLeaseClient-acquireLease",r,async n=>be(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==go||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==go||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Ae.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=be(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints:https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};jl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var sp=class extends Error{static{i(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"}};sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var IM=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var IKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},ST=class{static{i(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,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 Jse(t,e,r){return IKe(this,void 0,void 0,function*(){var n;let o=new ta(t),s=o.getBlockBlobClient(),a=new ST((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(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new BC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw p0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Jse,"uploadCacheArchiveSDK");var $se=w(require("buffer"),1),Fs=w(require("fs"),1),jse=w(require("stream"),1),Kse=w(require("util"),1);var qC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function DC(t){return t?t>=200&&t<300:!1}i(DC,"isSuccessStatusCode");function RKe(t){return t?t>=500:!0}i(RKe,"isServerErrorStatusCode");function NKe(t){return t?[s1.BadGateway,s1.ServiceUnavailable,s1.GatewayTimeout].includes(t):!1}i(NKe,"isRetryableStatusCode");function wKe(t){return qC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(wKe,"sleep");function Yse(t,e,r){return qC(this,arguments,void 0,function*(n,o,s,a=$O,c=jO,u=void 0){let p="",A=1;for(;A<=a;){let l,b,M=!1;try{l=yield o()}catch(z){u&&(l=u(z)),M=!0,p=z.message}if(l&&(b=s(l),!RKe(b)))return l;if(b&&(M=NKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!M){N(`${n} - Error is not retryable`);break}yield wKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(Yse,"retry");function RM(t,e){return qC(this,arguments,void 0,function*(r,n,o=$O,s=jO){return yield Yse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof ss)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(RM,"retryTypedResponse");function Kl(t,e){return qC(this,arguments,void 0,function*(r,n,o=$O,s=jO){return yield Yse(r,n,a=>a.message.statusCode,o,s)})}i(Kl,"retryHttpClientResponse");var xn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a
Othercacheswithsimilarkey:`);for(let c of s?.artifactCaches||[])N(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(_Ke,"printCachesListForDiagnostics");function vT(t,e,r){return fr(this,void 0,void 0,function*(){let n=new Aie.URL(t),o=rie(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield eie(t,e,o):o.concurrentBlobDownloads?yield Zse(t,e,o):yield RC(t,e):yield RC(t,e)})}i(vT,"downloadCache");function die(t,e,r){return fr(this,void 0,void 0,function*(){let n=TT(),o=El(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield RM("reserveCache",()=>fr(this,void 0,void 0,function*(){return n.postJson(wM("caches"),s)}))})}i(die,"reserveCache");function pie(t,e){return`bytes${t}-${e}/*`}i(pie,"getContentRange");function QKe(t,e,r,n,o){return fr(this,void 0,void 0,function*(){N(`Uploadingchunkofsize${o-n+1}bytesatoffset${n}withcontentrange:${pie(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":pie(n,o)},a=yield Kl(`uploadChunk(start:${n},end:${o})`,()=>fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!DC(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}i(QKe,"uploadChunk");function PKe(t,e,r,n){return fr(this,void 0,void 0,function*(){let o=os(r),s=wM(`caches/${e.toString()}`),a=Zl.openSync(r,"r"),c=FT(n),u=s6("uploadConcurrency",c.uploadConcurrency),p=s6("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>fr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),M=l,z=l+b-1;l+=p,yield QKe(t,s,()=>Zl.createReadStream(r,{fd:a,start:M,end:z,autoClose:!1}).on("error",O=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${O.message}`)}),M,z)}})))}finally{Zl.closeSync(a)}})}i(PKe,"uploadFile");function kKe(t,e,r){return fr(this,void 0,void 0,function*(){let n={size:r};return yield RM("commitCache",()=>fr(this,void 0,void 0,function*(){return t.postJson(wM(`caches/${e.toString()}`),n)}))})}i(kKe,"commitCache");function LT(t,e,r,n){return fr(this,void 0,void 0,function*(){if(FT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Jse(r,e,n)}else{let s=TT();N("Upload cache"),yield PKe(s,t,e,n),N("Commiting cache");let a=os(e);S(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield kKe(s,t,a);if(!DC(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);S("Cache saved successfully")}})}i(LT,"saveCache");var aae=w(eae(),1),D1=w(q1(),1),tn=w(q1(),1),pp=w(q1(),1),Ap=w(q1(),1),lp=w(q1(),1);var Sv=w(q1(),1),Fv=w(q1(),1),oae=w(q1(),1),sae=w(q1(),1),iae=w(q1(),1);var Rv=w(q1(),1),Nv=w(q1(),1),tae=w(q1(),1),rae=w(q1(),1),nae=w(q1(),1);var wv=class extends nae.MessageType{static{i(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,rae.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknownfield${c}(wiretype${u})for${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Nv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Rv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Rv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Nv.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},My=new wv;var Wv=class extends iae.Mess
`));let n=yield Yv(r,"create");yield $v(n,t)})}i(Kv,"createTar");var f2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},Io=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},dp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Zv="cache write denied:",gy=class t extends dp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Aae=KO,Oy=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Ey=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function lae(t){if(!t||t.length===0)throw new Io("Path Validation Error: At least one directory or file path is required")}i(lae,"checkPaths");function eL(t){if(t.length>512)throw new Io(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Io(`KeyValidationError:${t}cannotcontaincommas.`)}i(eL,"checkKey");function tL(){return NM()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(tL,"isFeatureAvailable");function dae(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=NM();N(`Cacheserviceversion:${p}`),lae(o);let A=xT();if(!oie(A)){S(`Cacherestoreskipped:theeffectivecache-mode'${A}'doesnotpermitreads.`),N(`Skippedrestoreforpaths[${o.join(", ")}]withprimarykey'${s}'.`);return}return p==="v2"?yield n00(o,s,a,c,u):yield r00(o,s,a,c,u)})}i(dae,"restoreCache");function r00(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let M of A)eL(M);let l=yield Rf(),b="";try{let M;try{M=yield lie(A,o,{compressionMethod:l,enableCrossOsArchive:u})}catch(O){let y=(p=O?.message)!==null&&p!==void 0?p:"";throw y.includes(Aae)?new Oy(y):O}if(!M?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),M.cacheKey;b=VM.join(yield Df(),nc(l)),N(`ArchivePath:${b}`),yield vT(M.archiveLocation,b,c),vi()&&(yield XM(b,l));let z=os(b);return S(`CacheSize:~${Math.round(z/(1024*1024))}MB(${z}B)`),yield jv(b,l),S("Cache restored successfully"),M.cacheKey}catch(M){let z=M;if(z.name===Io.name)throw M;z instanceof ss&&typeof z.statusCode=="number"&&z.statusCode>=500?pl(`Failedtorestore:${M.message}`):p0(`Failedtorestore:${M.message}`)}finally{try{yield If(b)}catch(M){N(`Failedtodeletearchive:${M}`)}}})}i(r00,"restoreCacheV1");function n00(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){var p;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(A)),A.length>10)throw new Io("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of A)eL(b);let l="";try{let b=Jv(),M=yield Rf(),z={key:s,restoreKeys:a,version:El(o,M,u)},O;try{O=yield b.GetCacheEntryDownloadURL(z)}catch(B){let q=(p=B?.message)!==null&&p!==void 0?p:"";throw q.includes(Aae)?new Oy(q):B}if(!O.ok){N(`Cachenotfoundforversion${z.version}ofkeys:${A.join(", ")}`);return}if(z.key!==O.matchedKey?S(`Cachehitforrestore-key:${O.matchedKey}`):S(`Cachehitfor:${O.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),O.matchedKey;l=VM.join(yield Df(),nc(M)),N(`Archivepath:${l}`),N(`Startingdownloadofarchiveto:${l}`)
`)}i(Z00,"_buildMessageForResponseErrors");var e10=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Z00(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},t10=["method","baseUrl","url","headers","request","query","mediaType","operationName"],r10=["query","method","url"],ece=/\/api\/v3\/?$/;function n10(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(r10.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>t10.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return ece.test(s)&&(o.url=s.replace(ece,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new e10(o,c,a.data)}return a.data.data})}i(n10,"graphql");function fL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>n10(r,o,s),"newApi"),{defaults:fL.bind(null,r),endpoint:r.endpoint})}i(fL,"withDefaults");var Ce1=fL(jM,{headers:{"user-agent":`octokit-graphql.js/${K00}${Oc()}`},method:"POST",url:"/graphql"});function tce(t){return fL(t,{method:"POST",url:"/graphql"})}i(tce,"withCustomRequest");var ML="(?:[a-zA-Z0-9_-]+)",rce="\\.",nce=new RegExp(`^${ML}${rce}${ML}${rce}${ML}$`),o10=nce.test.bind(nce);async function s10(t){let e=o10(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"}}i(s10,"auth");function i10(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}i(i10,"withAuthorizationPrefix");async function a10(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=i10(t),e(o)}i(a10,"hook");var oce=i(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(s10.bind(null,e),{hook:a10.bind(null,e)})},"createTokenAuth2");var mL="7.0.6";var sce=i(()=>{},"noop"),c10=console.warn.bind(console),u10=console.error.bind(console);function p10(t={}){return typeof t.debug!="function"&&(t.debug=sce),typeof t.info!="function"&&(t.info=sce),typeof t.warn!="function"&&(t.warn=c10),typeof t.error!="function"&&(t.error=u10),t}i(p10,"createLogger");var ice=`octokit-core.js/${mL}${Oc()}`,xy=class{static{i(this,"Octokit")}static VERSION=mL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent}${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new Fae.Collection,n={baseUrl:jM.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}${ice}`:ice,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=jM.defaults(n),this.graphql=tce(this.request).defaults(n),this.log=p10(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(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 s=oce(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:F,quote:x,record_delimiter:_}=this.options,{bomSkipped:ce,delimiterDiscovered:ye,delimiterBufPrevious:Ne,rawBuffer:De,escapeIsQuote:ze}=this.state;if(!ye&&p){let j;if(Ne===void 0?j=n:Ne!==void 0&&n===void 0?j=Ne:j=Buffer.concat([Ne,n]),n=void 0,o||j.length>p.size)this.options.delimiter=[Buffer.from(mle(j,this.options.delimiter_auto))],this.state.previousBuf=j,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=j;return}}let{previousBuf:Fe}=this.state,k;if(Fe===void 0)if(n===void 0){a();return}else k=n;else Fe!==void 0&&n===void 0?k=Fe:k=Buffer.concat([Fe,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(k.length<3){if(o===!1){this.state.previousBuf=k;return}}else{for(let j in W2)if(W2[j].compare(k,0,W2[j].length)===0){let $e=W2[j].length;this.state.bufBytesStart+=$e,k=k.slice($e);let m1=F2({...this.original_options,encoding:j});for(let he in m1)this.options[he]=m1[he];({comment:D,escape:F,quote:x}=this.options);break}this.state.bomSkipped=!0}let Te=k.length,T;for(T=0;T<Te&&!this.__needMoreData(T,Te,o);T++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(k,T)&&(_=this.options.record_delimiter);let j=k[T];if(z===!0&&De.append(j),(j===Vi0||j===Ji0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(F!==null&&this.state.quoting===!0&&this.__isEscape(k,T,j)&&T+F.length<Te)if(ze){if(this.__isQuote(k,T+F.length)){this.state.escaping=!0,T+=F.length-1;continue}}else{this.state.escaping=!0,T+=F.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,T))if(this.state.quoting===!0){let he=k[T+x.length],q0=y&&this.__isCharTrimable(k,T+x.length),je=D!==null&&this.__compareBytes(D,k,T+x.length,he),X=this.__isDelimiter(k,T+x.length,he),Rt=_.length===0?this.__autoDiscoverRecordDelimiter(k,T+x.length):this.__isRecordDelimiter(he,k,T+x.length);if(F!==null&&this.__isEscape(k,T,j)&&this.__isQuote(k,T+F.length))T+=F.length-1;else if(!he||X||Rt||je||q0){this.state.quoting=!1,this.state.wasQuoting=!0,T+=x.length-1;continue}else if(O===!1){let Nt=this.__error(new Je("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(he)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Nt!==void 0)return Nt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),T+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let he=this.__infoField(),q0=Object.keys(W2).map(X=>W2[X].equals(this.state.field.toString())?X:!1).filter(Boolean)[0],je=this.__error(new Je("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(he.column)}atline${he.lines},valueis${JSON.stringify(this.state.field.toString(A))}`,q0?`(${q0}bom)`:void 0],this.options,he,{field:this.state.field}));if(je!==void 0)return je}}else{this.state.quoting=!0,T+=x.length-1;continue}if(this.state.quoting===!1){let he=this.__isRecordDelimiter(j,k,T);if(he!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),T+=he-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,T+=he-1;continue}this.info.bytes=this.state.bufBytesStart+T;let X=this.__onField();if(X!==void 0)return
Moreinfo:${u.url}`);let M=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let O of a)if(O.remote||O.path.endsWith(p)&&O.content===A){c.push({title:l,message:b,file:O.path,startLine:M}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${p}:${l}`)}return c}};var yp=w(require("fs"),1),K_=w(require("path"),1);var _4=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new S0,this.iidFilename=`build-iidfile-${l0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${l0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([M])=>!r.has(M)),s=l0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Vt.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&l0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${A0.serverURL}/${Vt.repo.owner}/${Vt.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(l0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Vt.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Vt.payload.pull_request?.head?.sha=="string"?Vt.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let M=[`ref=${s||u?a:b}`],z=s?b:u;z&&M.push(`checksum=${z}`),p&&p!=="."&&M.push(`subdir=${p}`);for(let[O,y]of o)M.push(`${O}=${y}`);return`${c}?${M.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return K_.default.join(c0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(yp.default.existsSync(e))return yp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return K_.default.join(c0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!yp.default.existsSync(e))return;let r=yp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!yp.default.existsSync(o))throw new Error(`secretfile${o}notfound`);return[n,o]}let s=c0.tmpName({tmpdir:c0.tmpDir()});return yp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=kr(e);if(!r)return r;try{return $j(e)?`builder-id=${A0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${A0.workflowRunURL(!0)}`;let r=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${A0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${A0.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExpo
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=an(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=an(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=l0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&Ko(s),[o,s]}};var Z_=w(require("fs"),1),Cle=w(require("path"),1);var Q4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new S0,this.metadataFilename=`bake-metadata-${l0.generateRandomString()}.json`}getMetadataFilePath(){return Cle.default.join(c0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Z_.default.existsSync(e))return;let r=Z_.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!l0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);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);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Ce.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=l0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=an(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().
`).map(s=>s.trim()).filter(s=>s.length>0);if(o)return`refs/tags/${o}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let o=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(s=>s.trim()).filter(s=>s.length>0).sort((s,a)=>a.length-s.length);for(let s of o){let a=`tag:${s.slice(10)}`;if(e===a||e.startsWith(`${a},`))return s}if(o.length===1)return o[0];throw new Error(`Cannotfinddetachedtagrefin"${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(o=>o.trim()).filter(o=>o.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var _be=require("crypto"),ti=w(require("fs"),1),ri=w(require("path"),1);var ld=w(aQ(),1),Qbe=w(E8(),1),dd=w(xbe(),1);var qP=w(aQ(),1);var vbe=w(kn(),1);var Tbe="application/vnd.oci.empty.v1+json";var ei=class{static{i(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ce.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailableerror:${r}`),!1));return N(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ce.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ce.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=vbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies${n}statisfies${e}:${o}`),o}static parseCommandOutput(e){let r,n,o,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===qP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Tbe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===qP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){s=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:s}}};var DP=w(require("fs"),1);var mq=class t{static{i(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new S0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=c0.tmpName({tmpdir:c0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of s)r.
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,n){return await Ce.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Ad="https://search.sigstore.dev";var Lbe="slsaprovenance1",Pc=class t{static{i(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new ei,this.imageTools=e?.imageTools||new mq}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${s}@${c}`;await ct(`Signingattestationmanifest${u}`,async()=>{let p=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...o];S(`[command]${this.cosign.binPath}${[...p,u].join(" ")}`);let A=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...p,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=ei.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(l.errors&&l.errors.length>0){let M=l.errors.map(z=>`-[${z.code}]${z.message}:${z.detail}`).join(`
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosignverifycommandfailedwith:${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},o=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await ct(`Signing${a}`,async()=>{let c=s[a],u=ri.default.join(ri.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),p=t.getProvenanceSubjects(c);if(p.length===0){p0(`Nosubjectsfoundinprovenance${a},skipsigning.`);return}let A=ri.default.join(ri.default.dirname(a),p[0].name),l=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",Lbe,"--bundle",u,...o];S(`[command]${this.cosign.binPath}${[...l,A].join(" ")}`);let b=await Ce.getExecOutput(this.cosign.binPath,["--verbose",...l,A],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),M=ei.parseCommandOutput(b.stderr.trim());if(b.exitCode!=0)if(M.errors&&M.errors.length>0){let O=M.errors.map(y=>`-[${y.code}]${y.message}:${y.detail}`).join(`
`,bakeTarget:kr("bake-target")||"docker-metadata-action",githubToken:kr("github-token")}}i(Hbe,"getInputs");async function Xbe(t,e){switch(t){case"workflow":return await td0(e);case"git":return await rd0();default:throw new Error(`Invalidcontextsource:${t}`)}}i(Xbe,"getContext");async function td0(t){let e=A0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await nd0(e.sha,t),...e}}i(td0,"getContextFromWorkflow");async function rd0(){let t=await pa.context();return{commitDate:await pa.commitDate(t.sha),...t}}i(rd0,"getContextFromGit");async function nd0(t,e){let r=A0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:A0.context.repo.owner,repo:A0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`FailedtogetcommitdatefromGitHubAPI:${n.message}`),new Date}}i(nd0,"getCommitDateFromWorkflow");var Da=w(V_(),1),k4e=w(require("fs"),1),U4e=w(require("path"),1),Hh=w(Kbe(),1),pn=w(F4e(),1),Ld=w(kn(),1);var Ye=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...o){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let s of o)for(let a in s){let c=s[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var Gh=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var BD=i(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let o=t[r];if(o==null||o===!1)e[r]={disabled:!0};else if(typeof o=="string"||typeof o=="number")e[r]={name:`${o}`};else if(Gh(o)){if(typeof o.name!="string")throw new Ye("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property"name"isrequiredatposition${r}`,"when column is an object literal"]);e[r]=o}else throw new Ye("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got${JSON.stringify(o)}atposition${r}`])}return e},"normalize_columns_array");var Z7=class{static{i(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},e9=Z7;var W4e=i(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,o)=>{let s=Buffer.from(String.fromCharCode(o),t.encoding);return o!==63&&s.length===1&&s[0]===63||n.push(s),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.i
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<M},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:M,raw:z,relax_quotes:O,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:D,escape:F,quote:x,record_delimiter:_}=this.options,{bomSkipped:ce,delimiterDiscovered:ye,delimiterBufPrevious:Ne,rawBuffer:De,escapeIsQuote:ze}=this.state;if(!ye&&p){let j;if(Ne===void 0?j=n:Ne!==void 0&&n===void 0?j=Ne:j=Buffer.concat([Ne,n]),n=void 0,o||j.length>p.size)this.options.delimiter=[Buffer.from(T4e(j,this.options.delimiter_auto))],this.state.previousBuf=j,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=j;return}}let{previousBuf:Fe}=this.state,k;if(Fe===void 0)if(n===void 0){a();return}else k=n;else Fe!==void 0&&n===void 0?k=Fe:k=Buffer.concat([Fe,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(k.length<3){if(o===!1){this.state.previousBuf=k;return}}else{for(let j in vd)if(vd[j].compare(k,0,vd[j].length)===0){let $e=vd[j].length;this.state.bufBytesStart+=$e,k=k.slice($e);let m1=Td({...this.original_options,encoding:j});for(let he in m1)this.options[he]=m1[he];({comment:D,escape:F,quote:x}=this.options);break}this.state.bomSkipped=!0}let Te=k.length,T;for(T=0;T<Te&&!this.__needMoreData(T,Te,o);T++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(k,T)&&(_=this.options.record_delimiter);let j=k[T];if(z===!0&&De.append(j),(j===V40||j===J40)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(F!==null&&this.state.quoting===!0&&this.__isEscape(k,T,j)&&T+F.length<Te)if(ze){if(this.__isQuote(k,T+F.length)){this.state.escaping=!0,T+=F.length-1;continue}}else{this.state.escaping=!0,T+=F.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,T))if(this.state.quoting===!0){let he=k[T+x.length],q0=y&&this.__isCharTrimable(k,T+x.length),je=D!==null&&this.__compareBytes(D,k,T+x.length,he),X=this.__isDelimiter(k,T+x.length,he),Rt=_.length===0?this.__autoDiscoverRecordDelimiter(k,T+x.length):this.__isRecordDelimiter(he,k,T+x.length);if(F!==null&&this.__isEscape(k,T,j)&&this.__isQuote(k,T+F.length))T+=F.length-1;else if(!he||X||Rt||je||q0){this.state.quoting=!1,this.state.wasQuoting=!0,T+=x.length-1;continue}else if(O===!1){let Nt=this.__error(new Ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(he)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Nt!==void 0)return Nt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),T+=x.length-1}else if(this.state.field.length!==0){if(O===!1){let he=this.__infoField(),q0=Object.keys(vd).map(X=>vd[X].equals(this.state.field.toString())?X:!1).filter(Boolean)[0],je=this.__error(new Ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(he.column)}atline${he.lines},valueis${JSON.stringify(this.state.field.toString(A))}`,q0?`(${q0}bom)`:void 0],this.options,he,{field:this.state.field}));if(je!==void 0)return je}}else{this.state.quoting=!0,T+=x.length-1;continue}if(this.state.quoting===!1){let he=this.__isRecordDelimiter(j,k,T);if(he!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),T+=he-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,T+=he-1;continue}this.info.bytes=this.state.bufBytesStart+T;let X=this.__onField();if(X!==void 0)return
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var rA=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=qD(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");function _4e(t){let e=[];if(t.length==1){let r=!1,n=rA(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return L4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=rA(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalidenableattributevalue:${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknownimageattribute:${r}`)}}}if(n.name.length==0)throw new Error(`Imagenameattributeempty:${r}`);e.push(n)}return L4e(e)}i(_4e,"Transform");function L4e(t){Iu("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Ru(),t}i(L4e,"output");var r9=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(r9||{}),DD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(DD||{}),ID=(r=>(r.Short="short",r.Long="long",r))(ID||{}),t9=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},$40={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function Q4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(j40(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Iu("Processing tags input");for(let n of r)S(n.toString());return Ru(),r}i(Q4e,"Transform");function j40(t){let e=rA(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new t9;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(r9).includes(a))throw new Error(`Unknowntagtypeattribute:${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missingpatternattributefor${t}`);Object.prototype.hasOwnProperty.