Files
setup-buildx-action/dist/index.cjs

322 lines
2.7 MiB
JavaScript
Raw Normal View History

var NDe=Object.create;var MS=Object.defineProperty;var vDe=Object.getOwnPropertyDescriptor;var RDe=Object.getOwnPropertyNames;var TDe=Object.getPrototypeOf,_De=Object.prototype.hasOwnProperty;var o=(t,e)=>MS(t,"name",{value:e,configurable:!0});var QDe=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vK=(t,e)=>{for(var r in e)MS(t,r,{get:e[r],enumerable:!0})},PDe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of RDe(e))!_De.call(t,i)&&i!==r&&MS(t,i,{get:()=>e[i],enumerable:!(s=vDe(e,i))||s.enumerable});return t};var k=(t,e,r)=>(r=t!=null?NDe(TDe(t)):{},PDe(e||!t||!t.__esModule?MS(r,"default",{value:t,enumerable:!0}):r,t));var wX=m(WA=>{"use strict";var Bkt=require("net"),cLe=require("tls"),yk=require("http"),CX=require("https"),lLe=require("events"),xkt=require("assert"),uLe=require("util");WA.httpOverHttp=hLe;WA.httpsOverHttp=dLe;WA.httpOverHttps=fLe;WA.httpsOverHttps=pLe;function hLe(t){var e=new eu(t);return e.request=yk.request,e}o(hLe,"httpOverHttp");function dLe(t){var e=new eu(t);return e.request=yk.request,e.createSocket=IX,e.defaultPort=443,e}o(dLe,"httpsOverHttp");function fLe(t){var e=new eu(t);return e.request=CX.request,e}o(fLe,"httpOverHttps");function pLe(t){var e=new eu(t);return e.request=CX.request,e.createSocket=IX,e.defaultPort=443,e}o(pLe,"httpsOverHttps");function eu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yk.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,i,n,a){for(var c=bX(i,n,a),l=0,u=e.requests.length;l<u;++l){var h=e.requests[l];if(h.host===c.host&&h.port===c.port){e.requests.splice(l,1),h.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(eu,"TunnelingAgent");uLe.inherits(eu,lLe.EventEmitter);eu.prototype.addRequest=o(function(e,r,s,i){var n=this,a=Ek({request:e},n.options,bX(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(a);return}n.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){n.emit("free",c,a)}o(l,"onFree");function u(h){n.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");eu.prototype.createSocket=o(function(e,r){var s=this,i={};s.sockets.push(i);var n=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 "+new Buffer(n.proxyAuth).toString("base64")),kh("making CONNECT request");var a=s.request(n);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",h),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,f,p){process.nextTick(function(){u(d,f,p)})}o(l,"onUpgrade");function u(d,f,p){if(a.removeAllListeners(),f.removeAllListeners(),d.statusCode!==200){kh("tunneling socket could not be established, statusCode=%d",d.statusCode),f.destroy();var A=new Error("tunneling socket could not be established, statusCode="+d.statusCode);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}if(p.length>0){kh("got illegal response body from proxy"),f.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(i);return}return kh("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=f,r(f)}o(u,"onConnect");function h(d){a.removeAllListeners(),kh(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var f=new Error("tunneling socket could not be established, cause="+d.message);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(i)}o(h,"onError")},"createSocket");eu.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(i){s.request.onSocket(i)})}},"removeSocket");function IX(t,e){var r=this;eu.prototype.createSocket.call(r,t,function(s){var i=t.request.getHeader("host"),n=Ek({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):t.host}),a=cLe.connect(0,n);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(IX,"createSecureSocket");function bX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(bX,"toOptions");function Ek(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var i=Object.keys(s),n=0,a=i.length;n<a;++n){var c=i[n];s[c]!==void 0&&(t[c]=s[c])}}return t}o(Ek,"mergeOptions");var kh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kh=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):kh=o(function(){},"debug");WA.debug=kh});var uC=m((Rkt,SX)=>{SX.exports=wX()});var or=m((Tkt,BX)=>{BX.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var yt=m((_kt,WX)=>{"use strict";var xX=Symbol.for("undici.error.UND_ERR"),ar=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[xX]===!0}[xX]=!0},NX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Ck=class extends ar{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIM
`)||t.includes("\r")||t.includes("\0"))===!1}o(u7,"isValidHeaderValue");function TFe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),i="";if(s.length>0)for(let n=s.length;n!==0;n--){let a=s[n-1].trim();if(pFe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(TFe,"setRequestReferrerPolicyOnRedirect");function _Fe(){return"allowed"}o(_Fe,"crossOriginResourcePolicyCheck");function QFe(){return"success"}o(QFe,"corsCheck");function PFe(){return"success"}o(PFe,"TAOCheck");function OFe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(OFe,"appendFetchMetadata");function DFe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&AM(t.origin)&&!AM(EC(t))&&(e=null);break;case"same-origin":pB(t,EC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(DFe,"appendRequestOriginHeader");function om(t,e){return t}o(om,"coarsenTime");function kFe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:om(t.domainLookupStartTime,r),domainLookupEndTime:om(t.domainLookupEndTime,r),connectionStartTime:om(t.connectionStartTime,r),connectionEndTime:om(t.connectionEndTime,r),secureConnectionStartTime:om(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(kFe,"clampAndCoarsenConnectionTimingInfo");function MFe(t){return om(EFe.now(),t)}o(MFe,"coarsenedSharedCurrentTime");function LFe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(LFe,"createOpaqueTimingInfo");function h7(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(h7,"makePolicyContainer");function FFe(t){return{referrerPolicy:t.referrerPolicy}}o(FFe,"clonePolicyContainer");function UFe(t){let e=t.referrerPolicy;Bf(e);let r=null;if(t.referrer==="client"){let c=n7();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=pM(r),i=pM(r,!0);s.toString().length>4096&&(s=i);let n=pB(t,s),a=yC(s)&&!yC(t.url);switch(e){case"origin":return i??pM(r,!0);case"unsafe-url":return s;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?s:i;case"strict-origin-when-cross-origin":{let c=EC(t);return pB(s,c)?s:yC(s)&&!yC(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(UFe,"determineRequestsReferrer");function pM(t,e){return Bf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(pM,"stripURLForReferrer");function yC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(yC,"isURLPotentiallyTrustworthy");function qFe(t,e){if(fB===void 0)return!0;let r=d7(e);if(r==="no metadata"||r.length===0)return!0;let s=HFe(r),i=VFe(r,s);for(let n of i){let a=n.algo,c=n.hash,l=fB.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),zFe(l,c))return!0}return!1}o(qFe,"bytesMatch");var GFe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-
`);function vUe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(vUe,"isAsciiString");function RUe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(RUe,"validateBoundary");function TUe(t,e){mB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),i=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(n.position,n.position+s.length).equals(s))n.position+=s.length;else return"failure";if(n.position===t.length-2&&gB(t,xUe,n)||n.position===t.length-4&&gB(t,NUe,n))return i;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let c=_Ue(t,n);if(c==="failure")return"failure";let{name:l,filename:u,contentType:h,encoding:d}=c;n.position+=2;let f;{let A=t.indexOf(s.subarray(2),n.position);if(A===-1)return"failure";f=t.subarray(n.position,A-4),n.position+=f.length,d==="base64"&&(f=Buffer.from(f.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let p;u!==null?(h??="text/plain",vUe(h)||(h=""),p=new SUe([f],u,{type:h})):p=EUe(Buffer.from(f)),mB(B7(l)),mB(typeof p=="string"&&B7(p)||IUe(p)),i.push(bUe(l,p,u))}}o(TUe,"multipartFormDataParser");function _Ue(t,e){let r=null,s=null,i=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:i,encoding:n};let a=cm(c=>c!==10&&c!==13&&c!==58,t,e);if(a=bM(a,!0,!0,c=>c===9||c===32),!CUe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,cm(c=>c===32||c===9,t,e),yUe(a)){case"content-disposition":{if(r=s=null,!gB(t,BUe,e)||(e.position+=17,r=v7(t,e),r===null))return"failure";if(gB(t,N7,e)){let c=e.position+N7.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=v7(t,e),s===null))return"failure"}break}case"content-type":{let c=cm(l=>l!==10&&l!==13,t,e);c=bM(c,!1,!0,l=>l===9||l===32),i=x7(c);break}case"content-transfer-encoding":{let c=cm(l=>l!==10&&l!==13,t,e);c=bM(c,!1,!0,l=>l===9||l===32),n=x7(c);break}default:cm(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(_Ue,"parseMultipartFormDataHeaders");function v7(t,e){mB(t[e.position-1]===34);let r=cm(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(v7,"parseMultipartFormDataName");function cm(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(cm,"collectASequenceOfBytes");function bM(t,e,r,s){let i=0,n=t.length-1;if(e)for(;i<t.length&&s(t[i]);)i++;if(r)for(;n>0&&s(t[n]);)n--;return i===0&&n===t.length-1?t:t.subarray(i,n+1)}o(bM,"removeChars");function gB(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(gB,"bufferStartsWith");R7.exports={multipartFormDataParser:TUe,validateBoundary:RUe}});var hm=m((gMt,U7)=>{"use strict";var bC=it(),{ReadableStreamFrom:QUe,isBlobLike:_7,isReadableStreamLike:PUe,readableStreamClose:OUe,createDeferredPromise:DUe,fullyReadBody:kUe,extractMimeType:MUe,utf8DecodeBytes:O7}=Un(),{FormData:Q7}=IC(),{kState:um}=Mh(),{webidl:LUe}=qs(),{Blob:FUe}=require("node:buffer"),wM=require("node:assert"),{isErrored:D7,isDisturbed:UUe}=require("node:stream"),{isArrayBuffer:qUe}=require("node:util/types"),{serializeAMimeType:GUe}=on(),{multipartFormDataParser:HUe}=T7(),SM;try{let t=require("node:crypto");SM=o(e=>t.randomInt(0,e),"random")}catch{SM=o(t=>Math.floor(Math.random(t)),"random")}var yB=new TextEncoder;function VUe(){}o(VUe,"noop");var k7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,M7;k7&&(M7=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!UUe(e)&&!D7(e)&&e.cancel("Response object has been garbage collected").catch(VUe)}));function L7(t,e=!1){let r=null;t instanceof ReadableStream?r=t:_7(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?yB.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>OUe(l))},start(){},type:"bytes"}),wM(PUe(r));let s=null,i=null,n=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(qUe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(bC.isFormDataLike(t)){let l=`----formdata-undici-0${`${SM(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let h=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),f=[],p=new Uint8Array([13,10]);n=0;let A=!1;for(let[C,E]of t)if(typeof E=="string"){let I=yB.encode(u+`; name="${h(d(C))}"\r
\r
${d(E)}\r
`);f.push(I),n+=I.byteLength}else{let I=yB.encode(`${u}; name="${h(d(C))}"`+(E.name?`; filename="${h(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);f.push(I,E,p),typeof E.size=="number"?n+=I.byteLength+E.size+p.byteLength:A=!0}let g=yB.encode(`--${l}--\r
`);f.push(g),n+=g.byteLength,A&&(n=null),i=t,s=o(async function*(){for(let C of f)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(_7(t))i=t,n=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(bC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:QUe(t)}if((typeof i=="string"||bC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:h,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!D7(r)){let f=new Uint8Array(h);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:n},a]}o(L7,"extractBody");function zUe(t,e=!1){return t instanceof ReadableStream&&(wM(!bC.isDisturbed(t),"The body has already been consumed."),wM(!t.locked,"The stream is locked.")),L7(t,e)}o(zUe,"safelyExtractBody");function $Ue(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o($Ue,"cloneBody");function jUe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(jUe,"throwIfAborted");function JUe(t){return{blob(){return lm(this,r=>{let s=P7(this);return s===null?s="":s&&(s=GUe(s)),new FUe([r],{type:s})},t)},arrayBuffer(){return lm(this,r=>new Uint8Array(r).buffer,t)},text(){return lm(this,O7,t)},json(){return lm(this,WUe,t)},formData(){return lm(this,r=>{let s=P7(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=HUe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new Q7;return n[um]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new Q7;for(let[a,c]of i)n.append(a,c);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return lm(this,r=>new Uint8Array(r),t)}}}o(JUe,"bodyMixinMethods");function YUe(t){Object.assign(t.prototype,JUe(t))}o(YUe,"mixinBody");async function lm(t,e,r){if(LUe.brandCheck(t,r),F7(t))throw new TypeError("Body is unusable: Body has already been read");jUe(t[um]);let s=DUe(),i=o(a=>s.reject(a),"errorSteps"),n=o(a=>{try{s.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[um].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await kUe(t[um].body,n,i),s.promise)}o(lm,"consumeBody");function F7(t){let e=t[um].body;return e!=null&&(e.stream.locked||bC.isDisturbed(e.stream))}o(F7,"bodyUnusable");function WUe(t){return JSON.parse(O7(t))}o(WUe,"parseJSONFromBytes");function P7(t){let e=t[um].headersList,r=MUe(e);return r==="failure"?null:r}o(P7,"bodyMimeType");U7.exports={extractBody:L7,safelyExtractBody:zUe,cloneBody:$Ue,mixinBody:YUe,streamRegistry:M7,hasFinalizationRegistry:k7,bodyUnusable:F7}});var K7=m((EMt,W7)=>{"use strict";var Pe=require("node:assert"),Ge=it(),{channels:q7}=XA(),BM=oM(),{RequestContentLengthMismatchError:xf,ResponseContentLengthMismatchError:KUe,RequestAbortedError:j7,HeadersTimeoutError:XUe,HeadersOverflowError:ZUe,SocketError:SB,InformationalError:dm,BodyTimeoutError:eqe,HTTPParserError:tqe,ResponseExceededMaxSizeError:rqe}=yt(),{kUrl:J7,kReset:an,kClient:RM,kParser:yr,kBlocking:BC,kRunning:Zs,kPending:sqe,kSize:G7,kWriting:Fh,kQueue:Ra,kNoRef:wC,kKeepAliveDefaultTimeout:iqe,kHostHeader:nqe,kPendingIdx:oqe,kRunningIdx:To,kError:_o,kPipelining:bB,kSocket:fm,kKeepAliveTimeoutValue:BB,kMaxHeadersSize:xM,kKeepAliveMaxTimeout:aqe,kKeepAliveTimeoutThreshold:cqe,kHeadersTimeout:lqe,kBodyTimeout:uqe,kStrictContentLength:TM,kMaxRequests:H7,kCounter:hqe,kMaxResponseSize:dqe,kOnError:fqe,kResume:Lh,kHTTPContext:Y7}=or(),Ac=MZ(),pqe=Buffer.alloc(0),EB=Buffer[Symbol.species],CB=Ge.addListener,Aqe=Ge.removeAllListeners,NM;async function mqe(){let t=process.env.JEST_WORKER_ID?lM():void 0,e;try{e=await WebAssembly.compile(UZ())}catch{e=await WebAssembly.compile(t||lM())}return awa
`;if(typeof i=="string"?g+=`host: ${i}\r
`:g+=t[nqe],n?g+=`connection: upgrade\r
upgrade: ${n}\r
`:t[bB]&&!p[an]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],I=u[C+1];if(Array.isArray(I))for(let S=0;S<I.length;S++)g+=`${E}: ${I[S]}\r
`;else g+=`${E}: ${I}\r
`}return q7.sendHeaders.hasSubscribers&&q7.sendHeaders.publish({request:e,headers:g,socket:p}),!l||f===0?z7(A,null,t,e,p,h,g,d):Ge.isBuffer(l)?z7(A,l,t,e,p,h,g,d):Ge.isBlobLike(l)?typeof l.stream=="function"?$7(A,l.stream(),t,e,p,h,g,d):wqe(A,l,t,e,p,h,g,d):Ge.isStream(l)?bqe(A,l,t,e,p,h,g,d):Ge.isIterable(l)?$7(A,l,t,e,p,h,g,d):Pe(!1),!0}o(Iqe,"writeH1");function bqe(t,e,r,s,i,n,a,c){Pe(n!==0||r[Zs]===0,"stream body cannot be pipelined");let l=!1,u=new xB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a}),h=o(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(g){Ge.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),f=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let A=new j7;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!l){if(l=!0,Pe(i.destroyed||i[Fh]&&r[Zs]<=1),i.off("drain",d).off("error",p),e.removeListener("data",h).removeListener("end",p).removeListener("close",f),!A)try{u.end()}catch(g){A=g}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?Ge.destroy(e,A):Ge.destroy(e)}},"onFinished");e.on("data",h).on("end",p).on("error",p).on("close",f),e.resume&&e.resume(),i.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}o(bqe,"writeStream");function z7(t,e,r,s,i,n,a,c){try{e?Ge.isBuffer(e)&&(Pe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${n}\r
\r
`,"latin1"),i.write(e),i.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(i[an]=!0)):n===0?i.write(`${a}content-length: 0\r
\r
`,"latin1"):(Pe(n===null,"no body must not have content length"),i.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[Lh]()}catch(l){t(l)}}o(z7,"writeBuffer");async function wqe(t,e,r,s,i,n,a,c){Pe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new xf;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${n}\r
\r
`,"latin1"),i.write(l),i.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(i[an]=!0),r[Lh]()}catch(l){t(l)}}o(wqe,"writeBlob");async function $7(t,e,r,s,i,n,a,c){Pe(n!==0||r[Zs]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}o(u,"onDrain");let h=o(()=>new Promise((f,p)=>{Pe(l===null),i[_o]?p(i[_o]):l=f}),"waitForDrain");i.on("close",u).on("drain",u);let d=new xB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(i[_o])throw i[_o];d.write(f)||await h()}d.end()}catch(f){d.destroy(f)}finally{i.off("close",u).off("drain",u)}}o($7,"writeIterable");var xB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Fh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[_o])throw r[_o];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(n[TM])throw new xf;process.emitWarning(new xf)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[an]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${i}\r
\r
`,"latin1")),i===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let h=r.write(e);return r.uncork(),s.onBodySent(e),h||r[yr].timeout&&r[yr].timeoutType===pm&&r[yr].timeout.refresh&&r[yr].timeout.refresh(),h}end(){let{socket:e,contentLength:r,client:s,bytesWritten:i,expectsPayload:n,header:a,request:c}=this;if(c.onRequestSent(),e[Fh]=!1,e[_o])throw e[_o];if(!e.destroyed){if(i===0?n?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&i!==r){if(s[TM])throw new xf;process.emitWarning(new xf)}e[yr].timeout&&e[yr].timeoutType===pm&&e[yr].timeout.refresh&&e[yr].timeout.refresh(),s[Lh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[Fh]=!1,e&&(Pe(s[Zs]<=1,"pipeline should only contain this request"),i(e))}};W7.exports=yqe});var nee=m((IMt,iee)=>{"use strict";var Qo=require("node:assert"),{pipeline:Sqe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:OM,RequestAbortedError:X7,SocketError:xC,InformationalError:DM}=yt(),{kUrl:NB,kReset:RB,kClient:Am,kRunning:TB,kPending:Bqe,kQueue:Uh,kPendingIdx:kM,kRunningIdx:Ta,kError:Qa,kSocket:gs,kStrictContentLength:xqe,kOnError:MM,kMaxConcurrentStreams:see,kHTTP2Session:_a,kResume:qh,kSize:Nqe,kHTTPContext:vqe}=or(),ou=Symbol("open streams"),Z7,eee=!1,vB;try{vB=require("node:http2")}catch{vB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Rqe,HTTP2_HEADER_METHOD:Tqe,HTTP2_HEADER_PATH:_qe,HTTP2_HEADER_SCHEME:Qqe,HTTP2_HEADER_CONTENT_LENGTH:Pqe,HTTP2_HEADER_EXPECT:Oqe,HTTP2_HEADER_STATUS:Dqe}}=vB;function kqe(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}o(kqe,"parseH2Headers");async function Mqe(t,e){t[gs]=e,eee||(eee=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=vB.connect(t[NB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[see]});r[ou]=0,r[Am]=t,r[gs]=e,lt.addListener(r,"error",Fqe),lt.addListener(r,"frameError",Uqe),lt.addListener(r,"end",qqe),lt.addListener(r,"goaway",Gqe),lt.addListener(r,"close",function(){let{[Am]:i}=this,{[gs]:n}=i,a=this[gs][Qa]||this[Qa]||new xC("closed",lt.getSocketInfo(n));if(i[_a]=null,i.destroyed){Qo(i[Bqe]===0);let c=i[Uh].splice(i[Ta]);for(let l=0;l<c.length;l++){let u=c[l];lt.errorRequest(i,u,a)}}}),r.unref(),t[_a]=r,e[_a]=r,lt.addListener(e,"error",function(i){Qo(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qa]=i,this[Am][MM](i)}),lt.addListener(e,"end",function(){lt.destroy(this,new xC("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let i=this[Qa]||new xC("closed",lt.getSocketInfo(this));t[gs]=null,this[_a]!=null&&this[_a].destroy(i),t[kM]=t[Ta],Qo(t[TB]===0),t.emit("disconnect",t[NB],[t],i),t[qh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return Vqe(t,...i)},resume(){Lqe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}o(Mqe,"connectH2");function Lqe(t){let e=t[gs];e?.destroyed===!1&&(t[Nqe]===0&&t[see]===0?(e.unref(),t[_a].unref()):(e.ref(),t[_a].ref()))}o(Lqe,"resumeH2");function Fqe(t){Qo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gs][Qa]=t,this[Am][MM](t)}o(Fqe,"onHttp2SessionError");function Uqe(t,e,r){if(r===0){let s=new DM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gs][Qa]=s,this[Am][MM](s)}}o(Uqe,"onHttp2FrameError");function qqe(){let t=new xC("other side closed",lt.getSocketInfo(this[gs]));this.destroy(t),lt.destroy(this[gs],t)}o(qqe,"onHttp2SessionEnd");function Gqe(t){let e=this[Qa]||new xC(`HTTP/2: "GOAWAY" frame received with code ${t}`,lt.getSocketInfo(this)),r=this[Am];if(r[gs]=null,r[vqe]=null,this[_a]!=null&&(this[_a].destroy(e),this[_a]=null),lt.destroy(this[gs],e),r[Ta]<r[Uh].length){let s=r[Uh][r[Ta]];r[Uh][r[Ta]++]=null,lt.errorRequest(r,s,e),r[kM]=r[Ta]}Qo(r[TB]===0),r.emit("disconnect",r[NB],[r],e),r[qh]()}o(Gqe,"onHTTP2GoAway");function Hqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Hqe,"shouldSendContentLength");function Vqe(t,e){let r=t[_a],{method:s,path:i,host:n,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:h}=e;if(a)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let x=0;x<u.length;x+=2){let v=u[x+0],D=u[x+1];if(Array.isArray(D))for(let O=0;O<D.length;O++)d[v]?d[v]+=`,${D[O]}`:d[v]=D[O];else d[v]=D}let f,{hostname:p,port:A}=t[NB];d[Rqe]=
`,this[mGe]=l??3e5,this[AGe]=i??3e5,this[gGe]=I??!0,this[yGe]=x,this[qM]=D,this[Hh]=null,this[wGe]=L>-1?L:-1,this[BGe]=U??100,this[Pr]=null,this[Pa]=[],this[cu]=0,this[Oa]=0,this[TC]=j=>HM(this,j),this[SGe]=j=>gee(this,j)}get pipelining(){return this[OB]}set pipelining(e){this[OB]=e,this[TC](!0)}get[PC](){return this[Pa].length-this[Oa]}get[QC](){return this[Oa]-this[cu]}get[_C](){return this[Pa].length-this[cu]}get[cGe](){return!!this[Pr]&&!this[gm]&&!this[Pr].destroyed}get[UM](){return!!(this[Pr]?.busy(null)||this[_C]>=(mee(this)||1)||this[PC]>0)}[aGe](e){yee(this),this.once("connect",e)}[bGe](e,r){let s=e.origin||this[Ec].origin,i=new tGe(s,e,r);return this[Pa].push(i),this[vf]||(Nf.bodyLength(i.body)==null&&Nf.isIterable(i.body)?(this[vf]=1,queueMicrotask(()=>HM(this))):this[TC](!0)),this[vf]&&this[Vh]!==2&&this[UM]&&(this[Vh]=2),this[Vh]<2}async[CGe](){return new Promise(e=>{this[_C]?this[Hh]=e:e(null)})}async[IGe](e){return new Promise(r=>{let s=this[Pa].splice(this[Oa]);for(let n=0;n<s.length;n++){let a=s[n];Nf.errorRequest(this,a,e)}let i=o(()=>{this[Hh]&&(this[Hh](),this[Hh]=null),r(null)},"callback");this[Pr]?(this[Pr].destroy(e,i),this[Pr]=null):queueMicrotask(i),this[TC]()})}},vGe=PB();function gee(t,e){if(t[QC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){au(t[Oa]===t[cu]);let r=t[Pa].splice(t[cu]);for(let s=0;s<r.length;s++){let i=r[s];Nf.errorRequest(t,i,e)}au(t[_C]===0)}}o(gee,"onError");async function yee(t){au(!t[gm]),au(!t[Pr]);let{host:e,hostname:r,protocol:s,port:i}=t[Ec];if(r[0]==="["){let n=r.indexOf("]");au(n!==-1);let a=r.substring(1,n);au(Aee.isIP(a)),r=a}t[gm]=!0,mm.beforeConnect.hasSubscribers&&mm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Pr]?.version,servername:t[Gh],localAddress:t[RC]},connector:t[vC]});try{let n=await new Promise((a,c)=>{t[vC]({host:e,hostname:r,protocol:s,port:i,servername:t[Gh],localAddress:t[RC]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Nf.destroy(n.on("error",fee),new iGe);return}au(n);try{t[Pr]=n.alpnProtocol==="h2"?await NGe(t,n):await xGe(t,n)}catch(a){throw n.destroy().on("error",fee),a}t[gm]=!1,n[EGe]=0,n[qM]=t[qM],n[oGe]=t,n[uGe]=null,mm.connected.hasSubscribers&&mm.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Pr]?.version,servername:t[Gh],localAddress:t[RC]},connector:t[vC],socket:n}),t.emit("connect",t[Ec],[t])}catch(n){if(t.destroyed)return;if(t[gm]=!1,mm.connectError.hasSubscribers&&mm.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[Pr]?.version,servername:t[Gh],localAddress:t[RC]},connector:t[vC],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(au(t[QC]===0);t[PC]>0&&t[Pa][t[Oa]].servername===t[Gh];){let a=t[Pa][t[Oa]++];Nf.errorRequest(t,a,n)}else gee(t,n);t.emit("connectionError",t[Ec],[t],n)}t[TC]()}o(yee,"connect");function pee(t){t[Vh]=0,t.emit("drain",t[Ec],[t])}o(pee,"emitDrain");function HM(t,e){t[vf]!==2&&(t[vf]=2,RGe(t,e),t[vf]=0,t[cu]>256&&(t[Pa].splice(0,t[cu]),t[Oa]-=t[cu],t[cu]=0))}o(HM,"resume");function RGe(t,e){for(;;){if(t.destroyed){au(t[PC]===0);return}if(t[Hh]&&!t[_C]){t[Hh](),t[Hh]=null;return}if(t[Pr]&&t[Pr].resume(),t[UM])t[Vh]=2;else if(t[Vh]===2){e?(t[Vh]=1,queueMicrotask(()=>pee(t))):pee(t);continue}if(t[PC]===0||t[QC]>=(mee(t)||1))return;let r=t[Pa][t[Oa]];if(t[Ec].protocol==="https:"&&t[Gh]!==r.servername){if(t[QC]>0)return;t[Gh]=r.servername,t[Pr]?.destroy(new sGe("servername changed"),()=>{t[Pr]=null,HM(t)})}if(t[gm])return;if(!t[Pr]){yee(t);return}if(t[Pr].destroyed||t[Pr].busy(r))return;!r.aborted&&t[Pr].write(r)?t[Oa]++:t[Pa].splice(t[Oa],1)}}o(RGe,"_resume");Eee.exports=GM});var VM=m((TMt,Cee)=>{"use strict";var DB=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};Lre.exports=KL});var ZB=m((QLt,Hre)=>{"use strict";var Ure=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m8e}=yt(),g8e=Cm();Gre()===void 0&&qre(new g8e);function qre(t){if(!t||typeof t.dispatch!="function")throw new m8e("Argument agent must implement Agent");Object.defineProperty(globalThis,Ure,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(qre,"setGlobalDispatcher");function Gre(){return globalThis[Ure]}o(Gre,"getGlobalDispatcher");Hre.exports={setGlobalDispatcher:qre,getGlobalDispatcher:Gre}});var ex=m((DLt,Vre)=>{"use strict";Vre.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var $re=m((MLt,zre)=>{"use strict";var y8e=QB();zre.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,n){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,n);let l=new y8e(r,a,i,n);return r(c,l)},"redirectInterceptor")}});var Jre=m((FLt,jre)=>{"use strict";var E8e=HB();jre.exports=t=>e=>o(function(s,i){return e(s,new E8e({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Wre=m((qLt,Yre)=>{"use strict";var C8e=it(),{InvalidArgumentError:I8e,RequestAbortedError:b8e}=yt(),w8e=ex(),XL=class extends w8e{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#u=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new I8e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#u=r}onConnect(e){this.#t=e,this.#u.onConnect(this.#l.bind(this))}#l(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,i){let a=C8e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new b8e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#u.onHeaders(e,r,s,i)}onError(e){this.#s||(e=this.#n??e,this.#u.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#u.onError(this.#n):this.#u.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#u.onError(this.reason);return}this.#u.onComplete(e)}}};function S8e({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,i){let{dumpMaxSize:n=t}=s,a=new XL({maxSize:n},i);return e(s,a)},"Intercept")}o(S8e,"createDumpInterceptor");Yre.exports=S8e});var Zre=m((HLt,Xre)=>{"use strict";var{isIP:B8e}=require("node:net"),{lookup:x8e}=require("node:dns"),N8e=ex(),{InvalidArgumentError:Tm,InformationalError:v8e}=yt(),Kre=Math.pow(2,31)-1,ZL=class{static{o(this,"DNSInstance")}#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let i=this.#s.get(e.hostname);if(i==null&&this.full){s(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,n,(a,c)=>{if(a||c==null||c.length===0){s(a??new v8e("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,n.affinity),h;typeof u.port=="number"?h=`:${u.port}`:e.port!==""?h=`:${e.port}`:h="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${h}`)});else{let a=this.pick(e,i,n.affinity);if(a==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,s){x8e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:
${n}`;break;case"retry":Qne(n)&&(r[i]=n);break;case"id":Pne(n)&&(r[i]=n);break;case"event":n.length>0&&(r[i]=n);break}}processEvent(e){e.retry&&Qne(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Pne(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};One.exports={EventSourceStream:U2}});var Hne=m(($2t,Gne)=>{"use strict";var{pipeline:M5e}=require("node:stream"),{fetching:L5e}=JC(),{makeRequest:F5e}=Pm(),{webidl:fu}=qs(),{EventSourceStream:U5e}=Dne(),{parseMIMEType:q5e}=on(),{createFastMessageEvent:G5e}=Fm(),{isNetworkError:kne}=$C(),{delay:H5e}=L2(),{kEnumerableProperty:Vf}=it(),{environmentSettingsObject:Mne}=Un(),Lne=!1,Fne=3e3,aI=0,Une=1,cI=2,V5e="anonymous",z5e="use-credentials",Vm=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=aI;#i=null;#n=null;#u;#l;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let s="EventSource constructor";fu.argumentLengthCheck(arguments,1,s),Lne||(Lne=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,s,"url"),r=fu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#u=r.dispatcher,this.#l={lastEventId:"",reconnectionTime:Fne};let i=Mne,n;try{n=new URL(e,i.settingsObject.baseUrl),this.#l.origin=n.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=n.href;let a=V5e;r.withCredentials&&(a=z5e,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Mne.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#i=F5e(c),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#a(){if(this.#r===cI)return;this.#r=aI;let e={request:this.#i,dispatcher:this.#u},r=o(s=>{kne(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#f()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(kne(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#f();return}let i=s.headersList.get("content-type",!0),n=i!==null?q5e(i):"failure",a=n!=="failure"&&n.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Une,this.dispatchEvent(new Event("open")),this.#l.origin=s.urlList[s.urlList.length-1].origin;let c=new U5e({eventSourceSettings:this.#l,push:o(l=>{this.dispatchEvent(G5e(l.type,l.options))},"push")});M5e(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=L5e(e)}async#f(){this.#r!==cI&&(this.#r=aI,this.dispatchEvent(new Event("error")),await H5e(this.#l.reconnectionTime),this.#r===aI&&(this.#l.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#l.lastEventId,!0),this.#a()))}close(){fu.brandCheck(this,t),this.#r!==cI&&(this.#r=cI,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},qne={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:aI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Une,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,val
%s`,v,v,I,s);var D=I.type==="*"?VF:I.type==="?"?HF:"\\"+I.type;i=!0,s=s.slice(0,I.reStart)+D+"\\("+v}A(),n&&(s+="\\\\");var O=!1;switch(s.charAt(0)){case"[":case".":case"(":O=!0}for(var L=c.length-1;L>-1;L--){var z=c[L],ee=s.slice(0,z.reStart),U=s.slice(z.reStart,z.reEnd-8),q=s.slice(z.reEnd-8,z.reEnd),V=s.slice(z.reEnd);q+=V;var j=ee.split("(").length-1,se=V;for(g=0;g<j;g++)se=se.replace(/\)[+*?]?/,"");V=se;var Qe="";V===""&&e!==uN&&(Qe="$");var we=ee+U+V+Qe+q;s=we}if(s!==""&&i&&(s="(?=.)"+s),O&&(s=f+s),e===uN)return[s,i];if(!i)return xYe(t);var le=r.nocase?"i":"";try{var ct=new RegExp("^"+s+"$",le)}catch{return new RegExp("$.")}return ct._glob=t,ct._src=s,ct}o(SYe,"parse");Wn.makeRe=function(t,e){return new Kr(t,e||{}).makeRe()};Kr.prototype.makeRe=BYe;function BYe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?VF:e.dot?gYe:yYe,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(a){return a===Wf?r:typeof a=="string"?NYe(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}o(BYe,"makeRe");Wn.match=function(t,e,r){r=r||{};var s=new Kr(e,r);return t=t.filter(function(i){return s.match(i)}),s.options.nonull&&!t.length&&t.push(e),t};Kr.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;_I.sep!=="/"&&(e=e.split(_I.sep).join("/")),e=e.split(Yce),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,a;for(a=e.length-1;a>=0&&(n=e[a],!n);a--);for(a=0;a<i.length;a++){var c=i[a],l=e;s.matchBase&&c.length===1&&(l=[n]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Kr.prototype.matchOne=function(t,e,r){return e.indexOf(Wf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Kr.prototype._matchGlobstar=function(t,e,r,s,i){var n,a=-1;for(n=i;n<e.length;n++)if(e[n]===Wf){a=n;break}var c=-1;for(n=e.length-1;n>=0;n--)if(e[n]===Wf){c=n;break}var l=e.slice(i,a),u=r?e.slice(a+1):e.slice(a+1,c),h=r?[]:e.slice(c+1);if(l.length){var d=t.slice(s,s+l.length);if(!this._matchOne(d,l,r,0,0))return!1;s+=l.length}var f=0;if(h.length){if(h.length+s>t.length)return!1;var p=t.length-h.length;if(this._matchOne(t,h,r,p,0))f=h.length;else{if(t[t.length-1]!==""||s+h.length===t.length||(p--,!this._matchOne(t,h,r,p,0)))return!1;f=h.length+1}}if(!u.length){var A=!!f;for(n=s;n<t.length-f;n++){var g=String(t[n]);if(A=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||A}for(var C=[[[],0]],E=C[0],I=0,S=[0],x=0;x<u.length;x++){var v=u[x];v===Wf?(S.push(I),E=[[],0],C.push(E)):(E[0].push(v),I++)}for(var D=C.length-1,O=t.length-f,L=0;L<C.length;L++)C[L][1]=O-(S[D--]+C[L][0].length);return!!this._matchGlobStarBodySections(t,C,s,0,r,0,!!f)};Kr.prototype._matchGlobStarBodySections=function(t,e,r,s,i,n,a){var c=e[s];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var h=c[0],d=c[1];r<=d;){var f=this._matchOne(t.slice(0,r+h.length),h,i,r,0);if(f&&n<this.maxGlobstarRecursion){var p=this._matchGlobStarBodySections(t,e,r+h.length,s+1,i,n+1,a);if(p!==!1)return p}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return i||null};Kr.prototype._matchOne=function(t,e,r,s,i){var n,a,c,l;for(n=s,a=i,c=t.length,l=e.length;n<c&&a<l;n++,a++){this.debug("matchOne loop");var u=e[a],h=t[n];if(this.debug(e,u,h),u===!1||u===Wf)return!1;var d;if(typeof u=="string"?(d=h===u,this.debug("string match",u,h,d)):(d=h.match(u),this.debug("pattern match",u,h,d)),!d)return!1}if(n===c&&a===l)return!0;if(n===c)return r;if(a===l)return n===c-1&&t[n]==="";throw new Error("wtf?")};function xYe(t){return t.replace(/\\(.)/g,"$1")}o(xYe,"globUnescape");function NYe(t){return t.replace(/[-[\]{}()*+?.,\\^$|
`).join(`
`+n),t.push(i+"m+"+ZN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=LXe()+e+" "+t[0]}o(MXe,"formatArgs");function LXe(){return zs.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(LXe,"getDate");function FXe(...t){return process.stderr.write(XN.format(...t)+`
`)}o(FXe,"log");function UXe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(UXe,"save");function qXe(){return process.env.DEBUG}o(qXe,"load");function GXe(t){t.inspectOpts={};let e=Object.keys(zs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zs.inspectOpts[e[r]]}o(GXe,"init");ZN.exports=kU()(zs);var{formatters:qhe}=ZN.exports;qhe.o=function(t){return this.inspectOpts.colors=this.useColors,XN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qhe.O=function(t){return this.inspectOpts.colors=this.useColors,XN.inspect(t,this.inspectOpts)}});var op=m((mzt,UU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?UU.exports=khe():UU.exports=Ghe()});var zhe=m(pn=>{"use strict";var HXe=pn&&pn.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),VXe=pn&&pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hhe=pn&&pn.__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)&&HXe(e,t,r);return VXe(e,t),e};Object.defineProperty(pn,"__esModule",{value:!0});pn.req=pn.json=pn.toBuffer=void 0;var zXe=Hhe(require("http")),$Xe=Hhe(require("https"));async function Vhe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(Vhe,"toBuffer");pn.toBuffer=Vhe;async function jXe(t){let r=(await Vhe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}o(jXe,"json");pn.json=jXe;function JXe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?$Xe:zXe).request(t,e),i=new Promise((n,a)=>{s.once("response",n).once("error",a).end()});return s.then=i.then.bind(i),s}o(JXe,"req");pn.req=JXe});var Yhe=m(eo=>{"use strict";var jhe=eo&&eo.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),YXe=eo&&eo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jhe=eo&&eo.__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)&&jhe(e,t,r);return YXe(e,t),e},WXe=eo&&eo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jhe(e,t,r)};Object.defineProperty(eo,"__esModule",{value:!0});eo.Agent=void 0;var KXe=Jhe(require("net")),$he=Jhe(require("http")),XXe=require("https");WXe(zhe(),eo);var Qc=Symbol("AgentBaseInternalState"),qU=class extends $he.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Qc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new KXe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?XXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),a=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(n,a),c instanceof $he.Agent)try{return c.addRequest(e,i)}catch(l){return s(l)}this[Qc].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(n,a),s(c)})}createConnection(){let e=this[Qc].currentSocket;if(this[Qc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qc]&&(this[Qc].defaultPort=e)}get protocol(){return this[Qc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qc]&&(this[Qc].protocol=e)}};eo.Agent=qU});var Whe=m(pg=>{"use strict";var ZXe=pg&&pg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pg,"__esModule",{value:!0});pg.parseProxyResponse=void 0;var eZe=ZXe(op()),ev=(0,eZe.default)("https-proxy-agent:parse-proxy-response");function tZe(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let h=t.read();h?u(h):t.once("readable",n)}o(n,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",n)}o(a,"cleanup");function c(){a(),ev("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(h){a(),ev("onerror %o",h),r(h)}o(l,"onerror");function u(h){i.push(h),s+=h.length;let d=Buffer.concat(i,s),f=d.indexOf(`\r
\r
`);if(f===-1){ev("have not received end of HTTP headers yet..."),n();return}let p=d.slice(0,f).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),C=+g[1],E=g.slice(2).join(" "),I={};for(let S of p){if(!S)continue;let x=S.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${S}"`));let v=S.slice(0,x).toLowerCase(),D=S.slice(x+1).trimStart(),O=I[v];typeof O=="string"?I[v]=[O,D]:Array.isArray(O)?O.push(D):I[v]=D}ev("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:C,statusText:E,headers:I},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),n()})}o(tZe,"parseProxyResponse");pg.parseProxyResponse=tZe});var rde=m($o=>{"use strict";var rZe=$o&&$o.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),sZe=$o&&$o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ede=$o&&$o.__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)&&rZe(e,t,r);return sZe(e,t),e},tde=$o&&$o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($o,"__esModule",{value:!0});$o.HttpsProxyAgent=void 0;var tv=ede(require("net")),Khe=ede(require("tls")),iZe=tde(require("assert")),nZe=tde(op()),oZe=Yhe(),aZe=require("url"),cZe=Whe(),YI=(0,nZe.default)("https-proxy-agent"),Xhe=o(t=>t.servername===void 0&&t.host&&!tv.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),rv=class extends oZe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new aZe.URL(e):e,this.proxyHeaders=r?.headers??{},YI("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?Zhe(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:"?(YI("Creating `tls.Socket`: %o",this.connectOpts),i=Khe.connect(Xhe(this.connectOpts))):(YI("Creating `net.Socket`: %o",this.connectOpts),i=tv.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=tv.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}: ${n[f]}\r
`;let l=(0,cZe.parseProxyResponse)(i);i.write(`${c}\r
`);let{connect:u,buffered:h}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",lZe),r.secureEndpoint?(YI("Upgrading socket connection to TLS"),Khe.connect({...Zhe(Xhe(r),"host","path","port"),socket:i})):i;i.destroy();let d=new tv.Socket({writable:!1});return d.readable=!0,e.once("socket",f=>{YI("Replaying proxy buffer for failed request"),(0,iZe.default)(f.listenerCount("data")>0),f.push(h),f.push(null)}),d}};rv.protocols=["http","https"];$o.HttpsProxyAgent=rv;function lZe(t){t.resume()}o(lZe,"resume");function Zhe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(Zhe,"omit")});var nde=m(An=>{"use strict";var uZe=An&&An.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),hZe=An&&An.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sde=An&&An.__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)&&uZe(e,t,r);return hZe(e,t),e};Object.defineProperty(An,"__esModule",{value:!0});An.req=An.json=An.toBuffer=void 0;var dZe=sde(require("http")),fZe=sde(require("https"));async function ide(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(ide,"toBuffer");An.toBuffer=ide;async function pZe(t){let r=(await ide(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}o(pZe,"json");An.json=pZe;function AZe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?fZe:dZe).request(t,e),i=new Promise((n,a)=>{s.once("response",n).once("error",a).end()});return s.then=i.then.bind(i),s}o(AZe,"req");An.req=AZe});var WI=m(to=>{"use strict";var ade=to&&to.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),mZe=to&&to.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cde=to&&to.__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)&&ade(e,t,r);return mZe(e,t),e},gZe=to&&to.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ade(e,t,r)};Object.defineProperty(to,"__esModule",{value:!0});to.Agent=void 0;var yZe=cde(require("net")),ode=cde(require("http")),EZe=require("https");gZe(nde(),to);var Pc=Symbol("AgentBaseInternalState"),GU=class extends ode.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Pc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new yZe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?EZe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),a=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(n,a),c instanceof ode.Agent)return c.addRequest(e,i);this[Pc].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(n,a),s(c)})}createConnection(){let e=this[Pc].currentSocket;if(this[Pc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Pc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Pc]&&(this[Pc].defaultPort=e)}get protocol(){return this[Pc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Pc]&&(this[Pc].protocol=e)}};to.Agent=GU});var HU=m(jo=>{"use strict";var CZe=jo&&jo.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),IZe=jo&&jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ude=jo&&jo.__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)&&CZe(e,t,r);return IZe(e,t),e},bZe=jo&&jo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jo,"__esModule",{value:!0});jo.HttpProxyAgent=void 0;var wZe=ude(require("net")),SZe=ude(require("tls")),BZe=bZe(op()),xZe=require("events"),NZe=WI(),lde=require("url"),Ag=(0,BZe.default)("http-proxy-agent"),sv=class extends NZe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new lde.URL(e):e,this.proxyHeaders=r?.headers??{},Ag("Creating new HttpProxyAgent 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={...r?vZe(r,"headers"):null,host:s,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,i=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",a=`${i}//${n}`,c=new lde.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let h=l[u];h&&e.setHeader(u,h)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;Ag("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ag("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(i),Ag("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(Ag("Creating `tls.Socket`: %o",this.connectOpts),n=SZe.connect(this.connectOpts)):(Ag("Creating `net.Socket`: %o",this.connectOpts),n=wZe.connect(this.connectOpts)),await(0,xZe.once)(n,"connect"),n}};sv.protocols=["http","https"];jo.HttpProxyAgent=sv;function vZe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(vZe,"omit")});var Qde=m(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});gv.state=void 0;gv.state={instrumenterImplementation:void 0}});var Yde=m(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.state=void 0;bv.state={operationRequestMap:new WeakMap}});var NAe=m(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});var Wst=require("os"),Kst=require("util");function Xst(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Xst,"_interopDefaultLegacy");var Zst=Xst(Kst);function eit(t,...e){process.stderr.write(`${Zst.default.format(t,...e)}${Wst.EOL}`)}o(eit,"log");var gAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,EAe,I8=[],b8=[],qR=[];gAe&&w8(gAe);var CAe=Object.assign(t=>IAe(t),{enable:w8,enabled:S8,disable:tit,log:eit});function w8(t){EAe=t,I8=[],b8=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?b8.push(new RegExp(`^${s.substr(1)}$`)):I8.push(new RegExp(`^${s}$`));for(let s of qR)s.enabled=S8(s.namespace)}o(w8,"enable");function S8(t){if(t.endsWith("*"))return!0;for(let e of b8)if(e.test(t))return!1;for(let e of I8)if(e.test(t))return!0;return!1}o(S8,"enabled");function tit(){let t=EAe||"";return w8(""),t}o(tit,"disable");function IAe(t){let e=Object.assign(r,{enabled:S8(t),destroy:rit,log:CAe.log,namespace:t,extend:sit});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),qR.push(e),e}o(IAe,"createDebugger");function rit(){let t=qR.indexOf(this);return t>=0?(qR.splice(t,1),!0):!1}o(rit,"destroy");function sit(t){let e=IAe(`${this.namespace}:${t}`);return e.log=this.log,e}o(sit,"extend");var M0=CAe,bAe=new Set,FR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,GR,HR=M0("azure");HR.log=(...t)=>{M0.log(...t)};var B8=["verbose","info","warning","error"];FR&&(xAe(FR)?wAe(FR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${FR}'; logging is not enabled. Acceptable values: ${B8.join(", ")}.`));function wAe(t){if(t&&!xAe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${B8.join(",")}`);GR=t;let e=[];for(let r of bAe)BAe(r)&&e.push(r.namespace);M0.enable(e.join(","))}o(wAe,"setLogLevel");function iit(){return GR}o(iit,"getLogLevel");var yAe={verbose:400,info:300,warning:200,error:100};function nit(t){let e=HR.extend(t);return SAe(HR,e),{error:UR(e,"error"),warning:UR(e,"warning"),info:UR(e,"info"),verbose:UR(e,"verbose")}}o(nit,"createClientLogger");function SAe(t,e){e.log=(...r)=>{t.log(...r)}}o(SAe,"patchLogMethod");function UR(t,e){let r=Object.assign(t.extend(e),{level:e});if(SAe(t,r),BAe(r)){let s=M0.disable();M0.enable(s+","+r.namespace)}return bAe.add(r),r}o(UR,"createLogger");function BAe(t){return!!(GR&&yAe[t.level]<=yAe[GR])}o(BAe,"shouldEnable");function xAe(t){return B8.includes(t)}o(xAe,"isAzureLogLevel");Pg.AzureLogger=HR;Pg.createClientLogger=nit;Pg.getLogLevel=iit;Pg.setLogLevel=wAe});var v8=m(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});var Og=new WeakMap,VR=new WeakMap,L0=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Og.set(this,[]),VR.set(this,!1)}get aborted(){if(!VR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return VR.get(this)}static get none(){return new t}addEventListener(e,r){if(!Og.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Og.get(this).push(r)}removeEventListener(e,r){if(!Og.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Og.get(this),i=s.indexOf(r);i>-
Polling from: ${r.config.operationLocation}
Operation status: ${h}
Polling status: ${MAe.includes(h)?"Stopped":"Running"}`),h==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(DAe({state:r,stateProxy:s,isOperationError:c})),status:h}}return{response:u,status:h}}o(bit,"pollOperationHelper");async function qAe(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:h,processResult:d,getError:f,updateState:p,setDelay:A,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:S}=await bit({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:i});if(FAe({status:S,response:I,state:r,stateProxy:s,isDone:g,processResult:d,getError:f,setErrorAsResult:C}),!MAe.includes(S)){let x=h?.(I);x&&A(x);let v=c?.(I,r);if(v!==void 0){let D=E!==v;r.config.operationLocation=v,u?.(v,D)}else u?.(E,!1)}p?.(r,I)}}o(qAe,"pollOperation");function GAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(GAe,"getOperationLocationPollingUrl");function HAe(t){return t.headers.location}o(HAe,"getLocationHeader");function VAe(t){return t.headers["operation-location"]}o(VAe,"getOperationLocationHeader");function zAe(t){return t.headers["azure-asyncoperation"]}o(zAe,"getAzureAsyncOperationHeader");function wit(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}o(wit,"findResourceLocation");function $Ae(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=VAe(e),a=zAe(e),c=GAe({operationLocation:n,azureAsyncOperation:a}),l=HAe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:wit({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o($Ae,"inferLroMode");function jAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return k8(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Sp.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(jAe,"transformStatus");function Sit(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return jAe({status:r,statusCode:t.statusCode})}o(Sit,"getStatus");function Bit(t){var e,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=s?.provisioningState)!==null&&r!==void 0?r:i;return jAe({status:n,statusCode:t.statusCode})}o(Bit,"getProvisioningState");function k8(t){return t===202?"running":t<300?"succeeded":"failed"}o(k8,"toOperationStatus");function JAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?xit(new Date(e)):r*1e3}}o(JAe,"parseRetryAfter");function YAe(t){let e=t.flatResponse.error;if(!e){Sp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Sp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(YAe,"getErrorFromResponse");function xit(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(xit,"calculatePollingIntervalFromDate");function WAe(t){let{response:e,state:r,operationLocation:s}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return k8(e.rawResponse.sta
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=n,i=1;break;case 1:r[s++]=a<<2|(n&48)>>4,a=n,i=2;break;case 2:r[s++]=(a&15)<<4|(n&60)>>2,a=n,i=3;break;case 3:r[s++]=(a&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(unt,"base64decode");Ug.base64decode=unt;function hnt(t){let e="",r=0,s,i=0;for(let n=0;n<t.length;n++)switch(s=t[n],r){case 0:e+=Du[s>>2],i=(s&3)<<4,r=1;break;case 1:e+=Du[i|s>>4],i=(s&15)<<2,r=2;break;case 2:e+=Du[i|s>>6],e+=Du[s&63],r=0;break}return r&&(e+=Du[i],e+="=",r==1&&(e+="=")),e}o(hnt,"base64encode");Ug.base64encode=hnt});var Nme=m(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.utf8read=void 0;var j8=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function dnt(t){if(t.length<1)return"";let e=0,r=[],s=[],i=0,n,a=t.length;for(;e<a;)n=t[e++],n<128?s[i++]=n:n>191&&n<224?s[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[i++]=55296+(n>>10),s[i++]=56320+(n&1023)):s[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(j8(s)),i=0);return r.length?(i&&r.push(j8(s.slice(0,i))),r.join("")):j8(s.slice(0,i))}o(dnt,"utf8read");lT.utf8read=dnt});var j0=m(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.WireType=nl.mergeBinaryOptions=nl.UnknownFieldHandler=void 0;var fnt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,i,n,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:i,wireType:n,data:a})},t.onWrite=(r,s,i)=>{for(let{no:n,wireType:a,data:c}of t.list(s))i.tag(n,a).raw(c)},t.list=(r,s)=>{if(e(r)){let i=r[t.symbol];return s?i.filter(n=>n.no==s):i}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(fnt=nl.UnknownFieldHandler||(nl.UnknownFieldHandler={}));function pnt(t,e){return Object.assign(Object.assign({},t),e)}o(pnt,"mergeBinaryOptions");nl.mergeBinaryOptions=pnt;var Ant;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Ant=nl.WireType||(nl.WireType={}))});var hT=m(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.varint32read=bn.varint32write=bn.int64toString=bn.int64fromString=bn.varint64write=bn.varint64read=void 0;function mnt(){let t=0,e=0;for(let s=0;s<28;s+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(mnt,"varint64read");bn.varint64read=mnt;function gnt(t,e,r){for(let n=0;n<28;n=n+7){let a=t>>>n,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let s=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?s|128:s)&255),!!i){for(let n=3;n<31;n=n+7){let a=e>>>n,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(gnt,"varint64write");bn.varint64write=gnt;var uT=65536*65536;function ynt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,i=0;function n(a,c){let l=Number(t.slice(a,c));i*=r,s=s*r+l,s>=uT&&(i=i+(s/uT|0),s=s%uT)}return o(n,"add1e6digit"),n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,s,i]}o(ynt,"int64fromString");bn.int64fromString=ynt;function Ent(t,e){if(e>>>0<=2097151)return""+(uT*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=r+s*6777216+i*6710656,a=s+i*8147497,c=i*2,l=1e7;n>=l&&(a+=Math.floor(n/l),n%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(h,d){let f=h?String(h):"";return d?"0000000".slice(f.length)+f:f}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(n,1)}o(Ent,"int64toString");bn.int64toString=Ent;function Cnt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(Cnt,"varint32write");bn.varint32write=Cnt;function Int(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return
`)}};LT.RpcError=CV});var bV=m(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.mergeRpcOptions=void 0;var oge=Fr();function Hot(t,e){if(!e)return t;let r={};FT(t,r),FT(e,r);for(let s of Object.keys(e)){let i=e[s];switch(s){case"jsonOptions":r.jsonOptions=oge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=oge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},FT(t.meta,r.meta),FT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(Hot,"mergeRpcOptions");UT.mergeRpcOptions=Hot;function FT(t,e){if(!t)return;let r=e;for(let[s,i]of Object.entries(t))i instanceof Date?r[s]=new Date(i.getTime()):Array.isArray(i)?r[s]=i.concat():r[s]=i}o(FT,"copy")});var SV=m(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.Deferred=Rp.DeferredState=void 0;var cl;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(cl=Rp.DeferredState||(Rp.DeferredState={}));var wV=class{static{o(this,"Deferred")}constructor(e=!0){this._state=cl.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==cl.PENDING)throw new Error(`cannot resolve ${cl[this.state].toLowerCase()}`);this._resolve(e),this._state=cl.RESOLVED}reject(e){if(this.state!==cl.PENDING)throw new Error(`cannot reject ${cl[this.state].toLowerCase()}`);this._reject(e),this._state=cl.REJECTED}resolvePending(e){this._state===cl.PENDING&&this.resolve(e)}rejectPending(e){this._state===cl.PENDING&&this.reject(e)}};Rp.Deferred=wV});var xV=m(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.RpcOutputStreamController=void 0;var age=SV(),Tp=Fr(),BV=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Tp.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Tp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Tp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Tp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Tp.assert(e,"bad state"),Tp.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new age.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Tp.assert(s.state==age.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};qT.RpcOutputStreamController=BV});var vV=m(jg=>{"use strict";var Vot=jg&&jg.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.definePrope
2026-05-22 14:44:02 +00:00
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(zht,"logUnexpecedPropertyAccessOnce");function $ht(){Object.keys(b_).forEach(function(t){delete b_[t]})}o($ht,"resetLoggedProperties")});var S_=m(dl=>{"use strict";dl.__esModule=!0;dl.HandlebarsEnvironment=Yz;function hCe(t){return t&&t.__esModule?t:{default:t}}o(hCe,"_interopRequireDefault");var Dp=Fi(),jht=ho(),jz=hCe(jht),Jht=Hz(),Yht=aCe(),Wht=zz(),w_=hCe(Wht),Kht=$z(),Xht="4.7.9";dl.VERSION=Xht;var Zht=8;dl.COMPILER_REVISION=Zht;var edt=7;dl.LAST_COMPATIBLE_COMPILER_REVISION=edt;var tdt={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=tdt;var Jz="[object Object]";function Yz(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Jht.registerDefaultHelpers(this),Yht.registerDefaultDecorators(this)}o(Yz,"HandlebarsEnvironment");Yz.prototype={constructor:Yz,logger:w_.default,log:w_.default.log,registerHelper:o(function(e,r){if(Dp.toString.call(e)===Jz){if(r)throw new jz.default("Arg not supported with multiple helpers");Dp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Dp.toString.call(e)===Jz)Dp.extend(this.partials,e);else{if(typeof r>"u")throw new jz.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Dp.toString.call(e)===Jz){if(r)throw new jz.default("Arg not supported with multiple decorators");Dp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Kht.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var rdt=w_.default.log;dl.log=rdt;dl.createFrame=Dp.createFrame;dl.logger=w_.default});var fCe=m((B_,dCe)=>{"use strict";B_.__esModule=!0;function Wz(t){this.string=t}o(Wz,"SafeString");Wz.prototype.toString=Wz.prototype.toHTML=function(){return""+this.string};B_.default=Wz;dCe.exports=B_.default});var pCe=m(Kz=>{"use strict";Kz.__esModule=!0;Kz.wrapHelper=sdt;function sdt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(sdt,"wrapHelper")});var CCe=m(vd=>{"use strict";vd.__esModule=!0;vd.checkRevision=ldt;vd.template=udt;vd.wrapProgram=x_;vd.resolvePartial=hdt;vd.invokePartial=ddt;vd.noop=yCe;function idt(t){return t&&t.__esModule?t:{default:t}}o(idt,"_interopRequireDefault");function ndt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(ndt,"_interopRequireWildcard");var odt=Fi(),ay=ndt(odt),adt=ho(),Lu=idt(adt),Fu=S_(),ACe=Hz(),cdt=pCe(),mCe=$z();function ldt(t){var e=t&&t[0]||1,r=Fu.COMPILER_REVISION;if(!(e>=Fu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Fu.COMPILER_REVISION))if(e<Fu.LAST_COMPATIBLE_COMPILER_REVISION){var s=Fu.REVISION_CHANGES[r],i=Fu.REVISION_CHANGES[e];throw new Lu.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 Lu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(ldt,"checkRevision");function udt(t,e){if(!e)throw new Lu.default("No environment passed to template");if(!t||!t.main)throw new Lu.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=ay.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
`),d=0,f=h.length;d<f&&!(!h[d]&&d+1===f);d++)h[d]=l.indent+h[d];u=h.join(`
`)}return u}else throw new Lu.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Lu.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||mCe.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,h=0;h<u;h++){var d=c[h]&&i.lookupProperty(c[h],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:ay.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,h,d){var f=this.programs[c],p=this.fn(c);return l||d||h||u?f=x_(this,c,p,l,u,h,d):f||(f=this.programs[c]=x_(this,c,p)),f},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=ay.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;n._setup(c),!c.partial&&t.useData&&(l=fdt(a,l));var u=void 0,h=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(f){return""+t.main(i,f,i.helpers,i.partials,l,h,u)}return o(d,"main"),d=ECe(t.main,d,i,c.depths||[],l,h),d(a,c)}return o(n,"ret"),n.isTop=!0,n._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};gCe(c,e.helpers,i),gCe(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=ay.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=mCe.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;ACe.moveHelperToHooks(i,"helperMissing",l),ACe.moveHelperToHooks(i,"blockHelperMissing",l)}},n._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Lu.default("must pass block params");if(t.useDepths&&!u)throw new Lu.default("must pass parent depths");return x_(i,a,t[a],c,0,l,u)},n}o(udt,"template");function x_(t,e,r,s,i,n,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(h=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,n&&[u.blockParams].concat(n),h)}return o(c,"prog"),c=ECe(r,c,t,a,s,n),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(x_,"wrapProgram");function hdt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=N_(r.partials,t)):r.name==="@partial-block"?t=N_(r.data,"partial-block"):t=N_(r.partials,r.name),t}o(hdt,"resolvePartial");function ddt(t,e,r){var s=N_(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!==yCe&&(function(){r.data=Fu.createFrame(r.data);var n=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Fu.createFrame(l.data),l.data["partial-block"]=s,n(c,l)},"partialBlockWrapper"),n.partials&&(r.partials=ay.extend({},r.partials,n.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Lu.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(ddt,"invokePartial");function yCe(){return""}o(yCe,"noop");function N_(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(N_,"lookupOwnProperty");function fdt(t,e){return(!e||!("root"in e))&&(e=e?Fu.createFrame(e):{},e.root=t),e}o(fdt,"initData");function ECe(t,e,r,s,i,n){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],i,n,s),ay.extend(e,a)}return e}o(ECe,"executeDecorators");function gCe(t,e,r){e&&Object.keys(e).forEach(function(s){var i=e[s];t[s]=pdt(i,r)})}o(gCe,"addHelpers");function pdt(t,e){var r=e.lookupProperty;return cdt
2026-05-22 14:44:02 +00:00
`+this.lexer.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[x]||x)+"'":se="Parse error on line "+(d+1)+": Unexpected "+(x==1?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(se,{text:this.lexer.match,token:this.terminals_[x]||x,line:this.lexer.yylineno,loc:C,expected:j})}}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+x);switch(O[0]){case 1:a.push(x),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(O[1]),x=null,v?(x=v,v=null):(f=this.lexer.yyleng,h=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case 2:if(q=this.productions_[O[1]][1],ee.$=c[c.length-q],ee._$={first_line:l[l.length-(q||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(q||1)].first_column,last_column:l[l.length-1].last_column},E&&(ee._$.range=[l[l.length-(q||1)].range[0],l[l.length-1].range[1]]),z=this.performAction.call(ee,h,f,d,this.yy,O[1],c,l),typeof z<"u")return z;q&&(a=a.slice(0,-1*q*2),c=c.slice(0,-1*q),l=l.slice(0,-1*q)),a.push(this.productions_[O[1]][0]),c.push(ee.$),l.push(ee._$),V=u[a[a.length-2]][a[a.length-1]],a.push(V);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={EOF:1,parseError:o(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:o(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},"setInput"),input:o(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:o(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=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:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(n){this.unput(this.match.slice(n))},"less"),pastInput:o(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(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,"")},"upcomingInput"),showPosition:o(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,c,l,u,h;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),f=0;f<d.length&&(c=this._input.match(this.rules[d[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(h=a[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],n=this.performAction.call(this,this.yy,this,d[l],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)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return typeof n<"u"?n:this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(n){this.begin(n)},"begin")};return s.options={},s.performAction=o(function(n,a,c,l){function u(d,f){return a.yytext=a.yytext.substring(d,a.yyleng-f+d)}o(u,"strip");var h=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();__.default=Sdt;RCe.exports=__.default});var D_=m((O_,PCe)=>{"use strict";O_.__esModule=!0;function Bdt(t){return t&&t.__esModule?t:{default:t}}o(Bdt,"_interopRequireDefault");var xdt=ho(),s3=Bdt(xdt);function Q_(){this.parents=[]}o(Q_,"Visitor");Q_.prototype={constructor:Q_,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!Q_.prototype[s.type])throw new s3.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Fp(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Fp?e:(e=B3(e,this,r),new Fp(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var a=B3(e[n],r);a!=="undefined"&&s.push([r.quotedString(n),":",a])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(B3(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};H_.default=pIe;AIe.exports=H_.default});var IIe=m((V_,CIe)=>{"use strict";V_.__esModule=!0;function EIe(t){return t&&t.__esModule?t:{default:t}}o(EIe,"_interopRequireDefault");var gIe=S_(),wft=ho(),N3=EIe(wft),Sft=Fi(),Bft=mIe(),yIe=EIe(Bft);function fy(t){this.value=t}o(fy,"Literal");function py(){}o(py,"JavaScriptCompiler");py.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=gIe.COMPILER_REVISION,r=gIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return Sft.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,s,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=n.length;l<u;l++)a=n[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new N3.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
2026-05-22 14:44:02 +00:00
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var h=this.createFunctionContext(i);if(this.isChild)return h;var d={compiler:this.compilerInfo(),main:h};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var f=this.context,p=f.programs,A=f.decorators;for(l=0,u=p.length;l<u;l++)d[l]=p[l],A[l]&&(d[l+"_d"]=A[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),i?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new yIe.default(this.options.srcName),this.decorators=new yIe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",i=this.stackVars.concat(this.registers.list);i.length>0&&(s+=", "+i.join(", "));var n=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++n+"="+l,u.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,i=void 0,n=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(n?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),n=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
2026-05-22 14:44:02 +00:00
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var i=this.popStack();s.splice(1,0,i),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,i){var n=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,i,n){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(xft(this.options.strict&&n,this,r,s,e));return}for(var c=r.length,l=o(function(h){a.replaceStack(function(d){var f=a.nameLookup(d,r[h],e);return i?[" && ",f]:[" != null ? ",f," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var s=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var i=this.popStack(),n=this.setupHelper(e,r),a=[];s&&a.push(n.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hoo
`,e};xr.prototype.Program=function(t){var e="",r=t.body,s=void 0,i=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(s=0,i=t.blockParams.length;s<i;s++)n+=" "+t.blockParams[s];n+=" ]",e+=this.pad(n)}for(s=0,i=r.length;s<i;s++)e+=this.accept(r[s]);return this.padding--,e};xr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};xr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};xr.prototype.BlockStatement=xr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};xr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};xr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};xr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};xr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};xr.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};xr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};xr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};xr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};xr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};xr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};xr.prototype.NullLiteral=function(){return"NULL"};xr.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};xr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var RIe=m((Vur,vIe)=>{var j_=SIe().default,NIe=BIe();j_.PrintVisitor=NIe.PrintVisitor;j_.print=NIe.print;vIe.exports=j_;function xIe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=j_.compile(s)}o(xIe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=xIe,require.extensions[".hbs"]=xIe)});var qIe=m(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.getProxyUrl=Yft;K_.checkBypass=UIe;function Yft(t){let e=t.protocol==="https:";if(UIe(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 W_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new W_(`http://${r}`)}else return}o(Yft,"getProxyUrl");function UIe(t){if(!t.hostname)return!1;let e=t.hostname;if(Wft(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(a=>a.trim().toUpperCase()).filter(a=>a))if(n==="*"||i.some(a=>a===n||a.endsWith(`.${n}`)||n.startsWith(".")&&a.endsWith(`${n}`)))return!0;return!1}o(UIe,"checkBypass");function Wft(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Wft,"isLoopbackAddress");var W_=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get passwor
`).forEach(r=>{r.match(amt)||r.match(cmt)||(e+=r)}),Buffer.from(e,"base64")}o(lmt,"toDER");function umt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}o(umt,"fromDER")});var DQ=m(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.SHA2_HASH_ALGOS=Fd.RSA_SIGNATURE_ALGOS=Fd.ECDSA_SIGNATURE_ALGOS=void 0;Fd.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Fd.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Fd.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var x5=m(kQ=>{"use strict";Object.defineProperty(kQ,"__esModule",{value:!0});kQ.RFC3161TimestampVerificationError=void 0;var B5=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};kQ.RFC3161TimestampVerificationError=B5});var xbe=m(yl=>{"use strict";var hmt=yl&&yl.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),dmt=yl&&yl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fmt=yl&&yl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&hmt(r,e,s[i]);return dmt(r,e),r}})();Object.defineProperty(yl,"__esModule",{value:!0});yl.TSTInfo=void 0;var Bbe=fmt(By()),pmt=DQ(),Amt=x5(),N5=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return pmt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Bbe.digest(this.messageImprintHashAlgorithm,e);if(!Bbe.bufferEqual(r,this.messageImprintHashedMessage))throw new Amt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};yl.TSTInfo=N5});var vbe=m(El=>{"use strict";var mmt=El&&El.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),gmt=El&&El.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ymt=El&&El.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&mmt(r,e,s[i]);return gmt(r,e),r}})();Object.defineProperty(El,"__esModule",{value:!0});El.RFC3161Timestamp=void 0;var Emt=QQ(),v5=ymt(By()),Nbe=DQ(),Fb=x5(),Cmt=xbe(),Imt="1.2.840.113549.1.7.2",bmt="1.2.840.113549.1.9.16.1.4",wmt="1.2.840.113549.1.9.4",R5=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=Emt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorith
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE9
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var Gwe=m(qwe=>{"use strict";var gj=Zu().Buffer;qwe._dbcs=th;var Ys=-1,Uwe=-2,fa=-10,Ki=-1e3,Fy=new Array(256),iw=-1;for(I1=0;I1<256;I1++)Fy[I1]=Ys;var I1;function th(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[]
Wanted: ${this.expectedSize}
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},oh=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let i=this.source.match(s?DEt:OEt);if(!i||s&&!qj.includes(i[1])||!JSe.includes(i[1]))return;this.algorithm=i[1],this.digest=i[2];let n=i[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=Eo(e,r);if(!s)return!1;if(s.isIntegrity){let i=s.pickAlgorithm(r,[this.algorithm]);if(!i)return!1;let n=s[i].find(a=>a.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(qj.includes(this.algorithm)&&this.digest.match(PEt)&&this.options.every(r=>r.match(kEt)))?"":`${this.algorithm}-${this.digest}${dw(this.options)}`}};function jSe(t,e,r,s){let i=t!=="",n=!1,a="",c=s.length-1;for(let u=0;u<c;u++){let h=oh.prototype.toString.call(s[u],r);h&&(n=!0,a+=h,a+=e)}let l=oh.prototype.toString.call(s[c],r);return l&&(n=!0,a+=l),i&&n?t+e+a:t+a}o(jSe,"integrityHashToString");var cA=class{static{o(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let i of qj)this[i]&&(s=jSe(s,r,e,this[i]))}else for(let i of Object.keys(this))s=jSe(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:uw(e,r);return Eo(`${this.toString(r)} ${s}`,r)}hexDigest(){return Eo(this,{single:!0}).hexDigest()}merge(e,r){let s=Eo(e,r);for(let i in s)if(this[i]){if(!this[i].find(n=>s[i].find(a=>n.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[i]=s[i]}match(e,r){let s=Eo(e,r);if(!s)return!1;let i=s.pickAlgorithm(r,Object.keys(this));return!!i&&this[i].find(n=>s[i].find(a=>n.digest===a.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||HEt,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,a)=>s(n,a)||n):null}};Rl.exports.parse=Eo;function Eo(t,e){if(!t)return null;if(typeof t=="string")return Uj(t,e);if(t.algorithm&&t.digest){let r=new cA;return r[t.algorithm]=[t],Uj(uw(r,e),e)}else return Uj(uw(t,e),e)}o(Eo,"parse");function Uj(t,e){if(e?.single)return new oh(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new oh(i,e);if(n.algorithm&&n.digest){let a=n.algorithm;Object.keys(s).includes(a)||(s[a]=[]),s[a].push(n)}return s},new cA);return r.isEmpty()?null:r}o(Uj,"_parse");Rl.exports.stringify=uw;function uw(t,e){return t.algorithm&&t.digest?oh.prototype.toString.call(t,e):typeof t=="string"?uw(Eo(t,e),e):cA.prototype.toString.call(t,e)}o(uw,"stringify");Rl.exports.fromHex=MEt;function MEt(t,e,r){let s=dw(r?.options);return Eo(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}o(MEt,"fromHex");Rl.exports.fromData=LEt;function LEt(t,e){let r=e?.algorithms||[...Hj],s=dw(e?.options);return r.reduce((i,n)=>{let a=hw.createHash(n).update(t).digest("base64"),c=new oh(`${n}-${a}${s}`,e);if(c.algorithm&&c.digest){let l=c.algorithm;i[l]||(i[l]=[]),i[l].push(c)}return i},new cA)}o(LEt,"fromData");Rl.exports.fromStream=FEt;function FEt(t,e){let r=Vj(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",a=>{n=a}),r.on("end",()=>s(n)),r.resume()})}o(FEt,"fromStream");Rl.exports.checkData=UEt;function UEt(t,e,r){if(e=Eo(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTE
Wanted: ${r.size}
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=n,c.expected=e,c.algorithm=s,c.sri=e,c}}o(UEt,"checkData");Rl.exports.checkStream=qEt;function qEt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Eo(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=Vj(r);return new Promise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);let a;s.on("verified",c=>{a=c}),s.on("end",()=>i(a)),s.resume()})}o(qEt,"checkStream");Rl.exports.integrityStream=Vj;function Vj(t=Object.create(null)){return new Gj(t)}o(Vj,"integrityStream");Rl.exports.create=GEt;function GEt(t){let e=t?.algorithms||[...Hj],r=dw(t?.options),s=e.map(hw.createHash);return{update:o(function(i,n){return s.forEach(a=>a.update(i,n)),this},"update"),digest:o(function(){return e.reduce((n,a)=>{let c=s.shift().digest("base64"),l=new oh(`${a}-${c}${r}`,t);return n[l.algorithm]||(n[l.algorithm]=[]),n[l.algorithm].push(l),n},new cA)},"digest")}}o(GEt,"createIntegrity");function HEt(t,e){return $Se.indexOf(t.toLowerCase())>=$Se.indexOf(e.toLowerCase())?t:e}o(HEt,"getPrioritizedHash")});var $j=m((Vmr,ZSe)=>{var YSe=Pj(),WSe=Fj(),VEt=Tl(),KSe={shared:!1,ignoreCargoCult:!0},zEt={status:200,headers:{}},Gy=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),XSe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),zj=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=Gy(r),this.response=XSe(s),this.options=i,this.policy=new YSe(this.request,this.response,KSe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new YSe(Gy(e),zEt,KSe).storable()}satisfies(e){let r=Gy(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new WSe(this.request),i=new WSe(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?VEt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Gy(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Gy(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Gy(e),i=XSe(r);return!this.policy.revalidatedPolicy(s,i).modified}};ZSe.exports=zj});var tBe=m(($mr,eBe)=>{var jj=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};eBe.exports={NotCachedError:jj}});var hBe=m((Jmr,uBe)=>{"use strict";var rBe=typeof process=="object"&&process?process:{stdout:null,stderr:null},$Et=require("events"),sBe=require("stream"),iBe=require("string_decoder").StringDecoder,ah=Symbol("EOF"),ch=Symbol("maybeEmitEnd"),jd=Symbol("emittedEnd"),O1=Symbol("emittingEnd"),fw=Symbol("emittedError"),D1=Symbol("closed"),nBe=Symbol("read"),k1=Symbol("flush"),oBe=Symbol("flushChunk"),Rn=Symbol("encoding"),lh=Symbol("decoder"),M1=Symbol("flowing"),pw=Symbol("paused"),Hy=Symbol("resume"),Os=Symbol("bufferLength"),Jj=Symbol("bufferPush"),Yj=Symbol("bufferShift"),pi=Symbol("objectMode"),Ai=Symbol("destroyed"),Wj=Symbol("emitData"),aBe=Symbol("emitEnd"),Kj=Symbol("emitEnd2"),uh=Symbol("async"),Aw=o(t=>Promise.resolve().then(t),"defer"),cBe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",jEt=cBe&&Symbol.asyncIter
`+a.map(f=>{let p=JSON.stringify(f);return`${lP(p)} ${p}`}).join(`
`),l=o(async()=>{let f=vwt(Ql.join(t,"tmp"),s.tmpPrefix);return await j6(Ql.dirname(f),{recursive:!0}),{target:f,moved:!1}},"setup"),u=o(async f=>{if(!f.moved)return Ive(f.target,{recursive:!0,force:!0})},"teardown"),h=o(async f=>{await Bwt(f.target,c,{flag:"wx"}),await j6(Ql.dirname(i),{recursive:!0}),await Qwt(f.target,i),f.moved=!0},"write"),d=await l();try{await h(d)}finally{await u(d)}return a.reverse().map(f=>uP(t,f,!0))}o(Pwt,"compact");Io.exports.insert=bve;async function bve(t,e,r,s={}){let{metadata:i,size:n,time:a}=s,c=Qw(t,e),l={key:e,integrity:r&&Nwt.stringify(r),time:a||Date.now(),size:n,metadata:i};try{await j6(Ql.dirname(c),{recursive:!0});let u=JSON.stringify(l);await bwt(c,`
${lP(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return uP(t,l)}o(bve,"insert");Io.exports.find=Owt;async function Owt(t,e){let r=Qw(t,e);try{return(await cP(r)).reduce((i,n)=>n&&n.key===e?uP(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}o(Owt,"find");Io.exports.delete=Dwt;function Dwt(t,e,r={}){if(!r.removeFully)return bve(t,e,null,r);let s=Qw(t,e);return Ive(s,{recursive:!0,force:!0})}o(Dwt,"del");Io.exports.lsStream=wve;function wve(t){let e=J6(t),r=new xwt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(aP(),oP)),i=await $6(e);return await s(i,async n=>{let a=Ql.join(e,n),c=await $6(a);await s(c,async l=>{let u=Ql.join(a,l),h=await $6(u);await s(h,async d=>{let f=Ql.join(u,d);try{let A=(await cP(f)).reduce((g,C)=>(g.set(C.key,C),g),new Map);for(let g of A.values()){let C=uP(t,g);C&&r.write(C)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:z6})},{concurrency:z6})},{concurrency:z6}),r.end(),r}).catch(s=>r.emit("error",s)),r}o(wve,"lsStream");Io.exports.ls=kwt;async function kwt(t){return(await wve(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}o(kwt,"ls");Io.exports.bucketEntries=cP;async function cP(t,e){let r=await wwt(t,"utf8");return Mwt(r,e)}o(cP,"bucketEntries");function Mwt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||lP(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}o(Mwt,"_bucketEntries");Io.exports.bucketDir=J6;function J6(t){return Ql.join(t,`index-v${_wt}`)}o(J6,"bucketDir");Io.exports.bucketPath=Qw;function Qw(t,e){let r=Sve(e);return Ql.join.apply(Ql,[J6(t)].concat(Twt(r)))}o(Qw,"bucketPath");Io.exports.hashKey=Sve;function Sve(t){return Bve(t,"sha256")}o(Sve,"hashKey");Io.exports.hashEntry=lP;function lP(t){return Bve(t,"sha1")}o(lP,"hashEntry");function Bve(t,e){return Iwt.createHash(e).update(t).digest("hex")}o(Bve,"hash");function uP(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Rwt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(uP,"formatEntry");function $6(t){return Swt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o($6,"readdirOrEmpty")});var Ow=m(fP=>{"use strict";Object.defineProperty(fP,"__esModule",{value:!0});fP.LRUCache=void 0;var Lwt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Nve=new Set,Y6=typeof process=="object"&&process?process:{},vve=o((t,e,r,s)=>{typeof Y6.emitWarning=="function"?Y6.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},"I"),dP=globalThis.AbortController,xve=globalThis.AbortSignal;if(typeof dP>"u"){xve=class{static{o(this,"L")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},dP=class{static{o(this,"C")}constructor(){e()}signal=new xve;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=Y6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,vve("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))},"t")}var Fwt=o(t=>!Nve.has(t),"G"),Yd=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"y"),Rve=o(t=>Yd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?hP:null:null,"M"),hP=class extends Array{static{o(this,"z")}constructor(t){super(t),this.fill(0)}},Uwt=class Pw{static{o(this,"a")}heap;length;static#e=!1;static create(e){let r=Rve(e);if(!r)return[];Pw.#e=!0;let s=new Pw(e,r);return Pw.#e=!1,s}constructor(e,r){if(!Pw.#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]}},qwt=class Tve{static{o(this,"a")}#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:o(r=>e.#d(r),"isBackgroundFetch"),backgroundFetch:o((r,s,i,n)=>e.#G(r,s,i,n),"backgroundFetch"),moveToTail:o(r=>e.#P(r),"moveToTail"),indexes:o(r=>e.#R(r),"indexes"),rindexes:o(r=>e.#T(r),"rindexes"),isStale:o(r=>e.#w(r),"isStale")}}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:a,updateAgeOnHas:c,allowS
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(bSt,"checksumError")});var Xve=m((_Er,lJ)=>{"use strict";var Jve=Zy(),Yve=Dw(),Wve=jve(),wSt=mw(),{PassThrough:SSt}=s6(),BSt=uA(),Kve=o(t=>({algorithms:["sha512"],...t}),"putOpts");lJ.exports=xSt;async function xSt(t,e,r,s={}){let{memoize:i}=s;s=Kve(s);let n=await Wve(t,r,s),a=await Jve.insert(t,e,n.integrity,{...s,size:n.size});return i&&Yve.put(t,a,r,s),n.integrity}o(xSt,"putData");lJ.exports.stream=NSt;function NSt(t,e,r={}){let{memoize:s}=r;r=Kve(r);let i,n,a,c,l=new BSt;if(s){let h=new SSt().on("collect",d=>{c=d});l.push(h)}let u=Wve.stream(t,r).on("integrity",h=>{i=h}).on("size",h=>{n=h}).on("error",h=>{a=h});return l.push(u),l.push(new wSt({async flush(){if(!a){let h=await Jve.insert(t,e,i,{...r,size:n});s&&c&&Yve.put(t,h,c,r),l.emit("integrity",i),l.emit("size",n)}}})),l}o(NSt,"putStream")});var ARe=m(ht=>{"use strict";var Ws=o((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"R"),vSt=Ws(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=o((i,n,a)=>{let c=i instanceof RegExp?r(i,a):i,l=n instanceof RegExp?r(n,a):n,u=c!==null&&l!=null&&(0,t.range)(c,l,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+c.length,u[1]),post:a.slice(u[1]+l.length)}},"Gs");t.balanced=e;var r=o((i,n)=>{let a=n.match(i);return a?a[0]:null},"Ie"),s=o((i,n,a)=>{let c,l,u,h,d,f=a.indexOf(i),p=a.indexOf(n,f+1),A=f;if(f>=0&&p>0){if(i===n)return[f,p];for(c=[],u=a.length;A>=0&&!d;){if(A===f)c.push(A),f=a.indexOf(i,A+1);else if(c.length===1){let g=c.pop();g!==void 0&&(d=[g,p])}else l=c.pop(),l!==void 0&&l<u&&(u=l,h=p),p=a.indexOf(n,A+1);A=f<p&&f>=0?f:p}c.length&&h!==void 0&&(d=[u,h])}return d},"zs");t.range=s}),RSt=Ws(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=v;var e=vSt(),r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0",c=new RegExp(r,"g"),l=new RegExp(s,"g"),u=new RegExp(i,"g"),h=new RegExp(n,"g"),d=new RegExp(a,"g"),f=/\\\\/g,p=/\\{/g,A=/\\}/g,g=/\\,/g,C=/\\./g;t.EXPANSION_MAX=1e5;function E(U){return isNaN(U)?U.charCodeAt(0):parseInt(U,10)}o(E,"ce");function I(U){return U.replace(f,r).replace(p,s).replace(A,i).replace(g,n).replace(C,a)}o(I,"Qs");function S(U){return U.replace(c,"\\").replace(l,"{").replace(u,"}").replace(h,",").replace(d,".")}o(S,"ti");function x(U){if(!U)return[""];let q=[],V=(0,e.balanced)("{","}",U);if(!V)return U.split(",");let{pre:j,body:se,post:Qe}=V,we=j.split(",");we[we.length-1]+="{"+se+"}";let le=x(Qe);return Qe.length&&(we[we.length-1]+=le.shift(),we.push.apply(we,le)),q.push.apply(q,we),q}o(x,"Ve");function v(U,q={}){if(!U)return[];let{max:V=t.EXPANSION_MAX}=q;return U.slice(0,2)==="{}"&&(U="\\{\\}"+U.slice(2)),ee(I(U),V,!0).map(S)}o(v,"ei");function D(U){return"{"+U+"}"}o(D,"si");function O(U){return/^-?0\d/.test(U)}o(O,"ii");function L(U,q){return U<=q}o(L,"ri");function z(U,q){return U>=q}o(z,"ni");function ee(U,q,V){let j=[],se=(0,e.balanced)("{","}",U);if(!se)return[U];let Qe=se.pre,we=se.post.length?ee(se.post,q,!1):[""];if(/\$$/.test(se.pre))for(let le=0;le<we.length&&le<q;le++){let ct=Qe+"{"+se.body+"}"+we[le];j.push(ct)}else{let le=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(se.body),ct=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(se.body),et=le||ct,Ct=se.body.indexOf(",")>=0;if(!et&&!Ct)return se.post.match(/,(?!,).*\}/)?(U=se.pre+"{"+se.body+i+se.post,ee(U,q,!0)):[U];let De;if(et)De=se.body.split(/\.\./);else if(De=x(se.body),De.length===1&&De[0]!==void 0&&(De=ee(De[0],q,!1).map(D),De.length===1))return we.map(Vt=>se.pre+De[0]+Vt);let dt;if(et&&De[0]!==void 0&&De[1]!==void 0){let Vt=E(De[0]),ss=E(De[1]),Mn=Math.max(De[0].length,De[1].length),vt=De.length===3&&De[2]!==void 0?Math.abs(E(De[2])):1,Bo=L;ss<Vt&&(vt*=-1,Bo=z);let T=De.some(O);dt=[];for(let P=Vt;Bo(P,ss);P+=vt){let M;if(ct)M=String.fromCharCode(P),M==="\\"&&(M="");else if(M=String(P),T){let G=Mn-M.length;if(G>0){let W=new Array(G+1).join("0");P<0
globstar while`,T,te,P,ke,ot),this.matchOne(T.slice(te),P.slice(ke),M))return this.debug("globstar found match!",te,R,ot),!0;if(ot==="."||ot===".."||!G.dot&&ot.charAt(0)==="."){this.debug("dot detected!",T,te,P,ke);break}this.debug("globstar swallow a segment, and continue"),te++}return!!(M&&(this.debug(`
>>> no match, partial?`,T,te,P,ke),te===R))}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(y===R&&B===F)return!0;if(y===R)return M;if(B===F)return y===R-1&&T[y]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(T){(0,r.assertValidPattern)(T);let P=this.options;if(T==="**")return t.GLOBSTAR;if(T==="")return"";let M,G=null;(M=T.match(E))?G=P.dot?S:I:(M=T.match(c))?G=(P.nocase?P.dot?d:h:P.dot?u:l)(M[1]):(M=T.match(x))?G=(P.nocase?P.dot?D:v:P.dot?O:L)(M):(M=T.match(f))?G=P.dot?A:p:(M=T.match(g))&&(G=C);let W=s.AST.fromGlob(T,this.options).toMMPattern();return G&&typeof W=="object"&&Reflect.defineProperty(W,"test",{value:G}),W}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let T=this.set;if(!T.length)return this.regexp=!1,this.regexp;let P=this.options,M=P.noglobstar?j:P.dot?se:Qe,G=new Set(P.nocase?["i"]:[]),W=T.map(R=>{let F=R.map(ge=>{if(ge instanceof RegExp)for(let te of ge.flags.split(""))G.add(te);return typeof ge=="string"?Vt(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});F.forEach((ge,te)=>{let ke=F[te+1],ot=F[te-1];ge!==t.GLOBSTAR||ot===t.GLOBSTAR||(ot===void 0?ke!==void 0&&ke!==t.GLOBSTAR?F[te+1]="(?:\\/|"+M+"\\/)?"+ke:F[te]=M:ke===void 0?F[te-1]=ot+"(?:\\/|\\/"+M+")?":ke!==t.GLOBSTAR&&(F[te-1]=ot+"(?:\\/|\\/"+M+"\\/)"+ke,F[te+1]=t.GLOBSTAR))});let J=F.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("|"),[y,B]=T.length>1?["(?:",")"]:["",""];W="^"+y+W+B+"$",this.partial&&(W="^(?:\\/|"+y+W.slice(1,-1)+B+")$"),this.negate&&(W="^(?!"+W+").+$");try{this.regexp=new RegExp(W,[...G].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(T){return this.preserveMultipleSlashes?T.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(T)?["",...T.split(/\/+/)]:T.split(/\/+/)}match(T,P=this.partial){if(this.debug("match",T,this.pattern),this.comment)return!1;if(this.empty)return T==="";if(T==="/"&&P)return!0;let M=this.options;this.isWindows&&(T=T.split("\\").join("/"));let G=this.slashSplit(T);this.debug(this.pattern,"split",G);let W=this.set;this.debug(this.pattern,"set",W);let y=G[G.length-1];if(!y)for(let B=G.length-2;!y&&B>=0;B--)y=G[B];for(let B=0;B<W.length;B++){let R=W[B],F=G;if(M.matchBase&&R.length===1&&(F=[y]),this.matchOne(F,R,P))return M.flipNegate?!0:!this.negate}return M.flipNegate?!1:this.negate}static defaults(T){return t.minimatch.defaults(T).Minimatch}};t.Minimatch=ss;var Mn=Zve();Object.defineProperty(t,"AST",{enumerable:!0,get:o(function(){return Mn.AST},"get")});var vt=eRe();Object.defineProperty(t,"escape",{enumerable:!0,get:o(function(){return vt.escape},"get")});var Bo=uJ();Object.defineProperty(t,"unescape",{enumerable:!0,get:o(function(){return Bo.unescape},"get")}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=ss,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),QSt=Ws(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=o((p,A,g,C)=>{typeof s.emitWarning=="function"?s.emitWarning(p,A,g,C):console.error(`[${g}] ${A}: ${p}`)},"ls"),n=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof n>"u"){a=class{static{o(this,"os")}onabort;_onabort=[];reason;aborted=!1;addEventListener(g,C){this._onabort.push(C)}},n=class{static{o(this,"Lt")}constructor(){A()}signal=new a;abort(g){if(!this.signal.aborted){this.signal.reason=g,this.signal.aborted=!0;for(let C of this.signal._onabort)C(g);this.signal.onabort?.(g)}}};let p=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",A=o(()=>{p&&(p=!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 conte
\r
`);if(f===-1){TP("have not received end of HTTP headers yet..."),n();return}let p=d.slice(0,f).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=A.split(" "),C=+g[1],E=g.slice(2).join(" "),I={};for(let S of p){if(!S)continue;let x=S.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${S}"`));let v=S.slice(0,x).toLowerCase(),D=S.slice(x+1).trimStart(),O=I[v];typeof O=="string"?I[v]=[O,D]:Array.isArray(O)?O.push(D):I[v]=D}TP("got proxy server response: %o %o",A,I),a(),e({connect:{statusCode:C,statusText:E,headers:I},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),n()})}o(cxt,"parseProxyResponse");hE.parseProxyResponse=cxt});var nTe=m(ga=>{"use strict";var lxt=ga&&ga.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),uxt=ga&&ga.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sTe=ga&&ga.__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)&&lxt(e,t,r);return uxt(e,t),e},iTe=ga&&ga.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ga,"__esModule",{value:!0});ga.HttpsProxyAgent=void 0;var $w=sTe(require("net")),tTe=sTe(require("tls")),hxt=iTe(require("assert")),dxt=iTe(op()),fxt=WI(),pxt=require("url"),Axt=eTe(),jw=(0,dxt.default)("https-proxy-agent"),_P=class extends fxt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new pxt.URL(e):e,this.proxyHeaders=r?.headers??{},jw("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?rTe(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:"){jw("Creating `tls.Socket`: %o",this.connectOpts);let f=this.connectOpts.servername||this.connectOpts.host;i=tTe.connect({...this.connectOpts,servername:f&&$w.isIP(f)?void 0:f})}else jw("Creating `net.Socket`: %o",this.connectOpts),i=$w.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=$w.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let f=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(f).toString("base64")}`}n.Host=`${a}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(n))c+=`${f}: ${n[f]}\r
`;let l=(0,Axt.parseProxyResponse)(i);i.write(`${c}\r
`);let{connect:u,buffered:h}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",mxt),r.secureEndpoint){jw("Upgrading socket connection to TLS");let f=r.servername||r.host;return tTe.connect({...rTe(r,"host","path","port"),socket:i,servername:$w.isIP(f)?void 0:f})}return i}i.destroy();let d=new $w.Socket({writable:!1});return d.readable=!0,e.once("socket",f=>{jw("Replaying proxy buffer for failed request"),(0,hxt.default)(f.listenerCount("data")>0),f.push(h),f.push(null)}),d}};_P.protocols=["http","https"];ga.HttpsProxyAgent=_P;function mxt(t){t.resume()}o(mxt,"resume");function rTe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(rTe,"omit")});var lTe=m(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var oTe=require("buffer"),bA={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."};wh.ERRORS=bA;function gxt(t){if(!oTe.Buffer.isEncoding(t))throw new Error(bA.INVALID_ENCODING)}o(gxt,"checkEncoding");wh.checkEncoding=gxt;function aTe(t){return typeof t=="number"&&isFinite(t)&&Ixt(t)}o(aTe,"isFiniteInteger");wh.isFiniteInteger=aTe;function cTe(t,e){if(typeof t=="number"){if(!aTe(t)||t<0)throw new Error(e?bA.INVALID_OFFSET:bA.INVALID_LENGTH)}else throw new Error(e?bA.INVALID_OFFSET_NON_NUMBER:bA.INVALID_LENGTH_NON_NUMBER)}o(cTe,"checkOffsetOrLengthValue");function yxt(t){cTe(t,!1)}o(yxt,"checkLengthValue");wh.checkLengthValue=yxt;function Ext(t){cTe(t,!0)}o(Ext,"checkOffsetValue");wh.checkOffsetValue=Ext;function Cxt(t,e){if(t<0||t>e.length)throw new Error(bA.INVALID_TARGET_OFFSET)}o(Cxt,"checkTargetOffset");wh.checkTargetOffset=Cxt;function Ixt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(Ixt,"isInteger");function bxt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof oTe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(bxt,"bigIntAndBufferInt64Check");wh.bigIntAndBufferInt64Check=bxt});var hTe=m(OJ=>{"use strict";Object.defineProperty(OJ,"__esModule",{value:!0});var rt=lTe(),uTe=4096,wxt="utf8",PJ=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=wxt,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(uTe);else{if(typeof e<"u")throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(uTe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}read
`).join(`
`+n),t.push(i+"m+"+VO.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=JQt()+e+" "+t[0]}o(jQt,"formatArgs");function JQt(){return Fs.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(JQt,"getDate");function YQt(...t){return process.stderr.write(HO.formatWithOptions(Fs.inspectOpts,...t)+`
`)}o(YQt,"log");function WQt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(WQt,"save");function KQt(){return process.env.DEBUG}o(KQt,"load");function XQt(t){t.inspectOpts={};let e=Object.keys(Fs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fs.inspectOpts[e[r]]}o(XQt,"init");VO.exports=_9()(Fs);var{formatters:e1e}=VO.exports;e1e.o=function(t){return this.inspectOpts.colors=this.useColors,HO.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};e1e.O=function(t){return this.inspectOpts.colors=this.useColors,HO.inspect(t,this.inspectOpts)}});var P9=m((Ybr,Q9)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Q9.exports=ZQe():Q9.exports=t1e()});var s1e=m((Wbr,r1e)=>{var ZQt=require("dns"),e1t=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],t1t=o(t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let s=parseInt(r.retry,10);isFinite(s)?r.retry={retries:s}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:ZQt.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(i=>e1t.includes(i.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");r1e.exports=t1t});var D9=m((Xbr,c1e)=>{var i1e=Pj(),n1e=Fj(),r1t=Tl(),o1e={shared:!1,ignoreCargoCult:!0},s1t={status:200,headers:{}},FE=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),a1e=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),O9=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=FE(r),this.response=a1e(s),this.options=i,this.policy=new i1e(this.request,this.response,o1e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new i1e(FE(e),s1t,o1e).storable()}satisfies(e){let r=FE(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new n1e(this.request),i=new n1e(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?r1t.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=FE(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=FE(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=FE(e),i=a1e(r);return!this.policy.revalidatedPolicy(s,i).modified}};c1e.exports=O9});var u1e=m((ewr,l1e)=>{var k9=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};l1e.exports={NotCachedError:k9}});var L9=m((rwr,h1e)=>{"use strict";var i1t=uA(),M9=class extends i1t{static{o(this,"CachingMinipassPipeline")}#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};h1e.exports=M9});var f1e=m((iwr,d1e)=>{var{URL:n1t,format:o1t}=require("url"),a1t={auth:!1,fragment:!1,search:!0,unicode:!1},c1t=o(t=>{let e=new n1t(t.url);return`make-fetch-happen:request-cache:${o1t(e,a1t)}`},"cacheKey");d1e.exports=c1t});var p1e=m((owr,l1t)=>{l1t.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"tem
`).forEach(r=>{r.match(KPt)||r.match(XPt)||(e+=r)}),Buffer.from(e,"base64")}o(ZPt,"toDER");function eOt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
2026-05-22 14:44:02 +00:00
`).concat(`
`)}o(eOt,"fromDER")});var mD=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.SHA2_HASH_ALGOS=ff.RSA_SIGNATURE_ALGOS=ff.ECDSA_SIGNATURE_ALGOS=void 0;ff.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};ff.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};ff.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var BW=m(gD=>{"use strict";Object.defineProperty(gD,"__esModule",{value:!0});gD.RFC3161TimestampVerificationError=void 0;var SW=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};gD.RFC3161TimestampVerificationError=SW});var dPe=m(Hl=>{"use strict";var tOt=Hl&&Hl.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),rOt=Hl&&Hl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sOt=Hl&&Hl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&tOt(r,e,s[i]);return rOt(r,e),r}})();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.TSTInfo=void 0;var hPe=sOt(jE()),iOt=mD(),nOt=BW(),xW=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return iOt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=hPe.digest(this.messageImprintHashAlgorithm,e);if(!hPe.bufferEqual(r,this.messageImprintHashedMessage))throw new nOt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Hl.TSTInfo=xW});var pPe=m(Vl=>{"use strict";var oOt=Vl&&Vl.__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:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),aOt=Vl&&Vl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cOt=Vl&&Vl.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&oOt(r,e,s[i]);return aOt(r,e),r}})();Object.defineProperty(Vl,"__esModule",{value:!0});Vl.RFC3161Timestamp=void 0;var lOt=fD(),NW=cOt(jE()),fPe=mD(),CS=BW(),uOt=dPe(),hOt="1.2.840.113549.1.7.2",dOt="1.2.840.113549.1.9.16.1.4",fOt="1.2.840.113549.1.9.4",vW=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=lOt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorith
`,TDt=/\u2014 (\S+) (\S+)\n/g;function _Dt(t,e){let r=t.inclusionProof,s=rK.fromString(r.checkpoint.envelope),i=RD.fromString(s.note);if(!QDt(s,e))throw new xS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(_Dt,"verifyCheckpoint");function QDt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>UPe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?UPe.crypto.verify(r,i.publicKey,s.signature):!1})}o(QDt,"verifySignedNote");var rK=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(tK))throw new xS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(tK),s=e.slice(0,r+1),n=e.slice(r+tK.length).matchAll(TDt),a=Array.from(n,c=>{let[,l,u]=c,h=Buffer.from(u,"base64");if(h.length<5)throw new xS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:h.subarray(0,4),signature:h.subarray(4)}});if(a.length===0)throw new xS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},RD=class t{static{o(this,"LogCheckpoint")}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 xS.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"),a=r.slice(3);return new t(s,i,n,a)}};NS.LogCheckpoint=RD});var GPe=m(oK=>{"use strict";Object.defineProperty(oK,"__esModule",{value:!0});oK.verifyMerkleInclusion=DDt;var nK=cc(),sK=Ii(),PDt=Buffer.from([0]),ODt=Buffer.from([1]);function DDt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new sK.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:a}=kDt(s,i);if(r.hashes.length!==n+a)throw new sK.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,n),l=r.hashes.slice(n),u=GDt(t.canonicalizedBody),h=LDt(MDt(u,c,s),l);if(!nK.crypto.bufferEqual(h,e.logHash))throw new sK.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(DDt,"verifyMerkleInclusion");function kDt(t,e){let r=FDt(t,e),s=UDt(t>>BigInt(r));return{inner:r,border:s}}o(kDt,"decompInclProof");function MDt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?iK(i,s):iK(s,i),t)}o(MDt,"chainInner");function LDt(t,e){return e.reduce((r,s)=>iK(s,r),t)}o(LDt,"chainBorderRight");function FDt(t,e){return qDt(t^e-BigInt(1))}o(FDt,"innerProofSize");function UDt(t){return t.toString(2).split("1").length-1}o(UDt,"onesCount");function qDt(t){return t===0n?0:t.toString(2).length}o(qDt,"bitLength");function iK(t,e){return nK.crypto.digest("sha256",ODt,t,e)}o(iK,"hashChildren");function GDt(t){return nK.crypto.digest("sha256",PDt,t)}o(GDt,"hashLeaf")});var VPe=m(aK=>{"use strict";Object.defineProperty(aK,"__esModule",{value:!0});aK.verifyTLogSET=zDt;var HPe=cc(),HDt=Ii(),VDt=WE();function zDt(t,e){if(!(0,VDt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=$Dt(t),a=Buffer.from(HPe.json.canonicalize(n),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return HPe.crypto.verify(a,i.publicKey,c)}))throw new HDt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(zDt,"verifyTLogSET");function $Dt(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")}}o($Dt,"toVerificationPayload")});var $Pe=m(TD=>{"use strict";Object.defineProperty(TD,"__esModule",{value:!0});TD.verifyTLogBody=KDt;TD.verifyTLogInclusion=XDt;var zPe=vY(),uK=Ii(),cK=MPe(),lK=LPe(),jDt=FPe(),JDt=qPe(),YDt=GPe(),WDt=VPe();function KDt(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 uK.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==cK.DSSE_API_VERSION_V1)return(0,cK.verifyDSSETLogBody)(i,e);{let n=zPe.Entry.fromJSON(i);return(0,cK.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,jDt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==lK.HASHEDREKORD_API_VERSION_V1)return(0,lK.verifyHashedRekordTLogBody)(i,e);{let n=zPe.Entry.fromJSON(i);return(0,lK.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new uK.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(KDt,"verifyTLogBody");function XDt(t,e){let r=!1;if(ZDt(t)&&((0,WDt.verifyTLogSET)(t,e),r=!0),ekt(t)){let s=(0,JDt.verifyCheckpoint)(t,e);(0,YDt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new uK.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(XDt,"verifyTLogInclusion");function ZDt(t){return t.inclusionPromise!==void 0}o(ZDt,"isTLogEntryWithInclusionPromise");function ekt(t){return t.inclusionProof!==void 0}o(ekt,"isTLogEntryWithInclusionProof")});var KPe=m(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.Verifier=void 0;var tkt=require("util"),K
`+t.mark.snippet),s+" "+r):s}o(zK,"formatError");function oC(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=zK(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}o(oC,"YAMLException$1");oC.prototype=Object.create(Error.prototype);oC.prototype.constructor=oC;oC.prototype.toString=o(function(e){return this.name+": "+zK(this,e)},"toString");var sn=oC;function ek(t,e,r,s,i){var n="",a="",c=Math.floor(i/2)-1;return s-e>c&&(n=" ... ",e=s-c+n.length),r-s>c&&(a=" ...",r=s+c-a.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:s-e+n.length}}o(ek,"getLine");function tk(t,e){return is.repeat(" ",e-t.length)+t}o(tk,"padStart");function zDe(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,s=[0],i=[],n,a=-1;n=r.exec(t.buffer);)i.push(n.index),s.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=s.length-2);a<0&&(a=s.length-1);var c="",l,u,h=Math.min(t.line+e.linesAfter,i.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)u=ek(t.buffer,s[a-l],i[a-l],t.position-(s[a]-s[a-l]),d),c=is.repeat(" ",e.indent)+tk((t.line-l+1).toString(),h)+" | "+u.str+`
`+c;for(u=ek(t.buffer,s[a],i[a],t.position,d),c+=is.repeat(" ",e.indent)+tk((t.line+1).toString(),h)+" | "+u.str+`
`,c+=is.repeat("-",e.indent+h+3+u.pos)+`^
`,l=1;l<=e.linesAfter&&!(a+l>=i.length);l++)u=ek(t.buffer,s[a+l],i[a+l],t.position-(s[a]-s[a+l]),d),c+=is.repeat(" ",e.indent)+tk((t.line+l+1).toString(),h)+" | "+u.str+`
`;return c.replace(/\n$/,"")}o(zDe,"makeSnippet");var $De=zDe,jDe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],JDe=["scalar","sequence","mapping"];function YDe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(s){e[String(s)]=r})}),e}o(YDe,"compileStyleAliases");function WDe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(jDe.indexOf(r)===-1)throw new sn('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=YDe(e.styleAliases||null),JDe.indexOf(this.kind)===-1)throw new sn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}o(WDe,"Type$1");var Ks=WDe;function RK(t,e){var r=[];return t[e].forEach(function(s){var i=r.length;r.forEach(function(n,a){n.tag===s.tag&&n.kind===s.kind&&n.multi===s.multi&&(i=a)}),r[i]=s}),r}o(RK,"compileList");function KDe(){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(o(s,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(s);return t}o(KDe,"compileMap");function sk(t){return this.extend(t)}o(sk,"Schema$1");sk.prototype.extend=o(function(e){var r=[],s=[];if(e instanceof Ks)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 sn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Ks))throw new sn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new sn("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 sn("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 Ks))throw new sn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(sk.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(s),i.compiledImplicit=RK(i,"implicit"),i.compiledExplicit=RK(i,"explicit"),i.compiledTypeMap=KDe(i.compiledImplicit,i.compiledExplicit),i},"extend");var XDe=sk,ZDe=new Ks("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(t){return t!==null?t:""},"construct")}),eke=new Ks("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(t){return t!==null?t:[]},"construct")}),tke=new Ks("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(t){return t!==null?t:{}},"construct")}),rke=new XDe({explicit:[ZDe,eke,tke]});function ske(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}o(ske,"resolveYamlNull");function ike(){return null}o(ike,"constructYamlNull");function nke(t){return t===null}o(nke,"isNull");var oke=new Ks("tag:yaml.org,2002:null",{kind:"scalar",resolve:ske,construct:ike,predicate:nke,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});function ake(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")}o(ake,"resolveYamlBoolean");function cke(t){r
\r`;function Pke(t){if(t===null)return!1;var e,r,s=0,i=t.length,n=ck;for(r=0;r<i;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;s+=6}return s%8===0}o(Pke,"resolveYamlBinary");function Oke(t){var e,r,s=t.replace(/[\r\n=]/g,""),i=s.length,n=ck,a=0,c=[];for(e=0;e<i;e++)e%4===0&&e&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|n.indexOf(s.charAt(e));return r=i%4*6,r===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):r===18?(c.push(a>>10&255),c.push(a>>2&255)):r===12&&c.push(a>>4&255),new Uint8Array(c)}o(Oke,"constructYamlBinary");function Dke(t){var e="",r=0,s,i,n=t.length,a=ck;for(s=0;s<n;s++)s%3===0&&s&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[s];return i=n%3,i===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):i===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):i===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}o(Dke,"representYamlBinary");function kke(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}o(kke,"isBinary");var Mke=new Ks("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pke,construct:Oke,predicate:kke,represent:Dke}),Lke=Object.prototype.hasOwnProperty,Fke=Object.prototype.toString;function Uke(t){if(t===null)return!0;var e=[],r,s,i,n,a,c=t;for(r=0,s=c.length;r<s;r+=1){if(i=c[r],a=!1,Fke.call(i)!=="[object Object]")return!1;for(n in i)if(Lke.call(i,n))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}o(Uke,"resolveYamlOmap");function qke(t){return t!==null?t:[]}o(qke,"constructYamlOmap");var Gke=new Ks("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Uke,construct:qke}),Hke=Object.prototype.toString;function Vke(t){if(t===null)return!0;var e,r,s,i,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(s=a[e],Hke.call(s)!=="[object Object]"||(i=Object.keys(s),i.length!==1))return!1;n[e]=[i[0],s[i[0]]]}return!0}o(Vke,"resolveYamlPairs");function zke(t){if(t===null)return[];var e,r,s,i,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1)s=a[e],i=Object.keys(s),n[e]=[i[0],s[i[0]]];return n}o(zke,"constructYamlPairs");var $ke=new Ks("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Vke,construct:zke}),jke=Object.prototype.hasOwnProperty;function Jke(t){if(t===null)return!0;var e,r=t;for(e in r)if(jke.call(r,e)&&r[e]!==null)return!1;return!0}o(Jke,"resolveYamlSet");function Yke(t){return t!==null?t:{}}o(Yke,"constructYamlSet");var Wke=new Ks("tag:yaml.org,2002:set",{kind:"mapping",resolve:Jke,construct:Yke}),JK=xke.extend({implicit:[Tke,Qke],explicit:[Mke,Gke,$ke,Wke]}),Dh=Object.prototype.hasOwnProperty,LS=1,YK=2,WK=3,FS=4,rk=1,Kke=2,TK=3,Xke=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zke=/[\x85\u2028\u2029]/,eMe=/[,\[\]\{\}]/,KK=/^(?:!|!!|![a-z\-]+!)$/i,XK=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _K(t){return Object.prototype.toString.call(t)}o(_K,"_class");function hc(t){return t===10||t===13}o(hc,"is_EOL");function If(t){return t===9||t===32}o(If,"is_WHITE_SPACE");function nn(t){return t===9||t===32||t===10||t===13}o(nn,"is_WS_OR_EOL");function jA(t){return t===44||t===91||t===93||t===123||t===125}o(jA,"is_FLOW_INDICATOR");function tMe(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}o(tMe,"fromHexCode");function rMe(t){return t===120?2:t===117?4:t===85?8:0}o(rMe,"escapedHexLen");function sMe(t){return 48<=t&&t<=57?t-48:-1}o(sMe,"fromDecimalCode");function QK(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`: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":""}o(QK,"simpleEscapeSequence");function iMe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(iMe,"charFromCodepoint");function ZK(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}o(ZK,"setProperty");var eX=new Array(256),tX=new Array(256);for(Cf=0;Cf<256;Cf++)eX[Cf]=QK(Cf)?1:0,tX[Cf]=QK(Cf);var Cf;function nMe(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||JK,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=[]}o(nMe,"State$1");function rX(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=$De(r),new sn(e,r)}o(rX,"generateError");function Be(t,e){throw rX(t,e)}o(Be,"throwError");function US(t,e){t.onWarning&&t.onWarning.call(null,rX(t,e))}o(US,"throwWarning");var PK={YAML:o(function(e,r,s){var i,n,a;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),a=parseInt(i[2],10),n!==1&&Be(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&US(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(e,r,s){var i,n;s.length!==2&&Be(e,"TAG directive accepts exactly two arguments"),i=s[0],n=s[1],KK.test(i)||Be(e,"ill-formed tag handle (first argument) of the TAG directive"),Dh.call(e.tagMap,i)&&Be(e,'there is a previously declared suffix for "'+i+'" tag handle'),XK.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},"handleTagDirective")};function Oh(t,e,r,s){var i,n,a,c;if(e<r){if(c=t.input.slice(e,r),s)for(i=0,n=c.length;i<n;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||Be(t,"expected valid JSON character");else Xke.test(c)&&Be(t,"the stream contains non-printable characters");t.result+=c}}o(Oh,"captureSegment");function OK(t,e,r,s){var i,n,a,c;for(is.isObject(r)||Be(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,c=i.length;a<c;a+=1)n=i[a],Dh.call(e,n)||(ZK(e,n,r[n]),s[n]=!0)}o(OK,"mergeMappings");function JA(t,e,r,s,i,n,a,c,l){var u,h;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,h=i.length;u<h;u+=1)Array.isArray(i[u])&&Be(t,"nested arrays are not supported inside keys"),typeof i=="object"&&_K(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&_K(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(u=0,h=n.length;u<h;u+=1)OK(t,e,n[u],r);else OK(t,e,n,r);else!t.json&&!Dh.call(r,i)&&Dh.call(e,i)&&(t.line=a||t.line,t.lineStart=c||t.lineStart,t.position=l||t.position,Be(t,"duplicated mapping key")),ZK(e,i,n),delete r[i];return e}o(JA,"storeMappingPair");function lk(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}o(lk,"readLineBreak");function Jr(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;If(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(hc(i))for(lk(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCo
`,e-1))}o(uk,"writeFoldedLines");function oMe(t,e,r){var s,i,n,a,c,l,u,h,d=t.kind,f=t.result,p;if(p=t.input.charCodeAt(t.position),nn(p)||jA(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),nn(i)||r&&jA(i)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,c=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),nn(i)||r&&jA(i))break}else if(p===35){if(s=t.input.charCodeAt(t.position-1),nn(s))break}else{if(t.position===t.lineStart&&HS(t)||r&&jA(p))break;if(hc(p))if(l=t.line,u=t.lineStart,h=t.lineIndent,Jr(t,!1,-1),t.lineIndent>=e){c=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=u,t.lineIndent=h;break}}c&&(Oh(t,n,a,!1),uk(t,t.line-l),n=a=t.position,c=!1),If(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return Oh(t,n,a,!1),t.result?!0:(t.kind=d,t.result=f,!1)}o(oMe,"readPlainScalar");function aMe(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(Oh(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 hc(r)?(Oh(t,s,i,!0),uk(t,Jr(t,!1,e)),s=i=t.position):t.position===t.lineStart&&HS(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")}o(aMe,"readSingleQuotedScalar");function cMe(t,e){var r,s,i,n,a,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return Oh(t,r,t.position,!0),t.position++,!0;if(c===92){if(Oh(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),hc(c))Jr(t,!1,e);else if(c<256&&eX[c])t.result+=tX[c],t.position++;else if((a=rMe(c))>0){for(i=a,n=0;i>0;i--)c=t.input.charCodeAt(++t.position),(a=tMe(c))>=0?n=(n<<4)+a:Be(t,"expected hexadecimal character");t.result+=iMe(n),t.position++}else Be(t,"unknown escape sequence");r=s=t.position}else hc(c)?(Oh(t,r,s,!0),uk(t,Jr(t,!1,e)),r=s=t.position):t.position===t.lineStart&&HS(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")}o(cMe,"readDoubleQuotedScalar");function lMe(t,e){var r=!0,s,i,n,a=t.tag,c,l=t.anchor,u,h,d,f,p,A=Object.create(null),g,C,E,I;if(I=t.input.charCodeAt(t.position),I===91)h=93,p=!1,c=[];else if(I===123)h=125,p=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),I=t.input.charCodeAt(++t.position);I!==0;){if(Jr(t,!0,e),I=t.input.charCodeAt(t.position),I===h)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=c,!0;r?I===44&&Be(t,"expected the node content, but found ','"):Be(t,"missed comma between flow collection entries"),C=g=E=null,d=f=!1,I===63&&(u=t.input.charCodeAt(t.position+1),nn(u)&&(d=f=!0,t.position++,Jr(t,!0,e))),s=t.line,i=t.lineStart,n=t.position,YA(t,e,LS,!1,!0),C=t.tag,g=t.result,Jr(t,!0,e),I=t.input.charCodeAt(t.position),(f||t.line===s)&&I===58&&(d=!0,I=t.input.charCodeAt(++t.position),Jr(t,!0,e),YA(t,e,LS,!1,!0),E=t.result),p?JA(t,c,A,C,g,E,s,i,n):d?c.push(JA(t,null,A,C,g,E,s,i,n)):c.push(g),Jr(t,!0,e),I=t.input.charCodeAt(t.position),I===44?(r=!0,I=t.input.charCodeAt(++t.position)):r=!1}Be(t,"unexpected end of the stream within a flow collection")}o(lMe,"readFlowCollection");function uMe(t,e){var r,s,i=rk,n=!1,a=!1,c=e,l=0,u=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)s=!1;else if(d===62)s=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)rk===i?i=d===43?TK:Kke:Be(t,"repeat of a chomping mode identifier");else if((h=sMe(d))>=0)h===0?Be(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Be(t,"repeat of an indentation width identifier"):(c=e+h-1,a=!0);else break;if(If(d)){do d=t.input.charCodeAt(++t.position);wh
`,n?1+l:l):i===rk&&n&&(t.result+=`
`);break}for(s?If(d)?(u=!0,t.result+=is.repeat(`
`,n?1+l:l)):u?(u=!1,t.result+=is.repeat(`
`,l+1)):l===0?n&&(t.result+=" "):t.result+=is.repeat(`
`,l):t.result+=is.repeat(`
`,n?1+l:l),n=!0,a=!0,l=0,r=t.position;!hc(d)&&d!==0;)d=t.input.charCodeAt(++t.position);Oh(t,r,t.position,!1)}return!0}o(uMe,"readBlockScalar");function DK(t,e){var r,s=t.tag,i=t.anchor,n=[],a,c=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Be(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!nn(a))));){if(c=!0,t.position++,Jr(t,!0,-1)&&t.lineIndent<=e){n.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,YA(t,e,WK,!1,!0),n.push(t.result),Jr(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Be(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return c?(t.tag=s,t.anchor=i,t.kind="sequence",t.result=n,!0):!1}o(DK,"readBlockSequence");function hMe(t,e,r){var s,i,n,a,c,l,u=t.tag,h=t.anchor,d={},f=Object.create(null),p=null,A=null,g=null,C=!1,E=!1,I;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),I=t.input.charCodeAt(t.position);I!==0;){if(!C&&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,(I===63||I===58)&&nn(s))I===63?(C&&(JA(t,d,f,p,A,null,a,c,l),p=A=g=null),E=!0,C=!0,i=!0):C?(C=!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,I=s;else{if(a=t.line,c=t.lineStart,l=t.position,!YA(t,r,YK,!1,!0))break;if(t.line===n){for(I=t.input.charCodeAt(t.position);If(I);)I=t.input.charCodeAt(++t.position);if(I===58)I=t.input.charCodeAt(++t.position),nn(I)||Be(t,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(JA(t,d,f,p,A,null,a,c,l),p=A=g=null),E=!0,C=!1,i=!1,p=t.tag,A=t.result;else if(E)Be(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=h,!0}else if(E)Be(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=h,!0}if((t.line===n||t.lineIndent>e)&&(C&&(a=t.line,c=t.lineStart,l=t.position),YA(t,e,FS,!0,i)&&(C?A=t.result:g=t.result),C||(JA(t,d,f,p,A,g,a,c,l),p=A=g=null),Jr(t,!0,-1),I=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&I!==0)Be(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return C&&JA(t,d,f,p,A,null,a,c,l),E&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),E}o(hMe,"readBlockMapping");function dMe(t){var e,r=!1,s=!1,i,n,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&Be(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(s=!0,i="!!",a=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(n=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):Be(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!nn(a);)a===33&&(s?Be(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),KK.test(i)||Be(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),eMe.test(n)&&Be(t,"tag suffix cannot contain flow indicator characters")}n&&!XK.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:Dh.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}o(dMe,"readTagProperty");function fMe(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&&!nn(r)&&!jA(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
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new nMe(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;)AMe(r);return r.documents}o(sX,"loadDocuments");function mMe(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var s=sX(t,r);if(typeof e!="function")return s;for(var i=0,n=s.length;i<n;i+=1)e(s[i])}o(mMe,"loadAll$1");function gMe(t,e){var r=sX(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new sn("expected a single document in the stream, but found more")}}o(gMe,"load$1");var yMe=mMe,EMe=gMe,iX={loadAll:yMe,load:EMe},nX=Object.prototype.toString,oX=Object.prototype.hasOwnProperty,hk=65279,CMe=9,aC=10,IMe=13,bMe=32,wMe=33,SMe=34,ik=35,BMe=37,xMe=38,NMe=39,vMe=42,aX=44,RMe=45,qS=58,TMe=61,_Me=62,QMe=63,PMe=64,cX=91,lX=93,OMe=96,uX=123,DMe=124,hX=125,Xs={};Xs[0]="\\0";Xs[7]="\\a";Xs[8]="\\b";Xs[9]="\\t";Xs[10]="\\n";Xs[11]="\\v";Xs[12]="\\f";Xs[13]="\\r";Xs[27]="\\e";Xs[34]='\\"';Xs[92]="\\\\";Xs[133]="\\N";Xs[160]="\\_";Xs[8232]="\\L";Xs[8233]="\\P";var kMe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],MMe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function LMe(t,e){var r,s,i,n,a,c,l;if(e===null)return{};for(r={},s=Object.keys(e),i=0,n=s.length;i<n;i+=1)a=s[i],c=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=t.compiledTypeMap.fallback[a],l&&oX.call(l.styleAliases,c)&&(c=l.styleAliases[c]),r[a]=c;return r}o(LMe,"compileStyleMap");function FMe(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 sn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+is.repeat("0",s-e.length)+e}o(FMe,"encodeHex");var UMe=1,cC=2;function qMe(t){this.schema=t.schema||JK,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=is.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=LMe(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==='"'?cC:UMe,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}o(qMe,"State");function kK(t,e){for(var r=is.repeat(" ",e),s=0,i=-1,n="",a,c=t.length;s<c;)i=t.indexOf(`
`,s),i===-1?(a=t.slice(s),s=c):(a=t.slice(s,i+1),s=i+1),a.length&&a!==`
`&&(n+=r),n+=a;return n}o(kK,"indentString");function nk(t,e){return`
`+is.repeat(" ",t.indent*e)}o(nk,"generateNextLine");function GMe(t,e){var r,s,i;for(r=0,s=t.implicitTypes.length;r<s;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}o(GMe,"testImplicitResolving");function GS(t){return t===bMe||t===CMe}o(GS,"isWhitespace");function lC(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==hk||65536<=t&&t<=1114111}o(lC,"isPrintable");function MK(t){return lC(t)&&t!==hk&&t!==IMe&&t!==aC}o(MK,"isNsCharOrWhitespace");function LK(t,e,r){var s=MK(t),i=s&&!GS(t);return(r?s:s&&t!==aX&&t!==cX&&t!==lX&&t!==uX&&t!==hX)&&t!==ik&&!(e===qS&&!i)||MK(e)&&!GS(e)&&t===ik||e===qS&&i}o(LK,"isPlainSafe");function HMe(t){return lC(t)&&t!==hk&&!GS(t)&&t!==RMe&&t!==QMe&&t!==qS&&t!==aX&&t!==cX&&t!==lX&&t!==uX&&t!==hX&&t!==ik&&t!==xMe&&t!==vMe&&t!==wMe&&t!==DMe&&t!==TMe&&t!==_Me&&t!==NMe&&t!==SMe&&t!==BMe&&t!==PMe&&t!==OMe}o(HMe,"isPlainSafeFirst");function VMe(t){return!GS(t)&&t!==qS}o(VMe,"isPlainSafeLast");function nC(t,e){var r=t.charCodeAt(e),s;return r>=55296&&r<=56319&&e+1<t.length&&(s=t.charCodeAt(e+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}o(nC,"codePointAt");function dX(t){var e=/^\n* /;return e.test(t)}o(dX,"needIndentIndicator");var fX=1,ok=2,pX=3,AX=4,$A=5;function zMe(t,e,r,s,i,n,a,c){var l,u=0,h=null,d=!1,f=!1,p=s!==-1,A=-1,g=HMe(nC(t,0))&&VMe(nC(t,t.length-1));if(e||a)for(l=0;l<t.length;u>=65536?l+=2:l++){if(u=nC(t,l),!lC(u))return $A;g=g&&LK(u,h,c),h=u}else{for(l=0;l<t.length;u>=65536?l+=2:l++){if(u=nC(t,l),u===aC)d=!0,p&&(f=f||l-A-1>s&&t[A+1]!==" ",A=l);else if(!lC(u))return $A;g=g&&LK(u,h,c),h=u}f=f||p&&l-A-1>s&&t[A+1]!==" "}return!d&&!f?g&&!a&&!i(t)?fX:n===cC?$A:ok:r>9&&dX(t)?$A:a?n===cC?$A:ok:f?AX:pX}o(zMe,"chooseScalarStyle");function $Me(t,e,r,s,i){t.dump=(function(){if(e.length===0)return t.quotingType===cC?'""':"''";if(!t.noCompatMode&&(kMe.indexOf(e)!==-1||MMe.test(e)))return t.quotingType===cC?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),c=s||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return GMe(t,u)}switch(o(l,"testAmbiguity"),zMe(e,c,t.indent,a,l,t.quotingType,t.forceQuotes&&!s,i)){case fX:return e;case ok:return"'"+e.replace(/'/g,"''")+"'";case pX:return"|"+FK(e,t.indent)+UK(kK(e,n));case AX:return">"+FK(e,t.indent)+UK(kK(jMe(e,a),n));case $A:return'"'+JMe(e)+'"';default:throw new sn("impossible error: invalid scalar style")}})()}o($Me,"writeScalar");function FK(t,e){var r=dX(t)?String(e):"",s=t[t.length-1]===`
`,i=s&&(t[t.length-2]===`
`||t===`
`),n=i?"+":s?"":"-";return r+n+`
`}o(FK,"blockHeader");function UK(t){return t[t.length-1]===`
`?t.slice(0,-1):t}o(UK,"dropEndingNewline");function jMe(t,e){for(var r=/(\n+)([^\n]*)/g,s=(function(){var u=t.indexOf(`
`);return u=u!==-1?u:t.length,r.lastIndex=u,qK(t.slice(0,u),e)})(),i=t[0]===`
`||t[0]===" ",n,a;a=r.exec(t);){var c=a[1],l=a[2];n=l[0]===" ",s+=c+(!i&&!n&&l!==""?`
`:"")+qK(l,e),i=n}return s}o(jMe,"foldString");function qK(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,s,i=0,n,a=0,c=0,l="";s=r.exec(t);)c=s.index,c-i>e&&(n=a>i?a:c,l+=`
`+t.slice(i,n),i=n+1),a=c;return l+=`
`,t.length-i>e&&a>i?l+=t.slice(i,a)+`
`+t.slice(a+1):l+=t.slice(i),l.slice(1)}o(qK,"foldLine");function JMe(t){for(var e="",r=0,s,i=0;i<t.length;r>=65536?i+=2:i++)r=nC(t,i),s=Xs[r],!s&&lC(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=s||FMe(r);return e}o(JMe,"escapeString");function YMe(t,e,r){var s="",i=t.tag,n,a,c;for(n=0,a=r.length;n<a;n+=1)c=r[n],t.replacer&&(c=t.replacer.call(r,String(n),c)),(Kl(t,e,c,!1,!1)||typeof c>"u"&&Kl(t,e,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}o(YMe,"writeFlowSequence");function GK(t,e,r,s){var i="",n=t.tag,a,c,l;for(a=0,c=r.length;a<c;a+=1)l=r[a],t.replacer&&(l=t.replacer.call(r,String(a),l)),(Kl(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Kl(t,e+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=nk(t,e)),t.dump&&aC===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=n,t.dump=i||"[]"}o(GK,"writeBlockSequence");function WMe(t,e,r){var s="",i=t.tag,n=Object.keys(r),a,c,l,u,h;for(a=0,c=n.length;a<c;a+=1)h="",s!==""&&(h+=", "),t.condenseFlow&&(h+='"'),l=n[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),Kl(t,e,l,!1,!1)&&(t.dump.length>1024&&(h+="? "),h+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Kl(t,e,u,!1,!1)&&(h+=t.dump,s+=h));t.tag=i,t.dump="{"+s+"}"}o(WMe,"writeFlowMapping");function KMe(t,e,r,s){var i="",n=t.tag,a=Object.keys(r),c,l,u,h,d,f;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new sn("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)f="",(!s||i!=="")&&(f+=nk(t,e)),u=a[c],h=r[u],t.replacer&&(h=t.replacer.call(r,u,h)),Kl(t,e+1,u,!0,!0,!0)&&(d=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,d&&(t.dump&&aC===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,d&&(f+=nk(t,e)),Kl(t,e+1,h,!0,d)&&(t.dump&&aC===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=n,t.dump=i||"{}"}o(KMe,"writeBlockMapping");function HK(t,e,r){var s,i,n,a,c,l;for(i=r?t.explicitTypes:t.implicitTypes,n=0,a=i.length;n<a;n+=1)if(c=i[n],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof e=="object"&&e instanceof c.instanceOf)&&(!c.predicate||c.predicate(e))){if(r?c.multi&&c.representName?t.tag=c.representName(e):t.tag=c.tag:t.tag="?",c.represent){if(l=t.styleMap[c.tag]||c.defaultStyle,nX.call(c.represent)==="[object Function]")s=c.represent(e,l);else if(oX.call(c.represent,l))s=c.represent[l](e,l);else throw new sn("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');t.dump=s}return!0}return!1}o(HK,"detectType");function Kl(t,e,r,s,i,n,a){t.tag=null,t.dump=r,HK(t,r,!1)||HK(t,r,!0);var c=nX.call(t.dump),l=s,u;s&&(s=t.flowLevel<0||t.flowLevel>e);var h=c==="[object Object]"||c==="[object Array]",d,f;if(h&&(d=t.duplicates.indexOf(r),f=d!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[d])t.dump="*ref_"+d;else{if(h&&f&&!t.usedDuplicates[d]&&(t.usedDuplicates[d]=!0),c==="[object Object]")s&&Object.keys(t.dump).length!==0?(KMe(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(WMe(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(c==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?GK(t,e-1,t.dump,i):GK(t,e,t.dump,i),f&&(t.dump="&ref_"+d+t.dump)):(YMe(t,e,t.dump),f&&(t.dump="&ref_"+d+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&$Me(t,t.dump,e,n,l);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new sn("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}o(Kl,"writeNode");function XMe(t,e){var r=[],s=[],i,n;for(ak(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=new Array(n)}o(XMe,"getDuplicateReferences");function ak(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)ak(t[i],e,r);else for(s=Object.keys(t),i=0,n=s.length;i<n;i+=1)ak(t[s[i]],e,r)}o(ak,"inspectNode");function ZMe(t,e){e=e||
`:""}o(ZMe,"dump$1");var eLe=ZMe,tLe={dump:eLe};function dk(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.")}}o(dk,"renamed");var mX=iX.load,ukt=iX.loadAll,hkt=tLe.dump;var dkt=dk("safeLoad","load"),fkt=dk("safeLoadAll","loadAll"),pkt=dk("safeDump","dump");var yX=k(require("os"),1);function Xl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Xl,"toCommandValue");function fk(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(fk,"toCommandProperties");function Zl(t,e,r){let s=new pk(t,e,r);process.stdout.write(s.toString()+yX.EOL)}o(Zl,"issueCommand");function Ak(t,e=""){Zl(t,{},e)}o(Ak,"issue");var gX="::",pk=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=gX+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}=${iLe(i)}`)}}return e+=`${gX}${sLe(this.message)}`,e}};function sLe(t){return Xl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(sLe,"escapeData");function iLe(t){return Xl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(iLe,"escapeProperty");var EX=k(require("crypto"),1),zS=k(require("fs"),1),VS=k(require("os"),1);function $S(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!zS.existsSync(r))throw new Error(`Missing file at path: ${r}`);zS.appendFileSync(r,`${Xl(e)}${VS.EOL}`,{encoding:"utf8"})}o($S,"issueFileCommand");function mk(t,e){let r=`ghadelimiter_${EX.randomUUID()}`,s=Xl(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${VS.EOL}${s}${VS.EOL}${r}`}o(mk,"prepareKeyValueMessage");var rF=k(require("os"),1),poe=k(require("path"),1);var hI=k(require("http"),1),H2=k(require("https"),1);function gk(t){let e=t.protocol==="https:";if(nLe(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 jS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jS(`http://${r}`)}else return}o(gk,"getProxyUrl");function nLe(t){if(!t.hostname)return!1;let e=t.hostname;if(oLe(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(a=>a.trim().toUpperCase()).filter(a=>a))if(n==="*"||i.some(a=>a===n||a.endsWith(`.${n}`)||n.startsWith(".")&&a.endsWith(`${n}`)))return!0;return!1}o(nLe,"checkBypass");function oLe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(oLe,"isLoopbackAddress");var jS=class extends URL{static{o(this,"DecodedURL")}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 td=k(uC(),1),jne=k($m(),1);var Or=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},ko;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Jf,"getBooleanInput");function gI(t,e){if(process.env.GITHUB_OUTPUT||"")return $S("OUTPUT",mk(t,e));process.stdout.write(rF.EOL),Zl("set-output",{name:t},Xl(e))}o(gI,"setOutput");function Aoe(t){process.exitCode=tF.Failure,Ym(t)}o(Aoe,"setFailed");function mu(){return process.env.RUNNER_DEBUG==="1"}o(mu,"isDebug");function Q(t){Zl("debug",{},t)}o(Q,"debug");function Ym(t,e={}){Zl("error",fk(e),t instanceof Error?t.toString():t)}o(Ym,"error");function Dt(t,e={}){Zl("warning",fk(e),t instanceof Error?t.toString():t)}o(Dt,"warning");function H(t){process.stdout.write(t+rF.EOL)}o(H,"info");function U$e(t){Ak("group",t)}o(U$e,"startGroup");function q$e(){Ak("endgroup")}o(q$e,"endGroup");function Zt(t,e){return F$e(this,void 0,void 0,function*(){U$e(t);let r;try{r=yield e()}finally{q$e()}return r})}o(Zt,"group");function dn(t,e){if(process.env.GITHUB_STATE||"")return $S("STATE",mk(t,e));Zl("save-state",{name:t},Xl(e))}o(dn,"saveState");function moe(t){return process.env[`STATE_${t}`]||""}o(moe,"getState");var YT=k(require("fs"),1),uz=k(require("os"),1),hz=k(require("path"),1);var yoe=k(require("os"),1);function yI(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(yI,"toCommandValue");function Eoe(t,e,r){let s=new sF(t,e,r);process.stdout.write(s.toString()+yoe.EOL)}o(Eoe,"issueCommand");var goe="::",sF=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=goe+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}=${H$e(i)}`)}}return e+=`${goe}${G$e(this.message)}`,e}};function G$e(t){return yI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(G$e,"escapeData");function H$e(t){return yI(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(H$e,"escapeProperty");var woe=k(require("os"),1);var Ioe=require("os"),EI=require("fs");var iF=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:V$e,appendFile:z$e,writeFile:$$e}=EI.promises,Coe="GITHUB_STEP_SUMMARY";var nF=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return iF(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Coe];if(!e)throw new Error(`Unable to find environment variable for $${Coe}. Check if your runtime environment supports job summaries.`);try{yield V$e(e,EI.constants.R_OK|EI.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,s={}){let i=Object.entries(s).map(([n,a])=>` ${n}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return iF(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?$$e:z$e)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return iF(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Ioe.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(i).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),n=this.wrap(s,i);return this.addRaw(n).addEOL()}addTable(e){let r=e.map(i=>{let n=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);l
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new QI(n));return s.searchPaths.push(...UF(s.patterns)),s})}static stat(e,r,s){return zF(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield rg.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){qo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield rg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield rg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===n)){qo(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var PYe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function tle(t,e){return PYe(this,void 0,void 0,function*(){return yield dN.create(t,e)})}o(tle,"create");var vN=k(require("crypto"),1),og=k(require("fs"),1),Zf=k(require("path"),1),Jue=k($ue(),1),Yue=k(require("util"),1);var FI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(FI||(FI={}));var Ti;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ti||(Ti={}));var Kn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Kn||(Kn={}));var xN=2,NN=5e3,dU=5e3,fU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,jue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,UI="cache.tar",pU="manifest.txt",s8t=10*Math.pow(1024,3);var ng=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},UKe=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(a){return new Promise(function(c,l){a=t[n](a),i(c,l,a.done,a.value)})}}function i(n,a,c,l){Promise.resolve(l).then(function(u){n({value:u,done:c})},a)}},qKe="1.0";function qI(){return ng(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=Zf.join(s,"actions","temp")}let r=Zf.join(e,vN.randomUUID());return yield Au(r),r})}o(qI,"createTempDirectory");function Rc(t){return og.statSync(t).size}o(Rc,"getArchiveFileSizeInBytes");function AU(t){return ng(this,void 0,void 0,function*(){var e,r,s,i,n;let a=[],c=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),l=yield tle(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,h=UKe(l.globGenerator()),d;d=yield h.next(),e=d.done,!e;u=!0){i=d.value,u=!1;let p=Zf.relative(c,i).replace(new RegExp(`\\${Zf.sep}`,"g"),"/");Q(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(f){r={error:f}}finally{try{!u&&!e&&(s=h.return)&&(yield s.call(h))}finally{if(r)throw r.error}}return a})}o(AU,"resolvePaths");function GI(t){return ng(this,void 0,void 0,function*(){return Yue.promisify(og.unlink)(t)})}o(GI,"unlinkFile");function Wue(t){return ng(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),Q(`Checking ${e} ${r.join(" ")}`);try{yield Yn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>s+=i.toString(),"stdout"),stderr:o(i=>s+=i.toString(),"stderr")}})}catch(i){Q(i.message)}return s=s.trim(),Q(s),s})}o(Wue,"getVersion");function HI(){return ng(this,void 0,void 0,function*(){let t=yield Wue("zstd",["--quiet"]),e=Jue.clean(t);return Q(`zstd version: ${e}`),t===""?Ti.Gzip:Ti.ZstdWithoutLong})}o(HI,"getCompressionMethod");function ld(t){return t===Ti.Gzip?FI.Gzip:FI.Zstd}o(ld,"getCacheFileName");function Kue(){return ng(this,void 0,void 0,function*(){return og.existsSync(fU)?fU:(yield Wue("tar")).toLowerCase().includes("gnu tar")?Gs("tar"):""})}o(Kue,"getGnuTarPathOnWindows");function mU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(mU,"assertDefined");function ag(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(qKe),vN.createHash("sha256").update(s.join("|")).digest("hex")}o(ag,"getCacheVersion");function Xue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(Xue,"getRuntimeToken");var zI=k(require("http"),1),EU=k(require("https"),1);function gU(t){let e=t.protocol==="https:";if(GKe(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 TN(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new TN(`http://${r}`)}else return}o(gU,"getProxyUrl");function GKe(t){if(!t.hostname)return!1;let e=t.hostname;if(HKe(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(a=>a.trim().toUpperCase()).filter(a=>a))if(n==="*"||i.some(a=>a===n||a.endsWith(`.${n}`)||n.startsWith(".")&&a.endsWith(`${n}`)))return!0;return!1}o(GKe,"checkBypass");function HKe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(HKe,"isLoopbackAddress");var TN=class extends URL{static{o(this,"DecodedURL")}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 ud=k(uC(),1),Zue=k($m(),1);var Dr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Er;(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]="MethodNotAllo
${iXe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function kN(t){return t instanceof Qi?!0:tp(t)&&t.name==="RestError"}o(kN,"isRestError");function fn(t,e){return Buffer.from(t,e)}o(fn,"stringToUint8Array");var MN=k(require("node:http"),1),LN=k(require("node:https"),1),RU=k(require("node:zlib"),1),ghe=require("node:stream");var Vo=$I("ts-http-runtime");var nXe={};function jI(t){return t&&typeof t.pipe=="function"}o(jI,"isReadableStream");function mhe(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(mhe,"isStreamComplete");function yhe(t){return t&&typeof t.byteLength=="number"}o(yhe,"isArrayBuffer");var FN=class extends ghe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},TU=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new _c("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Ga;Vo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),a=n?.includes("gzip")||n?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=lXe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,g=new FN(A);g.on("error",C=>{Vo.error("Error in upload progress",C)}),jI(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let h=oXe(u),f={status:u.statusCode??0,headers:h,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?aXe(u,h):u;let p=e.onDownloadProgress;if(p){let A=new FN(p);A.on("error",g=>{Vo.error("Error in download progress",g)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await cXe(l),f}finally{if(e.abortSignal&&s){let u=Promise.resolve();jI(c)&&(u=mhe(c));let h=Promise.resolve();jI(l)&&(h=mhe(l)),Promise.all([u,h]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Vo.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={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((l,u)=>{let h=n?MN.default.request(c,l):LN.default.request(c,l);h.once("error",d=>{u(new Qi(d.message,{code:d.code??Qi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new _c("The operation was aborted. Rejecting from abort signal callback while making request.");h.destroy(d),u(d)}),s&&jI(s)?s.pipe(h):s?typeof s=="string"||Buffer.isBuffer(s)?h.end(s):yhe(s)?h.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Vo.error("Unrecognized body type",s),u(new Qi("Unrecognized body type"))):h.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?MN.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new MN.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return LN.default.globalAgent;let i=e.tlsSettings??nXe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Vo.info("No cached TLS Agent exi
`;return e}o(UZe,"encodeHeaders");function qZe(t){return t instanceof Uint8Array?t.byteLength:cv(t)?t.size===-1?void 0:t.size:void 0}o(qZe,"getLength");function GZe(t){let e=0;for(let r of t){let s=qZe(r);if(s===void 0)return;e+=s}return e}o(GZe,"getTotalLength");async function HZe(t,e,r){let s=[fn(`--${r}`,"utf-8"),...e.flatMap(n=>[fn(`\r
`,"utf-8"),fn(UZe(n.headers),"utf-8"),fn(`\r
`,"utf-8"),n.body,fn(`\r
--${r}`,"utf-8")]),fn(`--\r
\r
`,"utf-8")],i=GZe(s);i&&t.headers.set("Content-Length",i),t.body=await Cde(s)}o(HZe,"buildRequestBody");var KI="multipartPolicy",VZe=70,zZe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function $Ze(t){if(t.length>VZe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!zZe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o($Ze,"assertValidBoundary");function uv(){return{name:KI,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(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,a]=i;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?$Ze(r):r=FZe(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await HZe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(uv,"multipartPolicy");function hv(){return DN()}o(hv,"createEmptyPipeline");var Ide=QN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),t$t=Ide.logger;function Oc(t){return Ide.createClientLogger(t)}o(Oc,"createClientLogger");var Dc=Oc("core-rest-pipeline");function WU(t={}){return qN({logger:Dc.info,...t})}o(WU,"logPolicy");var KU=GN;function XU(t={}){return HN(t)}o(XU,"redirectPolicy");var dv=k(require("node:os"),1),fv=k(require("node:process"),1);function bde(){return"User-Agent"}o(bde,"getHeaderName");async function wde(t){if(fv.default&&fv.default.versions){let e=`${dv.default.type()} ${dv.default.release()}; ${dv.default.arch()}`,r=fv.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(wde,"setPlatformSpecificData");var pv="1.22.2";function e7e(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}o(e7e,"getUserAgentString");function Sde(){return bde()}o(Sde,"getUserAgentHeaderName");async function Av(t){let e=new Map;e.set("core-rest-pipeline",pv),await wde(e);let r=e7e(e);return t?`${t} ${r}`:r}o(Av,"getUserAgentValue");var Bde=Sde(),xde="userAgentPolicy";function ZU(t={}){let e=Av(t.userAgentPrefix);return{name:xde,async sendRequest(r,s){return r.headers.has(Bde)||r.headers.set(Bde,await e),s(r)}}}o(ZU,"userAgentPolicy");var ro=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function eq(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,a)=>{function c(){a(new ro(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(h=>{l(),n(h)},h=>{l(),a(h)})}catch(h){a(h)}s?.addEventListener("abort",u)})}o(eq,"createAbortablePromise");var n7e="The delay was aborted.";function XI(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return eq(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:i??n7e})}o(XI,"delay");function dd(t){if(tp(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`Unknown error ${e}`}}o(dd,"getErrorMessage");function Nde(t){return tp(t)}o(Nde,"isError");function mg(){return ep()}o(mg,"randomUUID");var xt=ip;var vde=Symbol("rawContent");function rq(t){return typeof t[vde]=="function"}o(rq,"hasRawContent");function Rde(t){return rq(t)?t[vde]():t}o(Rde,"getRawContent");var mv=KI;function sq(){let t=uv();return{name:mv,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)rq(s.body)&&(s.body=Rde(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(sq,"multipartPolicy");var iq=VN;function nq(){return zN()}o(nq,"decompressResponsePolicy");fun
`&&t[n]!=="\r";n++)l+=t[n];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),n--),!_et(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",kr("InvalidTag",d,Pi(t,n))}let u=xet(t,n);if(u===!1)return kr("InvalidAttr","Attributes for '"+l+"' have open quote.",Pi(t,n));let h=u.value;if(n=u.index,h[h.length-1]==="/"){let d=n-h.length;h=h.substring(0,h.length-1);let f=pfe(h,e);if(f===!0)s=!0;else return kr(f.err.code,f.err.msg,Pi(t,d+f.err.line))}else if(c)if(u.tagClosed){if(h.trim().length>0)return kr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Pi(t,a));if(r.length===0)return kr("InvalidTag","Closing tag '"+l+"' has not been opened.",Pi(t,a));{let d=r.pop();if(l!==d.tagName){let f=Pi(t,d.tagStartPos);return kr("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",Pi(t,a))}r.length==0&&(i=!0)}}else return kr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Pi(t,n));else{let d=pfe(h,e);if(d!==!0)return kr(d.err.code,d.err.msg,Pi(t,n-h.length+d.err.line));if(i===!0)return kr("InvalidXml","Multiple possible root nodes found.",Pi(t,n));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=ffe(t,n);continue}else if(t[n+1]==="?"){if(n=dfe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let d=Ret(t,n);if(d==-1)return kr("InvalidChar","char '&' is not expected.",Pi(t,n));n=d}else if(i===!0&&!hfe(t[n]))return kr("InvalidXml","Extra text at the end",Pi(t,n));t[n]==="<"&&n--}}else{if(hfe(t[n]))continue;return kr("InvalidChar","char '"+t[n]+"' is not expected.",Pi(t,n))}if(s){if(r.length==1)return kr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Pi(t,r[0].tagStartPos));if(r.length>0)return kr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return kr("InvalidXml","Start tag expected.",1);return!0}o(Rv,"validate");function hfe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(hfe,"isWhiteSpace");function dfe(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 kr("InvalidXml","XML declaration allowed only at the start of the document.",Pi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(dfe,"readPI");function ffe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(ffe,"readCommentAndCDATA");var wet='"',Bet="'";function xet(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===wet||t[e]===Bet)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}}o(xet,"readAttributeStr");var Net=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function pfe(t,e){let r=Nv(t,Net),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return kr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",u0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return kr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",u0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return kr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",u0(r[i]));let n=r[i][2];if(!Tet(n))return kr("InvalidAttr","Attribute '"+n+"' is an invalid name.",u0(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return kr("InvalidAttr","Attribute '"+n+"' is repeated.",u0(r[i]))}return!0}o(pfe,"validateAttributeString");function vet(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(vet,"validateNumberAmpersand");function Ret(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vet(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(Ret,"validateAmpersand");function kr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(kr,"getErrorObject");function Tet(t){return Tq(t)}o(Tet,"validateAttrName");function _et(t){return Tq(t)}o(_et,"validateTagName");function Pi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Pi,"getLineNumberForPosition");function u0(t){return t.startIndex+t[1].length}o(u0,"getPositionFromMatch");var Afe={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"},mfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new gn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new f0(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let h=bg(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,h).trim();if(i.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=Lq(i.transformTagName,d,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(d&&i.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);f&&i.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=h}else if(u===63){let h=Fq(t,c,!1,"?>");if(!h)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(h.tagExp,this.matcher,h.tagName,!0);if(d){let f=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),n.setXmlVersion(Number(f)||1)}if(!(i.ignoreDeclaration&&h.tagName==="?xml"||i.ignorePiTags)){let f=new gn(h.tagName);f.add(i.textNodeName,""),h.tagName!==h.tagExp&&h.attrExpPresent&&i.ignoreAttributes!==!0&&(f[":@"]=d),this.addChild(r,f,this.readonlyMatcher,c)}c=h.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let h=bg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let d=t.substring(c+4,h-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:d}])}c=h}else if(u===33&&t.charCodeAt(c+2)===68){let h=n.readDocType(t,c);this.entityDecoder.addInputEntities(h.entities),c=h.i}else if(u===33&&t.charCodeAt(c+2)===91){let h=bg(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,h);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let f=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:d}]):r.add(i.textNodeName,f),c=h+2}else{let h=Fq(t,c,i.removeNSPrefix);if(!h){let D=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${D}"`)}let d=h.tagName,f=h.rawTagName,p=h.tagExp,A=h.attrExpPresent,g=h.closeIndex;if({tagName:d,tagExp:p}=Lq(i.transformTagName,d,p,i),i.strictReservedNames&&(d===i.commentPropName||d===i.cdataPropName||d===i.textNodeName||d===i.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&i.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),A=d!==p);let I=null,S={},x;x=ett(f),d!==e.tagname&&this.matcher.push(d,{},x),d!==p&&A&&(I=this.buildAttributesMap(p,this.matcher,d),I&&(S=Zet(I,i))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let v=c;if(this.isCurrentNodeStopNode){let D="";if(E)c=h.closeIndex;else if(i.unpairedTagsSet.has(d))c=h.closeIndex;else{let L=this.readStopNodeData(t,f,g+1);if(!L)throw new Error(`Unexpected end of ${f}`);c=L.i,D=L.tagContent}let O=new gn(d);I&&(O[":@"]=I),O.add(i.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,O,this.readonlyMatcher,v)}else{if(E){({tagName:d,tagExp:p}=Lq(i.transformTagName,d,p,i));let D=new gn(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(d)){let D=new gn(d);I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,v),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=h.closeIndex;continue}else{let D=new gn(d);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(D[":@"]=I),this.addChild(r,D,this.readonlyMatcher,v),r=D}s="",c=g}}}else s+=t[c];return e.child},"parseXml"
`;function ytt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(zq(r)==="?xml"){let i=r[":@"];if(i){let n=e.attributeNamePrefix+"version";if(i[n])return i[n]}}return"1.0"}o(ytt,"detectXmlVersionFromArray");function Mfe(t,e,r,s,i){return!r.sanitizeName||up(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(Mfe,"resolveTagName");function Vq(t,e){let r="";e.format&&(r=gtt);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new no(c)):c instanceof no&&s.push(c)}let i=ytt(t,e),n=new Lc;return Lfe(t,e,r,n,s,i)}o(Vq,"toXml");function Lfe(t,e,r,s,i,n){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=Hq(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],h=zq(u);if(h===void 0)continue;let f=h===e.textNodeName||h===e.cdataPropName||h===e.commentPropName||h[0]==="?"?h:Mfe(h,!1,e,s,n),p=Ett(u[":@"],e);s.push(f,p);let A=Itt(s,i);if(f===e.textNodeName){let S=u[h];A||(S=e.tagValueProcessor(f,S),S=Hq(S,e)),c&&(a+=r),a+=S,c=!1,s.pop();continue}else if(f===e.cdataPropName){c&&(a+=r);let S=u[h][0][e.textNodeName],x=Ov(S);a+=`<![CDATA[${x}]]>`,c=!1,s.pop();continue}else if(f===e.commentPropName){let S=u[h][0][e.textNodeName],x=Pv(S);a+=r+`<!--${x}-->`,c=!0,s.pop();continue}else if(f[0]==="?"){let S=kfe(u[":@"],e,A,s,n);a+=(f==="?xml"?"":r)+`<${f}${S}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=kfe(u[":@"],e,A,s,n),E=r+`<${f}${C}`,I;A?I=Ffe(u[h],e):I=Lfe(u[h],e,g,s,i,n),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=E+"/>":I&&I.endsWith(">")?a+=E+`>${I}${r}</${f}>`:(a+=E+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?a+=r+e.indentBy+I+r:a+=I,a+=`</${f}>`),c=!0,s.pop()}return a}o(Lfe,"arrToStr");function Ett(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[n]=md(t[i]),s=!0}return s?r:null}o(Ett,"extractAttributeValues");function Ffe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let i=t[s],n=zq(i);if(n===e.textNodeName)r+=i[n];else if(n===e.cdataPropName)r+=i[n][0][e.textNodeName];else if(n===e.commentPropName)r+=i[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let a=Ctt(i[":@"],e),c=Ffe(i[n],e);!c||c.length===0?r+=`<${n}${a}/>`:r+=`<${n}${a}>${c}</${n}>`}}}return r}o(Ffe,"getRawContent");function Ctt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];i===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${md(i)}"`}return r}o(Ctt,"attr_to_str_raw");function zq(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(zq,"propName");function kfe(t,e,r,s,i){let n="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:Mfe(c,!0,e,s,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=Hq(u,e)),u===!0&&e.suppressBooleanAttributes?n+=` ${l}`:n+=` ${l}="${md(u)}"`}return n}o(kfe,"attr_to_str");function Itt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(Itt,"checkStopNode");function Hq(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(Hq,"replaceEntitiesValue");function $q(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o($q,"getIgnoreAttributesFn");var btt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(En,"Builder");function wtt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(wtt,"detectXmlVersionFromObj");function jq(t,e,r,s,i){return!r.sanitizeName||up(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(jq,"resolveTagName");En.prototype.build=function(t){if(this.options.preserveOrder)return Vq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Lc,r=wtt(t,this.options);return this.j2x(t,0,e,r).val}};En.prototype.j2x=function(t,e,r,s){let i="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let h=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:jq(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(n+="");else if(t[l]===null)this.isAttribute(l)||h===this.options.cdataPropName||h===this.options.commentPropName?n+="":h[0]==="?"?n+=this.indentate(e)+"<"+h+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+h+"/"+this.tagEndChar;else if(t[l]instanceof Date)n+=this.buildTextValNode(t[l],h,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let f=jq(d,!0,this.options,r,s);i+=this.buildAttrPairStr(f,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,""+t[l]);n+=this.replaceEntitiesValue(f)}else{r.push(h);let f=this.checkStopNode(r);if(r.pop(),f){let p=""+t[l];p===""?n+=this.indentate(e)+"<"+h+this.closeTag(h)+this.tagEndChar:n+=this.indentate(e)+"<"+h+">"+p+"</"+h+this.tagEndChar}else n+=this.buildTextValNode(t[l],h,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,f="",p="";for(let A=0;A<d;A++){let g=t[l][A];if(!(typeof g>"u"))if(g===null)h[0]==="?"?n+=this.indentate(e)+"<"+h+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+h+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(h);let C=this.j2x(g,e+1,r,s);r.pop(),f+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(p+=C.attrStr)}else f+=this.processTextOrObjNode(g,h,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(h,g);C=this.replaceEntitiesValue(C),f+=C}else{r.push(h);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?f+=this.indentate(e)+"<"+h+this.closeTag(h)+this.tagEndChar:f+=this.indentate(e)+"<"+h+">"+E+"</"+h+this.tagEndChar}else f+=this.buildTextValNode(g,h,"",e,r)}}this.options.oneListGroup&&(f=this.buildObjectNode(f,h,p,e)),n+=f}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),f=d.length;for(let p=0;p<f;p++){let A=jq(d[p],!0,this.options,r,s);i+=this.buildAttrPairStr(A,""+t[l][d[p]],c)}}else n+=this.processTextOrObjNode(t[l],h,e,r,s)}return{attrStr:i,val:n}};En.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+md(e)+'"'};function Stt(t,e,r,s,i){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,i);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(Stt,"process
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===qe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE));r.sort((i,n)=>zv(i.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((i,n,a)=>!(n>0&&i.name.toLowerCase()===a[n-1].name.toLowerCase()));let s="";return r.forEach(i=>{s+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=Gv(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=Hv(e.url),n={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();n[l]=i[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(n[c])}`}return s}};var Cr=class extends fp{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new y0(e,r,this)}computeHMACSHA256(e){return(0,jfe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var as=Oc("storage-common");var Jo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Jo||(Jo={}));var yd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Jo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ptt=new ro("The operation was aborted."),E0=class extends Fc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=yd){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:yd.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):yd.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:yd.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:yd.maxRetryDelayInMs):yd.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:yd.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:yd.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=qv(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=gd(i.url,Bu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(as.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,a))return a;r=r||!n&&a.status===404}catch(c){if(as.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(n,s,a,c))throw c}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return as.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of n)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return as.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||i){let a=s?s.status:i?i.statusCode:0;if(!e&&a===404)return as.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return as.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(qe.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(as.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 Jo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Jo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return as.info(`RetryPolicy: Delay for ${i}ms`),Vv(i,s,Ptt)}};var C0=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new E0(e,r,this.retryOptions)}};var Ott="storageBrowserPolicy";function Jfe(){return{name:Ott,async sendRequest(t,e){return xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=gd(t.url,Bu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}o(Jfe,"storageBrowserPolicy");var Dtt="StorageCorrectContentLengthPolicy";function Yfe(){function t(e){e.body&&(
`)+`
`+s(n)+i(n),c=(0,Kfe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");n.headers.set(qe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(n,a){let c=n.headers.get(a);return!c||a===qe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(n){let a=[];for(let[l,u]of n.headers)l.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>zv(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,h)=>!(u>0&&l.name.toLowerCase()===h[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function i(n){let a=Gv(n.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=Hv(n.url),u={};if(l){let h=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let f=d.toLowerCase();u[f]=l[d],h.push(f)}h.sort();for(let d of h)c+=`
${d}:${decodeURIComponent(u[d])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:Ftt,async sendRequest(n,a){return e(n),a(n)}}}o(Xq,"storageSharedKeyCredentialPolicy");var Utt="storageRequestFailureDetailsParserPolicy";function Xfe(){return{name:Utt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(Xfe,"storageRequestFailureDetailsParserPolicy");var Zfe=require("node:crypto");var $v=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Zfe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var jv="12.31.0",Jv="2026-02-06";var Yv="https://storage.azure.com/.default",xu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ha="",Zq="*",qtt=1*1024*1024;var Gtt=4*qtt;var epe="AES256",tpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",rpe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],spe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],ipe="BlobUsesCustomerSpecifiedEncryption",npe="BlobDoesNotUseCustomerSpecifiedEncryption",ope=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Nu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Nu,"isPipelineLike");var I0=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Mr(t,e={}){t||(t=new lr);let r=new I0([],e);return r._credential=t,r}o(Mr,"newPipeline");function Htt(t){let e=[Vtt,ape,ztt,$tt,jtt,Jtt,Wt
`),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}}o(Hst,"generateBlobSASQueryParameters20150405");function Vst(t,e){if(t=bp(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):"",Ip(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new Ja(t.version,a,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}}o(Vst,"generateBlobSASQueryParameters20181109");function zst(t,e){if(t=bp(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):"",Ip(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new Ja(t.version,a,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}}o(zst,"generateBlobSASQueryParameters20201206");function $st(t,e){if(t=bp(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):"",Ip(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?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new Ja(t.version,a,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}}o($st,"generateBlobSASQueryParametersUDK20181109");function jst(t,e){if(t=bp(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):"",Ip(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?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new Ja(t.version,a,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}}o(jst,"generateBlobSASQueryParametersUDK20200210");function Jst(t,e){if(t=bp(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):"",Ip(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?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new Ja(t.version,a,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}}o(Jst,"generateBlobSASQueryParametersUDK20201206");function Yst(t,e){if(t=bp(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):"",Ip(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?ja(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(n);return{sasQueryParameters:new Ja(t.version,a,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}}o(Yst,"generateBlobSASQueryParametersUDK20250705");function Ip(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Ip,"getCanonicalName");function bp(t){let e=t.version?t.version:Jv;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(bp,"SASSignatureValuesSanityCheckAndAutofill");var P0=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=mg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ha||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ha||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!==Ha||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ha||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?.i
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: 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"}};kg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var xp=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};xp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var H0=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var $it=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},q8=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);H(`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=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ume(t,e,r){return $it(this,void 0,void 0,function*(){var s;let i=new Ou(t),n=i.getBlockBlobClient(),a=new q8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),Q(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield n.uploadFile(e,c);if(l._response.status>=400)throw new ZR(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Dt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(ume,"uploadCacheArchiveSDK");var dme=k(require("buffer"),1),il=k(require("fs"),1),fme=k(require("stream"),1),pme=k(require("util"),1);var eT=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function tT(t){return t?t>=200&&t<300:!1}o(tT,"isSuccessStatusCode");function jit(t){return t?t>=500:!0}o(jit,"isServerErrorStatusCode");function Jit(t){return t?[Er.BadGateway,Er.ServiceUnavailable,Er.GatewayTimeout].includes(t):!1}o(Jit,"isRetryableStatusCode");function Yit(t){return eT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Yit,"sleep");function hme(t,e,r){return eT(this,arguments,void 0,function*(s,i,n,a=xN,c=NN,l=void 0){let u="",h=1;for(;h<=a;){let d,f,p=!1;try{d=yield i()}catch(A){l&&(d=l(A)),p=!0,u=A.message}if(d&&(f=n(d),!jit(f)))return d;if(f&&(p=Jit(f),u=`Cache service responded with ${f}`),Q(`${s} - Attempt ${h} of ${a} failed with error: ${u}`),!p){Q(`${s} - Error is not retryable`);break}yield Yit(c),h++}throw Error(`${s} failed: ${u}`)})}o(hme,"retry");function V0(t,e){return eT(this,arguments,void 0,function*(r,s,i=xN,n=NN){return yield hme(r,s,a=>a.statusCode,i,n,a=>{if(a instanceof Tc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(V0,"retryTypedResponse");function Mg(t,e){return eT(this,arguments,void 0,function*(r,s,i=xN,n=NN){return yield hme(r,s,a=>a.message.statusCode,i,n)})}o(Mg,"retryHttpClientResponse");var Zo=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a
Other caches with similar key:`);for(let c of n?.artifactCaches||[])Q(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(snt,"printCachesListForDiagnostics");function z8(t,e,r){return In(this,void 0,void 0,function*(){let s=new Sme.URL(t),i=yme(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield mme(t,e,i):i.concurrentBlobDownloads?yield Ame(t,e,i):yield sT(t,e):yield sT(t,e)})}o(z8,"downloadCache");function xme(t,e,r){return In(this,void 0,void 0,function*(){let s=V8(),i=ag(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield V0("reserveCache",()=>In(this,void 0,void 0,function*(){return s.postJson($0("caches"),n)}))})}o(xme,"reserveCache");function wme(t,e){return`bytes ${t}-${e}/*`}o(wme,"getContentRange");function int(t,e,r,s,i){return In(this,void 0,void 0,function*(){Q(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${wme(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":wme(s,i)},a=yield Mg(`uploadChunk (start: ${s}, end: ${i})`,()=>In(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!tT(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(int,"uploadChunk");function nnt(t,e,r,s){return In(this,void 0,void 0,function*(){let i=Rc(r),n=$0(`caches/${e.toString()}`),a=Lg.openSync(r,"r"),c=G8(s),l=mU("uploadConcurrency",c.uploadConcurrency),u=mU("uploadChunkSize",c.uploadChunkSize),h=[...new Array(l).keys()];Q("Awaiting all uploads");let d=0;try{yield Promise.all(h.map(()=>In(this,void 0,void 0,function*(){for(;d<i;){let f=Math.min(i-d,u),p=d,A=d+f-1;d+=u,yield int(t,n,()=>Lg.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),p,A)}})))}finally{Lg.closeSync(a)}})}o(nnt,"uploadFile");function ont(t,e,r){return In(this,void 0,void 0,function*(){let s={size:r};return yield V0("commitCache",()=>In(this,void 0,void 0,function*(){return t.postJson($0(`caches/${e.toString()}`),s)}))})}o(ont,"commitCache");function $8(t,e,r,s){return In(this,void 0,void 0,function*(){if(G8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ume(r,e,s)}else{let n=V8();Q("Upload cache"),yield nnt(n,t,e,s),Q("Commiting cache");let a=Rc(e);H(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield ont(n,t,a);if(!tT(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);H("Cache saved successfully")}})}o($8,"saveCache");var Cge=k(fge(),1),Ur=k(Fr(),1),co=k(Fr(),1),_p=k(Fr(),1),Qp=k(Fr(),1),Pp=k(Fr(),1);var UV=k(Fr(),1),qV=k(Fr(),1),gge=k(Fr(),1),yge=k(Fr(),1),Ege=k(Fr(),1);var MV=k(Fr(),1),LV=k(Fr(),1),pge=k(Fr(),1),Age=k(Fr(),1),mge=k(Fr(),1);var FV=class extends mge.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Age.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,pge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let h=e.skip(l);u!==!1&&(u===!0?LV.UnknownFieldHandler.onRead:u)(this.typeName,n,c,l,h)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,MV.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,MV.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?LV.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},VT=new FV;var GV=class extends Ege.Mess
`));let s=yield sz(r,"create");yield iz(s,t)})}o(oz,"createTar");var ty=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(a){a(n)})}return o(i,"adopt"),new(r||(r=Promise))(function(n,a){function c(h){try{u(s.next(h))}catch(d){a(d)}}o(c,"fulfilled");function l(h){try{u(s.throw(h))}catch(d){a(d)}}o(l,"rejected");function u(h){h.done?n(h.value):i(h.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Ka=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ey=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},JT=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Sge(t){if(!t||t.length===0)throw new Ka("Path Validation Error: At least one directory or file path is required")}o(Sge,"checkPaths");function az(t){if(t.length>512)throw new Ka(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ka(`Key Validation Error: ${t} cannot contain commas.`)}o(az,"checkKey");function cz(){return z0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(cz,"isFeatureAvailable");function Bge(t,e,r,s){return ty(this,arguments,void 0,function*(i,n,a,c,l=!1){let u=z0();return Q(`Cache service version: ${u}`),Sge(i),u==="v2"?yield Iat(i,n,a,c,l):yield Cat(i,n,a,c,l)})}o(Bge,"restoreCache");function Cat(t,e,r,s){return ty(this,arguments,void 0,function*(i,n,a,c,l=!1){a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Ka("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)az(f);let h=yield HI(),d="";try{let f=yield Bme(u,i,{compressionMethod:h,enableCrossOsArchive:l});if(!f?.archiveLocation)return;if(c?.lookupOnly)return H("Lookup only - skipping download"),f.cacheKey;d=cb.join(yield qI(),ld(h)),Q(`Archive Path: ${d}`),yield z8(f.archiveLocation,d,c),mu()&&(yield ab(d,h));let p=Rc(d);return H(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield nz(d,h),H("Cache restored successfully"),f.cacheKey}catch(f){let p=f;if(p.name===Ka.name)throw f;p instanceof Tc&&typeof p.statusCode=="number"&&p.statusCode>=500?Ym(`Failed to restore: ${f.message}`):Dt(`Failed to restore: ${f.message}`)}finally{try{yield GI(d)}catch(f){Q(`Failed to delete archive: ${f}`)}}})}o(Cat,"restoreCacheV1");function Iat(t,e,r,s){return ty(this,arguments,void 0,function*(i,n,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[n,...a];if(Q("Resolved Keys:"),Q(JSON.stringify(u)),u.length>10)throw new Ka("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)az(d);let h="";try{let d=rz(),f=yield HI(),p={key:n,restoreKeys:a,version:ag(i,f,l)},A=yield d.GetCacheEntryDownloadURL(p);if(!A.ok){Q(`Cache not found for version ${p.version} of keys: ${u.join(", ")}`);return}if(p.key!==A.matchedKey?H(`Cache hit for restore-key: ${A.matchedKey}`):H(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return H("Lookup only - skipping download"),A.matchedKey;h=cb.join(yield qI(),ld(f)),Q(`Archive path: ${h}`),Q(`Starting download of archive to: ${h}`),yield z8(A.signedDownloadUrl,h,c);let C=Rc(h);return H(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),mu()&&(yield ab(h,f)),yield nz(h,f),H("Cache restored successfully"),A.matchedKey}catch(d){let f=d;if(f.name===Ka.name)throw d;f instanceof Tc&&typeof f.statusCode=="number"&&f.statusCode>=500?Ym(`Failed to restore: ${d.message}`):Dt(`Failed to restore: ${d.message}`)}finally{try{h&&(yield GI(h))}catch(d){Q(`Failed to delete archive: ${d}`)}}})}o(Iat,"restoreCacheV2");function lz(t,e,r){return ty(this,arguments,void 0,function*(s,i,n,a=!1){let c=z0();return Q(`Cache service version: ${c}`),Sge(s),az(i),c==="v2"?yield wat(s,i,n,a):yield bat(s,i,n,a)})}o(lz,"saveCache");function bat(t,e,r){return ty(this,arguments,void 0,fu
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return f<p},"__needMoreData"),parse:o(function(s,i,n,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:h,ltrim:d,max_record_size:f,raw:p,relax_quotes:A,rtrim:g,skip_empty_lines:C,to:E,to_line:I}=this.options,{comment:S,escape:x,quote:v,record_delimiter:D}=this.options,{bomSkipped:O,previousBuf:L,rawBuffer:z,escapeIsQuote:ee}=this.state,U;if(L===void 0)if(s===void 0){a();return}else U=s;else L!==void 0&&s===void 0?U=L:U=Buffer.concat([L,s]);if(O===!1)if(c===!1)this.state.bomSkipped=!0;else if(U.length<3){if(i===!1){this.state.previousBuf=U;return}}else{for(let j in my)if(my[j].compare(U,0,my[j].length)===0){let se=my[j].length;this.state.bufBytesStart+=se,U=U.slice(se);let Qe=Q3({...this.original_options,encoding:j});for(let we in Qe)this.options[we]=Qe[we];({comment:S,escape:x,quote:v}=this.options);break}this.state.bomSkipped=!0}let q=U.length,V;for(V=0;V<q&&!this.__needMoreData(V,q,i);V++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(U,V)&&(D=this.options.record_delimiter);let j=U[V];if(p===!0&&z.append(j),(j===jft||j===Jft)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(U,V,j)&&V+x.length<q)if(ee){if(this.__isQuote(U,V+x.length)){this.state.escaping=!0,V+=x.length-1;continue}}else{this.state.escaping=!0,V+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(U,V))if(this.state.quoting===!0){let we=U[V+v.length],le=g&&this.__isCharTrimable(U,V+v.length),ct=S!==null&&this.__compareBytes(S,U,V+v.length,we),et=this.__isDelimiter(U,V+v.length,we),Ct=D.length===0?this.__autoDiscoverRecordDelimiter(U,V+v.length):this.__isRecordDelimiter(we,U,V+v.length);if(x!==null&&this.__isEscape(U,V,j)&&this.__isQuote(U,V+x.length))V+=x.length-1;else if(!we||et||Ct||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,V+=v.length-1;continue}else if(A===!1){let De=this.__error(new gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(we)}"`,`at line ${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(v),V+=v.length-1}else if(this.state.field.length!==0){if(A===!1){let we=this.__infoField(),le=Object.keys(my).map(et=>my[et].equals(this.state.field.toString())?et:!1).filter(Boolean)[0],ct=this.__error(new gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(we.column)} at line ${we.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,le?`(${le} bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,V+=v.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter(j,U,V);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)>=h){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),V+=we-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,V+=we-1;continue}this.info.bytes=this.state.bufBytesStart+V;let et=this.__onField();if(et!==void 0)return et;this.info.bytes=this.state.bufBytesStart+V+we;let Ct=this.__onRecord(n);if(Ct!==void 0)return Ct;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,V+=we-1;continue}if(this.state.commenting)continue;if(S!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(S,U,V,j)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(U,V,
`,n),Buffer.from(`
`,n),Buffer.from("\r",n)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[i+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(s){let{encoding:i,raw:n,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,n?this.state.rawBuffer.toString(i):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:s,raw:i,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(n):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,i=Array.isArray(s),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:i===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var po=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=OIe(e),i=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),n=o(()=>{},"close"),a=s.parse(t,!0,i,n);if(a!==void 0)throw a;return r},"parse");var wt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(si(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let i=po(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of i)n.length==1?r?.ignoreComma?s.push(n[0]):s.push(...n[0].split(",")):r?.ignoreComma?s.push(n.join(",")):s.push(...n);return s.filter(n=>n).map(n=>r?.trimWhitespace===!1?n:n.trim())}static getInputNumber(e){let r=si(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await Gs("powershell",!0),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let a in r)n.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${i}' ${n.join(" ")}`]}}static isDirectory(e){try{return DIe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return P3.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+s[i]}static generateRandomString(e=10){return P3.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return kIe.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=vb
2026-05-22 14:44:02 +00:00
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(Upt,"_buildMessageForResponseErrors");var qpt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(Upt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Gpt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Hpt=["query","method","url"],I0e=/\/api\/v3\/?$/;function Vpt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Hpt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((a,c)=>Gpt.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return I0e.test(n)&&(i.url=n.replace(I0e,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new qpt(i,c,a.data)}return a.data.data})}o(Vpt,"graphql");function z3(t,e){let r=t.defaults(e);return Object.assign(o((i,n)=>Vpt(r,i,n),"newApi"),{defaults:z3.bind(null,r),endpoint:r.endpoint})}o(z3,"withDefaults");var ddr=z3(Pb,{headers:{"user-agent":`octokit-graphql.js/${Fpt} ${Td()}`},method:"POST",url:"/graphql"});function b0e(t){return z3(t,{method:"POST",url:"/graphql"})}o(b0e,"withCustomRequest");var $3="(?:[a-zA-Z0-9_-]+)",w0e="\\.",S0e=new RegExp(`^${$3}${w0e}${$3}${w0e}${$3}$`),zpt=S0e.test.bind(S0e);async function $pt(t){let e=zpt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o($pt,"auth");function jpt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(jpt,"withAuthorizationPrefix");async function Jpt(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=jpt(t),e(i)}o(Jpt,"hook");var B0e=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign($pt.bind(null,e),{hook:Jpt.bind(null,e)})},"createTokenAuth2");var j3="7.0.6";var x0e=o(()=>{},"noop"),Ypt=console.warn.bind(console),Wpt=console.error.bind(console);function Kpt(t={}){return typeof t.debug!="function"&&(t.debug=x0e),typeof t.info!="function"&&(t.info=x0e),typeof t.warn!="function"&&(t.warn=Ypt),typeof t.error!="function"&&(t.error=Wpt),t}o(Kpt,"createLogger");var N0e=`octokit-core.js/${j3} ${Td()}`,oQ=class{static{o(this,"Octokit")}static VERSION=j3;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new e0e.Collection,s={baseUrl:Pb.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${N0e}`:N0e,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Pb.defaults(s),this.graphql=b0e(this.request).defaults(s),this.log=Kpt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...a}=e,c=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=B0e(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===h){c.push({title:d,message:f,file:g.path,startLine:p}),A=!0;break}A||Q(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};var Qd=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Et}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),s=await Re.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(Q(`Builder.exists cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(Q(`Builder.exists error: ${i}`),!1));return Q(`Builder.exists: ${s}`),s}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),s=["inspect"];e&&s.push(e);let i=await this.buildx.getCommand(s);return await Re.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return t.parseInspect(n.stdout)})}static parseInspect(e){let r={nodes:[]},s,i={},n,a,c;for(let l of e.trim().split(`
`)){let[u,...h]=l.split(":"),d=u.toLowerCase(),f=h.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case d=="name":s=void 0,r.name==null?r.name=f:(n&&i.gcPolicy&&(i.gcPolicy.push(n),n=void 0),i.name&&r.nodes.push(i),i={name:f});break;case d=="driver":s=void 0,r.driver=f;break;case d=="last activity":s=void 0,r.lastActivity=new Date(f);break;case d=="endpoint":s=void 0,i.endpoint=f;break;case d=="driver options":s=void 0,i["driver-opts"]=(f.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case d=="status":s=void 0,i.status=f;break;case d=="buildkit daemon flags":case d=="flags":s=void 0,i["buildkitd-flags"]=f;break;case d=="buildkit version":case d=="buildkit":s=void 0,i.buildkit=f;break;case d=="platforms":{if(s=void 0,!f)break;let p=[];if(f.includes("*"))for(let A of f.split(", "))A.includes("*")&&p.push(A.replace(/\*/g,""));else p=f.split(", ");i.platforms=p.join(",");break}case d=="features":s="features",i.features={};break;case d=="labels":s="label",i.labels={};break;case d=="devices":s="devices",i.devices=i.devices||[];break;case d.startsWith("gc policy rule#"):s="gcpolicy",i.gcPolicy&&n&&(i.gcPolicy.push(n),n=void 0);break;case d.startsWith("file#"):s="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(s&&s!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),s||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!f;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=f;break}case"devices":{switch(d.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=f;break}case"on-demand":{a&&f&&(a.onDemand=f=="true");break}case"automatically allowed":{a&&f&&(a.autoAllow=f=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=f)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],n=n||{},d.trim()){case"all":{n.all=f=="true";break}case"filters":{f&&(n.filter=f.split(","));break}case"keep duration":{n.keepDuration=f;break}case"keep bytes":{n.keepBytes=f;break}case"reserved space":{n.reservedSpace=f;break}case"max used space":{n.maxUsedSpace=f;break}case"min free space":{n.minFreeSpace=f;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};var Vp=k(require("fs"),1),n5=k(require("path"),1);var uQ=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Et,this.iidFilename=`build-iidfile-${wt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${wt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([p])=>!r.has(p)),n=wt.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||qi.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&wt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Mt.serverURL}/${qi.repo.owner}/${qi.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,h=e?.format;if(!h){if(h="fragment",i.length>0)h="query";else if(wt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(h="query")}catch{}}let d=qi.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(d=typeof qi.payload.pull_request?.head?.sha=="string"?qi.payload.pull_request.head.sha:a);let f=l||d;if(h==="query"){let p=[`ref=${n||l?a:f}`],A=n?f:l;A&&p.push(`checksum=${A}`),u&&u!=="."&&p.push(`subdir=${u}`);for(let[g,C]of i)p.push(`${g}=${C}`);return`${c}?${p.join("&")}`}return`${c}#${f}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return n5.default.join(bt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Vp.default.existsSync(e))return Vp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return n5.default.join(bt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Vp.default.existsSync(e))return;let r=Vp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Vp.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[s,i]}let n=bt.tmpName({tmpdir:bt.tmpDir()});return Vp.default.writeFileSync(n,i),[s,n]}static getProvenanceInput(e){let r=si(e);if(!r)return r;try{return Jf(e)?`builder-id=${Mt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Mt.workflowRunURL(!0)}`;let r=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")return e;return`${e},builder-id=${Mt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",i="",n="",a=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?i=l[1]:l[0]==="ghtoken"&&(n=l[1])}return s==="gha"&&(i||(e=`${e},repository=${Mt.repository}`),!n&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=po(r.join(`
`),{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,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=po(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(n=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=po(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let a=wt.parseBool(n);s.push(`disabled=${!a}`)}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} is not a valid secret`);return r&&wc(n),[i,n]}};var o5=k(require("fs"),1),M0e=k(require("path"),1);var hQ=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Et,this.metadataFilename=`bake-metadata-${wt.generateRandomString()}.json`}getMetadataFilePath(){return M0e.default.join(bt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!o5.default.existsSync(e))return;let r=o5.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=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!wt.isValidRef(l)){n.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&s.push(i);for(let l of n)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Re.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.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=po(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(n){case"type":r.type=a;break;case"disabled":r.disabled=wt.parseBool(a);break;default:r[n]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=po(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,a]=i.toString().
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);Q(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let i=s[1].trim();if(i.startsWith("tag: "))return`refs/tags/${i.split(":")[1].trim()}`;if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let a=i.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=i.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Re.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[i]=s.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);if(i)return`refs/tags/${i}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.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 oOe=require("crypto"),$l=k(require("fs"),1),mf=k(require("path"),1);var vS=k(Mb(),1),jl=k(Y_e(),1),aOe=k(dW(),1),XE=k(ZPe(),1);var fK=k(Mb(),1);var tOe=k(Xa(),1);var eOe="application/vnd.oci.empty.v1+json";var Rh=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(Q(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(Q(`Cosign.isAvailable error: ${r}`),!1));return Q(`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 Q("Cosign.versionSatisfies false: undefined version"),!1;let i=tOe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return Q(`Cosign.versionSatisfies ${s} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(n=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===fK.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===eOe&&typeof u.digest=="string"&&(s=u.digest)}if(!i&&l&&l.mediaType===fK.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var pK=k(require("fs"),1);var QD=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Et}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(`No descriptor found for ${e.name}`);let s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let a of r.manifests)a.digest&&n.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=n.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.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 c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}n.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let c of i)r.push("--file",c);for
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${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 rOe="application/vnd.in-toto+json";var sOe="https://fulcio.sigstore.dev",iOe="https://rekor.sigstore.dev",nOe="https://timestamp.sigstore.dev",HA="https://search.sigstore.dev";var nkt="slsaprovenance1",gf=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Rh,this.imageTools=e?.imageTools||new QD}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);H(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await Zt("Creating Sigstore protobuf signing config",async()=>{let a=bt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:bt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];i&&c.push("--no-default-rekor=true"),await Re.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),H(JSON.stringify(JSON.parse($l.default.readFileSync(a,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${a}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let l of c){let u=`${a}@${l}`;await Zt(`Signing attestation manifest ${u}`,async()=>{let h=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];H(`[command]${this.cosign.binPath} ${[...h,u].join(" ")}`);let d=await Re.getExecOutput(this.cosign.binPath,["--verbose",...h,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Rh.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let A=f.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${A}`)}else throw new Error(`Cosign sign command failed with: ${d.stderr.trim().split(/\r?\n/).filter(A=>A.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,vS.bundleFromJSON)(f.bundle));p.tlogID&&H(`Uploaded to Rekor transparency log: ${HA}?logIndex=${p.tlogID}`),H(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...p,imageName:a}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[i,n]of Object.entries(e))await Zt(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});H(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${a.signatureManifestDigest}`),s[i]=a});return s}async verifyImageAttestations(e,r){let s={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let a of i){let c=`${n}@${a}`,l=await this.verifyImageAttestation(c,r);H(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${l.signatureManifestDigest}`),s[c]=l}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){H(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await Re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=Rh.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,n;H(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<i;a++){let c=await Re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Rh.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
`);if(n=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(h=>h.code==="MANIFEST_UNKNOWN"))H(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
${u}`),await new Promise(h=>setTimeout(h,Math.pow(2,a)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.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);H(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await Zt(`Signing ${n}`,async()=>{let a=i[n],c=mf.default.join(mf.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),l=t.getProvenanceSubjects(a);if(l.length===0){Dt(`No subjects found in provenance ${n}, skip signing.`);return}let u=await t.signPayload({data:a,type:rOe},s),h=t.parseBundle(u);H("Provenance blob signed for:");for(let d of l){let[f,p]=Object.entries(d.digest)[0]||[];H(` - ${d.name} (${f}:${p})`)}h.tlogID&&H(`Attestation signature uploaded to Rekor transparency log: ${HA}?logIndex=${h.tlogID}`),H(`Writing Sigstore bundle to: ${c}`),$l.default.writeFileSync(c,JSON.stringify(h.payload,null,2),{encoding:"utf-8"}),r[n]={...h,bundlePath:c,subjects:l}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${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 a=mf.default.dirname(i);await Zt(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let c of n.subjects){let l=mf.default.join(a,c.name);H(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??nkt];(r.noTransparencyLog||!n.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let h=await Re.getExecOutput(this.cosign.binPath,[...u,"--bundle",n.bundlePath,l],{ignoreReturnCode:!0});if(h.stderr.length>0&&h.exitCode!=0)throw new Error(h.stderr);s[l]={bundlePath:n.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){H("Verifying keyless verification bundle signature");let i=JSON.parse($l.default.readFileSync(r,"utf-8")),n=(0,vS.bundleFromJSON)(i);H("Fetching Sigstore TUF trusted root metadata");let a=await aOe.getTrustedRoot(),c=(0,XE.toTrustMaterial)(a);try{H("Verifying artifact signature");let l=(0,XE.toSignedEntity)(n,$l.default.readFileSync(e)),u=t.parseCertificate(n),h=n.verificationMaterial.tlogEntries,d=h.length>0?h[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let A=u.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${A}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let p=new XE.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return Q(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:d}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),H(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:sOe,rekorURL:e?void 0:iOe,tsaServerURL:nOe}}static noTransparencyLog(e){return e??Mt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=mf.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(mf.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let a of i){let c=
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
ARG ALPINE_VERSION="3.22"
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
COPY --from=xx / /
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=0
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \\
--mount=type=bind,source=go.mod,target=go.mod \\
--mount=type=bind,source=go.sum,target=go.sum \\
go mod download
FROM builder-base AS version
RUN --mount=type=bind,target=. <<'EOT'
git rev-parse HEAD 2>/dev/null || {
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
exit 1
}
set -ex
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
echo -n "\${VERSION}" > /tmp/.version;
EOT
FROM builder-base AS builder
ARG TARGETPLATFORM
RUN --mount=type=bind,target=. \\
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
--mount=type=cache,target=/go/pkg/mod <<EOT
set -ex
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
xx-verify --static /out/cosign
EOT
FROM scratch
COPY --from=builder /out /
`;var UD=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Et,this.sigstore=e?.sigstore||new gf}async download(e){let r=await t.getDownloadVersion(e.version);Q(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);Q(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);Q(`Install.download vspec: ${i}`);let n=rC.clean(i)||"";if(!rC.valid(n))throw new Error(`Invalid Cosign version "${i}".`);let a=new Ss({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:tC.default.join(lc.default.homedir(),".bin"),cacheFile:lc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return H(`Cosign binary found in ${c}`),c;let l=gK.format(r.downloadURL,i,this.filename());H(`Downloading ${l}`);let u=await Uo(l,void 0,this.githubToken);Q(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&rC.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let h=await a.save(u,e.skipState);return H(`Cached to ${h}`),h}async build(e,r,s){let i=await this.vspec(e);Q(`Install.build vspec: ${i}`);let n=new Ss({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:tC.default.join(lc.default.homedir(),".bin"),cacheFile:lc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await n.find();if(a)return H(`Cosign binary found in ${a}`),a;let c=tC.default.join(bt.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Re.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(lOe)}).then(d=>{if(d.stderr.length>0&&d.exitCode!=0)throw new Error(`build failed with: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),h=await n.save(u,s);return H(`Cached to ${h}`),h}async install(e,r){r=r||bt.tmpDir();let s=tC.default.join(r,"cosign-bin");RS.default.existsSync(s)||RS.default.mkdirSync(s,{recursive:!0});let i=lc.default.platform()=="win32"?"cosign.exe":"cosign",n=tC.default.join(s,i);return RS.default.copyFileSync(e,n),H("Fixing perms"),RS.default.chmodSync(n,"0755"),Bc(s),H("Added Cosign to PATH"),H(`Binary path: ${n}`),n}async buildCommand(e,r){let s=await new Et({standalone:!0}).isAvailable(),i=await new Et({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&s)Q("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&i)Q("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(s)Q("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(i)Q("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new Et({standalone:n}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;H(`Downloading keyless verification bundle at ${s}`);let i=await Uo(s,void 0,this.githubToken);Q(`Install.verifySignature bundlePath: ${i}`);let n=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});H(`Cosign binary signature verified! ${n.tlogID?`${HA}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(lc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=lc.default.arch();break}}let r=lc.default.platform()=="win32"?"windows":lc.default.platform(),s=lc.default.platform()=="win32"?".exe":"";return gK.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!wt.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return H(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let i;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=await Cy.remoteSha
/*! Bundled license information:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
tmp/lib/tmp.js:
(*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*)
negotiator/index.js:
(*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
imurmurhash/imurmurhash.js:
(**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*)
2026-05-22 14:44:02 +00:00
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.cjs.map