varuDe=Object.create;varXD=Object.defineProperty;varhDe=Object.getOwnPropertyDescriptor;vardDe=Object.getOwnPropertyNames;varfDe=Object.getPrototypeOf,pDe=Object.prototype.hasOwnProperty;varADe=(t,e)=>()=>(t&&(e=t(t=0)),e);varA=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mK=(t,e)=>{for(varrine)XD(t,r,{get:e[r],enumerable:!0})},mDe=(t,e,r,s)=>{if(e&&typeofe=="object"||typeofe=="function")for(letiofdDe(e))!pDe.call(t,i)&&i!==r&&XD(t,i,{get:()=>e[i],enumerable:!(s=hDe(e,i))||s.enumerable});returnt};varO=(t,e,r)=>(r=t!=null?uDe(fDe(t)):{},mDe(e||!t||!t.__esModule?XD(r,"default",{value:t,enumerable:!0}):r,t));varhX=A(JA=>{"use strict";varMDt=require("net"),VMe=require("tls"),yk=require("http"),cX=require("https"),$Me=require("events"),LDt=require("assert"),jMe=require("util");JA.httpOverHttp=JMe;JA.httpsOverHttp=YMe;JA.httpOverHttps=WMe;JA.httpsOverHttps=KMe;functionJMe(t){vare=newZl(t);returne.request=yk.request,e}functionYMe(t){vare=newZl(t);returne.request=yk.request,e.createSocket=lX,e.defaultPort=443,e}functionWMe(t){vare=newZl(t);returne.request=cX.request,e}functionKMe(t){vare=newZl(t);returne.request=cX.request,e.createSocket=lX,e.defaultPort=443,e}functionZl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yk.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(vara=uX(i,n,o),c=0,l=e.requests.length;c<l;++c){varu=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}jMe.inherits(Zl,$Me.EventEmitter);Zl.prototype.addRequest=function(e,r,s,i){varn=this,o=Ek({request:e},n.options,uX(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);functionc(){n.emit("free",a,o)}functionl(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Zl.prototype.createSocket=function(e,r){vars=this,i={};s.sockets.push(i);varn=Ek({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+newBuffer(n.proxyAuth).toString("base64")),Ph("making CONNECT request");varo=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();functiona(h){h.upgrade=!0}functionc(h,d,f){process.nextTick(function(){l(h,d,f)})}functionl(h,d,f){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Ph("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();varp=newError("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}if(f.length>0){Ph("got illegal response body from proxy"),d.destroy();varp=newError("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}returnPh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=d,r(d)}functionu(h){o.removeAllListeners(),Ph(`tunneling socket could not be established, cause=%s
`);d.push(m),n+=m.byteLength,p&&(n=null),i=t,s=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data;boundary=${c}`}else if(E7(t))i=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(yC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:AUe(t)}if((typeof i=="string"||yC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!w7(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function vUe(t,e=!1){return t instanceof ReadableStream&&(wM(!yC.isDisturbed(t),"The body has already been consumed."),wM(!t.locked,"The stream is locked.")),x7(t,e)}function RUe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function TUe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _Ue(t){return{blob(){return am(this,r=>{let s=I7(this);return s===null?s="":s&&(s=BUe(s)),new bUe([r],{type:s})},t)},arrayBuffer(){return am(this,r=>new Uint8Array(r).buffer,t)},text(){return am(this,b7,t)},json(){return am(this,PUe,t)},formData(){return am(this,r=>{let s=I7(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xUe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new C7;return n[cm]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new C7;for(let[o,a]of i)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return am(this,r=>new Uint8Array(r),t)}}}function QUe(t){Object.assign(t.prototype,_Ue(t))}async function am(t,e,r){if(IUe.brandCheck(t,r),N7(t))throw new TypeError("Body is unusable: Body has already been read");TUe(t[cm]);let s=yUe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};return t[cm].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await EUe(t[cm].body,n,i),s.promise)}function N7(t){let e=t[cm].body;return e!=null&&(e.stream.locked||yC.isDisturbed(e.stream))}function PUe(t){return JSON.parse(b7(t))}function I7(t){let e=t[cm].headersList,r=CUe(e);return r==="failure"?null:r}v7.exports={extractBody:x7,safelyExtractBody:vUe,cloneBody:RUe,mixinBody:QUe,streamRegistry:B7,hasFinalizationRegistry:S7,bodyUnusable:N7}});var F7=A((pkt,L7)=>{"use strict";var Pe=require("node:assert"),Ge=it(),{channels:R7}=WA(),BM=oM(),{RequestContentLengthMismatchError:Sf,ResponseContentLengthMismatchError:OUe,RequestAbortedError:D7,HeadersTimeoutError:DUe,HeadersOverflowError:kUe,SocketError:mB,InformationalError:um,BodyTimeoutError:MUe,HTTPParserError:LUe,ResponseExceededMaxSizeError:FUe}=Et(),{kUrl:k7,kReset:nn,kClient:RM,kParser:Ar,kBlocking:IC,kRunning:Ys,kPending:UUe,kSize:T7,kWriting:kh,kQueue:Na,kNoRef:EC,kKeepAliveDefaultTimeout:qUe,kHostHeader:GUe,kPendingIdx:HUe,kRunningIdx:No,kError:vo,kPipelining:pB,kSocket:hm,kKeepAliveTimeoutValue:gB,kMaxHeadersSize:xM,kKeepAliveMaxTimeout:zUe,kKeepAliveTimeoutThreshold:VUe,kHeadersTimeout:$Ue,kBodyTimeout:jUe,kStrictContentLength:TM,kMaxRequests:_7,kCounter:JUe,kMaxResponseSize:YUe,kOnError:WUe,kResume:Dh,kHTTPContext:M7}=sr(),pc=BZ(),KUe=Buffer.alloc(0),hB=Buffer[Symbol.species],dB=Ge.addListener,XUe=Ge.removeAllListeners,NM;async function ZUe(){let t=process.env.JEST_WORKER_ID?lM():void 0,e;try{e=await WebAssembly.compile(vZ())}catch{e=await WebAssembly.compile(t||lM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{Pe(rs.ptr===r);let n=s-mc+Ac.byteOffset;return rs.onStatus(new hB(Ac.buffer,n,i))||0},wasm_on_message_begin:r=>(Pe(rs.ptr===r),rs.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{Pe(rs.
`}return R7.sendHeaders.hasSubscribers&&R7.sendHeaders.publish({request:e,headers:m,socket:f}),!c||d===0?P7(p,null,t,e,f,u,m,h):Ge.isBuffer(c)?P7(p,c,t,e,f,u,m,h):Ge.isBlobLike(c)?typeof c.stream=="function"?O7(p,c.stream(),t,e,f,u,m,h):oqe(p,c,t,e,f,u,m,h):Ge.isStream(c)?nqe(p,c,t,e,f,u,m,h):Ge.isIterable(c)?O7(p,c,t,e,f,u,m,h):Pe(!1),!0}function nqe(t,e,r,s,i,n,o,a){Pe(n!==0||r[Ys]===0,"stream body cannot be pipelined");let c=!1,l=new yB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(m){Ge.destroy(this,m)}},h=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let p=new D7;queueMicrotask(()=>f(p))}},f=function(p){if(!c){if(c=!0,Pe(i.destroyed||i[kh]&&r[Ys]<=1),i.off("drain",h).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",d),!p)try{l.end()}catch(m){p=m}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?Ge.destroy(e,p):Ge.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",h).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function P7(t,e,r,s,i,n,o,a){try{e?Ge.isBuffer(e)&&(Pe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"):(Pe(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Dh]()}catch(c){t(c)}}async function oqe(t,e,r,s,i,n,o,a){Pe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Sf;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length:${n}\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[nn]=!0),r[Dh]()}catch(c){t(c)}}async function O7(t,e,r,s,i,n,o,a){Pe(n!==0||r[Ys]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,f)=>{Pe(c===null),i[vo]?f(i[vo]):c=d});i.on("close",l).on("drain",l);let h=new yB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[vo])throw i[vo];h.write(d)||await u()}h.end()}catch(d){h.destroy(d)}finally{i.off("close",l).off("drain",l)}}var yB=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[kh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[vo])throw r[vo];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[TM])throw new Sf;process.emitWarning(new Sf)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[nn]=!0),i===null?r.write(`${c}transfer-encoding:chunked\r
`,"latin1"),r!==null&&i!==r){if(s[TM])throw new Sf;process.emitWarning(new Sf)}e[Ar].timeout&&e[Ar].timeoutType===dm&&e[Ar].timeout.refresh&&e[Ar].timeout.refresh(),s[Dh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[kh]=!1,e&&(Pe(s[Ys]<=1,"pipeline should only contain this request"),i(e))}};L7.exports=tqe});var j7=A((Akt,$7)=>{"use strict";var Ro=require("node:assert"),{pipeline:aqe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:OM,RequestAbortedError:U7,SocketError:bC,InformationalError:DM}=Et(),{kUrl:EB,kReset:IB,kClient:fm,kRunning:bB,kPending:cqe,kQueue:Mh,kPendingIdx:kM,kRunningIdx:va,kError:Ta,kSocket:fs,kStrictContentLength:lqe,kOnError:MM,kMaxConcurrentStreams:V7,kHTTP2Session:Ra,kResume:Lh,kSize:uqe,kHTTPContext:hqe}=sr(),nu=Symbol("open streams"),q7,G7=!1,CB;try{CB=require("node:http2")}catch{CB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:dqe,HTTP2_HEADER_METHOD:fqe,HTTP2_HEADER_PATH:pqe,HTTP2_HEADER_SCHEME:Aqe,HTTP2_HEADER_CONTENT_LENGTH:mqe,HTTP2_HEADER_EXPECT:gqe,HTTP2_HEADER_STATUS:yqe}}=CB;function Eqe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Cqe(t,e){t[fs]=e,G7||(G7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=CB.connect(t[EB],{createConnection:()=>e,peerMaxConcurrentStreams:t[V7]});r[nu]=0,r[fm]=t,r[fs]=e,lt.addListener(r,"error",bqe),lt.addListener(r,"frameError",wqe),lt.addListener(r,"end",Sqe),lt.addListener(r,"goaway",Bqe),lt.addListener(r,"close",function(){let{[fm]:i}=this,{[fs]:n}=i,o=this[fs][Ta]||this[Ta]||new bC("closed",lt.getSocketInfo(n));if(i[Ra]=null,i.destroyed){Ro(i[cqe]===0);let a=i[Mh].splice(i[va]);for(let c=0;c<a.length;c++){let l=a[c];lt.errorRequest(i,l,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,lt.addListener(e,"error",function(i){Ro(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=i,this[fm][MM](i)}),lt.addListener(e,"end",function(){lt.destroy(this,new bC("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let i=this[Ta]||new bC("closed",lt.getSocketInfo(this));t[fs]=null,this[Ra]!=null&&this[Ra].destroy(i),t[kM]=t[va],Ro(t[bB]===0),t.emit("disconnect",t[EB],[t],i),t[Lh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return Nqe(t,...i)},resume(){Iqe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function Iqe(t){let e=t[fs];e?.destroyed===!1&&(t[uqe]===0&&t[V7]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function bqe(t){Ro(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fs][Ta]=t,this[fm][MM](t)}function wqe(t,e,r){if(r===0){let s=new DM(`HTTP/2:"frameError"received-type${t},code${e}`);this[fs][Ta]=s,this[fm][MM](s)}}function Sqe(){let t=new bC("other side closed",lt.getSocketInfo(this[fs]));this.destroy(t),lt.destroy(this[fs],t)}function Bqe(t){let e=this[Ta]||new bC(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,lt.getSocketInfo(this)),r=this[fm];if(r[fs]=null,r[hqe]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),lt.destroy(this[fs],e),r[va]<r[Mh].length){let s=r[Mh][r[va]];r[Mh][r[va]++]=null,lt.errorRequest(r,s,e),r[kM]=r[va]}Ro(r[bB]===0),r.emit("disconnect",r[EB],[r],e),r[Lh]()}function xqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Nqe(t,e){let r=t[Ra],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let B=0;B<l.length;B+=2){let N=l[B+0],P=l[B+1];if(Array.isArray(P))for(let Q=0;Q<P.length;Q++)h[N]?h[N]+=`,${P[Q]}`:h[N]=P[Q];else h[N]=P}let d,{hostname:f,port:p}=t[EB];h[dqe]=n||`${f}${p?`:${p}`:""}`,h[fqe]=s;let m=B=>{e.aborted||e.completed||(B=B||new U7,lt.errorRequest(t,e,B),d!=null&<.destroy(d,B),lt.destroy(u,B),t[Mh][t[va]++]=null,t[Lh]())};try{e.onConnect(m)}catch(B){lt.errorRequest(t,e,B)}if(e
`);if(d===-1){KN("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${w}"`));let N=w.slice(0,B).toLowerCase(),P=w.slice(B+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}KN("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}hg.parseProxyResponse=CXe});var Mhe=A(zo=>{"use strict";var IXe=zo&&zo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bXe=zo&&zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dhe=zo&&zo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&IXe(e,t,r);return bXe(e,t),e},khe=zo&&zo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zo,"__esModule",{value:!0});zo.HttpsProxyAgent=void 0;var XN=Dhe(require("net")),Qhe=Dhe(require("tls")),wXe=khe(require("assert")),SXe=khe(ip()),BXe=The(),xXe=require("url"),NXe=_he(),HI=(0,SXe.default)("https-proxy-agent"),Phe=t=>t.servername===void 0&&t.host&&!XN.isIP(t.host)?{...t,servername:t.host}:t,ZN=class extends BXe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xXe.URL(e):e,this.proxyHeaders=r?.headers??{},HI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ohe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;s.protocol==="https:"?(HI("Creating `tls.Socket`: %o",this.connectOpts),i=Qhe.connect(Phe(this.connectOpts))):(HI("Creating `net.Socket`: %o",this.connectOpts),i=XN.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=XN.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT${o}:${r.port}HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}:${n[d]}\r
`)+4,e.outputData[0].data=e._header+s.substring(i),dg("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(dg("Creating `tls.Socket`: %o",this.connectOpts),n=HXe.connect(this.connectOpts)):(dg("Creating `net.Socket`: %o",this.connectOpts),n=GXe.connect(this.connectOpts)),await(0,VXe.once)(n,"connect"),n}};ev.protocols=["http","https"];Vo.HttpProxyAgent=ev;function jXe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var fde=A(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.state=void 0;pv.state={instrumenterImplementation:void 0}});var Tde=A(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.state=void 0;Ev.state={operationRequestMap:new WeakMap}});var cAe=A(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});var Ast=require("os"),mst=require("util");function gst(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var yst=gst(mst);function Est(t,...e){process.stderr.write(`${yst.default.format(t,...e)}${Ast.EOL}`)}var Xpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,eAe,d8=[],f8=[],LR=[];Xpe&&p8(Xpe);var tAe=Object.assign(t=>rAe(t),{enable:p8,enabled:A8,disable:Cst,log:Est});function p8(t){eAe=t,d8=[],f8=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?f8.push(new RegExp(`^${s.substr(1)}$`)):d8.push(new RegExp(`^${s}$`));for(let s of LR)s.enabled=A8(s.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of f8)if(e.test(t))return!1;for(let e of d8)if(e.test(t))return!0;return!1}function Cst(){let t=eAe||"";return p8(""),t}function rAe(t){let e=Object.assign(r,{enabled:A8(t),destroy:Ist,log:tAe.log,namespace:t,extend:bst});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return LR.push(e),e}function Ist(){let t=LR.indexOf(this);return t>=0?(LR.splice(t,1),!0):!1}function bst(t){let e=rAe(`${this.namespace}:${t}`);return e.log=this.log,e}var _0=tAe,sAe=new Set,kR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,FR,UR=_0("azure");UR.log=(...t)=>{_0.log(...t)};var m8=["verbose","info","warning","error"];kR&&(aAe(kR)?iAe(kR):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${kR}';loggingisnotenabled.Acceptablevalues:${m8.join(", ")}.`));function iAe(t){if(t&&!aAe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${m8.join(",")}`);FR=t;let e=[];for(let r of sAe)oAe(r)&&e.push(r.namespace);_0.enable(e.join(","))}function wst(){return FR}var Zpe={verbose:400,info:300,warning:200,error:100};function Sst(t){let e=UR.extend(t);return nAe(UR,e),{error:MR(e,"error"),warning:MR(e,"warning"),info:MR(e,"info"),verbose:MR(e,"verbose")}}function nAe(t,e){e.log=(...r)=>{t.log(...r)}}function MR(t,e){let r=Object.assign(t.extend(e),{level:e});if(nAe(t,r),oAe(r)){let s=_0.disable();_0.enable(s+","+r.namespace)}return sAe.add(r),r}function oAe(t){return!!(FR&&Zpe[t.level]<=Zpe[FR])}function aAe(t){return m8.includes(t)}Tg.AzureLogger=UR;Tg.createClientLogger=Sst;Tg.getLogLevel=wst;Tg.setLogLevel=iAe});var E8=A(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var _g=new WeakMap,qR=new WeakMap,Q0=class t{constructor(){this.onabort=null,_g.set(this,[]),qR.set(this,!1)}get aborted(){if(!qR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return qR.get(this)}static get none(){return new t}addEventListener(e,r){if(!_g.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");_g.get(this).push(r)}removeEventListener(e,r){if(!_g.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=_g.get(this),i=s.indexOf(r);i>-1&&s.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function lAe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=_g.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),qR.set(t,!0)}var g8=class extends Error{constructor(e){super(e),t
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function hht(){Object.keys(E_).forEach(function(t){delete E_[t]})}});var I_=A(dl=>{"use strict";dl.__esModule=!0;dl.HandlebarsEnvironment=FV;function $Ee(t){return t&&t.__esModule?t:{default:t}}var Pp=Mi(),dht=co(),MV=$Ee(dht),fht=PV(),pht=GEe(),Aht=DV(),C_=$Ee(Aht),mht=kV(),ght="4.7.9";dl.VERSION=ght;var yht=8;dl.COMPILER_REVISION=yht;var Eht=7;dl.LAST_COMPATIBLE_COMPILER_REVISION=Eht;var Cht={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"};dl.REVISION_CHANGES=Cht;var LV="[object Object]";function FV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},fht.registerDefaultHelpers(this),pht.registerDefaultDecorators(this)}FV.prototype={constructor:FV,logger:C_.default,log:C_.default.log,registerHelper:function(e,r){if(Pp.toString.call(e)===LV){if(r)throw new MV.default("Arg not supported with multiple helpers");Pp.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Pp.toString.call(e)===LV)Pp.extend(this.partials,e);else{if(typeof r>"u")throw new MV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Pp.toString.call(e)===LV){if(r)throw new MV.default("Arg not supported with multiple decorators");Pp.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){mht.resetLoggedProperties()}};var Iht=C_.default.log;dl.log=Iht;dl.createFrame=Pp.createFrame;dl.logger=C_.default});var JEe=A((b_,jEe)=>{"use strict";b_.__esModule=!0;function UV(t){this.string=t}UV.prototype.toString=UV.prototype.toHTML=function(){return""+this.string};b_.default=UV;jEe.exports=b_.default});var YEe=A(qV=>{"use strict";qV.__esModule=!0;qV.wrapHelper=bht;function bht(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var tCe=A(xd=>{"use strict";xd.__esModule=!0;xd.checkRevision=vht;xd.template=Rht;xd.wrapProgram=w_;xd.resolvePartial=Tht;xd.invokePartial=_ht;xd.noop=ZEe;function wht(t){return t&&t.__esModule?t:{default:t}}function Sht(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Bht=Mi(),iy=Sht(Bht),xht=co(),Ou=wht(xht),Du=I_(),WEe=PV(),Nht=YEe(),KEe=kV();function vht(t){var e=t&&t[0]||1,r=Du.COMPILER_REVISION;if(!(e>=Du.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Du.COMPILER_REVISION))if(e<Du.LAST_COMPATIBLE_COMPILER_REVISION){var s=Du.REVISION_CHANGES[r],i=Du.REVISION_CHANGES[e];throw new Ou.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}else throw new Ou.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Rht(t,e){if(!e)throw new Ou.default("No environment passed to template");if(!t||!t.main)throw new Ou.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=iy.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`)}return l}else throw new Ou.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(a,c,l){if(!a||!(c in a))throw new Ou.default('"'+c+'" not defined in '+a,{loc:l});return i.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||KEe.resultIsAllowed(l,i.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var h=a[u]&&i.lookupProperty(a[u],c);if(h!=null)return h}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:iy.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,h){var d=this.programs[a],f=this.fn(a);return c||h||u||l?d=w_(this,a,f,c,l,u,h):d||(d=this.programs[a]=w_(this,a,f)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=iy.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=Qht(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function h(d){return""+t.main(i,d,i.helpers,i.partials,c,u,l)}return h=eCe(t.main,h,i,a.depths||[],c,u),h(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var a={};XEe(a,e.helpers,i),XEe(a,o.helpers,i),i.helpers=a,t.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=iy.extend({},e.decorators,o.decorators)),i.hooks={},i.protoAccessControl=KEe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;WEe.moveHelperToHooks(i,"helperMissing",c),WEe.moveHelperToHooks(i,"blockHelperMissing",c)}},n._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new Ou.default("must pass block params");if(t.useDepths&&!l)throw new Ou.default("must pass parent depths");return w_(i,o,t[o],a,0,c,l)},n}function w_(t,e,r,s,i,n,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,n&&[l.blockParams].concat(n),u)}return a=eCe(r,a,t,o,s,n),a.program=e,a.depth=o?o.length:0,a.blockParams=i||0,a}function Tht(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=S_(r.partials,t)):r.name==="@partial-block"?t=S_(r.data,"partial-block"):t=S_(r.partials,r.name),t}function _ht(t,e,r){var s=S_(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==ZEe&&(function(){r.data=Du.createFrame(r.data);var n=r.fn;i=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Du.createFrame(c.data),c.data["partial-block"]=s,n(a,c)},n.partials&&(r.partials=iy.extend({},r.partials,n.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Ou.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function ZEe(){return""}function S_(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function Qht(t,e){return(!e||!("root"in e))&&(e=e?Du.createFrame(e):{},e.root=t),e}function eCe(t,e,r,s,i,n){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],i,n,s),iy.extend(e,o)}return e}function XEe(t,e,r){e&&Object.keys(e).forEach(function(s){var i=e[s];t[s]=Pht(i,r)})}function Pht(t,e){var r=e.lookupProperty;return Nht.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var GV=A((B_,rCe)=>{"use strict";B_.__esModule=!0;B_.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis
`+this.lexer.showPosition()+`
Expecting`+$.join(", ")+", got '"+(this.terminals_[B]||B)+"'":se="Parse error on line "+(h+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(se,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:$})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(Q[0]){case 1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(Q[1]),B=null,N?(B=N,N=null):(d=this.lexer.yyleng,u=this.lexer.yytext,h=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case 2:if(F=this.productions_[Q[1]][1],ee.$=a[a.length-F],ee._$={first_line:c[c.length-(F||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(F||1)].first_column,last_column:c[c.length-1].last_column},y&&(ee._$.range=[c[c.length-(F||1)].range[0],c[c.length-1].range[1]]),G=this.performAction.call(ee,u,d,h,this.yy,Q[1],a,c),typeof G<"u")return G;F&&(o=o.slice(0,-1*F*2),a=a.slice(0,-1*F),c=c.slice(0,-1*F)),o.push(this.productions_[Q[1]][0]),a.push(ee.$),c.push(ee._$),q=l[o[o.length-2]][o[o.length-1]],o.push(q);break;case 3:return!0}}return!0}},e=(function(){var s={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(a=this._input.match(this.rules[h[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
${oP(l)}${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return aP(t,c)}yo.exports.find=Zbt;async function Zbt(t,e){let r=xw(t,e);try{return(await nP(r)).reduce((i,n)=>n&&n.key===e?aP(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}yo.exports.delete=ewt;function ewt(t,e,r={}){if(!r.removeFully)return sve(t,e,null,r);let s=xw(t,e);return rve(s,{recursive:!0,force:!0})}yo.exports.lsStream=ive;function ive(t){let e=L6(t),r=new Vbt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(iP(),sP)),i=await k6(e);return await s(i,async n=>{let o=Ql.join(e,n),a=await k6(o);await s(a,async c=>{let l=Ql.join(o,c),u=await k6(l);await s(u,async h=>{let d=Ql.join(l,h);try{let p=(await nP(d)).reduce((m,E)=>(m.set(E.key,E),m),new Map);for(let m of p.values()){let E=aP(t,m);E&&r.write(E)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:D6})},{concurrency:D6})},{concurrency:D6}),r.end(),r}).catch(s=>r.emit("error",s)),r}yo.exports.ls=twt;async function twt(t){return(await ive(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}yo.exports.bucketEntries=nP;async function nP(t,e){let r=await Gbt(t,"utf8");return rwt(r,e)}function rwt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||oP(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}yo.exports.bucketDir=L6;function L6(t){return Ql.join(t,`index-v${Wbt}`)}yo.exports.bucketPath=xw;function xw(t,e){let r=nve(e);return Ql.join.apply(Ql,[L6(t)].concat(Ybt(r)))}yo.exports.hashKey=nve;function nve(t){return ove(t,"sha256")}yo.exports.hashEntry=oP;function oP(t){return ove(t,"sha1")}function ove(t,e){return Ubt.createHash(e).update(t).digest("hex")}function aP(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Jbt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function k6(t){return Hbt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var vw=A(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.LRUCache=void 0;var swt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,cve=new Set,F6=typeof process=="object"&&process?process:{},lve=(t,e,r,s)=>{typeof F6.emitWarning=="function"?F6.emitWarning(t,e,r,s):console.error(`[${r}]${e}:${t}`)},lP=globalThis.AbortController,ave=globalThis.AbortSignal;if(typeof lP>"u"){ave=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},lP=class{constructor(){e()}signal=new ave;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=F6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,lve("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var iwt=t=>!cve.has(t),jd=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),uve=t=>jd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?cP:null:null,cP=class extends Array{constructor(t){super(t),this.fill(0)}},nwt=class Nw{heap;length;static#e=!1;static create(e){let r=uve(e);if(!r)return[];Nw.#e=!0;let s=new Nw(e,r);return Nw.#e=!1,s}constructor(e,r){if(!Nw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},owt=class hve{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#S;#B;#E;#C;#b;#v;#c;#O;static unsafeExposeInternals(e){return{starts:e.#B,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#S,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:r=>e.#d(r),backgroundFetch:(r,s,i,n)=>e.#G(r,s,i,n),moveToTail:r=>e.#P(r),indexes:r=>e.#R(r),rindexes:r=>e.#T(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:f,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:E,fetchMethod:y,memoMethod:C,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:P,ignoreFetchAbort:Q,perf:k}=e;if(k!==void 0&&typeof k?.now!="function")throw new TypeError("perf option must have a now() method if s
globstarwhile`,R,te,_,ke,ot),this.matchOne(R.slice(te),_.slice(ke),D))return this.debug("globstar found match!",te,v,ot),!0;if(ot==="."||ot===".."||!U.dot&&ot.charAt(0)==="."){this.debug("dot detected!",R,te,_,ke);break}this.debug("globstar swallow a segment, and continue"),te++}return!!(D&&(this.debug(`
>>>nomatch,partial?`,R,te,_,ke),te===v))}let st;if(typeof j=="string"?(st=ge===j,this.debug("string match",j,ge,st)):(st=j.test(ge),this.debug("pattern match",j,ge,st)),!st)return!1}if(g===v&&S===M)return!0;if(g===v)return D;if(S===M)return g===v-1&&R[g]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(R){(0,r.assertValidPattern)(R);let _=this.options;if(R==="**")return t.GLOBSTAR;if(R==="")return"";let D,U=null;(D=R.match(y))?U=_.dot?w:C:(D=R.match(a))?U=(_.nocase?_.dot?h:u:_.dot?l:c)(D[1]):(D=R.match(B))?U=(_.nocase?_.dot?P:N:_.dot?Q:k)(D):(D=R.match(d))?U=_.dot?p:f:(D=R.match(m))&&(U=E);let W=s.AST.fromGlob(R,this.options).toMMPattern();return U&&typeof W=="object"&&Reflect.defineProperty(W,"test",{value:U}),W}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let R=this.set;if(!R.length)return this.regexp=!1,this.regexp;let _=this.options,D=_.noglobstar?$:_.dot?se:Qe,U=new Set(_.nocase?["i"]:[]),W=R.map(v=>{let M=v.map(ge=>{if(ge instanceof RegExp)for(let te of ge.flags.split(""))U.add(te);return typeof ge=="string"?Ht(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});M.forEach((ge,te)=>{let ke=M[te+1],ot=M[te-1];ge!==t.GLOBSTAR||ot===t.GLOBSTAR||(ot===void 0?ke!==void 0&&ke!==t.GLOBSTAR?M[te+1]="(?:\\/|"+D+"\\/)?"+ke:M[te]=D:ke===void 0?M[te-1]=ot+"(?:\\/|\\/"+D+")?":ke!==t.GLOBSTAR&&(M[te-1]=ot+"(?:\\/|\\/"+D+"\\/)"+ke,M[te+1]=t.GLOBSTAR))});let j=M.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&j.length>=1){let ge=[];for(let te=1;te<=j.length;te++)ge.push(j.slice(0,te).join("/"));return"(?:"+ge.join("|")+")"}return j.join("/")}).join("|"),[g,S]=R.length>1?["(?:",")"]:["",""];W="^"+g+W+S+"$",this.partial&&(W="^(?:\\/|"+g+W.slice(1,-1)+S+")$"),this.negate&&(W="^(?!"+W+").+$");try{this.regexp=new RegExp(W,[...U].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(R){return this.preserveMultipleSlashes?R.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(R)?["",...R.split(/\/+/)]:R.split(/\/+/)}match(R,_=this.partial){if(this.debug("match",R,this.pattern),this.comment)return!1;if(this.empty)return R==="";if(R==="/"&&_)return!0;let D=this.options;this.isWindows&&(R=R.split("\\").join("/"));let U=this.slashSplit(R);this.debug(this.pattern,"split",U);let W=this.set;this.debug(this.pattern,"set",W);let g=U[U.length-1];if(!g)for(let S=U.length-2;!g&&S>=0;S--)g=U[S];for(let S=0;S<W.length;S++){let v=W[S],M=U;if(D.matchBase&&v.length===1&&(M=[g]),this.matchOne(M,v,_))return D.flipNegate?!0:!this.negate}return D.flipNegate?!1:this.negate}static defaults(R){return t.minimatch.defaults(R).Minimatch}};t.Minimatch=es;var Pn=Ove();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Pn.AST}});var vt=Dve();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return vt.escape}});var bo=eJ();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return bo.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=es,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),Kwt=$s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=(f,p,m,E)=>{typeof s.emitWarning=="function"?s.emitWarning(f,p,m,E):console.error(`[${m}]${p}:${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof n>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(m,E){this._onabort.push(E)}},n=class{constructor(){p()}signal=new o;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(let E of this.signal._onabort)E(m);this.signal.onabort?.(m)}}};let f=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{f&&(f=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might
`);if(d===-1){NP("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${w}"`));let N=w.slice(0,B).toLowerCase(),P=w.slice(B+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}NP("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}cE.parseProxyResponse=NBt});var URe=A(Aa=>{"use strict";var vBt=Aa&&Aa.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),RBt=Aa&&Aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LRe=Aa&&Aa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vBt(e,t,r);return RBt(e,t),e},FRe=Aa&&Aa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.HttpsProxyAgent=void 0;var Uw=LRe(require("net")),kRe=LRe(require("tls")),TBt=FRe(require("assert")),_Bt=FRe(ip()),QBt=zI(),PBt=require("url"),OBt=DRe(),qw=(0,_Bt.default)("https-proxy-agent"),vP=class extends QBt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new PBt.URL(e):e,this.proxyHeaders=r?.headers??{},qw("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?MRe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){qw("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;i=kRe.connect({...this.connectOpts,servername:d&&Uw.isIP(d)?void 0:d})}else qw("Creating `net.Socket`: %o",this.connectOpts),i=Uw.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Uw.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT${o}:${r.port}HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}:${n[d]}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",DBt),r.secureEndpoint){qw("Upgrading socket connection to TLS");let d=r.servername||r.host;return kRe.connect({...MRe(r,"host","path","port"),socket:i,servername:Uw.isIP(d)?void 0:d})}return i}i.destroy();let h=new Uw.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{qw("Replaying proxy buffer for failed request"),(0,TBt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};vP.protocols=["http","https"];Aa.HttpsProxyAgent=vP;function DBt(t){t.resume()}function MRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var zRe=A(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var qRe=require("buffer"),CA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Eh.ERRORS=CA;function kBt(t){if(!qRe.Buffer.isEncoding(t))throw new Error(CA.INVALID_ENCODING)}Eh.checkEncoding=kBt;function GRe(t){return typeof t=="number"&&isFinite(t)&&UBt(t)}Eh.isFiniteInteger=GRe;function HRe(t,e){if(typeof t=="number"){if(!GRe(t)||t<0)throw new Error(e?CA.INVALID_OFFSET:CA.INVALID_LENGTH)}else throw new Error(e?CA.INVALID_OFFSET_NON_NUMBER:CA.INVALID_LENGTH_NON_NUMBER)}function MBt(t){HRe(t,!1)}Eh.checkLengthValue=MBt;function LBt(t){HRe(t,!0)}Eh.checkOffsetValue=LBt;function FBt(t,e){if(t<0||t>e.length)throw new Error(CA.INVALID_TARGET_OFFSET)}Eh.checkTargetOffset=FBt;function UBt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function qBt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof qRe.Buffer.prototype[t]>"u")throw new Error(`PlatformdoesnotsupportBuffer.prototype.${t}.`)}Eh.bigIntAndBufferInt64Check=qBt});var $Re=A(SJ=>{"use strict";Object.defineProperty(SJ,"__esModule",{value:!0});var rt=zRe(),VRe=4096,GBt="utf8",wJ=class t{constructor(e){if(this.length=0,this._encoding=GBt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(rt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(rt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(VRe);else{if(typeof e<"u")throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(VRe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffe
`,jOt=/\u2014 (\S+) (\S+)\n/g;function JOt(t,e){let r=t.inclusionProof,s=VW.fromString(r.checkpoint.envelope),i=ND.fromString(s.note);if(!YOt(s,e))throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function YOt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>bPe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?bPe.crypto.verify(r,i.publicKey,s.signature):!1})}var VW=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(zW))throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(zW),s=e.slice(0,r+1),n=e.slice(r+zW.length).matchAll(jOt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},ND=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};IS.LogCheckpoint=ND});var SPe=A(YW=>{"use strict";Object.defineProperty(YW,"__esModule",{value:!0});YW.verifyMerkleInclusion=XOt;var JW=ac(),$W=Ei(),WOt=Buffer.from([0]),KOt=Buffer.from([1]);function XOt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new $W.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalidindex:${s}`});let{inner:n,border:o}=ZOt(s,i);if(r.hashes.length!==n+o)throw new $W.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=nDt(t.canonicalizedBody),u=tDt(eDt(l,a,s),c);if(!JW.crypto.bufferEqual(u,e.logHash))throw new $W.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function ZOt(t,e){let r=rDt(t,e),s=sDt(t>>BigInt(r));return{inner:r,border:s}}function eDt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?jW(i,s):jW(s,i),t)}function tDt(t,e){return e.reduce((r,s)=>jW(s,r),t)}function rDt(t,e){return iDt(t^e-BigInt(1))}function sDt(t){return t.toString(2).split("1").length-1}function iDt(t){return t===0n?0:t.toString(2).length}function jW(t,e){return JW.crypto.digest("sha256",KOt,t,e)}function nDt(t){return JW.crypto.digest("sha256",WOt,t)}});var xPe=A(WW=>{"use strict";Object.defineProperty(WW,"__esModule",{value:!0});WW.verifyTLogSET=cDt;var BPe=ac(),oDt=Ei(),aDt=$E();function cDt(t,e){if(!(0,aDt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=lDt(t),o=Buffer.from(BPe.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return BPe.crypto.verify(o,i.publicKey,a)}))throw new oDt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function lDt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var vPe=A(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.verifyTLogBody=pDt;vD.verifyTLogInclusion=ADt;var NPe=yY(),ZW=Ei(),KW=EPe(),XW=CPe(),uDt=IPe(),hDt=wPe(),dDt=SPe(),fDt=xPe();function pDt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new ZW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/versionmismatch-expected:${r}/${s},received:${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==KW.DSSE_API_VERSION_V1)return(0,KW.verifyDSSETLogBody)(i,e);{let n=NPe.Entry.fromJSON(i);return(0,KW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,uDt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==XW.HASHEDREKORD_API_VERSION_V1)return(0,XW.verifyHashedRekordTLogBody)(i,e);{let n=NPe.Entry.fromJSON(i);return(0,XW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new ZW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupportedkind:${r}`})}}function ADt(t,e){let r=!1;if(mDt(t)&&((0,fDt.verifyTLogSET)(t,e),r=!0),gDt(t)){let s=(0,hDt.verifyCheckpoint)(t,e);(0,dDt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new ZW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function mDt(t){return t.inclusionPromise!==void 0}function gDt(t){return t.inclusionProof!==void 0}});var OPe=A(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.Verifier=void 0;var yDt=require("util"),jE=Ei(),RPe=fPe(),TPe=APe(),_Pe=yPe(),QPe=vPe(),eK=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifyS
`;return a.replace(/\n$/,"")}var RDe=vDe,TDe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_De=["scalar","sequence","mapping"];function QDe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(s){e[String(s)]=r})}),e}function PDe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(TDe.indexOf(r)===-1)throw new tn('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=QDe(e.styleAliases||null),_De.indexOf(this.kind)===-1)throw new tn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var js=PDe;function gK(t,e){var r=[];return t[e].forEach(function(s){var i=r.length;r.forEach(function(n,o){n.tag===s.tag&&n.kind===s.kind&&n.multi===s.multi&&(i=o)}),r[i]=s}),r}function ODe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function s(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(s);return t}function rk(t){return this.extend(t)}rk.prototype.extend=function(e){var r=[],s=[];if(e instanceof js)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new tn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof js))throw new tn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new tn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new tn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(n){if(!(n instanceof js))throw new tn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(rk.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(s),i.compiledImplicit=gK(i,"implicit"),i.compiledExplicit=gK(i,"explicit"),i.compiledTypeMap=ODe(i.compiledImplicit,i.compiledExplicit),i};var DDe=rk,kDe=new js("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),MDe=new js("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),LDe=new js("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),FDe=new DDe({explicit:[kDe,MDe,LDe]});function UDe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function qDe(){return null}function GDe(t){return t===null}var HDe=new js("tag:yaml.org,2002:null",{kind:"scalar",resolve:UDe,construct:qDe,predicate:GDe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zDe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function VDe(t){return t==="true"||t==="True"||t==="TRUE"}function $De(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var jDe=new js("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zDe,construct:VDe,predicate:$De,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}}
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function qke(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function qK(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var GK=new Array(256),HK=new Array(256);for(yf=0;yf<256;yf++)GK[yf]=CK(yf)?1:0,HK[yf]=CK(yf);var yf;function Gke(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||kK,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function zK(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=RDe(r),new tn(e,r)}function Be(t,e){throw zK(t,e)}function PS(t,e){t.onWarning&&t.onWarning.call(null,zK(t,e))}var IK={YAML:function(e,r,s){var i,n,o;e.version!==null&&Be(e,"duplication of %YAML directive"),s.length!==1&&Be(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),i===null&&Be(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),o=parseInt(i[2],10),n!==1&&Be(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&PS(e,"unsupported YAML version of the document")},TAG:function(e,r,s){var i,n;s.length!==2&&Be(e,"TAG directive accepts exactly two arguments"),i=s[0],n=s[1],FK.test(i)||Be(e,"ill-formed tag handle (first argument) of the TAG directive"),_h.call(e.tagMap,i)&&Be(e,'there is a previously declared suffix for "'+i+'" tag handle'),UK.test(n)||Be(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Be(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function Th(t,e,r,s){var i,n,o,a;if(e<r){if(a=t.input.slice(e,r),s)for(i=0,n=a.length;i<n;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Be(t,"expected valid JSON character");else Dke.test(a)&&Be(t,"the stream contains non-printable characters");t.result+=a}}function bK(t,e,r,s){var i,n,o,a;for(ts.isObject(r)||Be(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)n=i[o],_h.call(e,n)||(qK(e,n,r[n]),s[n]=!0)}function $A(t,e,r,s,i,n,o,a,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&Be(t,"nested arrays are not supported inside keys"),typeof i=="object"&&EK(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&EK(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(l=0,u=n.length;l<u;l+=1)bK(t,e,n[l],r);else bK(t,e,n,r);else!t.json&&!_h.call(r,i)&&_h.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Be(t,"duplicated mapping key")),qK(e,i,n),delete r[i];return e}function ck(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Be(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Vr(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Ef(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(uc(i))for(ck(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&s!==0&&t.lineIndent<r&&PS(t,"deficient indentation"),s}function kS(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||rn(r)))}functio
`,e-1))}function Hke(t,e,r){var s,i,n,o,a,c,l,u,h=t.kind,d=t.result,f;if(f=t.input.charCodeAt(t.position),rn(f)||VA(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(i=t.input.charCodeAt(t.position+1),rn(i)||r&&VA(i)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;f!==0;){if(f===58){if(i=t.input.charCodeAt(t.position+1),rn(i)||r&&VA(i))break}else if(f===35){if(s=t.input.charCodeAt(t.position-1),rn(s))break}else{if(t.position===t.lineStart&&kS(t)||r&&VA(f))break;if(uc(f))if(c=t.line,l=t.lineStart,u=t.lineIndent,Vr(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=l,t.lineIndent=u;break}}a&&(Th(t,n,o,!1),lk(t,t.line-c),n=o=t.position,a=!1),Ef(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return Th(t,n,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function zke(t,e){var r,s,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,s=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Th(t,s,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)s=t.position,t.position++,i=t.position;else return!0;else uc(r)?(Th(t,s,i,!0),lk(t,Vr(t,!1,e)),s=i=t.position):t.position===t.lineStart&&kS(t)?Be(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Be(t,"unexpected end of the stream within a single quoted scalar")}function Vke(t,e){var r,s,i,n,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Th(t,r,t.position,!0),t.position++,!0;if(a===92){if(Th(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),uc(a))Vr(t,!1,e);else if(a<256&&GK[a])t.result+=HK[a],t.position++;else if((o=Fke(a))>0){for(i=o,n=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=Lke(a))>=0?n=(n<<4)+o:Be(t,"expected hexadecimal character");t.result+=qke(n),t.position++}else Be(t,"unknown escape sequence");r=s=t.position}else uc(a)?(Th(t,r,s,!0),lk(t,Vr(t,!1,e)),r=s=t.position):t.position===t.lineStart&&kS(t)?Be(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}Be(t,"unexpected end of the stream within a double quoted scalar")}function $ke(t,e){var r=!0,s,i,n,o=t.tag,a,c=t.anchor,l,u,h,d,f,p=Object.create(null),m,E,y,C;if(C=t.input.charCodeAt(t.position),C===91)u=93,f=!1,a=[];else if(C===123)u=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Vr(t,!0,e),C=t.input.charCodeAt(t.position),C===u)return t.position++,t.tag=o,t.anchor=c,t.kind=f?"mapping":"sequence",t.result=a,!0;r?C===44&&Be(t,"expected the node content, but found ','"):Be(t,"missed comma between flow collection entries"),E=m=y=null,h=d=!1,C===63&&(l=t.input.charCodeAt(t.position+1),rn(l)&&(h=d=!0,t.position++,Vr(t,!0,e))),s=t.line,i=t.lineStart,n=t.position,jA(t,e,_S,!1,!0),E=t.tag,m=t.result,Vr(t,!0,e),C=t.input.charCodeAt(t.position),(d||t.line===s)&&C===58&&(h=!0,C=t.input.charCodeAt(++t.position),Vr(t,!0,e),jA(t,e,_S,!1,!0),y=t.result),f?$A(t,a,p,E,m,y,s,i,n):h?a.push($A(t,null,p,E,m,y,s,i,n)):a.push(m),Vr(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}Be(t,"unexpected end of the stream within a flow collection")}function jke(t,e){var r,s,i=tk,n=!1,o=!1,a=e,c=0,l=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)s=!1;else if(h===62)s=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)tk===i?i=h===43?yK:Oke:Be(t,"repeat of a chomping mode identifier");else if((u=Uke(h))>=0)u===0?Be(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Be(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Ef(h)){do h=t.input.charCodeAt(++t.position);while(Ef(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!uc(h)&&h!==0)}for(;h!==0;){for(ck(t),t.lineIndent=0,h=t.input.charCodeAt(t.p
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!uc(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Th(t,r,t.position,!1)}return!0}function wK(t,e){var r,s=t.tag,i=t.anchor,n=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Be(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!rn(o))));){if(a=!0,t.position++,Vr(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,jA(t,e,LK,!1,!0),n.push(t.result),Vr(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Be(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=s,t.anchor=i,t.kind="sequence",t.result=n,!0):!1}function Jke(t,e,r){var s,i,n,o,a,c,l=t.tag,u=t.anchor,h={},d=Object.create(null),f=null,p=null,m=null,E=!1,y=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),C=t.input.charCodeAt(t.position);C!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Be(t,"tab characters must not be used in indentation")),s=t.input.charCodeAt(t.position+1),n=t.line,(C===63||C===58)&&rn(s))C===63?(E&&($A(t,h,d,f,p,null,o,a,c),f=p=m=null),y=!0,E=!0,i=!0):E?(E=!1,i=!0):Be(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=s;else{if(o=t.line,a=t.lineStart,c=t.position,!jA(t,r,MK,!1,!0))break;if(t.line===n){for(C=t.input.charCodeAt(t.position);Ef(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),rn(C)||Be(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&($A(t,h,d,f,p,null,o,a,c),f=p=m=null),y=!0,E=!1,i=!1,f=t.tag,p=t.result;else if(y)Be(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(y)Be(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===n||t.lineIndent>e)&&(E&&(o=t.line,a=t.lineStart,c=t.position),jA(t,e,QS,!0,i)&&(E?p=t.result:m=t.result),E||($A(t,h,d,f,p,m,o,a,c),f=p=m=null),Vr(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&C!==0)Be(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&$A(t,h,d,f,p,null,o,a,c),y&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),y}function Yke(t){var e,r=!1,s=!1,i,n,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Be(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(s=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Be(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!rn(o);)o===33&&(s?Be(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),FK.test(i)||Be(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),Mke.test(n)&&Be(t,"tag suffix cannot contain flow indicator characters")}n&&!UK.test(n)&&Be(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Be(t,"tag name is malformed: "+n)}return r?t.tag=n:_h.call(t.tagMap,i)?t.tag=t.tagMap[i]+n:i==="!"?t.tag="!"+n:i==="!!"?t.tag="tag:yaml.org,2002:"+n:Be(t,'undeclared tag handle "'+i+'"'),!0}function Wke(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Be(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!rn(r)&&!VA(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Be(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Kke(t){var e,r,s;if(s=t.input.charCodeAt(t.position),s!==42)return!1;for(s=
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Gke(t,e),s=t.indexOf("\0");for(s!==-1&&(r.position=s,Be(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Xke(r);return r.documents}function Zke(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var s=VK(t,r);if(typeof e!="function")return s;for(var i=0,n=s.length;i<n;i+=1)e(s[i])}function eMe(t,e){var r=VK(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new tn("expected a single document in the stream, but found more")}}var tMe=Zke,rMe=eMe,$K={loadAll:tMe,load:rMe},jK=Object.prototype.toString,JK=Object.prototype.hasOwnProperty,uk=65279,sMe=9,sC=10,iMe=13,nMe=32,oMe=33,aMe=34,sk=35,cMe=37,lMe=38,uMe=39,hMe=42,YK=44,dMe=45,OS=58,fMe=61,pMe=62,AMe=63,mMe=64,WK=91,KK=93,gMe=96,XK=123,yMe=124,ZK=125,Js={};Js[0]="\\0";Js[7]="\\a";Js[8]="\\b";Js[9]="\\t";Js[10]="\\n";Js[11]="\\v";Js[12]="\\f";Js[13]="\\r";Js[27]="\\e";Js[34]='\\"';Js[92]="\\\\";Js[133]="\\N";Js[160]="\\_";Js[8232]="\\L";Js[8233]="\\P";var EMe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],CMe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function IMe(t,e){var r,s,i,n,o,a,c;if(e===null)return{};for(r={},s=Object.keys(e),i=0,n=s.length;i<n;i+=1)o=s[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&JK.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function bMe(t){var e,r,s;if(e=t.toString(16).toUpperCase(),t<=255)r="x",s=2;else if(t<=65535)r="u",s=4;else if(t<=4294967295)r="U",s=8;else throw new tn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ts.repeat("0",s-e.length)+e}var wMe=1,iC=2;function SMe(t){this.schema=t.schema||kK,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=ts.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=IMe(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?iC:wMe,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function SK(t,e){for(var r=ts.repeat(" ",e),s=0,i=-1,n="",o,a=t.length;s<a;)i=t.indexOf(`
`+t.slice(o+1):c+=t.slice(i),c.slice(1)}function _Me(t){for(var e="",r=0,s,i=0;i<t.length;r>=65536?i+=2:i++)r=tC(t,i),s=Js[r],!s&&nC(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=s||bMe(r);return e}function QMe(t,e,r){var s="",i=t.tag,n,o,a;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(Kl(t,e,a,!1,!1)||typeof a>"u"&&Kl(t,e,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}function TK(t,e,r,s){var i="",n=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Kl(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Kl(t,e+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=ik(t,e)),t.dump&&sC===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=n,t.dump=i||"[]"}function PMe(t,e,r){var s="",i=t.tag,n=Object.keys(r),o,a,c,l,u;for(o=0,a=n.length;o<a;o+=1)u="",s!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=n[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Kl(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Kl(t,e,l,!1,!1)&&(u+=t.dump,s+=u));t.tag=i,t.dump="{"+s+"}"}function OMe(t,e,r,s){var i="",n=t.tag,o=Object.keys(r),a,c,l,u,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new tn("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)d="",(!s||i!=="")&&(d+=ik(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),Kl(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&sC===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=ik(t,e)),Kl(t,e+1,u,!0,h)&&(t.dump&&sC===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=n,t.dump=i||"{}"}function _K(t,e,r){var s,i,n,o,a,c;for(i=r?t.explicitTypes:t.implicitTypes,n=0,o=i.length;n<o;n+=1)if(a=i[n],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,jK.call(a.represent)==="[object Function]")s=a.represent(e,c);else if(JK.call(a.represent,c))s=a.represent[c](e,c);else throw new tn("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=s}return!0}return!1}function Kl(t,e,r,s,i,n,o){t.tag=null,t.dump=r,_K(t,r,!1)||_K(t,r,!0);var a=jK.call(t.dump),c=s,l;s&&(s=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,d;if(u&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")s&&Object.keys(t.dump).length!==0?(OMe(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(PMe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?TK(t,e-1,t.dump,i):TK(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(QMe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&RMe(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new tn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function DMe(t,e){var r=[],s=[],i,n;for(ok(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=new Array(n)}function ok(t,e,r){var s,i,n;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,n=t.length;i<n;i+=1)ok(t[i],e,r);else for(s=Object.keys(t),i=0,n=s.length;i<n;i+=1)ok(t[s[i]],e,r)}function kMe(t,e){e=e||{};var r=new SMe(e);r.noRefs||DMe(t,r);var s=t;return r.replacer&&(s=r.replacer.call({"":s},"",s)),Kl(r,0,s,!0,!0)?r.dump+`
`:""}var MMe=kMe,LMe={dump:MMe};function hk(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var iX=$K.load,NDt=$K.loadAll,vDt=LMe.dump;var RDt=hk("safeLoad","load"),TDt=hk("safeLoadAll","loadAll"),_Dt=hk("safeDump","dump");var oX=O(require("os"),1);function Xl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function dk(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Qh(t,e,r){let s=new fk(t,e,r);process.stdout.write(s.toString()+oX.EOL)}function pk(t,e=""){Qh(t,{},e)}var nX="::",fk=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=nX+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${qMe(i)}`)}}return e+=`${nX}${UMe(this.message)}`,e}};function UMe(t){return Xl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function qMe(t){return Xl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var aX=O(require("crypto"),1),LS=O(require("fs"),1),MS=O(require("os"),1);function Ak(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unabletofindenvironmentvariableforfilecommand${t}`);if(!LS.existsSync(r))throw new Error(`Missingfileatpath:${r}`);LS.appendFileSync(r,`${Xl(e)}${MS.EOL}`,{encoding:"utf8"})}function mk(t,e){let r=`ghadelimiter_${aX.randomUUID()}`,s=Xl(e);if(t.includes(r))throw new Error(`Unexpectedinput:nameshouldnotcontainthedelimiter"${r}"`);if(s.includes(r))throw new Error(`Unexpectedinput:valueshouldnotcontainthedelimiter"${r}"`);return`${t}<<${r}${MS.EOL}${s}${MS.EOL}${r}`}var eF=O(require("os"),1);var aI=O(require("http"),1),G2=O(require("https"),1);function gk(t){let e=t.protocol==="https:";if(GMe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new FS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new FS(`http://${r}`)}else return}function GMe(t){if(!t.hostname)return!1;let e=t.hostname;if(HMe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function HMe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var FS=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xh=O(oC(),1),Dne=O(zm(),1),Qr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},mr;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotF
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functiondI(t,e){if(process.env.GITHUB_OUTPUT||"")returnAk("OUTPUT",mk(t,e));process.stdout.write(eF.EOL),Qh("set-output",{name:t},Xl(e))}functionOo(){returnprocess.env.RUNNER_DEBUG==="1"}functionH(t){Qh("debug",{},t)}functionfI(t,e={}){Qh("error",dk(e),tinstanceofError?t.toString():t)}functionZs(t,e={}){Qh("warning",dk(e),tinstanceofError?t.toString():t)}functionpt(t){process.stdout.write(t+eF.EOL)}functionS$e(t){pk("group",t)}functionB$e(){pk("endgroup")}functionFs(t,e){returnw$e(this,void0,void0,function*(){S$e(t);letr;try{r=yielde()}finally{B$e()}returnr})}functionSc(t,e){if(process.env.GITHUB_STATE||"")returnAk("STATE",mk(t,e));Qh("save-state",{name:t},Xl(e))}varsoe=O(require("os"),1);functioned(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functiontF(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}functiontd(t,e,r){lets=newrF(t,e,r);process.stdout.write(s.toString()+soe.EOL)}functionsF(t,e=""){td(t,{},e)}varroe="::",rF=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){lete=roe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letsinthis.properties)if(this.properties.hasOwnProperty(s)){leti=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${N$e(i)}`)}}returne+=`${roe}${x$e(this.message)}`,e}};functionx$e(t){returned(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionN$e(t){returned(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}varioe=O(require("crypto"),1),Gx=O(require("fs"),1),qx=O(require("os"),1);functioniF(t,e){letr=process.env[`GITHUB_${t}`];if(!r)thrownewError(`Unable to find environment variable for file command ${t}`);if(!Gx.existsSync(r))thrownewError(`Missing file at path: ${r}`);Gx.appendFileSync(r,`${ed(e)}${qx.EOL}`,{encoding:"utf8"})}functionnoe(t,e){letr=`ghadelimiter_${ioe.randomUUID()}`,s=ed(e);if(t.includes(r))thrownewError(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))thrownewError(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${qx.EOL}${s}${qx.EOL}${r}`}varuoe=O(require("os"),1),hoe=O(require("path"),1);varHx=O(oC(),1),R$e=O(zm(),1);varBc;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Bc||(Bc={}));varooe;(function(t){t.Accept="accept",t.ContentType="content-type"})(ooe||(ooe={}));varaoe;(function(t){t.ApplicationJson="application/json"})(aoe||(aoe={}));varpLt=[Bc.MovedPermanently,Bc.ResourceMoved,Bc.SeeOther,Bc.TemporaryRedirect,Bc.PermanentRedirect],ALt=[Bc.BadGateway,Bc.ServiceUnavailable,Bc.GatewayTimeout];varloe=require("os"),AI=require("fs"),nF=function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(o){o(n)})}returnnew(r||(r=Promise))(function(n,o){functiona(u){try{l(s.next(u))}ca
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionfoe(t){process.exitCode=cF.Failure,D$e(t)}functionV(t){td("debug",{},t)}functionD$e(t,e={}){td("error",tF(e),tinstanceofError?t.toString():t)}functionDo(t,e={}){td("warning",tF(e),tinstanceofError?t.toString():t)}functionJ(t){process.stdout.write(t+uoe.EOL)}functionk$e(t){sF("group",t)}functionM$e(){sF("endgroup")}functionrd(t,e){returnO$e(this,void0,void0,function*(){k$e(t);letr;try{r=yielde()}finally{M$e()}returnr})}functionzx(t,e){if(process.env.GITHUB_STATE||"")returniF("STATE",noe(t,e));td("save-state",{name:t},ed(e))}functionpoe(t){returnprocess.env[`STATE_${t}`]||""}var$T=O(require("fs"),1),tV=O(require("os"),1),rV=O(require("path"),1);varTF=O(require("crypto"),1),ri=O(require("fs"),1);varPJe=O(vF(),1);varnN=O(require("os"),1),La=O(require("path"),1);varLo=O(vF(),1),ice=O(require("stream"),1),nce=O(require("util"),1),_F=require("assert");varsce=function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(o){o(n)})}returnnew(r||(r=Promise))(function(n,o){functiona(u){try{l(s.next(u))}catch(h){o(h)}}functionc(u){try{l(s.throw(u))}catch(h){o(h)}}functionl(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},sN=class{constructor(e,r,s){if(e<1)thrownewError("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)thrownewError("min seconds should be less than or equal to max seconds")}execute(e,r){returnsce(this,void0,void0,function*(){lets=1;for(;s<this.maxAttempts;){try{returnyielde()}catch(n){if(r&&!r(n))thrown;pt(n.message)}leti=this.getSleepAmount();pt(`Waiting ${i} seconds before trying again`),yieldthis.sleep(i),s++}returnyielde()})}getSleepAmount(){returnMath.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){returnsce(this,void0,void0,function*(){returnnewPromise(r=>setTimeout(r,e*1e3))})}};varvc=function(t,e,r,s){functioni(n){returnninstanceofr?n:newr(function(o){o(n)})}returnnew(r||(r=Promise))(function(n,o){functiona(u){try{l(s.next(u))}catch(h){o(h)}}functionc(u){try{l(s.throw(u))}catch(h){o(h)}}functionl(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},iN=classextendsError{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},oce=process.platform==="win32",M2t=process.platform==="darwin",DJe="actions/tool-cache";functionFo(t,e,r,s){returnvc(this,void0,void0,function*(){e=e||La.join(dce(),TF.randomUUID()),yieldpu(La.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);leti=3,n=RF("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=RF("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);returnyieldnewsN(i,n,o).execute(()=>vc(this,void0,void0,function*(){returnyieldkJe(t,e||"",r,s)}),c=>!(cinstanceofiN&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}functionkJe(t,e,r,s){returnvc(this,void0,void0,function*(){if(ri.existsSync(e))thrownewError(`Destination file path ${e} already exists`);leti=newPo(DJe,[],{allowRetries:!1});r&&(H("set auth"),s===void0&&(s={}),s.authorization=r);letn=yieldi.get(t,s);if(n.message.statusCode!==200){letu=newiN(n.message.statusCode);throwH(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),u}leto=nce.promisify(ice.pipeline),c=RF("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),l=!1;try{returnyieldo(c,ri.createWriteStream(e)),H("download complete"),l=!0,e}finally{if(!l){H("download failed");try{yieldkx(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}functionace(t,e){returnvc(this,arguments,void0,function*(r,s,i="xz"){if(!r)thrownewError("parameter 'file' is required");s=yielduce(s),H("Checking tar --version");letn="";yieldVn("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>n+=u.toString(),stderr:u=>n
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new xI(n));return s.searchPaths.push(...DF(s.patterns)),s})}static stat(e,r,s){return UF(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield tg.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Brokensymlink'${e.path}'`);return}throw new Error(`Noinformationfoundforthepath'${e.path}'.Thismayindicateabrokensymboliclink.`)}throw n}else i=yield tg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield tg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){H(`Symlinkcycledetectedforpath'${e.path}'andrealpath'${n}'`);return}s.push(n)}return i})}};var gYe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Fce(t,e){return gYe(this,void 0,void 0,function*(){return yield uN.create(t,e)})}var xN=O(require("crypto"),1),ig=O(require("fs"),1),Kf=O(require("path"),1),Tue=O(vue(),1),_ue=O(require("util"),1);var DI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(DI||(DI={}));var Ri;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ri||(Ri={}));var jn;(function(t){t.GNU="gnu",t.BSD="bsd"})(jn||(jn={}));var SN=2,BN=5e3,oU=5e3,aU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Rue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kI="cache.tar",cU="manifest.txt",jFt=10*Math.pow(1024,3);var sg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},pKe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),i(a,c,o.done,o.value)})}}function i(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}},AKe="1.0";function MI(){return sg(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Kf.join(s,"actions","temp")}let r=Kf.join(e,xN.randomUUID());return yield pu(r),r})}function Tc(t){return ig.statSync(t).size}function lU(t){return sg(this,void 0,void 0,function*(){var e,r,s,i,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield Fce(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=pKe(c.globGenerator()),h;h=yield u.next(),e=h.done,!e;l=!0){i=h.value,l=!1;let f=Kf.relative(a,i).replace(new RegExp(`\\${Kf.sep}`,"g"),"/");H(`Matched:${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function LI(t){return sg(this,void 0,void 0,function*(){return _ue.promisify(ig.unlink)(t)})}function Que(t){return sg(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),H(`Checking${e}${r.join(" ")}`);try{yield Vn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){H(i.message)}return s=s.trim(),H(s),s})}function FI(){return sg(this,void 0,void 0,function*(){let t=yield Que("zstd",["--quiet"]),e=Tue.clean(t);return H(`zstdversion:${e}`),t===""?Ri.Gzip:Ri.ZstdWithoutLong})}function cd(t){return t===Ri.Gzip?DI.Gzip:DI.Zstd}function Pue(){return sg(this,void 0,void 0,function*(){return ig.existsSync(aU)?aU:(yield Que("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}function uU(t,e){if(e===void 0)throw Error(`Expected${t}butvaluewasundefiend`);return e}function ng(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(AKe),xN.createHash("sha256").update(s.join("|")).digest("hex")}function Oue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Dg=O(require("fs"),1),nme=require("url");var _c=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Due=require("node:os"),kue=O(require("node:util"),1),Mue=O(require("node:process"),1);function Lue(t,...e){Mue.default.stderr.write(`${kue.default.format(t,...e)}${Due.EOL}`)}var Fue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,que,hU=[],dU=[],vN=[];Fue&&fU(Fue);var Gue=Object.assign(t=>Hue(t),{enable:fU,enabled:pU,disable:mKe,log:Lue});function fU(t){que=t,hU=[],dU=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?dU.push(r.substring(1)):hU.push(r);for(let r of vN)r.enabled=pU(r.namespace)}function pU(t){if(t.endsWith("*"))return!0;for(let e of dU)if(Uue(t,e))return!1;for(let e of hU)if(Uue(t,e))return!0;return!1}function Uue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],f="";for(let p of e)p==="*"&&f==="*"||(f=p,d.push(p));r=d.join("")}let s=0,i=0,n=r.length,o=t.length,a=-1,c=-1;for(;s<o&&i<n;)if(r[i]==="*"){if(a=i,i++,i===n)return!0;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else if(r[i]===t[s])i++,s++;else if(a>=0){if(i=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else return!1;let l=s===t.length,u=i===r.length,h=i===r.length-1&&r[i]==="*";return l&&(u||h)}function mKe(){let t=que||"";return fU(""),t}function Hue(t){let e=Object.assign(r,{enabled:pU(t),destroy:gKe,log:Gue.log,namespace:t,extend:yKe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t}${s[0]}`),e.log(...s))}return vN.push(e),e}function gKe(){let t=vN.indexOf(this);return t>=0?(vN.splice(t,1),!0):!1}function yKe(t){let e=Hue(`${this.namespace}:${t}`);return e.log=this.log,e}var og=Gue;var AU=["verbose","info","warning","error"],zue={verbose:400,info:300,warning:200,error:100};function Vue(t,e){e.log=(...r)=>{t.log(...r)}}function $ue(t){return AU.includes(t)}function RN(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,i=og(t.namespace);i.log=(...u)=>{og.log(...u)};function n(u){if(u&&!$ue(u))throw new Error(`Unknownloglevel'${u}'.Acceptablevalues:${AU.join(",")}`);s=u;let h=[];for(let d of e)o(d)&&h.push(d.namespace);og.enable(h.join(","))}r&&($ue(r)?n(r):console.error(`${t.logLevelEnvVarName}settounknownloglevel'${r}';loggingisnotenabled.Acceptablevalues:${AU.join(", ")}.`));function o(u){return!!(s&&zue[u.level]<=zue[s])}function a(u,h){let d=Object.assign(u.extend(h),{level:h});if(Vue(u,d),o(d)){let f=og.disable();og.enab
${wKe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function PN(t){return t instanceof Ti?!0:Zf(t)&&t.name==="RestError"}function un(t,e){return Buffer.from(t,e)}var ON=O(require("node:http"),1),DN=O(require("node:https"),1),CU=O(require("node:zlib"),1),Xue=require("node:stream");var Go=UI("ts-http-runtime");var SKe={};function qI(t){return t&&typeof t.pipe=="function"}function Kue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Zue(t){return t&&typeof t.byteLength=="number"}var kN=class extends Xue.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},IU=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new _c("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new qa;Go.info(`requestto'${l.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=vKe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,m=new kN(p);m.on("error",E=>{Go.error("Error in upload progress",E)}),qI(a)?a.pipe(m):m.end(a),a=m}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=BKe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?xKe(l,u):l;let f=e.onDownloadProgress;if(f){let p=new kN(f);p.on("error",m=>{Go.error("Error in download progress",m)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await NKe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();qI(a)&&(l=Kue(a));let u=Promise.resolve();qI(c)&&(u=Kue(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(h=>{Go.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=n?ON.default.request(a,c):DN.default.request(a,c);u.once("error",h=>{l(new Ti(h.message,{code:h.code??Ti.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new _c("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),s&&qI(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):Zue(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Go.error("Unrecognized body type",s),l(new Ti("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?ON.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new ON.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return DN.default.globalAgent;let i=e.tlsSettings??SKe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Go.info("No cached TLS Agent exist, creating a new Agent"),n=new DN.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function BKe(t){let e=Jn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function oZe(t){return t instanceof Uint8Array?t.byteLength:nv(t)?t.size===-1?void 0:t.size:void 0}function aZe(t){let e=0;for(let r of t){let s=oZe(r);if(s===void 0)return;e+=s}return e}async function cZe(t,e,r){let s=[un(`--${r}`,"utf-8"),...e.flatMap(n=>[un(`\r
`,"utf-8")],i=aZe(s);i&&t.headers.set("Content-Length",i),t.body=await tde(s)}var VI="multipartPolicy",lZe=70,uZe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hZe(t){if(t.length>lZe)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!uZe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}function av(){return{name:VI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipartboundarywasspecifiedas${o}intheheader,butgot${r}intherequestbody`);return r??=o,r?hZe(r):r=iZe(),t.headers.set("Content-Type",`${n};boundary=${r}`),await cZe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cv(){return QN()}var rde=RN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),THt=rde.logger;function Oc(t){return rde.createClientLogger(t)}var Dc=Oc("core-rest-pipeline");function qU(t={}){return LN({logger:Dc.info,...t})}var GU=FN;function HU(t={}){return UN(t)}var lv=O(require("node:os"),1),uv=O(require("node:process"),1);function sde(){return"User-Agent"}async function ide(t){if(uv.default&&uv.default.versions){let e=`${lv.default.type()}${lv.default.release()};${lv.default.arch()}`,r=uv.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})`)}}var hv="1.22.2";function EZe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function nde(){return sde()}async function dv(t){let e=new Map;e.set("core-rest-pipeline",hv),await ide(e);let r=EZe(e);return t?`${t}${r}`:r}var ode=nde(),ade="userAgentPolicy";function zU(t={}){let e=dv(t.userAgentPrefix);return{name:ade,async sendRequest(r,s){return r.headers.has(ode)||r.headers.set(ode,await e),s(r)}}}var Xn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function VU(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Xn(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var SZe="The delay was aborted.";function $I(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return VU(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??SZe})}function ud(t){if(Zf(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}`}}function cde(t){return Zf(t)}function fg(){return Xf()}var xt=rp;var lde=Symbol("rawContent");function jU(t){return typeof t[lde]=="function"}function ude(t){return jU(t)?t[lde]():t}var fv=VI;function JU(){let t=av();return{name:fv,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)jU(s.body)&&(s.body=ude(s.body));return t.sendRequest(e,r)}}}var YU=qN;function WU(){return GN()}function KU(t={}){return VN(t)}function XU(){return $N()}function hd(t){return kU(t)}function ZU(t,e){return rv(t,e)}var hde="setClientRequestIdPolicy";function eq(t="x-ms-client-request-id"){return{name:hde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function tq(t){return sv(t)}function rq(t){return iv(t)}var pg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function dde(t={}){let e=new sq(t.parentContext);return t.span&&(e=e.setValue(pg.span,t.span)),t.namespace&&(e=e.setValue(pg.namespace,t.namespace)),e}var sq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!J7e(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",Pr("InvalidTag",h,_i(t,n))}let l=H7e(t,n);if(l===!1)return Pr("InvalidAttr","Attributes for '"+c+"' have open quote.",_i(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let h=n-u.length;u=u.substring(0,u.length-1);let d=Yde(u,e);if(d===!0)s=!0;else return Pr(d.err.code,d.err.msg,_i(t,h+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Pr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",_i(t,o));if(r.length===0)return Pr("InvalidTag","Closing tag '"+c+"' has not been opened.",_i(t,o));{let h=r.pop();if(c!==h.tagName){let d=_i(t,h.tagStartPos);return Pr("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",_i(t,o))}r.length==0&&(i=!0)}}else return Pr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",_i(t,n));else{let h=Yde(u,e);if(h!==!0)return Pr(h.err.code,h.err.msg,_i(t,n-u.length+h.err.line));if(i===!0)return Pr("InvalidXml","Multiple possible root nodes found.",_i(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=Jde(t,n);continue}else if(t[n+1]==="?"){if(n=jde(t,++n),n.err)return n}else break;else if(t[n]==="&"){let h=$7e(t,n);if(h==-1)return Pr("InvalidChar","char '&' is not expected.",_i(t,n));n=h}else if(i===!0&&!$de(t[n]))return Pr("InvalidXml","Extra text at the end",_i(t,n));t[n]==="<"&&n--}}else{if($de(t[n]))continue;return Pr("InvalidChar","char '"+t[n]+"' is not expected.",_i(t,n))}if(s){if(r.length==1)return Pr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",_i(t,r[0].tagStartPos));if(r.length>0)return Pr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pr("InvalidXml","Start tag expected.",1);return!0}function $de(t){return t===" "||t===" "||t===`
`||t==="\r"}function jde(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Pr("InvalidXml","XML declaration allowed only at the start of the document.",_i(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Jde(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var q7e='"',G7e="'";function H7e(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===q7e||t[e]===G7e)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}var z7e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Yde(t,e){let r=Sv(t,z7e),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",i0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",i0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Pr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",i0(r[i]));let n=r[i][2];if(!j7e(n))return Pr("InvalidAttr","Attribute '"+n+"' is an invalid name.",i0(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Pr("InvalidAttr","Attribute '"+n+"' is repeated.",i0(r[i]))}return!0}function V7e(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function $7e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,V7e(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Pr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function j7e(t){return Iq(t)}function J7e(t){return Iq(t)}function _i(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function i0(t){return t.startIndex+t[1].length}var Wde={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"},Kde={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new pn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new a0(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=Eg(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=h.indexOf(":");f!==-1&&(h=h.substr(f+1))}h=Rq(i.transformTagName,h,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&i.unpairedTagsSet.has(h))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${h}>`);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=Tq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),n.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new pn(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Eg(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let h=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=Eg(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:h}]):r.add(i.textNodeName,d),a=u+2}else{let u=Tq(t,a,i.removeNSPrefix);if(!u){let P=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${P}"`)}let h=u.tagName,d=u.rawTagName,f=u.tagExp,p=u.attrExpPresent,m=u.closeIndex;if({tagName:h,tagExp:f}=Rq(i.transformTagName,h,f,i),i.strictReservedNames&&(h===i.commentPropName||h===i.cdataPropName||h===i.textNodeName||h===i.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),f=h):f=f.substr(0,f.length-1),p=h!==f);let C=null,w={},B;B=yet(d),h!==e.tagname&&this.matcher.push(h,{},B),h!==f&&p&&(C=this.buildAttributesMap(f,this.matcher,h),C&&(w=get(C,i))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let P="";if(y)a=u.closeIndex;else if(i.unpairedTagsSet.has(h))a=u.closeIndex;else{let k=this.readStopNodeData(t,d,m+1);if(!k)throw new Error(`Unexpected end of ${d}`);a=k.i,P=k.tagContent}let Q=new pn(h);C&&(Q[":@"]=C),Q.add(i.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(y){({tagName:h,tagExp:f}=Rq(i.transformTagName,h,f,i));let P=new pn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(h)){let P=new pn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new pn(h);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),r=P}s="",a=m}}}elses+=t[a];returne.child};functionB
`}),s}getCanonicalizedResourceString(e){let r=Fv(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=Uv(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var yr=class extends hp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new d0(e,r,this)}computeHMACSHA256(e){return(0,vfe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var is=Oc("storage-common");var $o;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})($o||($o={}));var md={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:$o.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Xet=new Xn("The operation was aborted."),f0=class extends Fc{retryOptions;constructor(e,r,s=md){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:md.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):md.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:md.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:md.maxRetryDelayInMs):md.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:md.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:md.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=Lv(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Ad(i.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(is.info(`RetryPolicy:=====>Try=${s}${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(is.error(`RetryPolicy:Caughterror,message:${a.message},code:${a.code}`),!this.shouldRetry(n,s,o,a))throw a}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return is.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return is.info(`RetryPolicy:Networkerror${o}found,willretry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return is.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return is.info(`RetryPolicy:Willretryforstatuscode${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(qe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(is.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case $o.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case $o.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return is.info(`RetryPolicy:Delayfor${i}ms`),qv(i,s,Xet)}};var p0=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new f0(e,r,this.retryOptions)}};var Zet="storageBrowserPolicy";function Rfe(){return{name:Zet,async sendRequest(t,e){return xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ad(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}var ett="StorageCorrectContentLengthPolicy";function Tfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ett,async send
`}),a}function i(n){let o=Fv(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Uv(n.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let d=h.toLowerCase();l[d]=c[h],u.push(d)}u.sort();for(let h of u)a+=`
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,n,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function lst(t,e){if(t=Cp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function ust(t,e){if(t=Cp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,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:n}}function hst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,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:n}}function dst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,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:n}}function fst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,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:n}}function pst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,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:n}}function Ep(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Cp(t){let e=t.version?t.version:Vv;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}var N0=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=fg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ga||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ga||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 Se.withSpan("BlobLeaseClient-acquireLease",r,async s=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ga||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ga||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 Se.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ga||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ga||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
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"}};Pg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sp=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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 M0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var hit=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Q8=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);pt(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function VAe(t,e,r){return hit(this,void 0,void 0,function*(){var s;let i=new Tu(t),n=i.getBlockBlobClient(),o=new Q8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),H(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Zs(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var jAe=O(require("buffer"),1),il=O(require("fs"),1),JAe=O(require("stream"),1),YAe=O(require("util"),1);var KR=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function XR(t){return t?t>=200&&t<300:!1}function dit(t){return t?t>=500:!0}function fit(t){return t?[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout].includes(t):!1}function pit(t){return KR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function $Ae(t,e,r){return KR(this,arguments,void 0,function*(s,i,n,o=SN,a=BN,c=void 0){let l="",u=1;for(;u<=o;){let h,d,f=!1;try{h=yield i()}catch(p){c&&(h=c(p)),f=!0,l=p.message}if(h&&(d=n(h),!dit(d)))return h;if(d&&(f=fit(d),l=`Cache service responded with ${d}`),H(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){H(`${s} - Error is not retryable`);break}yield pit(a),u++}throw Error(`${s} failed: ${l}`)})}function L0(t,e){return KR(this,arguments,void 0,function*(r,s,i=SN,n=BN){return yield $Ae(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof bc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Og(t,e){return KR(this,arguments,void 0,function*(r,s,i=SN,n=BN){return yield $Ae(r,s,o=>o.message.statusCode,i,n)})}var Ko=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Ait(t,e){return Ko(this,void 0,void 0,function*(){yield YAe.promisify(JAe.pipeline)(t.message,e)})}var ZR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.
Othercacheswithsimilarkey:`);for(let a of n?.artifactCaches||[])H(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${a?.creationTime}`)}}})}function k8(t,e,r){return yn(this,void 0,void 0,function*(){let s=new nme.URL(t),i=ZAe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield KAe(t,e,i):i.concurrentBlobDownloads?yield WAe(t,e,i):yield eT(t,e):yield eT(t,e)})}function ame(t,e,r){return yn(this,void 0,void 0,function*(){let s=D8(),i=ng(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield L0("reserveCache",()=>yn(this,void 0,void 0,function*(){return s.postJson(U0("caches"),n)}))})}function ime(t,e){return`bytes${t}-${e}/*`}function wit(t,e,r,s,i){return yn(this,void 0,void 0,function*(){H(`Uploadingchunkofsize${i-s+1}bytesatoffset${s}withcontentrange:${ime(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":ime(s,i)},o=yield Og(`uploadChunk(start:${s},end:${i})`,()=>yn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!XR(o.message.statusCode))throw new Error(`Cacheservicerespondedwith${o.message.statusCode}duringuploadchunk.`)})}function Sit(t,e,r,s){return yn(this,void 0,void 0,function*(){let i=Tc(r),n=U0(`caches/${e.toString()}`),o=Dg.openSync(r,"r"),a=P8(s),c=uU("uploadConcurrency",a.uploadConcurrency),l=uU("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>yn(this,void 0,void 0,function*(){for(;h<i;){let d=Math.min(i-h,l),f=h,p=h+d-1;h+=l,yield wit(t,n,()=>Dg.createReadStream(r,{fd:o,start:f,end:p,autoClose:!1}).on("error",m=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${m.message}`)}),f,p)}})))}finally{Dg.closeSync(o)}})}function Bit(t,e,r){return yn(this,void 0,void 0,function*(){let s={size:r};return yield L0("commitCache",()=>yn(this,void 0,void 0,function*(){return t.postJson(U0(`caches/${e.toString()}`),s)}))})}function M8(t,e,r,s){return yn(this,void 0,void 0,function*(){if(P8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield VAe(r,e,s)}else{let n=D8();H("Upload cache"),yield Sit(n,t,e,s),H("Commiting cache");let o=Tc(e);pt(`CacheSize:~${Math.round(o/(1024*1024))}MB(${o}B)`);let a=yield Bit(n,t,o);if(!XR(a.statusCode))throw new Error(`Cacheservicerespondedwith${a.statusCode}duringcommitcache.`);pt("Cache saved successfully")}})}var tge=O(Jme(),1),Mr=O(kr(),1),io=O(kr(),1),Rp=O(kr(),1),Tp=O(kr(),1),_p=O(kr(),1);var _z=O(kr(),1),Qz=O(kr(),1),Xme=O(kr(),1),Zme=O(kr(),1),ege=O(kr(),1);var vz=O(kr(),1),Rz=O(kr(),1),Yme=O(kr(),1),Wme=O(kr(),1),Kme=O(kr(),1),Tz=class extends Kme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Wme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknownfield${a}(wiretype${c})for${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?Rz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,vz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,vz.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?Rz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},qT=new Tz;var Pz=class extends ege.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>qT}])}create(e){let r={repositoryId:"0",scope:[]
`));let s=yield Jz(r,"create");yield Yz(s,t)})}var Xg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Wa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Kg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},VT=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function nge(t){if(!t||t.length===0)throw new Wa("Path Validation Error: At least one directory or file path is required")}function Xz(t){if(t.length>512)throw new Wa(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Wa(`KeyValidationError:${t}cannotcontaincommas.`)}function Zz(){return F0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function oge(t,e,r,s){return Xg(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=F0();return H(`Cacheserviceversion:${l}`),nge(i),l==="v2"?yield Uot(i,n,o,a,c):yield Fot(i,n,o,a,c)})}function Fot(t,e,r,s){return Xg(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(H("Resolved Keys:"),H(JSON.stringify(l)),l.length>10)throw new Wa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Xz(d);let u=yield FI(),h="";try{let d=yield ome(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return pt("Lookup only - skipping download"),d.cacheKey;h=rb.join(yield MI(),cd(u)),H(`ArchivePath:${h}`),yield k8(d.archiveLocation,h,a),Oo()&&(yield tb(h,u));let f=Tc(h);return pt(`CacheSize:~${Math.round(f/(1024*1024))}MB(${f}B)`),yield Wz(h,u),pt("Cache restored successfully"),d.cacheKey}catch(d){let f=d;if(f.name===Wa.name)throw d;f instanceof bc&&typeof f.statusCode=="number"&&f.statusCode>=500?fI(`Failedtorestore:${d.message}`):Zs(`Failedtorestore:${d.message}`)}finally{try{yield LI(h)}catch(d){H(`Failedtodeletearchive:${d}`)}}})}function Uot(t,e,r,s){return Xg(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(H("Resolved Keys:"),H(JSON.stringify(l)),l.length>10)throw new Wa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)Xz(h);let u="";try{let h=jz(),d=yield FI(),f={key:n,restoreKeys:o,version:ng(i,d,c)},p=yield h.GetCacheEntryDownloadURL(f);if(!p.ok){H(`Cachenotfoundforversion${f.version}ofkeys:${l.join(", ")}`);return}if(f.key!==p.matchedKey?pt(`Cachehitforrestore-key:${p.matchedKey}`):pt(`Cachehitfor:${p.matchedKey}`),a?.lookupOnly)return pt("Lookup only - skipping download"),p.matchedKey;u=rb.join(yield MI(),cd(d)),H(`Archivepath:${u}`),H(`Startingdownloadofarchiveto:${u}`),yield k8(p.signedDownloadUrl,u,a);let E=Tc(u);return pt(`CacheSize:~${Math.round(E/(1024*1024))}MB(${E}B)`),Oo()&&(yield tb(u,d)),yield Wz(u,d),pt("Cache restored successfully"),p.matchedKey}catch(h){let d=h;if(d.name===Wa.name)throw h;d instanceof bc&&typeof d.statusCode=="number"&&d.statusCode>=500?fI(`Failedtorestore:${h.message}`):Zs(`Failedtorestore:${h.message}`)}finally{try{u&&(yield LI(u))}catch(h){H(`Failedtodeletearchive:${h}`)}}})}function eV(t,e,r){return Xg(this,arguments,void 0,function*(s,i,n,o=!1){let a=F0();return H(`Cacheserviceversion:${a}`),nge(s),Xz(i),a==="v2"?yield Got(s,i,n,o):yield qot(s,i,n,o)})}function qot(t,e,r){return Xg(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,h;let d=yield FI(),f=-1,p=yield lU(s);if(H("Cache Paths:"),H(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield MI(),E=rb.join(m,cd(d));H(`ArchivePath:${E}`)
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return d<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:d,raw:f,relax_quotes:p,rtrim:m,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:B,quote:N,record_delimiter:P}=this.options,{bomSkipped:Q,previousBuf:k,rawBuffer:G,escapeIsQuote:ee}=this.state,L;if(k===void 0)if(s===void 0){o();return}else L=s;else k!==void 0&&s===void 0?L=k:L=Buffer.concat([k,s]);if(Q===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(i===!1){this.state.previousBuf=L;return}}else{for(let $ in fy)if(fy[$].compare(L,0,fy[$].length)===0){let se=fy[$].length;this.state.bufBytesStart+=se,L=L.slice(se);let Qe=b3({...this.original_options,encoding:$});for(let we in Qe)this.options[we]=Qe[we];({comment:w,escape:B,quote:N}=this.options);break}this.state.bomSkipped=!0}let F=L.length,q;for(q=0;q<F&&!this.__needMoreData(q,F,i);q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(L,q)&&(P=this.options.record_delimiter);let $=L[q];if(f===!0&&G.append($),($===dft||$===fft)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(L,q,$)&&q+B.length<F)if(ee){if(this.__isQuote(L,q+B.length)){this.state.escaping=!0,q+=B.length-1;continue}}else{this.state.escaping=!0,q+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,q))if(this.state.quoting===!0){let we=L[q+N.length],le=m&&this.__isCharTrimable(L,q+N.length),ct=w!==null&&this.__compareBytes(w,L,q+N.length,we),et=this.__isDelimiter(L,q+N.length,we),It=P.length===0?this.__autoDiscoverRecordDelimiter(L,q+N.length):this.__isRecordDelimiter(we,L,q+N.length);if(B!==null&&this.__isEscape(L,q,$)&&this.__isQuote(L,q+B.length))q+=B.length-1;else if(!we||et||It||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,q+=N.length-1;continue}else if(p===!1){let De=this.__error(new yt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got"${String.fromCharCode(we)}"`,`atline${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(De!==void 0)return De}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),q+=N.length-1}else if(this.state.field.length!==0){if(p===!1){let we=this.__infoField(),le=Object.keys(fy).map(et=>fy[et].equals(this.state.field.toString())?et:!1).filter(Boolean)[0],ct=this.__error(new yt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`aquoteisfoundonfield${JSON.stringify(we.column)}atline${we.lines},valueis${JSON.stringify(this.state.field.toString(l))}`,le?`(${le}bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,q+=N.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter($,L,q);if(we!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),q+=we-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,q+=we-1;continue}this.info.bytes=this.state.bufBytesStart+q;let et=this.__onField();if(et!==void 0)return et;this.info.bytes=this.state.bufBytesStart+q+we;let It=this.__onRecord(n);if(It!==void 0)return It;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,q+=we-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,L,q,$)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(L,q,$);if(le!==0){this.i
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=uo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=uo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=wt.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e}isnotavalidsecret`);return r&&pI(n),[i,n]}};var W3=O(require("fs"),1),y0e=O(require("path"),1);var cQ=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ct,this.metadataFilename=`bake-metadata-${wt.generateRandomString()}.json`}getMetadataFilePath(){return y0e.default.join(bt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!W3.default.existsSync(e))return;let r=W3.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!wt.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.vars)for(let c of e.vars)s.push("--var",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Re.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannotparsebakedefinitions:${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=wt.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/)
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var HPe=require("crypto"),$l=O(require("fs"),1),pf=O(require("path"),1);var bS=O(_b(),1),jl=O(T_e(),1),zPe=O(rW(),1),JE=O(kPe(),1);var tK=O(_b(),1);var LPe=O(Ka(),1);var MPe="application/vnd.oci.empty.v1+json";var Bh=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(V(`Cosign.isAvailablecmderr:${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(V(`Cosign.isAvailableerror:${r}`),!1));return V(`Cosign.isAvailable:${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Re.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 Re.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return V("Cosign.versionSatisfies false: undefined version"),!1;let i=LPe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return V(`Cosign.versionSatisfies${s}statisfies${e}:${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===tK.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===MPe&&typeof l.digest=="string"&&(s=l.digest)}if(!i&&c&&c.mediaType===tK.BUNDLE_V03_MEDIA_TYPE&&(i=c),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var rK=O(require("fs"),1);var TD=class t{buildx;constructor(e){this.buildx=e?.buildx||new Ct}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`Nodescriptorfoundfor${e.name}`);let s=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return s.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===i.os&&c.platform?.architecture===i.architecture&&(c.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=bt.tmpName({tmpdir:bt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&i.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let a of i)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateComm
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageToolsinspectcommandfailedfor${e.name}`)}async execInspect(e,r,s){return await Re.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return s(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var FPe="application/vnd.in-toto+json";var UPe="https://fulcio.sigstore.dev",qPe="https://rekor.sigstore.dev",GPe="https://timestamp.sigstore.dev",qA="https://search.sigstore.dev";var bDt="slsaprovenance1",Af=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Bh,this.imageTools=e?.imageTools||new TD}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);J(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await rd("Creating Sigstore protobuf signing config",async()=>{let o=bt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:bt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];i&&a.push("--no-default-rekor=true"),await Re.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),J(JSON.stringify(JSON.parse($l.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await rd(`Signingattestationmanifest${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];J(`[command]${this.cosign.binPath}${[...u,l].join(" ")}`);let h=await Re.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Bh.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(m=>`-[${m.code}]${m.message}:${m.detail}`).join(`
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosignverifycommandfailedwith:${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);J(`UsingSigstoresigningendpoint:${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await rd(`Signing${n}`,async()=>{let o=i[n],a=pf.default.join(pf.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Do(`Nosubjectsfoundinprovenance${n},skipsigning.`);return}let l=await t.signPayload({data:o,type:FPe},s),u=t.parseBundle(l);J("Provenance blob signed for:");for(let h of c){let[d,f]=Object.entries(h.digest)[0]||[];J(`-${h.name}(${d}:${f})`)}u.tlogID&&J(`AttestationsignatureuploadedtoRekortransparencylog:${qA}?logIndex=${u.tlogID}`),J(`WritingSigstorebundleto:${a}`),$l.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`SigningBuildKitprovenanceblobsfailed:${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=pf.default.dirname(i);await rd(`Verifyingsignaturebundle${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=pf.default.join(o,a.name);J(`Verifyingsignedartifact${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??bDt];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await Re.getExecOutput(this.cosign.binPath,[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){J("Verifying keyless verification bundle signature");let i=JSON.parse($l.default.readFileSync(r,"utf-8")),n=(0,bS.bundleFromJSON)(i);J("Fetching Sigstore TUF trusted root metadata");let o=await zPe.getTrustedRoot(),a=(0,JE.toTrustMaterial)(o);try{J("Verifying artifact signature");let c=(0,JE.toSignedEntity)(n,$l.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(s.subjectAlternativeName))throw new Error(`SigningcertificatesubjectAlternativeName"${p}"doesnotmatchexpectedpattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new JE.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return V(`Sigstore.verifyArtifactsigner:${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failedtoverifyartifactsignature:${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),J(`Uploadtotransparencylog:${e?"disabled":"enabled"}`),{fulcioURL:UPe,rekorURL:e?void 0:qPe,tsaServerURL:GPe}}static noTransparencyLog(e){return e??kt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=pf.default.join(e.localExportDir,"provenance.json");if($l.default.existsSync(r))return{[r]:$l.default.readFileSync(r)};let s=$l.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>$l.default.existsSync(pf.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=