Files
metadata-action/dist/index.cjs

381 lines
3.6 MiB
JavaScript
Raw Normal View History

var Tje=Object.create;var pB=Object.defineProperty;var xje=Object.getOwnPropertyDescriptor;var _je=Object.getOwnPropertyNames;var Wje=Object.getPrototypeOf,Lje=Object.prototype.hasOwnProperty;var o=(t,e)=>pB(t,"name",{value:e,configurable:!0});var Qje=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Vne=(t,e)=>{for(var r in e)pB(t,r,{get:e[r],enumerable:!0})},Pje=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of _je(e))!Lje.call(t,s)&&s!==r&&pB(t,s,{get:()=>e[s],enumerable:!(n=xje(e,s))||n.enumerable});return t};var _=(t,e,r)=>(r=t!=null?Tje(Wje(t)):{},Pje(e||!t||!t.__esModule?pB(r,"default",{value:t,enumerable:!0}):r,t));var ese=b(hh=>{"use strict";var bs0=require("net"),Vje=require("tls"),O_=require("http"),Jne=require("https"),jje=require("events"),Ms0=require("assert"),$je=require("util");hh.httpOverHttp=Yje;hh.httpsOverHttp=Jje;hh.httpOverHttps=Kje;hh.httpsOverHttps=Zje;function Yje(t){var e=new lu(t);return e.request=O_.request,e}o(Yje,"httpOverHttp");function Jje(t){var e=new lu(t);return e.request=O_.request,e.createSocket=Kne,e.defaultPort=443,e}o(Jje,"httpsOverHttp");function Kje(t){var e=new lu(t);return e.request=Jne.request,e}o(Kje,"httpOverHttps");function Zje(t){var e=new lu(t);return e.request=Jne.request,e.createSocket=Kne,e.defaultPort=443,e}o(Zje,"httpsOverHttps");function lu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||O_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=Zne(s,i,a),u=0,p=e.requests.length;u<p;++u){var l=e.requests[u];if(l.host===c.host&&l.port===c.port){e.requests.splice(u,1),l.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(lu,"TunnelingAgent");$je.inherits(lu,jje.EventEmitter);lu.prototype.addRequest=o(function(e,r,n,s){var i=this,a=E_({request:e},i.options,Zne(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}o(u,"onFree");function p(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");lu.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=E_({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),pl("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function u(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");function p(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){pl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s);return}if(h.length>0){pl("got illegal response body from proxy"),d.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s);return}return pl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),pl(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}o(l,"onError")},"createSocket");lu.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function Kne(t,e){var r=this;lu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=E_({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Vje.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(Kne,"createSecureSocket");function Zne(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(Zne,"toOptions");function E_(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(E_,"mergeOptions");var pl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?pl=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"):pl=o(function(){},"debug");hh.debug=pl});var oz=b((zs0,tse)=>{tse.exports=ese()});var f0=b((Os0,rse)=>{rse.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 Et=b((Es0,qse)=>{"use strict";var nse=Symbol.for("undici.error.UND_ERR"),h0=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[nse]===!0}[nse]=!0},sse=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),y_=class extends h0{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_E
`)||t.includes("\r")||t.includes("\0"))===!1}o(Pie,"isValidHeaderValue");function hJe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(ZYe.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(hJe,"setRequestReferrerPolicyOnRedirect");function bJe(){return"allowed"}o(bJe,"crossOriginResourcePolicyCheck");function MJe(){return"success"}o(MJe,"corsCheck");function mJe(){return"success"}o(mJe,"TAOCheck");function gJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(gJe,"appendFetchMetadata");function zJe(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&&mW(t.origin)&&!mW(hz(t))&&(e=null);break;case"same-origin":TB(t,hz(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(zJe,"appendRequestOriginHeader");function Bh(t,e){return t}o(Bh,"coarsenTime");function OJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Bh(t.domainLookupStartTime,r),domainLookupEndTime:Bh(t.domainLookupEndTime,r),connectionStartTime:Bh(t.connectionStartTime,r),connectionEndTime:Bh(t.connectionEndTime,r),secureConnectionStartTime:Bh(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(OJe,"clampAndCoarsenConnectionTimingInfo");function EJe(t){return Bh(sJe.now(),t)}o(EJe,"coarsenedSharedCurrentTime");function yJe(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(yJe,"createOpaqueTimingInfo");function kie(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(kie,"makePolicyContainer");function CJe(t){return{referrerPolicy:t.referrerPolicy}}o(CJe,"clonePolicyContainer");function BJe(t){let e=t.referrerPolicy;ld(e);let r=null;if(t.referrer==="client"){let c=xie();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=MW(r),s=MW(r,!0);n.toString().length>4096&&(n=s);let i=TB(t,n),a=fz(n)&&!fz(t.url);switch(e){case"origin":return s??MW(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=hz(t);return TB(n,c)?n:fz(n)&&!fz(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(BJe,"determineRequestsReferrer");function MW(t,e){return ld(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(MW,"stripURLForReferrer");function fz(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 n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(fz,"isURLPotentiallyTrustworthy");function DJe(t,e){if(FB===void 0)return!0;let r=Uie(e);if(r==="no metadata"||r.length===0)return!0;let n=IJe(r),s=RJe(r,n);for(let i of s){let a=i.algo,c=i.hash,u=FB.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),wJe(u,c))return!0}return!1}o(DJe,"bytesMatch");var qJe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)(
`);function dKe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(dKe,"isAsciiString");function fKe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(fKe,"validateBoundary");function hKe(t,e){_B(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.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(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&WB(t,lKe,i)||i.position===t.length-4&&WB(t,AKe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=bKe(t,i);if(c==="failure")return"failure";let{name:u,filename:p,contentType:l,encoding:A}=c;i.position+=2;let d;{let m=t.indexOf(n.subarray(2),i.position);if(m===-1)return"failure";d=t.subarray(i.position,m-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;p!==null?(l??="text/plain",dKe(l)||(l=""),h=new uKe([d],p,{type:l})):h=sKe(Buffer.from(d)),_B(roe(u)),_B(typeof h=="string"&&roe(h)||oKe(h)),s.push(aKe(u,h,p))}}o(hKe,"multipartFormDataParser");function bKe(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=qh(c=>c!==10&&c!==13&&c!==58,t,e);if(a=BW(a,!0,!0,c=>c===9||c===32),!iKe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,qh(c=>c===32||c===9,t,e),nKe(a)){case"content-disposition":{if(r=n=null,!WB(t,pKe,e)||(e.position+=17,r=ioe(t,e),r===null))return"failure";if(WB(t,soe,e)){let c=e.position+soe.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=ioe(t,e),n===null))return"failure"}break}case"content-type":{let c=qh(u=>u!==10&&u!==13,t,e);c=BW(c,!1,!0,u=>u===9||u===32),s=noe(c);break}case"content-transfer-encoding":{let c=qh(u=>u!==10&&u!==13,t,e);c=BW(c,!1,!0,u=>u===9||u===32),i=noe(c);break}default:qh(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(bKe,"parseMultipartFormDataHeaders");function ioe(t,e){_B(t[e.position-1]===34);let r=qh(n=>n!==10&&n!==13&&n!==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(ioe,"parseMultipartFormDataName");function qh(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(qh,"collectASequenceOfBytes");function BW(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(BW,"removeChars");function WB(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(WB,"bufferStartsWith");ooe.exports={multipartFormDataParser:hKe,validateBoundary:fKe}});var wh=b((ci0,Moe)=>{"use strict";var mz=it(),{ReadableStreamFrom:MKe,isBlobLike:coe,isReadableStreamLike:mKe,readableStreamClose:gKe,createDeferredPromise:zKe,fullyReadBody:OKe,extractMimeType:EKe,utf8DecodeBytes:loe}=gs(),{FormData:uoe}=Mz(),{kState:Rh}=ll(),{webidl:yKe}=ar(),{Blob:CKe}=require("node:buffer"),DW=require("node:assert"),{isErrored:Aoe,isDisturbed:BKe}=require("node:stream"),{isArrayBuffer:DKe}=require("node:util/types"),{serializeAMimeType:qKe}=Fn(),{multipartFormDataParser:IKe}=aoe(),qW;try{let t=require("node:crypto");qW=o(e=>t.randomInt(0,e),"random")}catch{qW=o(t=>Math.floor(Math.random(t)),"random")}var LB=new TextEncoder;function RKe(){}o(RKe,"noop");var doe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,foe;doe&&(foe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!BKe(e)&&!Aoe(e)&&e.cancel("Response object has been garbage collected").catch(RKe)}));function hoe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:coe(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof s=="string"?LB.encode(s):s;p.byteLength&&u.enqueue(p),queueMicrotask(()=>gKe(u))},start(){},type:"bytes"}),DW(mKe(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(DKe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(mz.isFormDataLike(t)){let u=`----formdata-undici-0${`${qW(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let l=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),d=[],h=new Uint8Array([13,10]);i=0;let m=!1;for(let[C,E]of t)if(typeof E=="string"){let B=LB.encode(p+`; name="${l(A(C))}"\r
\r
${A(E)}\r
`);d.push(B),i+=B.byteLength}else{let B=LB.encode(`${p}; name="${l(A(C))}"`+(E.name?`; filename="${l(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(B,E,h),typeof E.size=="number"?i+=B.byteLength+E.size+h.byteLength:m=!0}let z=LB.encode(`--${u}--\r
`);d.push(z),i+=z.byteLength,m&&(i=null),s=t,n=o(async function*(){for(let C of d)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${u}`}else if(coe(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:MKe(t)}if((typeof s=="string"||mz.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:l,done:A}=await u.next();if(A)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!Aoe(r)){let d=new Uint8Array(l);d.byteLength&&p.enqueue(d)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(hoe,"extractBody");function wKe(t,e=!1){return t instanceof ReadableStream&&(DW(!mz.isDisturbed(t),"The body has already been consumed."),DW(!t.locked,"The stream is locked.")),hoe(t,e)}o(wKe,"safelyExtractBody");function SKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(SKe,"cloneBody");function NKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(NKe,"throwIfAborted");function vKe(t){return{blob(){return Ih(this,r=>{let n=poe(this);return n===null?n="":n&&(n=qKe(n)),new CKe([r],{type:n})},t)},arrayBuffer(){return Ih(this,r=>new Uint8Array(r).buffer,t)},text(){return Ih(this,loe,t)},json(){return Ih(this,TKe,t)},formData(){return Ih(this,r=>{let n=poe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=IKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new uoe;return i[Rh]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new uoe;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Ih(this,r=>new Uint8Array(r),t)}}}o(vKe,"bodyMixinMethods");function FKe(t){Object.assign(t.prototype,vKe(t))}o(FKe,"mixinBody");async function Ih(t,e,r){if(yKe.brandCheck(t,r),boe(t))throw new TypeError("Body is unusable: Body has already been read");NKe(t[Rh]);let n=zKe(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Rh].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await OKe(t[Rh].body,i,s),n.promise)}o(Ih,"consumeBody");function boe(t){let e=t[Rh].body;return e!=null&&(e.stream.locked||mz.isDisturbed(e.stream))}o(boe,"bodyUnusable");function TKe(t){return JSON.parse(loe(t))}o(TKe,"parseJSONFromBytes");function poe(t){let e=t[Rh].headersList,r=EKe(e);return r==="failure"?null:r}o(poe,"bodyMimeType");Moe.exports={extractBody:hoe,safelyExtractBody:wKe,cloneBody:SKe,mixinBody:FKe,streamRegistry:foe,hasFinalizationRegistry:doe,bodyUnusable:boe}});var Ioe=b((pi0,qoe)=>{"use strict";var ve=require("node:assert"),Ge=it(),{channels:moe}=Mh(),IW=uW(),{RequestContentLengthMismatchError:Ad,ResponseContentLengthMismatchError:xKe,RequestAbortedError:Coe,HeadersTimeoutError:_Ke,HeadersOverflowError:WKe,SocketError:HB,InformationalError:Sh,BodyTimeoutError:LKe,HTTPParserError:QKe,ResponseExceededMaxSizeError:PKe}=Et(),{kUrl:Boe,kReset:Tn,kClient:NW,kParser:R0,kBlocking:Oz,kRunning:mr,kPending:kKe,kSize:goe,kWriting:dl,kQueue:go,kNoRef:gz,kKeepAliveDefaultTimeout:UKe,kHostHeader:GKe,kPendingIdx:HKe,kRunningIdx:Ai,kError:di,kPipelining:UB,kSocket:Nh,kKeepAliveTimeoutValue:XB,kMaxHeadersSize:RW,kKeepAliveMaxTimeout:XKe,kKeepAliveTimeoutThreshold:VKe,kHeadersTimeout:jKe,kBodyTimeout:$Ke,kStrictContentLength:vW,kMaxRequests:zoe,kCounter:YKe,kMaxResponseSize:JKe,kOnError:KKe,kResume:Al,kHTTPContext:Doe}=f0(),fa=fie(),ZKe=Buffer.alloc(0),QB=Buffer[Symbol.species],PB=Ge.addListener,eZe=Ge.removeAllListeners,wW;async function tZe(){let t=process.env.JEST_WORKER_ID?AW():void 0,e;try{e=await WebAssembly.compile(Mie())}catch{e=await WebAssemb
`;if(typeof s=="string"?z+=`host: ${s}\r
`:z+=t[GKe],i?z+=`connection: upgrade\r
upgrade: ${i}\r
`:t[UB]&&!h[Tn]?z+=`connection: keep-alive\r
`:z+=`connection: close\r
`,Array.isArray(p))for(let C=0;C<p.length;C+=2){let E=p[C+0],B=p[C+1];if(Array.isArray(B))for(let I=0;I<B.length;I++)z+=`${E}: ${B[I]}\r
`;else z+=`${E}: ${B}\r
`}return moe.sendHeaders.hasSubscribers&&moe.sendHeaders.publish({request:e,headers:z,socket:h}),!u||d===0?Eoe(m,null,t,e,h,l,z,A):Ge.isBuffer(u)?Eoe(m,u,t,e,h,l,z,A):Ge.isBlobLike(u)?typeof u.stream=="function"?yoe(m,u.stream(),t,e,h,l,z,A):cZe(m,u,t,e,h,l,z,A):Ge.isStream(u)?aZe(m,u,t,e,h,l,z,A):Ge.isIterable(u)?yoe(m,u,t,e,h,l,z,A):ve(!1),!0}o(oZe,"writeH1");function aZe(t,e,r,n,s,i,a,c){ve(i!==0||r[mr]===0,"stream body cannot be pipelined");let u=!1,p=new VB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),l=o(function(m){if(!u)try{!p.write(m)&&this.pause&&this.pause()}catch(z){Ge.destroy(this,z)}},"onData"),A=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!u){let m=new Coe;queueMicrotask(()=>h(m))}},"onClose"),h=o(function(m){if(!u){if(u=!0,ve(s.destroyed||s[dl]&&r[mr]<=1),s.off("drain",A).off("error",h),e.removeListener("data",l).removeListener("end",h).removeListener("close",d),!m)try{p.end()}catch(z){m=z}p.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Ge.destroy(e,m):Ge.destroy(e)}},"onFinished");e.on("data",l).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",A).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(aZe,"writeStream");function Eoe(t,e,r,n,s,i,a,c){try{e?Ge.isBuffer(e)&&(ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[Tn]=!0)):i===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(ve(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Al]()}catch(u){t(u)}}o(Eoe,"writeBuffer");async function cZe(t,e,r,n,s,i,a,c){ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ad;let u=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(u),s.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(s[Tn]=!0),r[Al]()}catch(u){t(u)}}o(cZe,"writeBlob");async function yoe(t,e,r,n,s,i,a,c){ve(i!==0||r[mr]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let d=u;u=null,d()}}o(p,"onDrain");let l=o(()=>new Promise((d,h)=>{ve(u===null),s[di]?h(s[di]):u=d}),"waitForDrain");s.on("close",p).on("drain",p);let A=new VB({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(s[di])throw s[di];A.write(d)||await l()}A.end()}catch(d){A.destroy(d)}finally{s.off("close",p).off("drain",p)}}o(yoe,"writeIterable");var VB=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[dl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[di])throw r[di];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(s!==null&&a+p>s){if(i[vW])throw new Ad;process.emitWarning(new Ad)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Tn]=!0),s===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let l=r.write(e);return r.uncork(),n.onBodySent(e),l||r[R0].timeout&&r[R0].timeoutType===vh&&r[R0].timeout.refresh&&r[R0].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[dl]=!1,e[di])throw e[di];if(!e.destroyed){if(s===0?i?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&&s!==r){if(n[vW])throw new Ad;process.emitWarning(new Ad)}e[R0].timeout&&e[R0].timeoutType===vh&&e[R0].timeout.refresh&&e[R0].timeout.refresh(),n[Al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[dl]=!1,e&&(ve(n[mr]<=1,"pipeline should only contain this request"),s(e))}};qoe.exports=nZe});var xoe=b((Ai0,Toe)=>{"use strict";var fi=require("node:assert"),{pipeline:uZe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:_W,RequestAbortedError:Roe,SocketError:Ez,InformationalError:WW}=Et(),{kUrl:jB,kReset:YB,kClient:Fh,kRunning:JB,kPending:pZe,kQueue:fl,kPendingIdx:LW,kRunningIdx:zo,kError:Eo,kSocket:w1,kStrictContentLength:lZe,kOnError:QW,kMaxConcurrentStreams:Foe,kHTTP2Session:Oo,kResume:hl,kSize:AZe,kHTTPContext:dZe}=f0(),Mu=Symbol("open streams"),woe,Soe=!1,$B;try{$B=require("node:http2")}catch{$B={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:fZe,HTTP2_HEADER_METHOD:hZe,HTTP2_HEADER_PATH:bZe,HTTP2_HEADER_SCHEME:MZe,HTTP2_HEADER_CONTENT_LENGTH:mZe,HTTP2_HEADER_EXPECT:gZe,HTTP2_HEADER_STATUS:zZe}}=$B;function OZe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(OZe,"parseH2Headers");async function EZe(t,e){t[w1]=e,Soe||(Soe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=$B.connect(t[jB],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Foe]});r[Mu]=0,r[Fh]=t,r[w1]=e,lt.addListener(r,"error",CZe),lt.addListener(r,"frameError",BZe),lt.addListener(r,"end",DZe),lt.addListener(r,"goaway",qZe),lt.addListener(r,"close",function(){let{[Fh]:s}=this,{[w1]:i}=s,a=this[w1][Eo]||this[Eo]||new Ez("closed",lt.getSocketInfo(i));if(s[Oo]=null,s.destroyed){fi(s[pZe]===0);let c=s[fl].splice(s[zo]);for(let u=0;u<c.length;u++){let p=c[u];lt.errorRequest(s,p,a)}}}),r.unref(),t[Oo]=r,e[Oo]=r,lt.addListener(e,"error",function(s){fi(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Eo]=s,this[Fh][QW](s)}),lt.addListener(e,"end",function(){lt.destroy(this,new Ez("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let s=this[Eo]||new Ez("closed",lt.getSocketInfo(this));t[w1]=null,this[Oo]!=null&&this[Oo].destroy(s),t[LW]=t[zo],fi(t[JB]===0),t.emit("disconnect",t[jB],[t],s),t[hl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return RZe(t,...s)},resume(){yZe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(EZe,"connectH2");function yZe(t){let e=t[w1];e?.destroyed===!1&&(t[AZe]===0&&t[Foe]===0?(e.unref(),t[Oo].unref()):(e.ref(),t[Oo].ref()))}o(yZe,"resumeH2");function CZe(t){fi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[w1][Eo]=t,this[Fh][QW](t)}o(CZe,"onHttp2SessionError");function BZe(t,e,r){if(r===0){let n=new WW(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[w1][Eo]=n,this[Fh][QW](n)}}o(BZe,"onHttp2FrameError");function DZe(){let t=new Ez("other side closed",lt.getSocketInfo(this[w1]));this.destroy(t),lt.destroy(this[w1],t)}o(DZe,"onHttp2SessionEnd");function qZe(t){let e=this[Eo]||new Ez(`HTTP/2: "GOAWAY" frame received with code ${t}`,lt.getSocketInfo(this)),r=this[Fh];if(r[w1]=null,r[dZe]=null,this[Oo]!=null&&(this[Oo].destroy(e),this[Oo]=null),lt.destroy(this[w1],e),r[zo]<r[fl].length){let n=r[fl][r[zo]];r[fl][r[zo]++]=null,lt.errorRequest(r,n,e),r[LW]=r[zo]}fi(r[JB]===0),r.emit("disconnect",r[jB],[r],e),r[hl]()}o(qZe,"onHTTP2GoAway");function IZe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(IZe,"shouldSendContentLength");function RZe(t,e){let r=t[Oo],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:l}=e;if(a)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<p.length;w+=2){let N=p[w+0],x=p[w+1];if(Array.isArray(x))for(let Q=0;Q<x.length;Q++)A[N]?A[N]+=`,${x[Q]}`:A[N]=x[Q];else A[N]=x}let d,{hostname:h,port:m}=t[jB];A[fZ
`,this[tet]=u??3e5,this[eet]=s??3e5,this[ret]=B??!0,this[net]=w,this[GW]=x,this[Ml]=null,this[cet]=$>-1?$:-1,this[pet]=Z??100,this[j0]=null,this[yo]=[],this[gu]=0,this[Co]=0,this[Dz]=J=>XW(this,J),this[uet]=J=>joe(this,J)}get pipelining(){return this[tD]}set pipelining(e){this[tD]=e,this[Dz](!0)}get[Rz](){return this[yo].length-this[Co]}get[Iz](){return this[Co]-this[gu]}get[qz](){return this[yo].length-this[gu]}get[VZe](){return!!this[j0]&&!this[xh]&&!this[j0].destroyed}get[UW](){return!!(this[j0]?.busy(null)||this[qz]>=(Voe(this)||1)||this[Rz]>0)}[XZe](e){$oe(this),this.once("connect",e)}[aet](e,r){let n=e.origin||this[ma].origin,s=new QZe(n,e,r);return this[yo].push(s),this[fd]||(dd.bodyLength(s.body)==null&&dd.isIterable(s.body)?(this[fd]=1,queueMicrotask(()=>XW(this))):this[Dz](!0)),this[fd]&&this[ml]!==2&&this[UW]&&(this[ml]=2),this[ml]<2}async[iet](){return new Promise(e=>{this[qz]?this[Ml]=e:e(null)})}async[oet](e){return new Promise(r=>{let n=this[yo].splice(this[Co]);for(let i=0;i<n.length;i++){let a=n[i];dd.errorRequest(this,a,e)}let s=o(()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)},"callback");this[j0]?(this[j0].destroy(e,s),this[j0]=null):queueMicrotask(s),this[Dz]()})}},fet=eD();function joe(t,e){if(t[Iz]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Co]===t[gu]);let r=t[yo].splice(t[gu]);for(let n=0;n<r.length;n++){let s=r[n];dd.errorRequest(t,s,e)}mu(t[qz]===0)}}o(joe,"onError");async function $oe(t){mu(!t[xh]),mu(!t[j0]);let{host:e,hostname:r,protocol:n,port:s}=t[ma];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let a=r.substring(1,i);mu(Xoe.isIP(a)),r=a}t[xh]=!0,Th.beforeConnect.hasSubscribers&&Th.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[j0]?.version,servername:t[bl],localAddress:t[Bz]},connector:t[Cz]});try{let i=await new Promise((a,c)=>{t[Cz]({host:e,hostname:r,protocol:n,port:s,servername:t[bl],localAddress:t[Bz]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){dd.destroy(i.on("error",Goe),new UZe);return}mu(i);try{t[j0]=i.alpnProtocol==="h2"?await det(t,i):await Aet(t,i)}catch(a){throw i.destroy().on("error",Goe),a}t[xh]=!1,i[set]=0,i[GW]=t[GW],i[HZe]=t,i[$Ze]=null,Th.connected.hasSubscribers&&Th.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[j0]?.version,servername:t[bl],localAddress:t[Bz]},connector:t[Cz],socket:i}),t.emit("connect",t[ma],[t])}catch(i){if(t.destroyed)return;if(t[xh]=!1,Th.connectError.hasSubscribers&&Th.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[j0]?.version,servername:t[bl],localAddress:t[Bz]},connector:t[Cz],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[Iz]===0);t[Rz]>0&&t[yo][t[Co]].servername===t[bl];){let a=t[yo][t[Co]++];dd.errorRequest(t,a,i)}else joe(t,i);t.emit("connectionError",t[ma],[t],i)}t[Dz]()}o($oe,"connect");function Hoe(t){t[ml]=0,t.emit("drain",t[ma],[t])}o(Hoe,"emitDrain");function XW(t,e){t[fd]!==2&&(t[fd]=2,het(t,e),t[fd]=0,t[gu]>256&&(t[yo].splice(0,t[gu]),t[Co]-=t[gu],t[gu]=0))}o(XW,"resume");function het(t,e){for(;;){if(t.destroyed){mu(t[Rz]===0);return}if(t[Ml]&&!t[qz]){t[Ml](),t[Ml]=null;return}if(t[j0]&&t[j0].resume(),t[UW])t[ml]=2;else if(t[ml]===2){e?(t[ml]=1,queueMicrotask(()=>Hoe(t))):Hoe(t);continue}if(t[Rz]===0||t[Iz]>=(Voe(t)||1))return;let r=t[yo][t[Co]];if(t[ma].protocol==="https:"&&t[bl]!==r.servername){if(t[Iz]>0)return;t[bl]=r.servername,t[j0]?.destroy(new kZe("servername changed"),()=>{t[j0]=null,XW(t)})}if(t[xh])return;if(!t[j0]){$oe(t);return}if(t[j0].destroyed||t[j0].busy(r))return;!r.aborted&&t[j0].write(r)?t[Co]++:t[yo].splice(t[Co],1)}}o(het,"_resume");Yoe.exports=HW});var VW=b((Oi0,Joe)=>{"use strict";var rD=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)}
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};hue.exports=e8});var zD=b((yo0,zue)=>{"use strict";var Mue=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:n1t}=Et(),s1t=Lh();gue()===void 0&&mue(new s1t);function mue(t){if(!t||typeof t.dispatch!="function")throw new n1t("Argument agent must implement Agent");Object.defineProperty(globalThis,Mue,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(mue,"setGlobalDispatcher");function gue(){return globalThis[Mue]}o(gue,"getGlobalDispatcher");zue.exports={setGlobalDispatcher:mue,getGlobalDispatcher:gue}});var OD=b((Do0,Oue)=>{"use strict";Oue.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 yue=b((Io0,Eue)=>{"use strict";var i1t=ZB();Eue.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let u=new i1t(r,a,s,i);return r(c,u)},"redirectInterceptor")}});var Bue=b((wo0,Cue)=>{"use strict";var o1t=pD();Cue.exports=t=>e=>o(function(n,s){return e(n,new o1t({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var que=b((No0,Due)=>{"use strict";var a1t=it(),{InvalidArgumentError:c1t,RequestAbortedError:u1t}=Et(),p1t=OD(),t8=class extends p1t{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new c1t("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let a=a1t.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new u1t(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#c.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#i):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function l1t({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new t8({maxSize:i},s);return e(n,a)},"Intercept")}o(l1t,"createDumpInterceptor");Due.exports=l1t});var wue=b((Fo0,Rue)=>{"use strict";var{isIP:A1t}=require("node:net"),{lookup:d1t}=require("node:dns"),f1t=OD(),{InvalidArgumentError:$h,InformationalError:h1t}=Et(),Iue=Math.pow(2,31)-1,r8=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=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.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new h1t("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,i.affinity),l;typeof p.port=="number"?l=`:${p.port}`:e.port!==""?l=`:${e.port}`:l="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${l}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){d1t(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:
${i}`;break;case"retry":uAe(i)&&(r[s]=i);break;case"id":pAe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&uAe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&pAe(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}}};lAe.exports={EventSourceStream:U8}});var zAe=b((_a0,gAe)=>{"use strict";var{pipeline:Cit}=require("node:stream"),{fetching:Bit}=Gz(),{makeRequest:Dit}=Kh(),{webidl:Cu}=ar(),{EventSourceStream:qit}=AAe(),{parseMIMEType:Iit}=Fn(),{createFastMessageEvent:Rit}=sb(),{isNetworkError:dAe}=kz(),{delay:wit}=P8(),{kEnumerableProperty:wd}=it(),{environmentSettingsObject:fAe}=gs(),hAe=!1,bAe=3e3,nO=0,MAe=1,sO=2,Sit="anonymous",Nit="use-credentials",ub=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=nO;#s=null;#i=null;#c;#a;constructor(e,r={}){super(),Cu.util.markAsUncloneable(this);let n="EventSource constructor";Cu.argumentLengthCheck(arguments,1,n),hAe||(hAe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Cu.converters.USVString(e,n,"url"),r=Cu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:bAe};let s=fAe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=i.href;let a=Sit;r.withCredentials&&(a=Nit,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=fAe.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=Dit(c),this.#o()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#o(){if(this.#r===sO)return;this.#r=nO;let e={request:this.#s,dispatcher:this.#c},r=o(n=>{dAe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(dAe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),i=s!==null?Iit(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=MAe,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new qit({eventSourceSettings:this.#a,push:o(u=>{this.dispatchEvent(Rit(u.type,u.options))},"push")});Cit(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Bit(e)}async#l(){this.#r!==sO&&(this.#r=nO,this.dispatchEvent(new Event("error")),await wit(this.#a.reconnectionTime),this.#r===nO&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#o()))}close(){Cu.brandCheck(this,t),this.#r!==sO&&(this.#r=sO,this.#i.abort(),this.#s=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}},mAe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:nO,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:MAe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,val
%s`,N,N,B,n);var x=B.type==="*"?jQ:B.type==="?"?VQ:"\\"+B.type;s=!0,n=n.slice(0,B.reStart)+x+"\\("+N}m(),i&&(n+="\\\\");var Q=!1;switch(n.charAt(0)){case"[":case".":case"(":Q=!0}for(var $=c.length-1;$>-1;$--){var me=c[$],De=n.slice(0,me.reStart),Z=n.slice(me.reStart,me.reEnd-8),qe=n.slice(me.reEnd-8,me.reEnd),Y=n.slice(me.reEnd);qe+=Y;var J=De.split("(").length-1,Ne=Y;for(z=0;z<J;z++)Ne=Ne.replace(/\)[+*?]?/,"");Y=Ne;var re="";Y===""&&e!==Nq&&(re="$");var ze=De+Z+Y+re+qe;n=ze}if(n!==""&&s&&(n="(?=.)"+n),Q&&(n=d+n),e===Nq)return[n,s];if(!s)return lpt(t);var at=r.nocase?"i":"";try{var Lt=new RegExp("^"+n+"$",at)}catch{return new RegExp("$.")}return Lt._glob=t,Lt._src=n,Lt}o(upt,"parse");ws.makeRe=function(t,e){return new pr(t,e||{}).makeRe()};pr.prototype.makeRe=ppt;function ppt(){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?jQ:e.dot?rpt:npt,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===$Q?r:typeof a=="string"?Apt(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(ppt,"makeRe");ws.match=function(t,e,r){r=r||{};var n=new pr(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};pr.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 n=this.options;DO.sep!=="/"&&(e=e.split(DO.sep).join("/")),e=e.split(Ife),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],u=e;n.matchBase&&c.length===1&&(u=[i]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");pr.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var u=e[i],p=t[s];if(this.debug(e,u,p),u===!1)return!1;if(u===$Q){this.debug("GLOBSTAR",[e,u,p]);var l=s,A=i+1;if(A===c){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<a;){var d=t[l];if(this.debug(`
globstar while`,t,l,e,A,d),this.matchOne(t.slice(l),e.slice(A),r))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,A);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,l,e,A),l===a))}var h;if(typeof u=="string"?(h=p===u,this.debug("string match",u,p,h)):(h=p.match(u),this.debug("pattern match",u,p,h)),!h)return!1}if(s===a&&i===c)return!0;if(s===a)return r;if(i===c)return s===a-1&&t[s]==="";throw new Error("wtf?")};function lpt(t){return t.replace(/\\(.)/g,"$1")}o(lpt,"globUnescape");function Apt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(Apt,"regExpEscape")});var Eb=b((hA0,Tfe)=>{"use strict";var zpt="2.0.0",Opt=Number.MAX_SAFE_INTEGER||9007199254740991,Ept=16,ypt=250,Cpt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Tfe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Ept,MAX_SAFE_BUILD_LENGTH:ypt,MAX_SAFE_INTEGER:Opt,RELEASE_TYPES:Cpt,SEMVER_SPEC_VERSION:zpt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var RO=b((bA0,xfe)=>{"use strict";var Bpt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};xfe.exports=Bpt});var yb=b((qa,_fe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:JQ,MAX_SAFE_BUILD_LENGTH:Dpt,MAX_LENGTH:qpt}=Eb(),Ipt=RO();qa=_fe.exports={};var Rpt=qa.re=[],wpt=qa.safeRe=[],fe=qa.src=[],Spt=qa.safeSrc=[],he=qa.t={},Npt=0,KQ="[a-zA-Z0-9-]",vpt=[["\\s",1],["\\d",qpt],[KQ,Dpt]],Fpt=o(t=>{for(let[e,r]of vpt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ye=o((t,e,r)=>{let n=Fpt(e),s=Npt++;Ipt(t,s,e),he[t]=s,fe[s]=e,Spt[s]=n,Rpt[s]=new RegExp(e,r?"g":void 0),wpt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ye("NUMERICIDENTIFIER","0|[1-9]\\d*");Ye("NUMERICIDENTIFIERLOOSE","\\d+");Ye("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${KQ}*`);Ye("MAINVERSION",`(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})`);Ye("MAINVERSIONLOOSE",`(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASEIDENTIFIER",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIER]})`);Ye("PRERELEASEIDENTIFIERLOOSE",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIERLOOSE]})`);Ye("PRERELEASE",`(?:-(${fe[he.PRERELEASEIDENTIFIER]}(?:\\.${fe[he.PRERELEASEIDENTIFIER]})*))`);Ye("PRERELEASELOOSE",`(?:-?(${fe[he.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${fe[he.PRERELEASEIDENTIFIERLOOSE]})*))`);Ye("BUILDIDENTIFIER",`${KQ}+`);Ye("BUILD",`(?:\\+(${fe[he.BUILDIDENTIFIER]}(?:\\.${fe[he.BUILDIDENTIFIER]})*))`);Ye("FULLPLAIN",`v?${fe[he.MAINVERSION]}${fe[he.PRERELEASE]}?${fe[he.BUILD]}?`);Ye("FULL",`^${fe[he.FULLPLAIN]}$`);Ye("LOOSEPLAIN",`[v=\\s]*${fe[he.MAINVERSIONLOOSE]}${fe[he.PRERELEASELOOSE]}?${fe[he.BUILD]}?`);Ye("LOOSE",`^${fe[he.LOOSEPLAIN]}$`);Ye("GTLT","((?:<|>)?=?)");Ye("XRANGEIDENTIFIERLOOSE",`${fe[he.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ye("XRANGEIDENTIFIER",`${fe[he.NUMERICIDENTIFIER]}|x|X|\\*`);Ye("XRANGEPLAIN",`[v=\\s]*(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:${fe[he.PRERELEASE]})?${fe[he.BUILD]}?)?)?`);Ye("XRANGEPLAINLOOSE",`[v=\\s]*(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:${fe[he.PRERELEASELOOSE]})?${fe[he.BUILD]}?)?)?`);Ye("XRANGE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAIN]}$`);Ye("XRANGELOOSE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAINLOOSE]}$`);Ye("COERCEPLAIN",`(^|[^\\d])(\\d{1,${JQ}})(?:\\.(\\d{1,${JQ}}))?(?:\\.(\\d{1,${JQ}}))?`);Ye("COERCE",`${fe[he.COERCEPLAIN]}(?:$|[^\\d])`);Ye("COERCEFULL",fe[he.COERCEPLAIN]+`(?:${fe[he.PRERELEASE]})?(?:${fe[he.BUILD]})?(?:$|[^\\d])`);Ye("COERCERTL",fe[he.COERCE],!0);Ye("COERCERTLFULL",fe[he.COERCEFULL],!0);Ye("LONETILDE","(?:~>?)");Ye("TILDETRIM",`(\\s*)${fe[he.LONETILDE]}\\s+`,!0);qa.tildeTrimReplace="$1~";Ye("TILDE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAIN]}$`);Ye("TILDELOOSE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAINLOOSE]}$`);Ye("LONECARET","(?:\\^)");Ye("CARETTRIM",`(\\s*)${fe[he.LONECARET]}\\s+`,!0);qa.caretTrimReplace="$1^";Ye("CARET",`^${fe[he.LONECARET]}${fe[he.XRANGEPLAIN]}$`);Ye("CARETLOOSE",`^${fe[he.LONECAR
`).join(`
`+i),t.push(s+"m+"+OI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=y2t()+e+" "+t[0]}o(E2t,"formatArgs");function y2t(){return dr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(y2t,"getDate");function C2t(...t){return process.stderr.write(zI.format(...t)+`
`)}o(C2t,"log");function B2t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(B2t,"save");function D2t(){return process.env.DEBUG}o(D2t,"load");function q2t(t){t.inspectOpts={};let e=Object.keys(dr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=dr.inspectOpts[e[r]]}o(q2t,"init");OI.exports=PP()(dr);var{formatters:gMe}=OI.exports;gMe.o=function(t){return this.inspectOpts.colors=this.useColors,zI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};gMe.O=function(t){return this.inspectOpts.colors=this.useColors,zI.inspect(t,this.inspectOpts)}});var Xd=b((ah0,HP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?HP.exports=fMe():HP.exports=zMe()});var yMe=b(Pn=>{"use strict";var I2t=Pn&&Pn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),R2t=Pn&&Pn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),OMe=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)&&I2t(e,t,r);return R2t(e,t),e};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.req=Pn.json=Pn.toBuffer=void 0;var w2t=OMe(require("http")),S2t=OMe(require("https"));async function EMe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(EMe,"toBuffer");Pn.toBuffer=EMe;async function N2t(t){let r=(await EMe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(N2t,"json");Pn.json=N2t;function v2t(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?S2t:w2t).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(v2t,"req");Pn.req=v2t});var qMe=b(Ts=>{"use strict";var BMe=Ts&&Ts.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),F2t=Ts&&Ts.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DMe=Ts&&Ts.__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)&&BMe(e,t,r);return F2t(e,t),e},T2t=Ts&&Ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&BMe(e,t,r)};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Agent=void 0;var x2t=DMe(require("net")),CMe=DMe(require("http")),_2t=require("https");T2t(yMe(),Ts);var Sa=Symbol("AgentBaseInternalState"),XP=class extends CMe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Sa]={}}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(n=>n.indexOf("(https.js:")!==-1||n.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 x2t.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?_2t.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof CMe.Agent)try{return c.addRequest(e,s)}catch(u){return n(u)}this[Sa].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Sa].currentSocket;if(this[Sa].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Sa].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Sa]&&(this[Sa].defaultPort=e)}get protocol(){return this[Sa].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Sa]&&(this[Sa].protocol=e)}};Ts.Agent=XP});var IMe=b(vb=>{"use strict";var W2t=vb&&vb.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vb,"__esModule",{value:!0});vb.parseProxyResponse=void 0;var L2t=W2t(Xd()),EI=(0,L2t.default)("https-proxy-agent:parse-proxy-response");function Q2t(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let l=t.read();l?p(l):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),EI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function u(l){a(),EI("onerror %o",l),r(l)}o(u,"onerror");function p(l){s.push(l),n+=l.length;let A=Buffer.concat(s,n),d=A.indexOf(`\r
\r
`);if(d===-1){EI("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,x]:Array.isArray(Q)?Q.push(x):B[N]=x}EI("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(Q2t,"parseProxyResponse");vb.parseProxyResponse=Q2t});var FMe=b(Ii=>{"use strict";var P2t=Ii&&Ii.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),k2t=Ii&&Ii.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NMe=Ii&&Ii.__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)&&P2t(e,t,r);return k2t(e,t),e},vMe=Ii&&Ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.HttpsProxyAgent=void 0;var yI=NMe(require("net")),RMe=NMe(require("tls")),U2t=vMe(require("assert")),G2t=vMe(Xd()),H2t=qMe(),X2t=require("url"),V2t=IMe(),GO=(0,G2t.default)("https-proxy-agent"),wMe=o(t=>t.servername===void 0&&t.host&&!yI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),CI=class extends H2t.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new X2t.URL(e):e,this.proxyHeaders=r?.headers??{},GO("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?SMe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(GO("Creating `tls.Socket`: %o",this.connectOpts),s=RMe.connect(wMe(this.connectOpts))):(GO("Creating `net.Socket`: %o",this.connectOpts),s=yI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=yI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`;let u=(0,V2t.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",j2t),r.secureEndpoint?(GO("Upgrading socket connection to TLS"),RMe.connect({...SMe(wMe(r),"host","path","port"),socket:s})):s;s.destroy();let A=new yI.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{GO("Replaying proxy buffer for failed request"),(0,U2t.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};CI.protocols=["http","https"];Ii.HttpsProxyAgent=CI;function j2t(t){t.resume()}o(j2t,"resume");function SMe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(SMe,"omit")});var _Me=b(kn=>{"use strict";var $2t=kn&&kn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Y2t=kn&&kn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),TMe=kn&&kn.__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)&&$2t(e,t,r);return Y2t(e,t),e};Object.defineProperty(kn,"__esModule",{value:!0});kn.req=kn.json=kn.toBuffer=void 0;var J2t=TMe(require("http")),K2t=TMe(require("https"));async function xMe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(xMe,"toBuffer");kn.toBuffer=xMe;async function Z2t(t){let r=(await xMe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Z2t,"json");kn.json=Z2t;function eft(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?K2t:J2t).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(eft,"req");kn.req=eft});var HO=b(xs=>{"use strict";var LMe=xs&&xs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tft=xs&&xs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QMe=xs&&xs.__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)&&LMe(e,t,r);return tft(e,t),e},rft=xs&&xs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&LMe(e,t,r)};Object.defineProperty(xs,"__esModule",{value:!0});xs.Agent=void 0;var nft=QMe(require("net")),WMe=QMe(require("http")),sft=require("https");rft(_Me(),xs);var Na=Symbol("AgentBaseInternalState"),VP=class extends WMe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Na]={}}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(n=>n.indexOf("(https.js:")!==-1||n.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 nft.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?sft.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof WMe.Agent)return c.addRequest(e,s);this[Na].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Na].currentSocket;if(this[Na].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Na].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Na]&&(this[Na].defaultPort=e)}get protocol(){return this[Na].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Na]&&(this[Na].protocol=e)}};xs.Agent=VP});var jP=b(Ri=>{"use strict";var ift=Ri&&Ri.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oft=Ri&&Ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kMe=Ri&&Ri.__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)&&ift(e,t,r);return oft(e,t),e},aft=Ri&&Ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.HttpProxyAgent=void 0;var cft=kMe(require("net")),uft=kMe(require("tls")),pft=aft(Xd()),lft=require("events"),Aft=HO(),PMe=require("url"),Fb=(0,pft.default)("http-proxy-agent"),BI=class extends Aft.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new PMe.URL(e):e,this.proxyHeaders=r?.headers??{},Fb("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?dft(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new PMe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let l=u[p];l&&e.setHeader(p,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Fb("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Fb("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Fb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Fb("Creating `tls.Socket`: %o",this.connectOpts),i=uft.connect(this.connectOpts)):(Fb("Creating `net.Socket`: %o",this.connectOpts),i=cft.connect(this.connectOpts)),await(0,lft.once)(i,"connect"),i}};BI.protocols=["http","https"];Ri.HttpProxyAgent=BI;function dft(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(dft,"omit")});var pme=b(LI=>{"use strict";Object.defineProperty(LI,"__esModule",{value:!0});LI.state=void 0;LI.state={instrumenterImplementation:void 0}});var qme=b(GI=>{"use strict";Object.defineProperty(GI,"__esModule",{value:!0});GI.state=void 0;GI.state={operationRequestMap:new WeakMap}});var iOe=b(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});var vgt=require("os"),Fgt=require("util");function Tgt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(Tgt,"_interopDefaultLegacy");var xgt=Tgt(Fgt);function _gt(t,...e){process.stderr.write(`${xgt.default.format(t,...e)}${vgt.EOL}`)}o(_gt,"log");var $ze=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Jze,DG=[],qG=[],u5=[];$ze&&IG($ze);var Kze=Object.assign(t=>Zze(t),{enable:IG,enabled:RG,disable:Wgt,log:_gt});function IG(t){Jze=t,DG=[],qG=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?qG.push(new RegExp(`^${n.substr(1)}$`)):DG.push(new RegExp(`^${n}$`));for(let n of u5)n.enabled=RG(n.namespace)}o(IG,"enable");function RG(t){if(t.endsWith("*"))return!0;for(let e of qG)if(e.test(t))return!1;for(let e of DG)if(e.test(t))return!0;return!1}o(RG,"enabled");function Wgt(){let t=Jze||"";return IG(""),t}o(Wgt,"disable");function Zze(t){let e=Object.assign(r,{enabled:RG(t),destroy:Lgt,log:Kze.log,namespace:t,extend:Qgt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),u5.push(e),e}o(Zze,"createDebugger");function Lgt(){let t=u5.indexOf(this);return t>=0?(u5.splice(t,1),!0):!1}o(Lgt,"destroy");function Qgt(t){let e=Zze(`${this.namespace}:${t}`);return e.log=this.log,e}o(Qgt,"extend");var N3=Kze,eOe=new Set,a5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,p5,l5=N3("azure");l5.log=(...t)=>{N3.log(...t)};var wG=["verbose","info","warning","error"];a5&&(sOe(a5)?tOe(a5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${a5}'; logging is not enabled. Acceptable values: ${wG.join(", ")}.`));function tOe(t){if(t&&!sOe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${wG.join(",")}`);p5=t;let e=[];for(let r of eOe)nOe(r)&&e.push(r.namespace);N3.enable(e.join(","))}o(tOe,"setLogLevel");function Pgt(){return p5}o(Pgt,"getLogLevel");var Yze={verbose:400,info:300,warning:200,error:100};function kgt(t){let e=l5.extend(t);return rOe(l5,e),{error:c5(e,"error"),warning:c5(e,"warning"),info:c5(e,"info"),verbose:c5(e,"verbose")}}o(kgt,"createClientLogger");function rOe(t,e){e.log=(...r)=>{t.log(...r)}}o(rOe,"patchLogMethod");function c5(t,e){let r=Object.assign(t.extend(e),{level:e});if(rOe(t,r),nOe(r)){let n=N3.disable();N3.enable(n+","+r.namespace)}return eOe.add(r),r}o(c5,"createLogger");function nOe(t){return!!(p5&&Yze[t.level]<=Yze[p5])}o(nOe,"shouldEnable");function sOe(t){return wG.includes(t)}o(sOe,"isAzureLogLevel");Kb.AzureLogger=l5;Kb.createClientLogger=kgt;Kb.getLogLevel=Pgt;Kb.setLogLevel=tOe});var vG=b(F3=>{"use strict";Object.defineProperty(F3,"__esModule",{value:!0});var Zb=new WeakMap,A5=new WeakMap,v3=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Zb.set(this,[]),A5.set(this,!1)}get aborted(){if(!A5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return A5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Zb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Zb.get(this).push(r)}removeEventListener(e,r){if(!Zb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Zb.get(this),s=n.indexOf(r);s>-
Polling from: ${r.config.operationLocation}
Operation status: ${l}
Polling status: ${hOe.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let A=a(p,r);if(A!==void 0)return{response:await e(A).catch(dOe({state:r,stateProxy:n,isOperationError:c})),status:l}}return{response:p,status:l}}o(mzt,"pollOperationHelper");async function gOe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:l,processResult:A,getError:d,updateState:h,setDelay:m,isDone:z,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:I}=await mzt({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:s});if(MOe({status:I,response:B,state:r,stateProxy:n,isDone:z,processResult:A,getError:d,setErrorAsResult:C}),!hOe.includes(I)){let w=l?.(B);w&&m(w);let N=c?.(B,r);if(N!==void 0){let x=E!==N;r.config.operationLocation=N,p?.(N,x)}else p?.(E,!1)}h?.(r,B)}}o(gOe,"pollOperation");function zOe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(zOe,"getOperationLocationPollingUrl");function OOe(t){return t.headers.location}o(OOe,"getLocationHeader");function EOe(t){return t.headers["operation-location"]}o(EOe,"getOperationLocationHeader");function yOe(t){return t.headers["azure-asyncoperation"]}o(yOe,"getAzureAsyncOperationHeader");function gzt(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:s;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}o(a,"getDefault")}o(gzt,"findResourceLocation");function COe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=EOe(e),a=yOe(e),c=zOe({operationLocation:i,azureAsyncOperation:a}),u=OOe(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:gzt({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:s})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(COe,"inferLroMode");function BOe(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 GG(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 p2.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(BOe,"transformStatus");function zzt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return BOe({status:r,statusCode:t.statusCode})}o(zzt,"getStatus");function Ozt(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return BOe({status:i,statusCode:t.statusCode})}o(Ozt,"getProvisioningState");function GG(t){return t===202?"running":t<300?"succeeded":"failed"}o(GG,"toOperationStatus");function DOe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Ezt(new Date(e)):r*1e3}}o(DOe,"parseRetryAfter");function qOe(t){let e=t.flatResponse.error;if(!e){p2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){p2.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(qOe,"getErrorFromResponse");function Ezt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Ezt,"calculatePollingIntervalFromDate");function IOe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(oOt,"base64decode");iM.base64decode=oOt;function aOt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Xu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Xu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Xu[s|n>>6],e+=Xu[n&63],r=0;break}return r&&(e+=Xu[s],e+="=",r==1&&(e+="=")),e}o(aOt,"base64encode");iM.base64encode=aOt});var i3e=b(S5=>{"use strict";Object.defineProperty(S5,"__esModule",{value:!0});S5.utf8read=void 0;var tH=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function cOt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(tH(n)),s=0);return r.length?(s&&r.push(tH(n.slice(0,s))),r.join("")):tH(n.slice(0,s))}o(cOt,"utf8read");S5.utf8read=cOt});var k3=b(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.WireType=sc.mergeBinaryOptions=sc.UnknownFieldHandler=void 0;var uOt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(uOt=sc.UnknownFieldHandler||(sc.UnknownFieldHandler={}));function pOt(t,e){return Object.assign(Object.assign({},t),e)}o(pOt,"mergeBinaryOptions");sc.mergeBinaryOptions=pOt;var lOt;(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"})(lOt=sc.WireType||(sc.WireType={}))});var v5=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.varint32read=$n.varint32write=$n.int64toString=$n.int64fromString=$n.varint64write=$n.varint64read=void 0;function AOt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&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 n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(AOt,"varint64read");$n.varint64read=AOt;function dOt(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(dOt,"varint64write");$n.varint64write=dOt;var N5=65536*65536;function fOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let u=Number(t.slice(a,c));s*=r,n=n*r+u,n>=N5&&(s=s+(n/N5|0),n=n%N5)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(fOt,"int64fromString");$n.int64fromString=fOt;function hOt(t,e){if(e>>>0<=2097151)return""+(N5*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(l,A){let d=l?String(l):"";return A?"0000000".slice(d.length)+d:d}return o(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}o(hOt,"int64toString");$n.int64toString=hOt;function bOt(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(bOt,"varint32write");$n.varint32write=bOt;function MOt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return
`)}};ow.RpcError=IH});var wH=b(cw=>{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});cw.mergeRpcOptions=void 0;var W3e=e1();function L3t(t,e){if(!e)return t;let r={};aw(t,r),aw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=W3e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=W3e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},aw(t.meta,r.meta),aw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(L3t,"mergeRpcOptions");cw.mergeRpcOptions=L3t;function aw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(aw,"copy")});var NH=b(h2=>{"use strict";Object.defineProperty(h2,"__esModule",{value:!0});h2.Deferred=h2.DeferredState=void 0;var ac;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ac=h2.DeferredState||(h2.DeferredState={}));var SH=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ac.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ac.PENDING)throw new Error(`cannot resolve ${ac[this.state].toLowerCase()}`);this._resolve(e),this._state=ac.RESOLVED}reject(e){if(this.state!==ac.PENDING)throw new Error(`cannot reject ${ac[this.state].toLowerCase()}`);this._reject(e),this._state=ac.REJECTED}resolvePending(e){this._state===ac.PENDING&&this.resolve(e)}rejectPending(e){this._state===ac.PENDING&&this.reject(e)}};h2.Deferred=SH});var FH=b(uw=>{"use strict";Object.defineProperty(uw,"__esModule",{value:!0});uw.RpcOutputStreamController=void 0;var L3e=NH(),b2=e1(),vH=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 n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){b2.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){b2.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){b2.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(){b2.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;b2.assert(e,"bad state"),b2.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 L3e.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;b2.assert(n.state==L3e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};uw.RpcOutputStreamController=vH});var xH=b(AM=>{"use strict";var Q3t=AM&&AM.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.definePrope
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(r4t,"logUnexpecedPropertyAccessOnce");function n4t(){Object.keys(Vw).forEach(function(t){delete Vw[t]})}o(n4t,"resetLoggedProperties")});var $w=b(pc=>{"use strict";pc.__esModule=!0;pc.HandlebarsEnvironment=aV;function Jye(t){return t&&t.__esModule?t:{default:t}}o(Jye,"_interopRequireDefault");var B2=ln(),s4t=Xs(),iV=Jye(s4t),i4t=tV(),o4t=Vye(),a4t=nV(),jw=Jye(a4t),c4t=sV(),u4t="4.7.9";pc.VERSION=u4t;var p4t=8;pc.COMPILER_REVISION=p4t;var l4t=7;pc.LAST_COMPATIBLE_COMPILER_REVISION=l4t;var A4t={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"};pc.REVISION_CHANGES=A4t;var oV="[object Object]";function aV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},i4t.registerDefaultHelpers(this),o4t.registerDefaultDecorators(this)}o(aV,"HandlebarsEnvironment");aV.prototype={constructor:aV,logger:jw.default,log:jw.default.log,registerHelper:o(function(e,r){if(B2.toString.call(e)===oV){if(r)throw new iV.default("Arg not supported with multiple helpers");B2.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(B2.toString.call(e)===oV)B2.extend(this.partials,e);else{if(typeof r>"u")throw new iV.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(B2.toString.call(e)===oV){if(r)throw new iV.default("Arg not supported with multiple decorators");B2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){c4t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var d4t=jw.default.log;pc.log=d4t;pc.createFrame=B2.createFrame;pc.logger=jw.default});var Zye=b((Yw,Kye)=>{"use strict";Yw.__esModule=!0;function cV(t){this.string=t}o(cV,"SafeString");cV.prototype.toString=cV.prototype.toHTML=function(){return""+this.string};Yw.default=cV;Kye.exports=Yw.default});var eCe=b(uV=>{"use strict";uV.__esModule=!0;uV.wrapHelper=f4t;function f4t(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(f4t,"wrapHelper")});var oCe=b(nA=>{"use strict";nA.__esModule=!0;nA.checkRevision=z4t;nA.template=O4t;nA.wrapProgram=Jw;nA.resolvePartial=E4t;nA.invokePartial=y4t;nA.noop=sCe;function h4t(t){return t&&t.__esModule?t:{default:t}}o(h4t,"_interopRequireDefault");function b4t(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(b4t,"_interopRequireWildcard");var M4t=ln(),qM=b4t(M4t),m4t=Xs(),Ju=h4t(m4t),Ku=$w(),tCe=tV(),g4t=eCe(),rCe=sV();function z4t(t){var e=t&&t[0]||1,r=Ku.COMPILER_REVISION;if(!(e>=Ku.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ku.COMPILER_REVISION))if(e<Ku.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ku.REVISION_CHANGES[r],s=Ku.REVISION_CHANGES[e];throw new Ju.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ju.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(z4t,"checkRevision");function O4t(t,e){if(!e)throw new Ju.default("No environment passed to template");if(!t||!t.main)throw new Ju.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=qM.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`),A=0,d=l.length;A<d&&!(!l[A]&&A+1===d);A++)l[A]=u.indent+l[A];p=l.join(`
`)}return p}else throw new Ju.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,u,p){if(!c||!(u in c))throw new Ju.default('"'+u+'" not defined in '+c,{loc:p});return s.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||rCe.resultIsAllowed(p,s.protoAccessControl,u))return p},"lookupProperty"),lookup:o(function(c,u){for(var p=c.length,l=0;l<p;l++){var A=c[l]&&s.lookupProperty(c[l],u);if(A!=null)return A}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:qM.escapeExpression,invokePartial:n,fn:o(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,p,l,A){var d=this.programs[c],h=this.fn(c);return u||A||l||p?d=Jw(this,c,h,u,p,l,A):d||(d=this.programs[c]=Jw(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=qM.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;i._setup(c),!c.partial&&t.useData&&(u=C4t(a,u));var p=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function A(d){return""+t.main(s,d,s.helpers,s.partials,u,l,p)}return o(A,"main"),A=iCe(t.main,A,s,c.depths||[],u,l),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};nCe(c,e.helpers,s),nCe(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=qM.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=rCe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;tCe.moveHelperToHooks(s,"helperMissing",u),tCe.moveHelperToHooks(s,"blockHelperMissing",u)}},i._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new Ju.default("must pass block params");if(t.useDepths&&!p)throw new Ju.default("must pass parent depths");return Jw(s,a,t[a],c,0,u,p)},i}o(O4t,"template");function Jw(t,e,r,n,s,i,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(l=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,i&&[p.blockParams].concat(i),l)}return o(c,"prog"),c=iCe(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(Jw,"wrapProgram");function E4t(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=Kw(r.partials,t)):r.name==="@partial-block"?t=Kw(r.data,"partial-block"):t=Kw(r.partials,r.name),t}o(E4t,"resolvePartial");function y4t(t,e,r){var n=Kw(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==sCe&&(function(){r.data=Ku.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=Ku.createFrame(u.data),u.data["partial-block"]=n,i(c,u)},"partialBlockWrapper"),i.partials&&(r.partials=qM.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ju.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(y4t,"invokePartial");function sCe(){return""}o(sCe,"noop");function Kw(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(Kw,"lookupOwnProperty");function C4t(t,e){return(!e||!("root"in e))&&(e=e?Ku.createFrame(e):{},e.root=t),e}o(C4t,"initData");function iCe(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),qM.extend(e,a)}return e}o(iCe,"executeDecorators");function nCe(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=B4t(s,r)})}o(nCe,"addHelpers");function B4t(t,e){var r=e.lookupProperty;return g4t
`+this.lexer.showPosition()+`
Expecting `+J.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Ne="Parse error on line "+(A+1)+": Unexpected "+(w==1?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Ne,{text:this.lexer.match,token:this.terminals_[w]||w,line:this.lexer.yylineno,loc:C,expected:J})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+w);switch(Q[0]){case 1:a.push(w),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),w=null,N?(w=N,N=null):(d=this.lexer.yyleng,l=this.lexer.yytext,A=this.lexer.yylineno,C=this.lexer.yylloc,h>0&&h--);break;case 2:if(qe=this.productions_[Q[1]][1],De.$=c[c.length-qe],De._$={first_line:u[u.length-(qe||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(qe||1)].first_column,last_column:u[u.length-1].last_column},E&&(De._$.range=[u[u.length-(qe||1)].range[0],u[u.length-1].range[1]]),me=this.performAction.call(De,l,d,A,this.yy,Q[1],c,u),typeof me<"u")return me;qe&&(a=a.slice(0,-1*qe*2),c=c.slice(0,-1*qe),u=u.slice(0,-1*qe)),a.push(this.productions_[Q[1]][0]),c.push(De.$),u.push(De._$),Y=p[a[a.length-2]][a[a.length-1]],a.push(Y);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.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),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=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 p=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===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,u,p,l;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(c=this._input.match(this.rules[A[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(l=a[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"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(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,u){function p(A,d){return a.yytext=a.yytext.substring(A,a.yyleng-d+A)}o(p,"strip");var l=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(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:(p(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=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(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"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();rS.default=T4t;hCe.exports=rS.default});var oS=b((iS,gCe)=>{"use strict";iS.__esModule=!0;function x4t(t){return t&&t.__esModule?t:{default:t}}o(x4t,"_interopRequireDefault");var _4t=Xs(),hV=x4t(_4t);function nS(){this.parents=[]}o(nS,"Visitor");nS.prototype={constructor:nS,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!nS.prototype[n.type])throw new hV.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.a
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new R2(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 R2?e:(e=_V(e,this,r),new R2(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=_V(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(_V(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};fS.default=e4e;t4e.exports=fS.default});var a4e=b((hS,o4e)=>{"use strict";hS.__esModule=!0;function i4e(t){return t&&t.__esModule?t:{default:t}}o(i4e,"_interopRequireDefault");var n4e=$w(),FBt=Xs(),LV=i4e(FBt),TBt=ln(),xBt=r4e(),s4e=i4e(xBt);function vM(t){this.value=t}o(vM,"Literal");function FM(){}o(FM,"JavaScriptCompiler");FM.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=n4e.COMPILER_REVISION,r=n4e.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return TBt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=i.length;u<p;u++)a=i[u],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 LV.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(),`;
`]),this.decorators.push("return fn;"),s?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 l=this.createFunctionContext(s);if(this.isChild)return l;var A={compiler:this.compilerInfo(),main:l};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,h=d.programs,m=d.decorators;for(u=0,p=h.length;u<p;u++)A[u]=h[u],m[u]&&(A[u+"_d"]=m[u],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),s?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new s4e.default(this.options.srcName),this.decorators=new s4e.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++i+"="+u,p.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+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(n);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,n=!this.forceBuffer,s=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(i?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
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"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",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,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"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,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(_Bt(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,u=o(function(l){a.replaceStack(function(A){var d=a.nameLookup(A,r[l],e);return s?[" && ",d]:[" != null ? ",d," : ",A]})},"_loop"),p=n;p<c;p++)u(p)},"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 n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),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",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hoo
`,e};W0.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};W0.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};W0.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};W0.prototype.BlockStatement=W0.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};W0.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+" }}")};W0.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+" }}")};W0.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};W0.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};W0.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};W0.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};W0.prototype.StringLiteral=function(t){return'"'+t.value+'"'};W0.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};W0.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};W0.prototype.UndefinedLiteral=function(){return"UNDEFINED"};W0.prototype.NullLiteral=function(){return"NULL"};W0.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};W0.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var kV=b((qT0,f4e)=>{var mS=p4e().default,d4e=l4e();mS.PrintVisitor=d4e.PrintVisitor;mS.print=d4e.print;f4e.exports=mS;function A4e(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=mS.compile(n)}o(A4e,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=A4e,require.extensions[".hbs"]=A4e)});var yS=b(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.Signature=iA.Envelope=void 0;iA.Envelope={fromJSON(t){return{payload:ES(t.payload)?Buffer.from(B4e(t.payload)):Buffer.alloc(0),payloadType:ES(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>iA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=D4e(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>iA.Signature.toJSON(r))),e}};iA.Signature={fromJSON(t){return{sig:ES(t.sig)?Buffer.from(B4e(t.sig)):Buffer.alloc(0),keyid:ES(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=D4e(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function B4e(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(B4e,"bytesFromBase64");function D4e(t){return globalThis.Buffer.from(t).toString("base64")}o(D4e,"base64FromBytes");function ES(t){return t!=null}o(ES,"isSet")});var I4e=b(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.Timestamp=void 0;CS.Timestamp={fromJSON(t){return{seconds:q4e(t.seconds)?globalThis.String(t.seconds):"0",nanos:q4e(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.s
`).forEach(r=>{r.match(KDt)||r.match(ZDt)||(e+=r)}),Buffer.from(e,"base64")}o(eqt,"toDER");function tqt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
2026-05-22 12:36:07 +00:00
`).concat(`
`)}o(tqt,"fromDER")});var HS=b(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});lA.SHA2_HASH_ALGOS=lA.RSA_SIGNATURE_ALGOS=lA.ECDSA_SIGNATURE_ALGOS=void 0;lA.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"};lA.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"};lA.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 hj=b(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0});XS.RFC3161TimestampVerificationError=void 0;var fj=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};XS.RFC3161TimestampVerificationError=fj});var dBe=b(bc=>{"use strict";var rqt=bc&&bc.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nqt=bc&&bc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sqt=bc&&bc.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&rqt(r,e,n[s]);return nqt(r,e),r}})();Object.defineProperty(bc,"__esModule",{value:!0});bc.TSTInfo=void 0;var ABe=sqt(PM()),iqt=HS(),oqt=hj(),bj=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 iqt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=ABe.digest(this.messageImprintHashAlgorithm,e);if(!ABe.bufferEqual(r,this.messageImprintHashedMessage))throw new oqt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};bc.TSTInfo=bj});var hBe=b(Mc=>{"use strict";var aqt=Mc&&Mc.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cqt=Mc&&Mc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uqt=Mc&&Mc.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&aqt(r,e,n[s]);return cqt(r,e),r}})();Object.defineProperty(Mc,"__esModule",{value:!0});Mc.RFC3161Timestamp=void 0;var pqt=kS(),Mj=uqt(PM()),fBe=HS(),RE=hj(),lqt=dBe(),Aqt="1.2.840.113549.1.7.2",dqt="1.2.840.113549.1.9.16.1.4",fqt="1.2.840.113549.1.9.4",mj=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=pqt.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
2026-05-22 12:36:07 +00:00
\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 RDe=b(IDe=>{"use strict";var oY=lp().Buffer;IDe._dbcs=dp;var hr=-1,qDe=-2,Vi=-10,gn=-1e3,tm=new Array(256),jE=-1;for(SN=0;SN<256;SN++)tm[SN]=hr;var SN;function dp(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=[]
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
Found: ${this.size}`);n.code="EBADSIZE",n.found=this.size,n.expected=this.expectedSize,n.sri=this.sri,this.emit("error",n)}else if(this.sri&&!r){let n=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);n.code="EINTEGRITY",n.found=e,n.expected=this.digests,n.algorithm=this.algorithm,n.sri=this.sri,this.emit("error",n)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#n=r,this.emit("verified",r))}},mp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let n=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(n?D5t:B5t);if(!s||n&&!wY.includes(s[1])||!Tqe.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let i=s[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let n=Zs(e,r);if(!n)return!1;if(n.isIntegrity){let s=n.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let i=n[s].find(a=>a.digest===this.digest);return i||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(wY.includes(this.algorithm)&&this.digest.match(C5t)&&this.options.every(r=>r.match(q5t)))?"":`${this.algorithm}-${this.digest}${ry(this.options)}`}};function Fqe(t,e,r,n){let s=t!=="",i=!1,a="",c=n.length-1;for(let p=0;p<c;p++){let l=mp.prototype.toString.call(n[p],r);l&&(i=!0,a+=l,a+=e)}let u=mp.prototype.toString.call(n[c],r);return u&&(i=!0,a+=u),s&&i?t+e+a:t+a}o(Fqe,"integrityHashToString");var j2=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||" ",n="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of wY)this[s]&&(n=Fqe(n,r,e,this[s]))}else for(let s of Object.keys(this))n=Fqe(n,r,e,this[s]);return n}concat(e,r){let n=typeof e=="string"?e:ey(e,r);return Zs(`${this.toString(r)} ${n}`,r)}hexDigest(){return Zs(this,{single:!0}).hexDigest()}merge(e,r){let n=Zs(e,r);for(let s in n)if(this[s]){if(!this[s].find(i=>n[s].find(a=>i.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=n[s]}match(e,r){let n=Zs(e,r);if(!n)return!1;let s=n.pickAlgorithm(r,Object.keys(this));return!!s&&this[s].find(i=>n[s].find(a=>i.digest===a.digest))||!1}pickAlgorithm(e,r){let n=e?.pickAlgorithm||F5t,s=Object.keys(this);return r?.length&&(s=s.filter(i=>r.includes(i))),s.length?s.reduce((i,a)=>n(i,a)||i):null}};qc.exports.parse=Zs;function Zs(t,e){if(!t)return null;if(typeof t=="string")return RY(t,e);if(t.algorithm&&t.digest){let r=new j2;return r[t.algorithm]=[t],RY(ey(r,e),e)}else return RY(ey(t,e),e)}o(Zs,"parse");function RY(t,e){if(e?.single)return new mp(t,e);let r=t.trim().split(/\s+/).reduce((n,s)=>{let i=new mp(s,e);if(i.algorithm&&i.digest){let a=i.algorithm;Object.keys(n).includes(a)||(n[a]=[]),n[a].push(i)}return n},new j2);return r.isEmpty()?null:r}o(RY,"_parse");qc.exports.stringify=ey;function ey(t,e){return t.algorithm&&t.digest?mp.prototype.toString.call(t,e):typeof t=="string"?ey(Zs(t,e),e):j2.prototype.toString.call(t,e)}o(ey,"stringify");qc.exports.fromHex=I5t;function I5t(t,e,r){let n=ry(r?.options);return Zs(`${e}-${Buffer.from(t,"hex").toString("base64")}${n}`,r)}o(I5t,"fromHex");qc.exports.fromData=R5t;function R5t(t,e){let r=e?.algorithms||[...NY],n=ry(e?.options);return r.reduce((s,i)=>{let a=ty.createHash(i).update(t).digest("base64"),c=new mp(`${i}-${a}${n}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new j2)}o(R5t,"fromData");qc.exports.fromStream=w5t;function w5t(t,e){let r=vY(e);return new Promise((n,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let i;r.on("integrity",a=>{i=a}),r.on("end",()=>n(i)),r.resume()})}o(w5t,"fromStream");qc.exports.checkData=S5t;function S5t(t,e,r){if(e=Zs(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTE
2026-05-22 12:36:07 +00:00
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 ${n}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=n,c.sri=e,c}}o(S5t,"checkData");qc.exports.checkStream=N5t;function N5t(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Zs(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let n=vY(r);return new Promise((s,i)=>{t.pipe(n),t.on("error",i),n.on("error",i);let a;n.on("verified",c=>{a=c}),n.on("end",()=>s(a)),n.resume()})}o(N5t,"checkStream");qc.exports.integrityStream=vY;function vY(t=Object.create(null)){return new SY(t)}o(vY,"integrityStream");qc.exports.create=v5t;function v5t(t){let e=t?.algorithms||[...NY],r=ry(t?.options),n=e.map(ty.createHash);return{update:o(function(s,i){return n.forEach(a=>a.update(s,i)),this},"update"),digest:o(function(){return e.reduce((i,a)=>{let c=n.shift().digest("base64"),u=new mp(`${a}-${c}${r}`,t);return i[u.algorithm]||(i[u.algorithm]=[]),i[u.algorithm].push(u),i},new j2)},"digest")}}o(v5t,"createIntegrity");function F5t(t,e){return vqe.indexOf(t.toLowerCase())>=vqe.indexOf(e.toLowerCase())?t:e}o(F5t,"getPrioritizedHash")});var TY=b((YL0,Qqe)=>{var xqe=EY(),_qe=IY(),T5t=ny(),Wqe={shared:!1,ignoreCargoCult:!0},x5t={status:200,headers:{}},sm=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"requestObject"),Lqe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"responseObject"),FY=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:n,options:s}){this.entry=e,this.request=sm(r),this.response=Lqe(n),this.options=s,this.policy=new xqe(this.request,this.response,Wqe),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 xqe(sm(e),x5t,Wqe).storable()}satisfies(e){let r=sm(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let n=new _qe(this.request),s=new _qe(r);return JSON.stringify(n.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(n.languages())!==JSON.stringify(s.languages())||JSON.stringify(n.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?T5t.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=sm(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=sm(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let n=sm(e),s=Lqe(r);return!this.policy.revalidatedPolicy(n,s).modified}};Qqe.exports=FY});var kqe=b((KL0,Pqe)=>{var xY=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"}};Pqe.exports={NotCachedError:xY}});var Kqe=b((e80,Jqe)=>{"use strict";var Uqe=typeof process=="object"&&process?process:{stdout:null,stderr:null},_5t=require("events"),Gqe=require("stream"),Hqe=require("string_decoder").StringDecoder,gp=Symbol("EOF"),zp=Symbol("maybeEmitEnd"),gA=Symbol("emittedEnd"),GN=Symbol("emittingEnd"),sy=Symbol("emittedError"),HN=Symbol("closed"),Xqe=Symbol("read"),XN=Symbol("flush"),Vqe=Symbol("flushChunk"),rs=Symbol("encoding"),Op=Symbol("decoder"),VN=Symbol("flowing"),iy=Symbol("paused"),im=Symbol("resume"),V1=Symbol("bufferLength"),_Y=Symbol("bufferPush"),WY=Symbol("bufferShift"),Fr=Symbol("objectMode"),Tr=Symbol("destroyed"),LY=Symbol("emitData"),jqe=Symbol("emitEnd"),QY=Symbol("emitEnd2"),Ep=Symbol("async"),oy=o(t=>Promise.resolve().then(t),"defer"),$qe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",W5t=$qe&&Symbol.asyncIter
2026-05-22 12:36:07 +00:00
Wanted: ${this.expectedSize}
Found: ${this.size}`);n.code="EBADSIZE",n.found=this.size,n.expected=this.expectedSize,n.sri=this.sri,this.emit("error",n)}else if(this.sri&&!r){let n=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);n.code="EINTEGRITY",n.found=e,n.expected=this.digests,n.algorithm=this.algorithm,n.sri=this.sri,this.emit("error",n)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#n=r,this.emit("verified",r))}},qp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let n=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(n?rwt:twt);if(!s||n&&!sJ.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let i=s[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let n=ti(e,r);if(!n)return!1;if(n.isIntegrity){let s=n.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let i=n[s].find(a=>a.digest===this.digest);return i||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(sJ.includes(this.algorithm)&&this.digest.match(ewt)&&this.options.every(r=>r.match(nwt)))?"":`${this.algorithm}-${this.digest}${dy(this.options)}`}};function mIe(t,e,r,n){let s=t!=="",i=!1,a="",c=n.length-1;for(let p=0;p<c;p++){let l=qp.prototype.toString.call(n[p],r);l&&(i=!0,a+=l,a+=e)}let u=qp.prototype.toString.call(n[c],r);return u&&(i=!0,a+=u),s&&i?t+e+a:t+a}o(mIe,"integrityHashToString");var J2=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||" ",n="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of sJ)this[s]&&(n=mIe(n,r,e,this[s]))}else for(let s of Object.keys(this))n=mIe(n,r,e,this[s]);return n}concat(e,r){let n=typeof e=="string"?e:ly(e,r);return ti(`${this.toString(r)} ${n}`,r)}hexDigest(){return ti(this,{single:!0}).hexDigest()}merge(e,r){let n=ti(e,r);for(let s in n)if(this[s]){if(!this[s].find(i=>n[s].find(a=>i.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=n[s]}match(e,r){let n=ti(e,r);if(!n)return!1;let s=n.pickAlgorithm(r,Object.keys(this));return!!s&&this[s]&&n[s]&&this[s].find(i=>n[s].find(a=>i.digest===a.digest))||!1}pickAlgorithm(e,r){let n=e?.pickAlgorithm||lwt,s=Object.keys(this).filter(i=>r?.length?r.includes(i):!0);return s.length?s.reduce((i,a)=>n(i,a)||i):null}};Ic.exports.parse=ti;function ti(t,e){if(!t)return null;if(typeof t=="string")return nJ(t,e);if(t.algorithm&&t.digest){let r=new J2;return r[t.algorithm]=[t],nJ(ly(r,e),e)}else return nJ(ly(t,e),e)}o(ti,"parse");function nJ(t,e){if(e?.single)return new qp(t,e);let r=t.trim().split(/\s+/).reduce((n,s)=>{let i=new qp(s,e);if(i.algorithm&&i.digest){let a=i.algorithm;n[a]||(n[a]=[]),n[a].push(i)}return n},new J2);return r.isEmpty()?null:r}o(nJ,"_parse");Ic.exports.stringify=ly;function ly(t,e){return t.algorithm&&t.digest?qp.prototype.toString.call(t,e):typeof t=="string"?ly(ti(t,e),e):J2.prototype.toString.call(t,e)}o(ly,"stringify");Ic.exports.fromHex=swt;function swt(t,e,r){let n=dy(r?.options);return ti(`${e}-${Buffer.from(t,"hex").toString("base64")}${n}`,r)}o(swt,"fromHex");Ic.exports.fromData=iwt;function iwt(t,e){let r=e?.algorithms||[...oJ],n=dy(e?.options);return r.reduce((s,i)=>{let a=Ay.createHash(i).update(t).digest("base64"),c=new qp(`${i}-${a}${n}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new J2)}o(iwt,"fromData");Ic.exports.fromStream=owt;function owt(t,e){let r=aJ(e);return new Promise((n,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let i;r.on("integrity",a=>{i=a}),r.on("end",()=>n(i)),r.resume()})}o(owt,"fromStream");Ic.exports.checkData=awt;function awt(t,e,r){if(e=ti(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let n=e.pickAl
2026-05-22 12:36:07 +00:00
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 ${n}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=n,c.sri=e,c}}o(awt,"checkData");Ic.exports.checkStream=cwt;function cwt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=ti(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let n=aJ(r);return new Promise((s,i)=>{t.pipe(n),t.on("error",i),n.on("error",i);let a;n.on("verified",c=>{a=c}),n.on("end",()=>s(a)),n.resume()})}o(cwt,"checkStream");Ic.exports.integrityStream=aJ;function aJ(t=Object.create(null)){return new iJ(t)}o(aJ,"integrityStream");Ic.exports.create=uwt;function uwt(t){let e=t?.algorithms||[...oJ],r=dy(t?.options),n=e.map(Ay.createHash);return{update:o(function(s,i){return n.forEach(a=>a.update(s,i)),this},"update"),digest:o(function(){return e.reduce((i,a)=>{let c=n.shift().digest("base64"),u=new qp(`${a}-${c}${r}`,t);if(u.algorithm&&u.digest){let p=u.algorithm;i[p]||(i[p]=[]),i[p].push(u)}return i},new J2)},"digest")}}o(uwt,"createIntegrity");var pwt=Ay.getHashes(),gIe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>pwt.includes(t));function lwt(t,e){return gIe.indexOf(t.toLowerCase())>=gIe.indexOf(e.toLowerCase())?t:e}o(lwt,"getPrioritizedHash")});var zIe=b((A80,cJ)=>{(function(){var t;function e(r,n){var s=this instanceof e?this:t;if(s.reset(n),typeof r=="string"&&r.length>0&&s.hash(r),s!==this)return s}o(e,"MurmurHash3"),e.prototype.hash=function(r){var n,s,i,a,c;switch(c=r.length,this.len+=c,s=this.k1,i=0,this.rem){case 0:s^=c>i?r.charCodeAt(i++)&65535:0;case 1:s^=c>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:s^=c>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:s^=c>i?(r.charCodeAt(i)&255)<<24:0,s^=c>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=c+this.rem&3,c-=this.rem,c>0){for(n=this.h1;s=s*11601+(s&65535)*3432906752&4294967295,s=s<<15|s>>>17,s=s*13715+(s&65535)*461832192&4294967295,n^=s,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(i>=c);)s=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,a=r.charCodeAt(i++),s^=(a&255)<<24^(a&65280)>>8;switch(s=0,this.rem){case 3:s^=(r.charCodeAt(i+2)&65535)<<16;case 2:s^=(r.charCodeAt(i+1)&65535)<<8;case 1:s^=r.charCodeAt(i)&65535}this.h1=n}return this.k1=s,this},e.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof cJ<"u"?cJ.exports=e:this.MurmurHash3=e})()});var EIe=b((f80,OIe)=>{"use strict";var Awt=zIe();OIe.exports=function(t){if(t){var e=new Awt(t);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var uJ=b((h80,yIe)=>{var dwt=require("path"),fwt=EIe();yIe.exports=function(t,e,r){return dwt.join(t,(e?e+"-":"")+fwt(r))}});var pJ=b((b80,hwt)=>{hwt.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","c
`+a.map(d=>{let h=JSON.stringify(d);return`${g6(h)} ${h}`}).join(`
`),u=o(async()=>{let d=Nvt(wc.join(t,"tmp"),n.tmpPrefix);return await PJ(wc.dirname(d),{recursive:!0}),{target:d,moved:!1}},"setup"),p=o(async d=>{if(!d.moved)return pwe(d.target,{recursive:!0,force:!0})},"teardown"),l=o(async d=>{await Rvt(d.target,c,{flag:"wx"}),await PJ(wc.dirname(s),{recursive:!0}),await xvt(d.target,s),d.moved=!0},"write"),A=await u();try{await l(A)}finally{await p(A)}return a.reverse().map(d=>z6(t,d,!0))}o(_vt,"compact");ri.exports.insert=lwe;async function lwe(t,e,r,n={}){let{metadata:s,size:i,time:a}=n,c=Dy(t,e),u={key:e,integrity:r&&Svt.stringify(r),time:a||Date.now(),size:i,metadata:s};try{await PJ(wc.dirname(c),{recursive:!0});let p=JSON.stringify(u);await Dvt(c,`
${g6(p)} ${p}`)}catch(p){if(p.code==="ENOENT")return;throw p}return z6(t,u)}o(lwe,"insert");ri.exports.find=Wvt;async function Wvt(t,e){let r=Dy(t,e);try{return(await m6(r)).reduce((s,i)=>i&&i.key===e?z6(t,i):s,null)}catch(n){if(n.code==="ENOENT")return null;throw n}}o(Wvt,"find");ri.exports.delete=Lvt;function Lvt(t,e,r={}){if(!r.removeFully)return lwe(t,e,null,r);let n=Dy(t,e);return pwe(n,{recursive:!0,force:!0})}o(Lvt,"del");ri.exports.lsStream=Awe;function Awe(t){let e=kJ(t),r=new wvt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:n}=await Promise.resolve().then(()=>(M6(),b6)),s=await QJ(e);return await n(s,async i=>{let a=wc.join(e,i),c=await QJ(a);await n(c,async u=>{let p=wc.join(a,u),l=await QJ(p);await n(l,async A=>{let d=wc.join(p,A);try{let m=(await m6(d)).reduce((z,C)=>(z.set(C.key,C),z),new Map);for(let z of m.values()){let C=z6(t,z);C&&r.write(C)}}catch(h){if(h.code==="ENOENT")return;throw h}},{concurrency:LJ})},{concurrency:LJ})},{concurrency:LJ}),r.end(),r}).catch(n=>r.emit("error",n)),r}o(Awe,"lsStream");ri.exports.ls=Qvt;async function Qvt(t){return(await Awe(t).collect()).reduce((r,n)=>(r[n.key]=n,r),{})}o(Qvt,"ls");ri.exports.bucketEntries=m6;async function m6(t,e){let r=await qvt(t,"utf8");return Pvt(r,e)}o(m6,"bucketEntries");function Pvt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let n=r.split(" ");if(!n[1]||g6(n[1])!==n[0])return;let s;try{s=JSON.parse(n[1])}catch{}s&&e.push(s)}),e}o(Pvt,"_bucketEntries");ri.exports.bucketDir=kJ;function kJ(t){return wc.join(t,`index-v${Tvt}`)}o(kJ,"bucketDir");ri.exports.bucketPath=Dy;function Dy(t,e){let r=dwe(e);return wc.join.apply(wc,[kJ(t)].concat(Fvt(r)))}o(Dy,"bucketPath");ri.exports.hashKey=dwe;function dwe(t){return fwe(t,"sha256")}o(dwe,"hashKey");ri.exports.hashEntry=g6;function g6(t){return fwe(t,"sha1")}o(g6,"hashEntry");function fwe(t,e){return Bvt.createHash(e).update(t).digest("hex")}o(fwe,"hash");function z6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?vvt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(z6,"formatEntry");function QJ(t){return Ivt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(QJ,"readdirOrEmpty")});var mm=b(E6=>{"use strict";Object.defineProperty(E6,"__esModule",{value:!0});E6.LRUCache=void 0;var kvt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,bwe=new Set,UJ=typeof process=="object"&&process?process:{},Mwe=o((t,e,r,n)=>{typeof UJ.emitWarning=="function"?UJ.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),O6=globalThis.AbortController,hwe=globalThis.AbortSignal;if(typeof O6>"u"){hwe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(n,s){this._onabort.push(s)}},O6=class{static{o(this,"AbortController")}constructor(){e()}signal=new hwe;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let s of this.signal._onabort)s(n);this.signal.onabort?.(n)}}};let t=UJ.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,Mwe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var Uvt=o(t=>!bwe.has(t),"shouldWarn"),OA=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),mwe=o(t=>OA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Mm:null:null,"getUintArray"),Mm=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},GJ=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=mwe(e);if(!r)return[];t.#e=!0;let n=new t(e,r);return t.#e=!1,n}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},HJ=class t{static{o(this,"LRUCache")}#e;#t;#n;#r;#s;#i;#c;#a;get perf(){return this.#a}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#u;#b;#O;#M;#m;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:o(r=>e.#f(r),"isBackgroundFetch"),backgroundFetch:o((r,n,s,i)=>e.#U(r,n,s,i),"backgroundFetch"),moveToTail:o(r=>e.#_(r),"moveToTail"),indexes:o(r=>e.#w(r),"indexes"),rindexes:o(r=>e.#N(r),"rindexes"),isStale:o(r=>e.#I(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:n,ttlResolution
2026-05-22 12:36:07 +00:00
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(CFt,"checksumError")});var Qwe=b((WP0,iK)=>{"use strict";var xwe=bm(),_we=qy(),Wwe=Twe(),BFt=ay(),{PassThrough:DFt}=XY(),qFt=Y2(),Lwe=o(t=>({algorithms:["sha512"],...t}),"putOpts");iK.exports=IFt;async function IFt(t,e,r,n={}){let{memoize:s}=n;n=Lwe(n);let i=await Wwe(t,r,n),a=await xwe.insert(t,e,i.integrity,{...n,size:i.size});return s&&_we.put(t,a,r,n),i.integrity}o(IFt,"putData");iK.exports.stream=RFt;function RFt(t,e,r={}){let{memoize:n}=r;r=Lwe(r);let s,i,a,c,u=new qFt;if(n){let l=new DFt().on("collect",A=>{c=A});u.push(l)}let p=Wwe.stream(t,r).on("integrity",l=>{s=l}).on("size",l=>{i=l}).on("error",l=>{a=l});return u.push(p),u.push(new BFt({async flush(){if(!a){let l=await xwe.insert(t,e,s,{...r,size:i});n&&c&&_we.put(t,l,c,r),u.emit("integrity",s),u.emit("size",i)}}})),u}o(RFt,"putStream")});var kwe=b(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.range=af.balanced=void 0;var wFt=o((t,e,r)=>{let n=t instanceof RegExp?Pwe(t,r):t,s=e instanceof RegExp?Pwe(e,r):e,i=n!==null&&s!=null&&(0,af.range)(n,s,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+n.length,i[1]),post:r.slice(i[1]+s.length)}},"balanced");af.balanced=wFt;var Pwe=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),SFt=o((t,e,r)=>{let n,s,i,a,c,u=r.indexOf(t),p=r.indexOf(e,u+1),l=u;if(u>=0&&p>0){if(t===e)return[u,p];for(n=[],i=r.length;l>=0&&!c;){if(l===u)n.push(l),u=r.indexOf(t,l+1);else if(n.length===1){let A=n.pop();A!==void 0&&(c=[A,p])}else s=n.pop(),s!==void 0&&s<i&&(i=s,a=p),p=r.indexOf(e,l+1);l=u<p&&u>=0?u:p}n.length&&a!==void 0&&(c=[i,a])}return c},"range");af.range=SFt});var $we=b(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.EXPANSION_MAX=void 0;qm.expand=GFt;var Uwe=kwe(),Gwe="\0SLASH"+Math.random()+"\0",Hwe="\0OPEN"+Math.random()+"\0",aK="\0CLOSE"+Math.random()+"\0",Xwe="\0COMMA"+Math.random()+"\0",Vwe="\0PERIOD"+Math.random()+"\0",NFt=new RegExp(Gwe,"g"),vFt=new RegExp(Hwe,"g"),FFt=new RegExp(aK,"g"),TFt=new RegExp(Xwe,"g"),xFt=new RegExp(Vwe,"g"),_Ft=/\\\\/g,WFt=/\\{/g,LFt=/\\}/g,QFt=/\\,/g,PFt=/\\./g;qm.EXPANSION_MAX=1e5;function oK(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(oK,"numeric");function kFt(t){return t.replace(_Ft,Gwe).replace(WFt,Hwe).replace(LFt,aK).replace(QFt,Xwe).replace(PFt,Vwe)}o(kFt,"escapeBraces");function UFt(t){return t.replace(NFt,"\\").replace(vFt,"{").replace(FFt,"}").replace(TFt,",").replace(xFt,".")}o(UFt,"unescapeBraces");function jwe(t){if(!t)return[""];let e=[],r=(0,Uwe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:n,body:s,post:i}=r,a=n.split(",");a[a.length-1]+="{"+s+"}";let c=jwe(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(jwe,"parseCommaParts");function GFt(t,e={}){if(!t)return[];let{max:r=qm.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Fy(kFt(t),r,!0).map(UFt)}o(GFt,"expand");function HFt(t){return"{"+t+"}"}o(HFt,"embrace");function XFt(t){return/^-?0\d/.test(t)}o(XFt,"isPadded");function VFt(t,e){return t<=e}o(VFt,"lte");function jFt(t,e){return t>=e}o(jFt,"gte");function Fy(t,e,r){let n=[],s=(0,Uwe.balanced)("{","}",t);if(!s)return[t];let i=s.pre,a=s.post.length?Fy(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let c=0;c<a.length&&c<e;c++){let u=i+"{"+s.body+"}"+a[c];n.push(u)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),p=c||u,l=s.body.indexOf(",")>=0;if(!p&&!l)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+aK+s.post,Fy(t,e,!0)):[t];let A;if(p)A=s.body.split(/\.\./);else if(A=jwe(s.body),A.length===1&&A[0]!==void 0&&(A=Fy(A[0],e,!1).map(HFt),A.length===1))return a.map(h=>s.pre+A[0]+h);let d;if(p&&A[0]!==void 0&&A[1]!==void 0){let h=oK(A[0]),m=oK(A[1]),z=Math.max(A[0].length,A[1].length),C=A.length===3&&A[2]!==void 0?Math.abs(oK(A[2])):1,E=VFt;m<h&&(C*=-1,E=jFt);let I=A.some(XFt);d=[];for(let w=h;E(w,m);w+=C){let N;if(u)N=String.fromCharCode(w),N==="\\"&&(N="");else if(N=String(w),I){let x=z-N.lengt
globstar while`,e,d,r,h,m),this.matchOne(e.slice(d),r.slice(h),n))return this.debug("globstar found match!",d,u,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===u))}let z;if(typeof l=="string"?(z=A===l,this.debug("string match",l,A,z)):(z=l.test(A),this.debug("pattern match",l,A,z)),!z)return!1}if(a===u&&c===p)return!0;if(a===u)return n;if(c===p)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Ce.braceExpand)(this.pattern,this.options)}parse(e){(0,P6.assertValidPattern)(e);let r=this.options;if(e==="**")return Ce.GLOBSTAR;if(e==="")return"";let n,s=null;(n=e.match(yTt))?s=r.dot?BTt:CTt:(n=e.match(dTt))?s=(r.nocase?r.dot?MTt:bTt:r.dot?hTt:fTt)(n[1]):(n=e.match(DTt))?s=(r.nocase?r.dot?ITt:qTt:r.dot?RTt:wTt)(n):(n=e.match(mTt))?s=r.dot?zTt:gTt:(n=e.match(OTt))&&(s=ETt);let i=sSe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?NTt:r.dot?vTt:FTt,s=new Set(r.nocase?["i"]:[]),i=e.map(u=>{let p=u.map(A=>{if(A instanceof RegExp)for(let d of A.flags.split(""))s.add(d);return typeof A=="string"?QTt(A):A===Ce.GLOBSTAR?Ce.GLOBSTAR:A._src});p.forEach((A,d)=>{let h=p[d+1],m=p[d-1];A!==Ce.GLOBSTAR||m===Ce.GLOBSTAR||(m===void 0?h!==void 0&&h!==Ce.GLOBSTAR?p[d+1]="(?:\\/|"+n+"\\/)?"+h:p[d]=n:h===void 0?p[d-1]=m+"(?:\\/|\\/"+n+")?":h!==Ce.GLOBSTAR&&(p[d-1]=m+"(?:\\/|\\/"+n+"\\/)"+h,p[d+1]=Ce.GLOBSTAR))});let l=p.filter(A=>A!==Ce.GLOBSTAR);if(this.partial&&l.length>=1){let A=[];for(let d=1;d<=l.length;d++)A.push(l.slice(0,d).join("/"));return"(?:"+A.join("|")+")"}return l.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+c+"$",this.partial&&(i="^(?:\\/|"+a+i.slice(1,-1)+c+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let a=s[s.length-1];if(!a)for(let c=s.length-2;!a&&c>=0;c--)a=s[c];for(let c=0;c<i.length;c++){let u=i[c],p=s;if(n.matchBase&&u.length===1&&(p=[a]),this.matchOne(p,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Ce.minimatch.defaults(e).Minimatch}};Ce.Minimatch=cf;var PTt=pK();Object.defineProperty(Ce,"AST",{enumerable:!0,get:o(function(){return PTt.AST},"get")});var kTt=lK();Object.defineProperty(Ce,"escape",{enumerable:!0,get:o(function(){return kTt.escape},"get")});var UTt=x6();Object.defineProperty(Ce,"unescape",{enumerable:!0,get:o(function(){return UTt.unescape},"get")});Ce.minimatch.AST=sSe.AST;Ce.minimatch.Minimatch=cf;Ce.minimatch.escape=pTt.escape;Ce.minimatch.unescape=lTt.unescape});var dSe=b(yn=>{"use strict";var GTt=yn&&yn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.Minipass=yn.isWritable=yn.isReadable=yn.isStream=void 0;var cSe=typeof process=="object"&&process?process:{stdout:null,stderr:null},mK=require("node:events"),ASe=GTt(require("node:stream")),HTt=require("node:string_decoder"),XTt=o(t=>!!t&&typeof t=="object"&&(t instanceof j6||t instanceof ASe.default||(0,yn.isReadable)(t)||(0,yn.isWritable)(t)),"isStream");yn.isStream=XTt;var VTt=o(t=>!!t&&typeof t=="object"&&t instanceof mK.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==ASe.default.Writable.prototype.pipe,"isReadable");yn.isReadable=VTt;var jTt=o(t=>!!t&&typeof t=="object"&&t instanceof mK.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");yn.isWritable=jTt;var xp=Symbol("EOF"),_p=Symbol("maybeEmitEnd"),DA=Symbol("emittedEnd"),k6=Symbol("emittingEnd"),xy=Symbol("emittedError"),U6=Symbol("closed"),uSe=Symbol("read"),G6=Symbol("flush"),
2026-05-22 12:36:07 +00:00
\r
`);if(d===-1){Cv("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),m=h.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=m.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),Q=B[N];typeof Q=="string"?B[N]=[Q,x]:Array.isArray(Q)?Q.push(x):B[N]=x}Cv("got proxy server response: %o %o",m,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(oWt,"parseProxyResponse");Tm.parseProxyResponse=oWt});var FNe=b(eo=>{"use strict";var aWt=eo&&eo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cWt=eo&&eo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NNe=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)&&aWt(e,t,r);return cWt(e,t),e},vNe=eo&&eo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eo,"__esModule",{value:!0});eo.HttpsProxyAgent=void 0;var iC=NNe(require("net")),wNe=NNe(require("tls")),uWt=vNe(require("assert")),pWt=vNe(Xd()),lWt=HO(),AWt=require("url"),dWt=RNe(),oC=(0,pWt.default)("https-proxy-agent"),Bv=class extends lWt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new AWt.URL(e):e,this.proxyHeaders=r?.headers??{},oC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?SNe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;if(n.protocol==="https:"){oC("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;s=wNe.connect({...this.connectOpts,servername:d&&iC.isIP(d)?void 0:d})}else oC("Creating `net.Socket`: %o",this.connectOpts),s=iC.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=iC.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`;let u=(0,dWt.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200){if(e.once("socket",fWt),r.secureEndpoint){oC("Upgrading socket connection to TLS");let d=r.servername||r.host;return wNe.connect({...SNe(r,"host","path","port"),socket:s,servername:iC.isIP(d)?void 0:d})}return s}s.destroy();let A=new iC.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{oC("Replaying proxy buffer for failed request"),(0,uWt.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};Bv.protocols=["http","https"];eo.HttpsProxyAgent=Bv;function fWt(t){t.resume()}o(fWt,"resume");function SNe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(SNe,"omit")});var WNe=b(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});var TNe=require("buffer"),ff={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."};Qp.ERRORS=ff;function hWt(t){if(!TNe.Buffer.isEncoding(t))throw new Error(ff.INVALID_ENCODING)}o(hWt,"checkEncoding");Qp.checkEncoding=hWt;function xNe(t){return typeof t=="number"&&isFinite(t)&&gWt(t)}o(xNe,"isFiniteInteger");Qp.isFiniteInteger=xNe;function _Ne(t,e){if(typeof t=="number"){if(!xNe(t)||t<0)throw new Error(e?ff.INVALID_OFFSET:ff.INVALID_LENGTH)}else throw new Error(e?ff.INVALID_OFFSET_NON_NUMBER:ff.INVALID_LENGTH_NON_NUMBER)}o(_Ne,"checkOffsetOrLengthValue");function bWt(t){_Ne(t,!1)}o(bWt,"checkLengthValue");Qp.checkLengthValue=bWt;function MWt(t){_Ne(t,!0)}o(MWt,"checkOffsetValue");Qp.checkOffsetValue=MWt;function mWt(t,e){if(t<0||t>e.length)throw new Error(ff.INVALID_TARGET_OFFSET)}o(mWt,"checkTargetOffset");Qp.checkTargetOffset=mWt;function gWt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(gWt,"isInteger");function zWt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof TNe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(zWt,"bigIntAndBufferInt64Check");Qp.bigIntAndBufferInt64Check=zWt});var QNe=b(aZ=>{"use strict";Object.defineProperty(aZ,"__esModule",{value:!0});var nt=WNe(),LNe=4096,OWt="utf8",oZ=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=OWt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(nt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(nt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(nt.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(nt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(LNe);else{if(typeof e<"u")throw new Error(nt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(LNe)}}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
2026-05-22 12:36:07 +00:00
`).join(`
`+i),t.push(s+"m+"+WF.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=X7t()+e+" "+t[0]}o(H7t,"formatArgs");function X7t(){return sr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(X7t,"getDate");function V7t(...t){return process.stderr.write(_F.formatWithOptions(sr.inspectOpts,...t)+`
`)}o(V7t,"log");function j7t(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(j7t,"save");function $7t(){return process.env.DEBUG}o($7t,"load");function Y7t(t){t.inspectOpts={};let e=Object.keys(sr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=sr.inspectOpts[e[r]]}o(Y7t,"init");WF.exports=ste()(sr);var{formatters:RFe}=WF.exports;RFe.o=function(t){return this.inspectOpts.colors=this.useColors,_F.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};RFe.O=function(t){return this.inspectOpts.colors=this.useColors,_F.inspect(t,this.inspectOpts)}});var ote=b((hG0,ite)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ite.exports=IFe():ite.exports=wFe()});var NFe=b((bG0,SFe)=>{var J7t=require("dns"),K7t=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],Z7t=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 n=parseInt(r.retry,10);isFinite(n)?r.retry={retries:n}: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:J7t.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>K7t.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");SFe.exports=Z7t});var cte=b((mG0,_Fe)=>{var vFe=EY(),FFe=IY(),e9t=ny(),TFe={shared:!1,ignoreCargoCult:!0},t9t={status:200,headers:{}},ug=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"requestObject"),xFe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,n)=>{e.headers[n]=r}),e},"responseObject"),ate=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:n,options:s}){this.entry=e,this.request=ug(r),this.response=xFe(n),this.options=s,this.policy=new vFe(this.request,this.response,TFe),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 vFe(ug(e),t9t,TFe).storable()}satisfies(e){let r=ug(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let n=new FFe(this.request),s=new FFe(r);return JSON.stringify(n.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(n.languages())!==JSON.stringify(s.languages())||JSON.stringify(n.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?e9t.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=ug(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=ug(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let n=ug(e),s=xFe(r);return!this.policy.revalidatedPolicy(n,s).modified}};_Fe.exports=ate});var LFe=b((zG0,WFe)=>{var ute=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"}};WFe.exports={NotCachedError:ute}});var lte=b((EG0,QFe)=>{"use strict";var r9t=Y2(),pte=class extends r9t{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)}};QFe.exports=pte});var kFe=b((CG0,PFe)=>{var{URL:n9t,format:s9t}=require("url"),i9t={auth:!1,fragment:!1,search:!0,unicode:!1},o9t=o(t=>{let e=new n9t(t.url);return`make-fetch-happen:request-cache:${s9t(e,i9t)}`},"cacheKey");PFe.exports=o9t});var UFe=b((DG0,a9t)=>{a9t.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
`).forEach(r=>{r.match($Ut)||r.match(YUt)||(e+=r)}),Buffer.from(e,"base64")}o(JUt,"toDER");function KUt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
2026-05-22 12:36:07 +00:00
`).concat(`
`)}o(KUt,"fromDER")});var pT=b(kA=>{"use strict";Object.defineProperty(kA,"__esModule",{value:!0});kA.SHA2_HASH_ALGOS=kA.RSA_SIGNATURE_ALGOS=kA.ECDSA_SIGNATURE_ALGOS=void 0;kA.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"};kA.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"};kA.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 Kte=b(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0});lT.RFC3161TimestampVerificationError=void 0;var Jte=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};lT.RFC3161TimestampVerificationError=Jte});var PTe=b(Hc=>{"use strict";var ZUt=Hc&&Hc.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),eGt=Hc&&Hc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tGt=Hc&&Hc.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ZUt(r,e,n[s]);return eGt(r,e),r}})();Object.defineProperty(Hc,"__esModule",{value:!0});Hc.TSTInfo=void 0;var QTe=tGt(Mg()),rGt=pT(),nGt=Kte(),Zte=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 rGt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=QTe.digest(this.messageImprintHashAlgorithm,e);if(!QTe.bufferEqual(r,this.messageImprintHashedMessage))throw new nGt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Hc.TSTInfo=Zte});var UTe=b(Xc=>{"use strict";var sGt=Xc&&Xc.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iGt=Xc&&Xc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oGt=Xc&&Xc.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&sGt(r,e,n[s]);return iGt(r,e),r}})();Object.defineProperty(Xc,"__esModule",{value:!0});Xc.RFC3161Timestamp=void 0;var aGt=aT(),e0e=oGt(Mg()),kTe=pT(),vC=Kte(),cGt=PTe(),uGt="1.2.840.113549.1.7.2",pGt="1.2.840.113549.1.9.16.1.4",lGt="1.2.840.113549.1.9.4",t0e=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=aGt.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 signerDiges
2026-05-22 12:36:07 +00:00
`,IHt=/\u2014 (\S+) (\S+)\n/g;function RHt(t,e){let r=t.inclusionProof,n=R0e.fromString(r.checkpoint.envelope),s=yT.fromString(n.note);if(!wHt(n,e))throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(RHt,"verifyCheckpoint");function wHt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>hxe.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.match(n.name));return s?hxe.crypto.verify(r,s.publicKey,n.signature):!1})}o(wHt,"verifySignedNote");var R0e=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(I0e))throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(I0e),n=e.slice(0,r+1),i=e.slice(r+I0e.length).matchAll(IHt),a=Array.from(i,c=>{let[,u,p]=c,l=Buffer.from(p,"base64");if(l.length<5)throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(a.length===0)throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},yT=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new LC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};QC.LogCheckpoint=yT});var Mxe=b(v0e=>{"use strict";Object.defineProperty(v0e,"__esModule",{value:!0});v0e.verifyMerkleInclusion=vHt;var N0e=ea(),w0e=Ur(),SHt=Buffer.from([0]),NHt=Buffer.from([1]);function vHt(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),s=BigInt(e.logSize);if(n<0n||n>=s)throw new w0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=FHt(n,s);if(r.hashes.length!==i+a)throw new w0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=QHt(t.canonicalizedBody),l=xHt(THt(p,c,n),u);if(!N0e.crypto.bufferEqual(l,e.logHash))throw new w0e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(vHt,"verifyMerkleInclusion");function FHt(t,e){let r=_Ht(t,e),n=WHt(t>>BigInt(r));return{inner:r,border:n}}o(FHt,"decompInclProof");function THt(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?S0e(s,n):S0e(n,s),t)}o(THt,"chainInner");function xHt(t,e){return e.reduce((r,n)=>S0e(n,r),t)}o(xHt,"chainBorderRight");function _Ht(t,e){return LHt(t^e-BigInt(1))}o(_Ht,"innerProofSize");function WHt(t){return t.toString(2).split("1").length-1}o(WHt,"onesCount");function LHt(t){return t===0n?0:t.toString(2).length}o(LHt,"bitLength");function S0e(t,e){return N0e.crypto.digest("sha256",NHt,t,e)}o(S0e,"hashChildren");function QHt(t){return N0e.crypto.digest("sha256",SHt,t)}o(QHt,"hashLeaf")});var gxe=b(F0e=>{"use strict";Object.defineProperty(F0e,"__esModule",{value:!0});F0e.verifyTLogSET=UHt;var mxe=ea(),PHt=Ur(),kHt=zg();function UHt(t,e){if(!(0,kHt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=GHt(t),a=Buffer.from(mxe.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return mxe.crypto.verify(a,s.publicKey,c)}))throw new PHt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(UHt,"verifyTLogSET");function GHt(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(GHt,"toVerificationPayload")});var Oxe=b(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});CT.verifyTLogBody=$Ht;CT.verifyTLogInclusion=YHt;var zxe=tee(),_0e=Ur(),T0e=Axe(),x0e=dxe(),HHt=fxe(),XHt=bxe(),VHt=Mxe(),jHt=gxe();function $Ht(t,e){let{kind:r,version:n}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||n!==s.apiVersion)throw new _0e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==T0e.DSSE_API_VERSION_V1)return(0,T0e.verifyDSSETLogBody)(s,e);{let i=zxe.Entry.fromJSON(s);return(0,T0e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,HHt.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==x0e.HASHEDREKORD_API_VERSION_V1)return(0,x0e.verifyHashedRekordTLogBody)(s,e);{let i=zxe.Entry.fromJSON(s);return(0,x0e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new _0e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o($Ht,"verifyTLogBody");function YHt(t,e){let r=!1;if(JHt(t)&&((0,jHt.verifyTLogSET)(t,e),r=!0),KHt(t)){let n=(0,XHt.verifyCheckpoint)(t,e);(0,VHt.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new _0e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(YHt,"verifyTLogInclusion");function JHt(t){return t.inclusionPromise!==void 0}o(JHt,"isTLogEntryWithInclusionPromise");function KHt(t){return t.inclusionProof!==void 0}o(KHt,"isTLogEntryWithInclusionProof")});var Dxe=b(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT.Verifier=
[`+S+"] ";for(L in arguments[0])i(arguments[0],L)&&(q+=L+": "+arguments[0][L]+", ");q=q.slice(0,-2)}else q=arguments[S];O.push(q)}Q(f+`
Arguments: `+Array.prototype.slice.call(O).join("")+`
`+new Error().stack),g=!1}return M.apply(this,arguments)},M)}o($,"deprecate");var me={};function De(f,M){e.deprecationHandler!=null&&e.deprecationHandler(f,M),me[f]||(Q(M),me[f]=!0)}o(De,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Z(f){return typeof Function<"u"&&f instanceof Function||Object.prototype.toString.call(f)==="[object Function]"}o(Z,"isFunction");function qe(f){var M,g;for(g in f)i(f,g)&&(M=f[g],Z(M)?this[g]=M:this["_"+g]=M);this._config=f,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}o(qe,"set");function Y(f,M){var g=A({},f),O;for(O in M)i(M,O)&&(s(f[O])&&s(M[O])?(g[O]={},A(g[O],f[O]),A(g[O],M[O])):M[O]!=null?g[O]=M[O]:delete g[O]);for(O in f)i(f,O)&&!i(M,O)&&s(f[O])&&(g[O]=A({},g[O]));return g}o(Y,"mergeConfigs");function J(f){f!=null&&this.set(f)}o(J,"Locale");var Ne;Object.keys?Ne=Object.keys:Ne=o(function(f){var M,g=[];for(M in f)i(f,M)&&g.push(M);return g},"keys");var re={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ze(f,M,g){var O=this._calendar[f]||this._calendar.sameElse;return Z(O)?O.call(M,g):O}o(ze,"calendar");function at(f,M,g){var O=""+Math.abs(f),q=M-O.length,S=f>=0;return(S?g?"+":"":"-")+Math.pow(10,Math.max(0,q)).toString().substr(1)+O}o(at,"zeroFill");var Lt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,s0={},Rt={};function ce(f,M,g,O){var q=O;typeof O=="string"&&(q=o(function(){return this[O]()},"func")),f&&(Rt[f]=q),M&&(Rt[M[0]]=function(){return at(q.apply(this,arguments),M[1],M[2])}),g&&(Rt[g]=function(){return this.localeData().ordinal(q.apply(this,arguments),f)})}o(ce,"addFormatToken");function ui(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}o(ui,"removeFormattingTokens");function Sn(f){var M=f.match(Lt),g,O;for(g=0,O=M.length;g<O;g++)Rt[M[g]]?M[g]=Rt[M[g]]:M[g]=ui(M[g]);return function(q){var S="",L;for(L=0;L<O;L++)S+=Z(M[L])?M[L].call(q,f):M[L];return S}}o(Sn,"makeFormatFunction");function Dt(f,M){return f.isValid()?(M=I0(M,f.localeData()),s0[M]=s0[M]||Sn(M),s0[M](f)):f.localeData().invalidDate()}o(Dt,"formatMoment");function I0(f,M){var g=5;function O(q){return M.longDateFormat(q)||q}for(o(O,"replaceLongDateFormatTokens"),Qe.lastIndex=0;g>=0&&Qe.test(f);)f=f.replace(Qe,O),Qe.lastIndex=0,g-=1;return f}o(I0,"expandFormat");var Jf={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Kf(f){var M=this._longDateFormat[f],g=this._longDateFormat[f.toUpperCase()];return M||!g?M:(this._longDateFormat[f]=g.match(Lt).map(function(O){return O==="MMMM"||O==="MM"||O==="DD"||O==="dddd"?O.slice(1):O}).join(""),this._longDateFormat[f])}o(Kf,"longDateFormat");var jg="Invalid date";function su(){return this._invalidDate}o(su,"invalidDate");var v="%d",k=/\d{1,2}/;function U(f){return this._ordinal.replace("%d",f)}o(U,"ordinal");var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function xe(f,M,g,O){var q=this._relativeTime[g];return Z(q)?q(f,M,g,O):q.replace(/%d/i,f)}o(xe,"relativeTime");function pt(f,M){var g=this._relativeTime[f>0?"future":"past"];return Z(g)?g(M):g.replace(/%s/i,M)}o(pt,"pastFuture");var i0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}o(Yt0,"_nonIterableRest");g4.exports=Yt0,g4.exports.__esModule=!0,g4.exports.default=g4.exports});var X7e=b((Ye1,z4)=>{var Jt0=wke(),Kt0=O7e(),Zt0=G7e(),e00=H7e();function t00(t,e){return Jt0(t)||Kt0(t,e)||Zt0(t,e)||e00()}o(t00,"_slicedToArray");z4.exports=t00,z4.exports.__esModule=!0,z4.exports.default=z4.exports});var j7e=b((Ke1,V7e)=>{"use strict";var r00=Ox().forEach,n00=f4(),s00=n00("forEach");V7e.exports=s00?[].forEach:o(function(e){return r00(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var Y7e=b(()=>{"use strict";var i00=n0(),$7e=j7e();i00({target:"Array",proto:!0,forced:[].forEach!==$7e},{forEach:$7e})});var K7e=b((rt1,J7e)=>{"use strict";Y7e();var o00=aa();J7e.exports=o00("Array","forEach")});var e9e=b((nt1,Z7e)=>{"use strict";var a00=K7e();Z7e.exports=a00});var t9e=b(()=>{});var n9e=b((ot1,r9e)=>{"use strict";var c00=Wg(),u00=Rn(),p00=ls(),l00=e9e();t9e();var xre=Array.prototype,A00={DOMTokenList:!0,NodeList:!0};r9e.exports=function(t){var e=t.forEach;return t===xre||p00(xre,t)&&e===xre.forEach||u00(A00,c00(t))?l00:e}});var _re=b((at1,s9e)=>{s9e.exports=n9e()});var i9e=b(()=>{"use strict";var d00=n0(),f00=sx().includes,h00=U0(),b00=M1e(),M00=h00(function(){return!Array(1).includes()});d00({target:"Array",proto:!0,forced:M00},{includes:o(function(e){return f00(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});b00("includes")});var a9e=b((lt1,o9e)=>{"use strict";i9e();var m00=aa();o9e.exports=m00("Array","includes")});var u9e=b((At1,c9e)=>{"use strict";var g00=ai(),z00=Yp(),O00=p1(),E00=O00("match");c9e.exports=function(t){var e;return g00(t)&&((e=t[E00])!==void 0?!!e:z00(t)==="RegExp")}});var l9e=b((dt1,p9e)=>{"use strict";var y00=u9e(),C00=TypeError;p9e.exports=function(t){if(y00(t))throw new C00("The method doesn't accept regular expressions");return t}});var d9e=b((ft1,A9e)=>{"use strict";var B00=p1(),D00=B00("match");A9e.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[D00]=!1,"/./"[t](e)}catch{}}return!1}});var h9e=b(()=>{"use strict";var q00=n0(),I00=q0(),R00=l9e(),w00=xf(),f9e=ru(),S00=d9e(),N00=I00("".indexOf);q00({target:"String",proto:!0,forced:!S00("includes")},{includes:o(function(e){return!!~N00(f9e(w00(this)),f9e(R00(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var M9e=b((mt1,b9e)=>{"use strict";h9e();var v00=aa();b9e.exports=v00("String","includes")});var z9e=b((gt1,g9e)=>{"use strict";var m9e=ls(),F00=a9e(),T00=M9e(),Wre=Array.prototype,Lre=String.prototype;g9e.exports=function(t){var e=t.includes;return t===Wre||m9e(Wre,t)&&e===Wre.includes?F00:typeof t=="string"||t===Lre||m9e(Lre,t)&&e===Lre.includes?T00:e}});var E9e=b((zt1,O9e)=>{"use strict";var x00=z9e();O9e.exports=x00});var O4=b((Ot1,y9e)=>{y9e.exports=E9e()});var Qre=b((Et1,C9e)=>{"use strict";C9e.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var q9e=b((yt1,D9e)=>{"use strict";var _00=q0(),W00=xf(),L00=ru(),kre=Qre(),B9e=_00("".replace),Q00=RegExp("^["+kre+"]+"),P00=RegExp("(^|[^"+kre+"])["+kre+"]+$"),Pre=o(function(t){return function(e){var r=L00(W00(e));return t&1&&(r=B9e(r,Q00,"")),t&2&&(r=B9e(r,P00,"$1")),r}},"createMethod");D9e.exports={start:Pre(1),end:Pre(2),trim:Pre(3)}});var F9e=b((Bt1,v9e)=>{"use strict";var S9e=q1(),k00=U0(),U00=q0(),G00=ru(),H00=q9e().trim,I9e=Qre(),E4=S9e.parseInt,R9e=S9e.Symbol,w9e=R9e&&R9e.iterator,N9e=/^[+-]?0x/i,X00=U00(N9e.exec),V00=E4(I9e+"08")!==8||E4(I9e+"0x16")!==22||w9e&&!k00(function(){E4(Object(w9e))});v9e.exports=V00?o(function(e,r){var n=H00(G00(e));return E4(n,r>>>0||(X00(N9e,n)?16:10))},"parseInt"):E4});var x9e=b(()=>{"use strict";var j00=n0(),T9e=F9e();j00({global:!0,forced:parseInt!==T9e},{parseInt:T9e})});var W9e=b((Rt1,_9e)=>{"use strict";x9e();var $00=na();_9e.exports=$00.parseInt});var Q9e=b((wt1,L9e)=>{"use strict";var Y00=W9e();L9e.exports=Y00});var k9e=b((St1,P9e)=>{P9e.exports=Q9e()});var wx=b((Nt1,U9e)=>{U9e.exports=Tre()});var X9e=b((vt1,H9e)=>{"use strict";var G9e=$C(),J00=TypeError;H9e.exports=function(t,e){if(!delete t[e])throw new J00("Cannot delete property "+G9e(e)+" of "+G9e(t))}});var $9e=b((Ft1,j9e)=>{"use strict";var V9e=a4(),K00=Math.floor,Ure=o(function(t,e){var r=t.length;if(r<8)for(var n=1,s,i;n<r;){for(i=n,s=t[n];i&&e(t[i-1],s)>0;)t[i]=t[--i];i!==n++&&(t[i]=s)}else for(var a=K00(r/2),c=Ure(V9e(t,0,a),e),u=Ure(V9e(t,a),e),p=c.length,l=u.length,A=0,d=0;A<p||d<l;)t[A+d]=A<p&&d<l?e(c[A],u[d])<=0?c[A++]:u[d++]:A<p?c[A++]:u[d++];return t},"sort");j9e.exports=Ure});var K9e=b((xt1,J9e)=>{"use strict";var Z00=wg(),Y9e=Z00.match(/firefox\/(\d+)/i);J9e.exports=!!Y9e&&+Y9e[1]});var eUe=b((_t1,Z9e)=>{"use strict";var e10=wg();Z9e.exports=/MSIE|Trident/.test(e10)});var nUe=b((Wt1,rUe)=>{"use strict";var t10=wg(),tUe=t10.match(/AppleWebKit\/(\d+)\./);rUe.exports=!!tUe&&+tUe[1]});var AUe=b(()=>{"use strict";var r10=n0(),pUe=q0(),n10=Wf(),s10=eu(),sUe=Zp(),i10=X9e(),iUe=ru(),Gre=U0(),o10=$9e(),a10=f4(),oUe=K9e(),c10=eUe(),aUe=Sg(),cUe=nUe(),YA=[],uUe=pUe(YA.sort),u10=pUe(YA.push),p10=Gre(function(){YA.sort(void 0)}),l10=Gre(function(){YA.sort(null)}),A10=a10("sort"),lUe=!Gre(function(){if(aUe)return aUe<70;if(!(oUe&&oUe>3)){if(c10)return!0;if(cUe)return cUe<603;var t="",e,r,n,s;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(s=0;s<47;s++)YA.push({k:r+s,v:n})}for(YA.sort(function(i,a){return a.v-i.v}),s=0;s<YA.length;s++)r=YA[s].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),d10=p10||!l10||!A10||!lUe,f10=o(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:iUe(e)>iUe(r)?1:-1}},"getSortCompare");r10({target:"Array",proto:!0,forced:d10},{sort:o(function(e){e!==void 0&&n10(e);var r=s10(this);if(lUe)return e===void 0?uUe(r):uUe(r,e);var n=[],s=sUe(r),i,a;for(a=0;a<s;a++)a in r&&u10(n,r[a]);for(o10(n,f10(e)),i=sUe(n),a=0;a<i;)r[a]=n[a++];for(;a<s;)i10(r,a++);return r},"sort")})});var fUe=b((kt1,dUe)=>{"use strict";AUe();var h10=aa();dUe.exports=h10("Array","sort")});var bUe=b((Ut1,hUe)=>{"use strict";var b10=ls(),M10=fUe(),Hre=Array.prototype;hUe.exports=function(t){var e=t.sort;return t===Hre||b10(Hre,t)&&e===Hre.sort?M10:e}});var mUe=b((Gt1,MUe)=>{"use strict";var m10=bUe();MUe.exports=m10});var zUe=b((Ht1,gUe)=>{gUe.exports=mUe()});var OUe=b(()=>{});var CUe=b((jt1,yUe)=>{"use strict";var g10=q1(),z10=U0(),EUe=g10.RegExp,O10=!z10(function(){var t=!0;try{EUe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",s=o(function(u,p){Object.defineProperty(e,u,{get:o(function(){return r+=p,!0},"get")})},"addGetter"),i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var a in i)s(a,i[a]);var c=Object.getOwnPropertyDescriptor(EUe.prototype,"flags").get.call(e);return c!==n||r!==n});yUe.exports={correct:
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,v10.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(B4,"_createForOfIteratorHelper");function P10(t,e){var r;if(t){if(typeof t=="string")return LUe(t,e);var n=(0,lo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,_10.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LUe(t,e)}}o(P10,"_unsupportedIterableToArray");function LUe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o(LUe,"_arrayLikeToArray");var A0="xregexp",Vf={astral:!1,namespacing:!1},G0={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},nu={},y4={},kg={},Xre=[],Ug="default",QUe="class",k10={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},U10=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,G10=G0.exec.call(/()??/,"")[1]===void 0,H10=(0,Xf.default)(/x/)!==void 0,X10={},HUe=X10.toString;function jre(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}o(jre,"hasNativeFlag");var XUe=jre("u"),$re=jre("y"),VUe={g:!0,i:!0,m:!0,u:XUe,y:$re};function jUe(t,e,r,n,s){var i;if(t[A0]={captureNames:e},s)return t;if(t.__proto__)t.__proto__=pe.prototype;else for(var a in pe.prototype)t[a]=pe.prototype[a];return t[A0].source=r,t[A0].flags=n&&(0,Q10.default)(i=n.split("")).call(i).join(""),t}o(jUe,"augment");function C4(t){return G0.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}o(C4,"clipDuplicates");function $f(t,e){var r;if(!pe.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[A0]||{},s=V10(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(s=G0.replace.call(s,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(s=C4(s+i)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Xf.default)(n)!=null&&(u=i?C4((0,Xf.default)(n)+i):(0,Xf.default)(n))),t=jUe(new RegExp(e.source||t.source,s),j10(t)?(0,lo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}o($f,"copyRegex");function $Ue(t){return(0,GUe.default)(t,16)}o($Ue,"dec");function YUe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||G0.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||$10(t.input,t.index+t[0].length,r)?"":"(?:)"}o(YUe,"getContextualTokenSeparator");function V10(t){return H10?(0,Xf.default)(t):G0.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}o(V10,"getNativeFlags");function j10(t){return!!(t[A0]&&t[A0].captureNames)}o(j10,"hasNamedCapture");function JUe(t){return(0,GUe.default)(t,10).toString(16)}o(JUe,"hex");function $10(t,e,r){var n="\\(\\?#[^)]*\\)",s="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return G0.test.call((0,jf.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,lo.default)(t).call(t,e))}o($10,"isQuantifierNext");function Yre(t,e){return HUe.call(t)==="[object ".concat(e,"]")}o(Yre,"isType");function KUe(t){for(;t.length<4;)t="0".concat(t);return t}o(KUe,"pad4");function Y10(t,e){if(C4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=G0.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(G0.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=C4(e
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,Nr0.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(Qr0,"_createForOfIteratorHelper");function Pr0(t,e){var r;if(t){if(typeof t=="string")return LGe(t,e);var n=(0,_r0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,xr0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LGe(t,e)}}o(Pr0,"_unsupportedIterableToArray");function LGe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}o(LGe,"_arrayLikeToArray");var kr0=o(function(e){var r={},n=e._dec,s=e._hex,i=e._pad4;function a(d){return d.replace(/[- _]+/g,"").toLowerCase()}o(a,"normalize");function c(d){var h=/^\\[xu](.+)/.exec(d);return h?n(h[1]):d.charCodeAt(d[0]==="\\"?1:0)}o(c,"charCode");function u(d){var h="",m=-1;return(0,Lr0.default)(e).call(e,d,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(z){var C=c(z[1]);C>m+1&&(h+="\\u".concat(i(s(m+1))),C>m+2&&(h+="-\\u".concat(i(s(C-1))))),m=c(z[2]||z[1])}),m<65535&&(h+="\\u".concat(i(s(m+1))),m<65534&&(h+="-\\uFFFF")),h}o(u,"invertBmp");function p(d){var h="b!";return r[d][h]||(r[d][h]=u(r[d].bmp))}o(p,"cacheInvertedBmp");function l(d,h){var m=r[d],z="";if(m.bmp&&!m.isBmpLast){var C;z=(0,ene.default)(C="[".concat(m.bmp,"]")).call(C,m.astral?"|":"")}if(m.astral&&(z+=m.astral),m.isBmpLast&&m.bmp){var E;z+=(0,ene.default)(E="".concat(m.astral?"|":"","[")).call(E,m.bmp,"]")}return h?"(?:(?!".concat(z,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(z,")")}o(l,"buildAstral");function A(d,h){var m=h?"a!":"a=";return r[d][m]||(r[d][m]=l(d,h))}o(A,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(d,h,m){var z="Invalid double negation ",C="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",w=d[1]==="P"||!!d[2],N=(0,Wr0.default)(m).call(m,"A"),x=a(d[4]||d[3]),Q=r[x];if(d[1]==="P"&&d[2])throw new SyntaxError(z+d[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(C+d[0]);if(Q.inverseOf){if(x=a(Q.inverseOf),!r.hasOwnProperty(x)){var $;throw new ReferenceError((0,ene.default)($="".concat(E+d[0]," -> ")).call($,Q.inverseOf))}Q=r[x],w=!w}if(!(Q.bmp||N))throw new SyntaxError(B+d[0]);if(N){if(h==="class")throw new SyntaxError(I);return A(x,w)}return h==="class"?w?p(x):Q.bmp:"".concat((w?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(d){var h="Unicode token requires name",m="Unicode token has no character data ",z=Qr0(d),C;try{for(z.s();!(C=z.n()).done;){var E=C.value;if(!E.name)throw new Error(h);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(m+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){z.e(B)}finally{z.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(d){var h=a(d);return r[h]}},"_default");S4.default=kr0;QGe.exports=S4.default});var UGe=b((B01,kGe)=>{kGe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(VAe,"getBooleanInput");function oQ(t,e){if(process.env.GITHUB_OUTPUT||"")return iz("OUTPUT",dB(t,e));process.stdout.write(iQ.EOL),pa("set-output",{name:t},ua(e))}o(oQ,"setOutput");function jAe(t){process.exitCode=sQ.Failure,fb(t)}o(jAe,"setFailed");function qu(){return process.env.RUNNER_DEBUG==="1"}o(qu,"isDebug");function T(t){pa("debug",{},t)}o(T,"debug");function fb(t,e={}){pa("error",M_(e),t instanceof Error?t.toString():t)}o(fb,"error");function yt(t,e={}){pa("warning",M_(e),t instanceof Error?t.toString():t)}o(yt,"warning");function W(t){process.stdout.write(t+iQ.EOL)}o(W,"info");function Fd(t){g_("group",t)}o(Fd,"startGroup");function Td(){g_("endgroup")}o(Td,"endGroup");function ur(t,e){return Dot(this,void 0,void 0,function*(){Fd(t);let r;try{r=yield e()}finally{Td()}return r})}o(ur,"group");function fq(t,e){if(process.env.GITHUB_STATE||"")return iz("STATE",dB(t,e));pa("save-state",{name:t},ua(e))}o(fq,"saveState");function $Ae(t){return process.env[`STATE_${t}`]||""}o($Ae,"getState");var Mw=_(require("fs"),1),mX=_(require("os"),1),gX=_(require("path"),1);var JAe=_(require("os"),1);function dO(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(dO,"toCommandValue");function KAe(t,e,r){let n=new aQ(t,e,r);process.stdout.write(n.toString()+JAe.EOL)}o(KAe,"issueCommand");var YAe="::",aQ=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=YAe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Iot(s)}`)}}return e+=`${YAe}${qot(this.message)}`,e}};function qot(t){return dO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(qot,"escapeData");function Iot(t){return dO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Iot,"escapeProperty");var rde=_(require("os"),1);var ede=require("os"),fO=require("fs");var cQ=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:Rot,appendFile:wot,writeFile:Sot}=fO.promises,ZAe="GITHUB_STEP_SUMMARY";var uQ=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return cQ(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ZAe];if(!e)throw new Error(`Unable to find environment variable for $${ZAe}. Check if your runtime environment supports job summaries.`);try{yield Rot(e,fO.constants.R_OK|fO.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,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return cQ(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Sot:wot)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return cQ(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(ede.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{he
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new qO(i));return n.searchPaths.push(...GQ(n.patterns)),n})}static stat(e,r,n){return YQ(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Ob.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){yi(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Ob.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Ob.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){yi(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var mpt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};function Ffe(t,e){return mpt(this,void 0,void 0,function*(){return yield Fq.create(t,e)})}o(Ffe,"create");var Yq=_(require("crypto"),1),Bb=_(require("fs"),1),Ld=_(require("path"),1),Dbe=_(Ss(),1),qbe=_(require("util"),1);var FO;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(FO||(FO={}));var tn;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(tn||(tn={}));var Ns;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ns||(Ns={}));var jq=2,$q=5e3,MP=5e3,mP=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Bbe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,TO="cache.tar",gP="manifest.txt",jd0=10*Math.pow(1024,3);var Cb=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},Bdt=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={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,u){a=t[i](a),s(c,u,a.done,a.value)})}}function s(i,a,c,u){Promise.resolve(u).then(function(p){i({value:p,done:c})},a)}},Ddt="1.0";function xO(){return Cb(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Ld.join(n,"actions","temp")}let r=Ld.join(e,Yq.randomUUID());return yield Du(r),r})}o(xO,"createTempDirectory");function Ia(t){return Bb.statSync(t).size}o(Ia,"getArchiveFileSizeInBytes");function zP(t){return Cb(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),u=yield Ffe(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,l=Bdt(u.globGenerator()),A;A=yield l.next(),e=A.done,!e;p=!0){s=A.value,p=!1;let h=Ld.relative(c,s).replace(new RegExp(`\\${Ld.sep}`,"g"),"/");T(`Matched: ${h}`),h===""?a.push("."):a.push(`${h}`)}}catch(d){r={error:d}}finally{try{!p&&!e&&(n=l.return)&&(yield n.call(l))}finally{if(r)throw r.error}}return a})}o(zP,"resolvePaths");function _O(t){return Cb(this,void 0,void 0,function*(){return qbe.promisify(Bb.unlink)(t)})}o(_O,"unlinkFile");function Ibe(t){return Cb(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Is(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}o(Ibe,"getVersion");function WO(){return Cb(this,void 0,void 0,function*(){let t=yield Ibe("zstd",["--quiet"]),e=Dbe.clean(t);return T(`zstd version: ${e}`),t===""?tn.Gzip:tn.ZstdWithoutLong})}o(WO,"getCompressionMethod");function _l(t){return t===tn.Gzip?FO.Gzip:FO.Zstd}o(_l,"getCacheFileName");function Rbe(){return Cb(this,void 0,void 0,function*(){return Bb.existsSync(mP)?mP:(yield Ibe("tar")).toLowerCase().includes("gnu tar")?cr("tar"):""})}o(Rbe,"getGnuTarPathOnWindows");function OP(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(OP,"assertDefined");function Db(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Ddt),Yq.createHash("sha256").update(n.join("|")).digest("hex")}o(Db,"getCacheVersion");function wbe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(wbe,"getRuntimeToken");var QO=_(require("http"),1),CP=_(require("https"),1);function EP(t){let e=t.protocol==="https:";if(qdt(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 Kq(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Kq(`http://${r}`)}else return}o(EP,"getProxyUrl");function qdt(t){if(!t.hostname)return!1;let e=t.hostname;if(Idt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(qdt,"checkBypass");function Idt(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(Idt,"isLoopbackAddress");var Kq=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 Wl=_(oz(),1),Sbe=_(lb(),1);var Y0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},w0;(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
${Udt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function sI(t){return t instanceof nn?!0:Pd(t)&&t.name==="RestError"}o(sI,"isRestError");function Qn(t,e){return Buffer.from(t,e)}o(Qn,"stringToUint8Array");var iI=_(require("node:http"),1),oI=_(require("node:https"),1),FP=_(require("node:zlib"),1),$be=require("node:stream");var Di=PO("ts-http-runtime");var Gdt={};function kO(t){return t&&typeof t.pipe=="function"}o(kO,"isReadableStream");function jbe(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(jbe,"isStreamComplete");function Ybe(t){return t&&typeof t.byteLength=="number"}o(Ybe,"isArrayBuffer");var aI=class extends $be.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},TP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new wa("The operation was aborted. Request has already been canceled.");n=o(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let p=new No;Di.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=jdt(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,z=new aI(m);z.on("error",C=>{Di.error("Error in upload progress",C)}),kO(c)?c.pipe(z):z.end(c),c=z}let p=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let l=Hdt(p),d={status:p.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return p.resume(),d;u=a?Xdt(p,l):p;let h=e.onDownloadProgress;if(h){let m=new aI(h);m.on("error",z=>{Di.error("Error in download progress",z)}),u.pipe(m),u=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await Vdt(u),d}finally{if(e.abortSignal&&n){let p=Promise.resolve();kO(c)&&(p=jbe(c));let l=Promise.resolve();kO(u)&&(l=jbe(u)),Promise.all([p,l]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{Di.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let l=i?iI.default.request(c,u):oI.default.request(c,u);l.once("error",A=>{p(new nn(A.message,{code:A.code??nn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new wa("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(A),p(A)}),n&&kO(n)?n.pipe(l):n?typeof n=="string"||Buffer.isBuffer(n)?l.end(n):Ybe(n)?l.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Di.error("Unrecognized body type",n),p(new nn("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?iI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new iI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return oI.default.globalAgent;let s=e.tlsSettings??Gdt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Di.info("No cached TLS Agent exi
`;return e}o(Bft,"encodeHeaders");function Dft(t){return t instanceof Uint8Array?t.byteLength:wI(t)?t.size===-1?void 0:t.size:void 0}o(Dft,"getLength");function qft(t){let e=0;for(let r of t){let n=Dft(r);if(n===void 0)return;e+=n}return e}o(qft,"getTotalLength");async function Ift(t,e,r){let n=[Qn(`--${r}`,"utf-8"),...e.flatMap(i=>[Qn(`\r
`,"utf-8"),Qn(Bft(i.headers),"utf-8"),Qn(`\r
`,"utf-8"),i.body,Qn(`\r
--${r}`,"utf-8")]),Qn(`--\r
\r
`,"utf-8")],s=qft(n);s&&t.headers.set("Content-Length",s),t.body=await KMe(n)}o(Ift,"buildRequestBody");var XO="multipartPolicy",Rft=70,wft=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Sft(t){if(t.length>Rft)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!wft.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(Sft,"assertValidBoundary");function NI(){return{name:XO,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;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?Sft(r):r=Cft(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ift(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(NI,"multipartPolicy");function vI(){return nI()}o(vI,"createEmptyPipeline");var ZMe=eI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),XM0=ZMe.logger;function va(t){return ZMe.createClientLogger(t)}o(va,"createClientLogger");var Fa=va("core-rest-pipeline");function tk(t={}){return uI({logger:Fa.info,...t})}o(tk,"logPolicy");var rk=pI;function nk(t={}){return lI(t)}o(nk,"redirectPolicy");var FI=_(require("node:os"),1),TI=_(require("node:process"),1);function eme(){return"User-Agent"}o(eme,"getHeaderName");async function tme(t){if(TI.default&&TI.default.versions){let e=`${FI.default.type()} ${FI.default.release()}; ${FI.default.arch()}`,r=TI.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(tme,"setPlatformSpecificData");var xI="1.22.2";function Lft(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Lft,"getUserAgentString");function rme(){return eme()}o(rme,"getUserAgentHeaderName");async function _I(t){let e=new Map;e.set("core-rest-pipeline",xI),await tme(e);let r=Lft(e);return t?`${t} ${r}`:r}o(_I,"getUserAgentValue");var nme=rme(),sme="userAgentPolicy";function sk(t={}){let e=_I(t.userAgentPrefix);return{name:sme,async sendRequest(r,n){return r.headers.has(nme)||r.headers.set(nme,await e),n(r)}}}o(sk,"userAgentPolicy");var _s=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function ik(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new _s(s??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}o(u,"removeListeners");function p(){r?.(),u(),c()}if(o(p,"onAbort"),n?.aborted)return c();try{t(l=>{u(),i(l)},l=>{u(),a(l)})}catch(l){a(l)}n?.addEventListener("abort",p)})}o(ik,"createAbortablePromise");var Gft="The delay was aborted.";function VO(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return ik(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??Gft})}o(VO,"delay");function Ql(t){if(Pd(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(Ql,"getErrorMessage");function ime(t){return Pd(t)}o(ime,"isError");function Tb(){return Qd()}o(Tb,"randomUUID");var St=Gd;var ome=Symbol("rawContent");function ak(t){return typeof t[ome]=="function"}o(ak,"hasRawContent");function ame(t){return ak(t)?t[ome]():t}o(ame,"getRawContent");var WI=XO;function ck(){let t=NI();return{name:WI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)ak(n.body)&&(n.body=ame(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(ck,"multipartPolicy");var uk=AI;function pk(){return dI()}o(pk,"decompressResponsePolicy");fun
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!fbt(u)){let A;return u.trim().length===0?A="Invalid space after '<'.":A="Tag '"+u+"' is an invalid name.",J0("InvalidTag",A,sn(t,i))}let p=ubt(t,i);if(p===!1)return J0("InvalidAttr","Attributes for '"+u+"' have open quote.",sn(t,i));let l=p.value;if(i=p.index,l[l.length-1]==="/"){let A=i-l.length;l=l.substring(0,l.length-1);let d=Xme(l,e);if(d===!0)n=!0;else return J0(d.err.code,d.err.msg,sn(t,A+d.err.line))}else if(c)if(p.tagClosed){if(l.trim().length>0)return J0("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",sn(t,a));if(r.length===0)return J0("InvalidTag","Closing tag '"+u+"' has not been opened.",sn(t,a));{let A=r.pop();if(u!==A.tagName){let d=sn(t,A.tagStartPos);return J0("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",sn(t,a))}r.length==0&&(s=!0)}}else return J0("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",sn(t,i));else{let A=Xme(l,e);if(A!==!0)return J0(A.err.code,A.err.msg,sn(t,i-l.length+A.err.line));if(s===!0)return J0("InvalidXml","Multiple possible root nodes found.",sn(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Hme(t,i);continue}else if(t[i+1]==="?"){if(i=Gme(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=Abt(t,i);if(A==-1)return J0("InvalidChar","char '&' is not expected.",sn(t,i));i=A}else if(s===!0&&!Ume(t[i]))return J0("InvalidXml","Extra text at the end",sn(t,i));t[i]==="<"&&i--}}else{if(Ume(t[i]))continue;return J0("InvalidChar","char '"+t[i]+"' is not expected.",sn(t,i))}if(n){if(r.length==1)return J0("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",sn(t,r[0].tagStartPos));if(r.length>0)return J0("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return J0("InvalidXml","Start tag expected.",1);return!0}o(JI,"validate");function Ume(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Ume,"isWhiteSpace");function Gme(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return J0("InvalidXml","XML declaration allowed only at the start of the document.",sn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Gme,"readPI");function Hme(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(Hme,"readCommentAndCDATA");var abt='"',cbt="'";function ubt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===abt||t[e]===cbt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(ubt,"readAttributeStr");var pbt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Xme(t,e){let r=$I(t,pbt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return J0("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",i3(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return J0("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",i3(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return J0("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",i3(r[s]));let i=r[s][2];if(!dbt(i))return J0("InvalidAttr","Attribute '"+i+"' is an invalid name.",i3(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return J0("InvalidAttr","Attribute '"+i+"' is repeated.",i3(r[s]))}return!0}o(Xme,"validateAttributeString");function lbt(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(lbt,"validateNumberAmpersand");function Abt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lbt(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(Abt,"validateAmpersand");function J0(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(J0,"getErrorObject");function dbt(t){return Tk(t)}o(dbt,"validateAttrName");function fbt(t){return Tk(t)}o(fbt,"validateTagName");function sn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(sn,"getLineNumberForPosition");function i3(t){return t.startIndex+t[1].length}o(i3,"getPositionFromMatch");var Vme={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"},jme={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,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new c3(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let l=Pb(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,l).trim();if(s.removeNSPrefix){let h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}A=Uk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=l}else if(p===63){let l=Gk(t,c,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&l.tagName==="?xml"||s.ignorePiTags)){let d=new Gn(l.tagName);d.add(s.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,c)}c=l.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let l=Pb(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,l-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=l}else if(p===33&&t.charCodeAt(c+2)===68){let l=i.readDocType(t,c);this.entityDecoder.addInputEntities(l.entities),c=l.i}else if(p===33&&t.charCodeAt(c+2)===91){let l=Pb(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,l);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,d),c=l+2}else{let l=Gk(t,c,s.removeNSPrefix);if(!l){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let A=l.tagName,d=l.rawTagName,h=l.tagExp,m=l.attrExpPresent,z=l.closeIndex;if({tagName:A,tagExp:h}=Uk(s.transformTagName,A,h,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),h=A):h=h.substr(0,h.length-1),m=A!==h);let B=null,I={},w;w=_bt(d),A!==e.tagname&&this.matcher.push(A,{},w),A!==h&&m&&(B=this.buildAttributesMap(h,this.matcher,A),B&&(I=xbt(B,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=l.closeIndex;else if(s.unpairedTagsSet.has(A))c=l.closeIndex;else{let $=this.readStopNodeData(t,d,z+1);if(!$)throw new Error(`Unexpected end of ${d}`);c=$.i,x=$.tagContent}let Q=new Gn(A);B&&(Q[":@"]=B),Q.add(s.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:h}=Uk(s.transformTagName,A,h,s));let x=new Gn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let x=new Gn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=l.closeIndex;continue}else{let x=new Gn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),r=x}n="",c=z}}}else n+=t[c];return e.child},"parseXml"
`;function tMt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Yk(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(tMt,"detectXmlVersionFromArray");function hge(t,e,r,n,s){return!r.sanitizeName||Yd(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(hge,"resolveTagName");function $k(t,e){let r="";e.format&&(r=eMt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Qs(c)):c instanceof Qs&&n.push(c)}let s=tMt(t,e),i=new _a;return bge(t,e,r,i,n,s)}o($k,"toXml");function bge(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=jk(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],l=Yk(p);if(l===void 0)continue;let d=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:hge(l,!1,e,n,i),h=rMt(p[":@"],e);n.push(d,h);let m=sMt(n,s);if(d===e.textNodeName){let I=p[l];m||(I=e.tagValueProcessor(d,I),I=jk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(d===e.cdataPropName){c&&(a+=r);let I=p[l][0][e.textNodeName],w=rR(I);a+=`<![CDATA[${w}]]>`,c=!1,n.pop();continue}else if(d===e.commentPropName){let I=p[l][0][e.textNodeName],w=tR(I);a+=r+`<!--${w}-->`,c=!0,n.pop();continue}else if(d[0]==="?"){let I=fge(p[":@"],e,m,n,i);a+=(d==="?xml"?"":r)+`<${d}${I}?>`,c=!0,n.pop();continue}let z=r;z!==""&&(z+=e.indentBy);let C=fge(p[":@"],e,m,n,i),E=r+`<${d}${C}`,B;m?B=Mge(p[l],e):B=bge(p[l],e,z,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${d}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${d}>`),c=!0,n.pop()}return a}o(bge,"arrToStr");function rMt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Gl(t[s]),n=!0}return n?r:null}o(rMt,"extractAttributeValues");function Mge(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Yk(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=nMt(s[":@"],e),c=Mge(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(Mge,"getRawContent");function nMt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Gl(s)}"`}return r}o(nMt,"attr_to_str_raw");function Yk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(Yk,"propName");function fge(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:hge(c,!0,e,n,s),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=jk(p,e)),p===!0&&e.suppressBooleanAttributes?i+=` ${u}`:i+=` ${u}="${Gl(p)}"`}return i}o(fge,"attr_to_str");function sMt(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(sMt,"checkStopNode");function jk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(jk,"replaceEntitiesValue");function Jk(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(Jk,"getIgnoreAttributesFn");var iMt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Xn,"Builder");function oMt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(oMt,"detectXmlVersionFromObj");function Kk(t,e,r,n,s){return!r.sanitizeName||Yd(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(Kk,"resolveTagName");Xn.prototype.build=function(t){if(this.options.preserveOrder)return $k(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new _a,r=oMt(t,this.options);return this.j2x(t,0,e,r).val}};Xn.prototype.j2x=function(t,e,r,n){let s="",i="";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 u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let l=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:Kk(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(i+="");else if(t[u]===null)this.isAttribute(u)||l===this.options.cdataPropName||l===this.options.commentPropName?i+="":l[0]==="?"?i+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[u]instanceof Date)i+=this.buildTextValNode(t[u],l,"",e,r);else if(typeof t[u]!="object"){let A=this.isAttribute(u);if(A&&!this.ignoreAttributesFn(A,a)){let d=Kk(A,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[u],c)}else if(!A)if(u===this.options.textNodeName){let d=this.options.tagValueProcessor(u,""+t[u]);i+=this.replaceEntitiesValue(d)}else{r.push(l);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[u];h===""?i+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:i+=this.indentate(e)+"<"+l+">"+h+"</"+l+this.tagEndChar}else i+=this.buildTextValNode(t[u],l,"",e,r)}}else if(Array.isArray(t[u])){let A=t[u].length,d="",h="";for(let m=0;m<A;m++){let z=t[u][m];if(!(typeof z>"u"))if(z===null)l[0]==="?"?i+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof z=="object")if(this.options.oneListGroup){r.push(l);let C=this.j2x(z,e+1,r,n);r.pop(),d+=C.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName)&&(h+=C.attrStr)}else d+=this.processTextOrObjNode(z,l,e,r,n);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(l,z);C=this.replaceEntitiesValue(C),d+=C}else{r.push(l);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+z;E===""?d+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:d+=this.indentate(e)+"<"+l+">"+E+"</"+l+this.tagEndChar}else d+=this.buildTextValNode(z,l,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,l,h,e)),i+=d}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let A=Object.keys(t[u]),d=A.length;for(let h=0;h<d;h++){let m=Kk(A[h],!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[u][A[h]],c)}}else i+=this.processTextOrObjNode(t[u],l,e,r,n)}return{attrStr:s,val:i}};Xn.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+'="'+Gl(e)+'"'};function aMt(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(aMt,"process
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ke.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ke.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ke.PREFIX_FOR_STORAGE));r.sort((s,i)=>dR(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=pR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=lR(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let u=c.toLowerCase();i[u]=s[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var S0=class extends Zd{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new d3(e,r,this)}computeHMACSHA256(e){return(0,Bge.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var O1=va("storage-common");var wi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(wi||(wi={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:wi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bMt=new _s("The operation was aborted."),f3=class extends Wa{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=uR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Hl(s.url,xu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(O1.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(O1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return O1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return O1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return O1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return O1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ke.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(O1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case wi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case wi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return O1.info(`RetryPolicy: Delay for ${s}ms`),AR(s,n,bMt)}};var h3=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new f3(e,r,this.retryOptions)}};var MMt="storageBrowserPolicy";function Dge(){return{name:MMt,async sendRequest(t,e){return St||((t.method==="GET"||t.method==="HEAD")&&(t.url=Hl(t.url,xu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ke.COOKIE),t.headers.delete(ke.CONTENT_LENGTH)),e(t)}}}o(Dge,"storageBrowserPolicy");var mMt="StorageCorrectContentLengthPolicy";function qge(){function t(e){e.body&&(
`)+`
`+n(i)+s(i),c=(0,Rge.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ke.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ke.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[u,p]of i.headers)u.toLowerCase().startsWith(ke.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>dR(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,l)=>!(p>0&&u.name.toLowerCase()===l[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=pR(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=lR(i.url),p={};if(u){let l=[];for(let A in u)if(Object.prototype.hasOwnProperty.call(u,A)){let d=A.toLowerCase();p[d]=u[A],l.push(d)}l.sort();for(let A of l)c+=`
${A}:${decodeURIComponent(p[A])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:EMt,async sendRequest(i,a){return e(i),a(i)}}}o(n7,"storageSharedKeyCredentialPolicy");var yMt="storageRequestFailureDetailsParserPolicy";function wge(){return{name:yMt,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(wge,"storageRequestFailureDetailsParserPolicy");var Sge=require("node:crypto");var fR=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,Sge.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var hR="12.31.0",bR="2026-02-06";var MR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var vo="",s7="*",CMt=1*1024*1024;var BMt=4*CMt;var Nge="AES256",vge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Fge=["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"],Tge=["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"],xge="BlobUsesCustomerSpecifiedEncryption",_ge="BlobDoesNotUseCustomerSpecifiedEncryption",Wge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Wu(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(Wu,"isPipelineLike");var b3=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 K0(t,e={}){t||(t=new M0);let r=new b3([],e);return r._credential=t,r}o(K0,"newPipeline");function DMt(t){let e=[qMt,Lge,IMt,RMt,wMt,SMt,vM
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Wo(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(Dgt,"generateBlobSASQueryParameters20150405");function qgt(t,e){if(t=c2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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(qgt,"generateBlobSASQueryParameters20181109");function Igt(t,e){if(t=c2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(Igt,"generateBlobSASQueryParameters20201206");function Rgt(t,e){if(t=c2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(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?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey),stringToSign:i}}o(Rgt,"generateBlobSASQueryParametersUDK20181109");function wgt(t,e){if(t=c2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(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?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(wgt,"generateBlobSASQueryParametersUDK20200210");function Sgt(t,e){if(t=c2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(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?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(Sgt,"generateBlobSASQueryParametersUDK20201206");function Ngt(t,e){if(t=c2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=tc.parse(t.permissions.toString()).toString():s=rc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",a2(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?_o(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wo(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(Ngt,"generateBlobSASQueryParametersUDK20250705");function a2(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(a2,"getCanonicalName");function c2(t){let e=t.version?t.version:bR;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(c2,"SASSignatureValuesSanityCheckAndAutofill");var I3=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Tb()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vo||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 ye.withSpan("BlobLeaseClient-acquireLease",r,async n=>Re(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==vo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==vo||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 ye.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Re(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}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"}};tM.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var A2=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"}};A2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var W3=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var kzt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},$G=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);W(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function kOe(t,e,r){return kzt(this,void 0,void 0,function*(){var n;let s=new Hu(t),i=s.getBlockBlobClient(),a=new $G((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new O5(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw yt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(kOe,"uploadCacheArchiveSDK");var GOe=_(require("buffer"),1),nc=_(require("fs"),1),HOe=_(require("stream"),1),XOe=_(require("util"),1);var E5=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})};function y5(t){return t?t>=200&&t<300:!1}o(y5,"isSuccessStatusCode");function Uzt(t){return t?t>=500:!0}o(Uzt,"isServerErrorStatusCode");function Gzt(t){return t?[w0.BadGateway,w0.ServiceUnavailable,w0.GatewayTimeout].includes(t):!1}o(Gzt,"isRetryableStatusCode");function Hzt(t){return E5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Hzt,"sleep");function UOe(t,e,r){return E5(this,arguments,void 0,function*(n,s,i,a=jq,c=$q,u=void 0){let p="",l=1;for(;l<=a;){let A,d,h=!1;try{A=yield s()}catch(m){u&&(A=u(m)),h=!0,p=m.message}if(A&&(d=i(A),!Uzt(d)))return A;if(d&&(h=Gzt(d),p=`Cache service responded with ${d}`),T(`${n} - Attempt ${l} of ${a} failed with error: ${p}`),!h){T(`${n} - Error is not retryable`);break}yield Hzt(c),l++}throw Error(`${n} failed: ${p}`)})}o(UOe,"retry");function L3(t,e){return E5(this,arguments,void 0,function*(r,n,s=jq,i=$q){return yield UOe(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Ra)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(L3,"retryTypedResponse");function rM(t,e){return E5(this,arguments,void 0,function*(r,n,s=jq,i=$q){return yield UOe(r,n,a=>a.message.statusCode,s,i)})}o(rM,"retryHttpClientResponse");var Ti=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a
Other caches with similar key:`);for(let c of i?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(Zzt,"printCachesListForDiagnostics");function ZG(t,e,r){return jn(this,void 0,void 0,function*(){let n=new r3e.URL(t),s=YOe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield jOe(t,e,s):s.concurrentBlobDownloads?yield VOe(t,e,s):yield B5(t,e):yield B5(t,e)})}o(ZG,"downloadCache");function s3e(t,e,r){return jn(this,void 0,void 0,function*(){let n=KG(),s=Db(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield L3("reserveCache",()=>jn(this,void 0,void 0,function*(){return n.postJson(P3("caches"),i)}))})}o(s3e,"reserveCache");function t3e(t,e){return`bytes ${t}-${e}/*`}o(t3e,"getContentRange");function eOt(t,e,r,n,s){return jn(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${t3e(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":t3e(n,s)},a=yield rM(`uploadChunk (start: ${n}, end: ${s})`,()=>jn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!y5(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(eOt,"uploadChunk");function tOt(t,e,r,n){return jn(this,void 0,void 0,function*(){let s=Ia(r),i=P3(`caches/${e.toString()}`),a=nM.openSync(r,"r"),c=YG(n),u=OP("uploadConcurrency",c.uploadConcurrency),p=OP("uploadChunkSize",c.uploadChunkSize),l=[...new Array(u).keys()];T("Awaiting all uploads");let A=0;try{yield Promise.all(l.map(()=>jn(this,void 0,void 0,function*(){for(;A<s;){let d=Math.min(s-A,p),h=A,m=A+d-1;A+=p,yield eOt(t,i,()=>nM.createReadStream(r,{fd:a,start:h,end:m,autoClose:!1}).on("error",z=>{throw new Error(`Cache upload failed because file read failed with ${z.message}`)}),h,m)}})))}finally{nM.closeSync(a)}})}o(tOt,"uploadFile");function rOt(t,e,r){return jn(this,void 0,void 0,function*(){let n={size:r};return yield L3("commitCache",()=>jn(this,void 0,void 0,function*(){return t.postJson(P3(`caches/${e.toString()}`),n)}))})}o(rOt,"commitCache");function eH(t,e,r,n){return jn(this,void 0,void 0,function*(){if(YG(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield kOe(r,e,n)}else{let i=KG();T("Upload cache"),yield tOt(i,t,e,n),T("Commiting cache");let a=Ia(e);W(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield rOt(i,t,a);if(!y5(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);W("Cache saved successfully")}})}o(eH,"saveCache");var K3e=_(H3e(),1),t1=_(e1(),1),Us=_(e1(),1),M2=_(e1(),1),m2=_(e1(),1),g2=_(e1(),1);var jH=_(e1(),1),$H=_(e1(),1),$3e=_(e1(),1),Y3e=_(e1(),1),J3e=_(e1(),1);var HH=_(e1(),1),XH=_(e1(),1),X3e=_(e1(),1),V3e=_(e1(),1),j3e=_(e1(),1);var VH=class extends j3e.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,V3e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,X3e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?XH.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,HH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,HH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Aw=new VH;var YH=class extends J3e.Mess
`));let n=yield lX(r,"create");yield AX(n,t)})}o(fX,"createTar");var zM=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(l){try{p(n.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(n.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):s(l.value).then(c,u)}o(p,"step"),p((n=n.apply(t,e||[])).next())})},Po=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},gM=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},bw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function rEe(t){if(!t||t.length===0)throw new Po("Path Validation Error: At least one directory or file path is required")}o(rEe,"checkPaths");function hX(t){if(t.length>512)throw new Po(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Po(`Key Validation Error: ${t} cannot contain commas.`)}o(hX,"checkKey");function bX(){return Q3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(bX,"isFeatureAvailable");function nEe(t,e,r,n){return zM(this,arguments,void 0,function*(s,i,a,c,u=!1){let p=Q3();return T(`Cache service version: ${p}`),rEe(s),p==="v2"?yield MEt(s,i,a,c,u):yield bEt(s,i,a,c,u)})}o(nEe,"restoreCache");function bEt(t,e,r,n){return zM(this,arguments,void 0,function*(s,i,a,c,u=!1){a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new Po("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of p)hX(d);let l=yield WO(),A="";try{let d=yield n3e(p,s,{compressionMethod:l,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return W("Lookup only - skipping download"),d.cacheKey;A=nE.join(yield xO(),_l(l)),T(`Archive Path: ${A}`),yield ZG(d.archiveLocation,A,c),qu()&&(yield rE(A,l));let h=Ia(A);return W(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield dX(A,l),W("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Po.name)throw d;h instanceof Ra&&typeof h.statusCode=="number"&&h.statusCode>=500?fb(`Failed to restore: ${d.message}`):yt(`Failed to restore: ${d.message}`)}finally{try{yield _O(A)}catch(d){T(`Failed to delete archive: ${d}`)}}})}o(bEt,"restoreCacheV1");function MEt(t,e,r,n){return zM(this,arguments,void 0,function*(s,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new Po("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of p)hX(A);let l="";try{let A=pX(),d=yield WO(),h={key:i,restoreKeys:a,version:Db(s,d,u)},m=yield A.GetCacheEntryDownloadURL(h);if(!m.ok){T(`Cache not found for version ${h.version} of keys: ${p.join(", ")}`);return}if(h.key!==m.matchedKey?W(`Cache hit for restore-key: ${m.matchedKey}`):W(`Cache hit for: ${m.matchedKey}`),c?.lookupOnly)return W("Lookup only - skipping download"),m.matchedKey;l=nE.join(yield xO(),_l(d)),T(`Archive path: ${l}`),T(`Starting download of archive to: ${l}`),yield ZG(m.signedDownloadUrl,l,c);let C=Ia(l);return W(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),qu()&&(yield rE(l,d)),yield dX(l,d),W("Cache restored successfully"),m.matchedKey}catch(A){let d=A;if(d.name===Po.name)throw A;d instanceof Ra&&typeof d.statusCode=="number"&&d.statusCode>=500?fb(`Failed to restore: ${A.message}`):yt(`Failed to restore: ${A.message}`)}finally{try{l&&(yield _O(l))}catch(A){T(`Failed to delete archive: ${A}`)}}})}o(MEt,"restoreCacheV2");function MX(t,e,r){return zM(this,arguments,void 0,function*(n,s,i,a=!1){let c=Q3();return T(`Cache service version: ${c}`),rEe(n),hX(s),c==="v2"?yield gEt(n,s,i,a):yield mEt(n,s,i,a)})}o(MX,"saveCache");function mEt(t,e,r){return zM(this,arguments,void 0,fu
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(dyt,"_buildMessageForResponseErrors");var fyt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(dyt(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},hyt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],byt=["query","method","url"],GEe=/\/api\/v3\/?$/;function Myt(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(byt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>hyt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return GEe.test(i)&&(s.url=i.replace(GEe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new fyt(s,c,a.data)}return a.data.data})}o(Myt,"graphql");function wX(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>Myt(r,s,i),"newApi"),{defaults:wX.bind(null,r),endpoint:r.endpoint})}o(wX,"withDefaults");var Cv0=wX(aE,{headers:{"user-agent":`octokit-graphql.js/${Ayt} ${tA()}`},method:"POST",url:"/graphql"});function HEe(t){return wX(t,{method:"POST",url:"/graphql"})}o(HEe,"withCustomRequest");var SX="(?:[a-zA-Z0-9_-]+)",XEe="\\.",VEe=new RegExp(`^${SX}${XEe}${SX}${XEe}${SX}$`),myt=VEe.test.bind(VEe);async function gyt(t){let e=myt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(gyt,"auth");function zyt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(zyt,"withAuthorizationPrefix");async function Oyt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=zyt(t),e(s)}o(Oyt,"hook");var jEe=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(gyt.bind(null,e),{hook:Oyt.bind(null,e)})},"createTokenAuth2");var NX="7.0.6";var $Ee=o(()=>{},"noop"),Eyt=console.warn.bind(console),yyt=console.error.bind(console);function Cyt(t={}){return typeof t.debug!="function"&&(t.debug=$Ee),typeof t.info!="function"&&(t.info=$Ee),typeof t.warn!="function"&&(t.warn=Eyt),typeof t.error!="function"&&(t.error=yyt),t}o(Cyt,"createLogger");var YEe=`octokit-core.js/${NX} ${tA()}`,Rw=class{static{o(this,"Octokit")}static VERSION=NX;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new yEe.Collection,n={baseUrl:aE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${YEe}`:YEe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=aE.defaults(n),this.graphql=HEe(this.request).defaults(n),this.log=Cyt(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=jEe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:u,encoding:p,from_line:l,ltrim:A,max_record_size:d,raw:h,relax_quotes:m,rtrim:z,skip_empty_lines:C,to:E,to_line:B}=this.options,{comment:I,escape:w,quote:N,record_delimiter:x}=this.options,{bomSkipped:Q,previousBuf:$,rawBuffer:me,escapeIsQuote:De}=this.state,Z;if($===void 0)if(n===void 0){a();return}else Z=n;else $!==void 0&&n===void 0?Z=$:Z=Buffer.concat([$,n]);if(Q===!1)if(c===!1)this.state.bomSkipped=!0;else if(Z.length<3){if(s===!1){this.state.previousBuf=Z;return}}else{for(let J in xM)if(xM[J].compare(Z,0,xM[J].length)===0){let Ne=xM[J].length;this.state.bufBytesStart+=Ne,Z=Z.slice(Ne);let re=HV({...this.original_options,encoding:J});for(let ze in re)this.options[ze]=re[ze];({comment:I,escape:w,quote:N}=this.options);break}this.state.bomSkipped=!0}let qe=Z.length,Y;for(Y=0;Y<qe&&!this.__needMoreData(Y,qe,s);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,a();return}this.state.quoting===!1&&x.length===0&&this.__autoDiscoverRecordDelimiter(Z,Y)&&(x=this.options.record_delimiter);let J=Z[Y];if(h===!0&&me.append(J),(J===sDt||J===iDt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(w!==null&&this.state.quoting===!0&&this.__isEscape(Z,Y,J)&&Y+w.length<qe)if(De){if(this.__isQuote(Z,Y+w.length)){this.state.escaping=!0,Y+=w.length-1;continue}}else{this.state.escaping=!0,Y+=w.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Z,Y))if(this.state.quoting===!0){let ze=Z[Y+N.length],at=z&&this.__isCharTrimable(Z,Y+N.length),Lt=I!==null&&this.__compareBytes(I,Z,Y+N.length,ze),Qe=this.__isDelimiter(Z,Y+N.length,ze),s0=x.length===0?this.__autoDiscoverRecordDelimiter(Z,Y+N.length):this.__isRecordDelimiter(ze,Z,Y+N.length);if(w!==null&&this.__isEscape(Z,Y,J)&&this.__isQuote(Z,Y+w.length))Y+=w.length-1;else if(!ze||Qe||s0||Lt||at){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=N.length-1;continue}else if(m===!1){let Rt=this.__error(new Ot("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ze)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Rt!==void 0)return Rt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),Y+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let ze=this.__infoField(),at=Object.keys(xM).map(Qe=>xM[Qe].equals(this.state.field.toString())?Qe:!1).filter(Boolean)[0],Lt=this.__error(new Ot("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(ze.column)} at line ${ze.lines}, value is ${JSON.stringify(this.state.field.toString(p))}`,at?`(${at} bom)`:void 0],this.options,ze,{field:this.state.field}));if(Lt!==void 0)return Lt}}else{this.state.quoting=!0,Y+=N.length-1;continue}if(this.state.quoting===!1){let ze=this.__isRecordDelimiter(J,Z,Y);if(ze!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=ze-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=ze-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let Qe=this.__onField();if(Qe!==void 0)return Qe;this.info.bytes=this.state.bufBytesStart+Y+ze;let s0=this.__onRecord(i);if(s0!==void 0)return s0;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=ze-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,Z,Y,J)!==0){this.state.commenting=!0;continue}let at=this.__isDelimite
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[s+p])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(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var js=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=g4e(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Bt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Rs(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=js(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Rs(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,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 n=await cr("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return z4e.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 n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return XV.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,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return XV.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return O4e.default.compile(e,r)(n)}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 n=CE
More info: ${u.url}`);let h=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,m=!1;for(let z of a)if(z.remote||z.path.endsWith(p)&&z.content===l){c.push({title:A,message:d,file:z.path,startLine:h}),m=!0;break}m||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${A}`)}return c}};var w2=_(require("fs"),1),jV=_(require("path"),1);var zS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new e0,this.iidFilename=`build-iidfile-${Bt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Bt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([h])=>!r.has(h)),i=Bt.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||un.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Bt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ct.serverURL}/${un.repo.owner}/${un.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,l=e?.format;if(!l){if(l="fragment",s.length>0)l="query";else if(Bt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(l="query")}catch{}}let A=un.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof un.payload.pull_request?.head?.sha=="string"?un.payload.pull_request.head.sha:a);let d=u||A;if(l==="query"){let h=[`ref=${i||u?a:d}`],m=i?d:u;m&&h.push(`checksum=${m}`),p&&p!=="."&&h.push(`subdir=${p}`);for(let[z,C]of s)h.push(`${z}=${C}`);return`${c}?${h.join("&")}`}return`${c}#${d}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return jV.default.join(zt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(w2.default.existsSync(e))return w2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return jV.default.join(zt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!w2.default.existsSync(e))return;let r=w2.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!w2.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=zt.tmpName({tmpdir:zt.tmpDir()});return w2.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Rs(e);if(!r)return r;try{return VAe(e)?`builder-id=${Ct.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ct.workflowRunURL(!0)}`;let r=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ct.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?s=u[1]:u[0]==="ghtoken"&&(i=u[1])}return n==="gha"&&(s||(e=`${e},repository=${Ct.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExp
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=js(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=js(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Bt.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Ea(i),[s,i]}};var $V=_(require("fs"),1),C4e=_(require("path"),1);var OS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new e0,this.metadataFilename=`bake-metadata-${Bt.generateRandomString()}.json`}getMetadataFilePath(){return C4e.default.join(zt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!$V.default.existsSync(e))return;let r=$V.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!Bt.isValidRef(u)){i.push(u);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=u}}s&&n.push(s);for(let u of i)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await _e.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Bt.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=js(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.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"]);T(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let s=n[1].trim();if(s.startsWith("tag: "))return`refs/tags/${s.split(":")[1].trim()}`;if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let a=s.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=s.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await _e.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 i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[s]=n.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(s)return`refs/tags/${s}`;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]),[n]=r.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Txe=require("crypto"),jc=_(require("fs"),1),HA=_(require("path"),1);var PC=_(qE(),1),$c=_(Cve(),1),xxe=_(Lte(),1),Eg=_(Ixe(),1);var Q0e=_(qE(),1);var wxe=_(Ss(),1);var Rxe="application/vnd.oci.empty.v1+json";var Xp=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 _e.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailable error: ${r}`),!1));return T(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await _e.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 _e.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return T("Cosign.versionSatisfies false: undefined version"),!1;let s=wxe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return T(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===Q0e.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Rxe&&typeof p.digest=="string"&&(n=p.digest)}if(!s&&u&&u.mediaType===Q0e.BUNDLE_V03_MEDIA_TYPE&&(s=u),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var P0e=_(require("fs"),1);var DT=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new e0}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 n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=i.get(c);return u?u.platform?.os===s.os&&u.platform?.architecture===s.architecture&&(u.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=zt.tmpName({tmpdir:zt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&s.push(u);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await _e.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Sxe="application/vnd.in-toto+json";var Nxe="https://fulcio.sigstore.dev",vxe="https://rekor.sigstore.dev",Fxe="https://timestamp.sigstore.dev",Tf="https://search.sigstore.dev";var nXt="slsaprovenance1",XA=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Xp,this.imageTools=e?.imageTools||new DT}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${n.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await ur("Creating Sigstore protobuf signing config",async()=>{let a=zt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:zt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];s&&c.push("--no-default-rekor=true"),await _e.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),W(JSON.stringify(JSON.parse(jc.default.readFileSync(a,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${a}`)}):(i.push("--use-signing-config"),s&&i.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let p=`${a}@${u}`;await ur(`Signing attestation manifest ${p}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];W(`[command]${this.cosign.binPath} ${[...l,p].join(" ")}`);let A=await _e.getExecOutput(this.cosign.binPath,["--verbose",...l,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Xp.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(d.errors&&d.errors.length>0){let m=d.errors.map(z=>`- [${z.code}] ${z.message} : ${z.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${m}`)}else throw new Error(`Cosign sign command failed with: ${A.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,PC.bundleFromJSON)(d.bundle));h.tlogID&&W(`Uploaded to Rekor transparency log: ${Tf}?logIndex=${h.tlogID}`),W(`Signature manifest pushed: https://oci.dag.dev/?referrers=${p}`),r[p]={...h,imageName:a}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await ur(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});W(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,u=await this.verifyImageAttestation(c,r);W(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){W(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await _e.getExecOutput(this.cosign.binPath,["--verbose",...n,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(u=>u.length>0).pop()??"unknown error"}`);let c=Xp.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;W(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await _e.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=Xp.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))W(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${s}...
${p}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${n.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let i of Object.keys(s))await ur(`Signing ${i}`,async()=>{let a=s[i],c=HA.default.join(HA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){yt(`No subjects found in provenance ${i}, skip signing.`);return}let p=await t.signPayload({data:a,type:Sxe},n),l=t.parseBundle(p);W("Provenance blob signed for:");for(let A of u){let[d,h]=Object.entries(A.digest)[0]||[];W(` - ${A.name} (${d}:${h})`)}l.tlogID&&W(`Attestation signature uploaded to Rekor transparency log: ${Tf}?logIndex=${l.tlogID}`),W(`Writing Sigstore bundle to: ${c}`),jc.default.writeFileSync(c,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[i]={...l,bundlePath:c,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=HA.default.dirname(s);await ur(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=HA.default.join(a,c.name);W(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??nXt];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await _e.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);n[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){W("Verifying keyless verification bundle signature");let s=JSON.parse(jc.default.readFileSync(r,"utf-8")),i=(0,PC.bundleFromJSON)(s);W("Fetching Sigstore TUF trusted root metadata");let a=await xxe.getTrustedRoot(),c=(0,Eg.toTrustMaterial)(a);try{W("Verifying artifact signature");let u=(0,Eg.toSignedEntity)(i,jc.default.readFileSync(e)),p=t.parseCertificate(i),l=i.verificationMaterial.tlogEntries,A=l.length>0?l[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let m=p.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let h=new Eg.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return T(`Sigstore.verifyArtifact signer: ${JSON.stringify(h)}`),{payload:s,certificate:p.toString(),tlogID:A}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Nxe,rekorURL:e?void 0:vxe,tsaServerURL:Fxe}}static noTransparencyLog(e){return e??Ct.context.payload.repository?.private}static getProvenanceBlobs(e){let r=HA.default.join(e.localExportDir,"provenance.json");if(jc.default.existsSync(r))return{[r]:jc.default.readFileSync(r)};let n=jc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>jc.default.existsSync(HA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=
`)){let[p,...l]=u.split(":"),A=p.toLowerCase(),d=l.map(h=>h.trim()).join(":");if(p.length!=0)switch(!0){case A=="name":n=void 0,r.name==null?r.name=d:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:d});break;case A=="driver":n=void 0,r.driver=d;break;case A=="last activity":n=void 0,r.lastActivity=new Date(d);break;case A=="endpoint":n=void 0,s.endpoint=d;break;case A=="driver options":n=void 0,s["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(h=>h.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":n=void 0,s.status=d;break;case A=="buildkit daemon flags":case A=="flags":n=void 0,s["buildkitd-flags"]=d;break;case A=="buildkit version":case A=="buildkit":n=void 0,s.buildkit=d;break;case A=="platforms":{if(n=void 0,!d)break;let h=[];if(d.includes("*"))for(let m of d.split(", "))m.includes("*")&&h.push(m.replace(/\*/g,""));else h=d.split(", ");s.platforms=h.join(",");break}case A=="features":n="features",s.features={};break;case A=="labels":n="label",s.labels={};break;case A=="devices":n="devices",s.devices=s.devices||[];break;case A.startsWith("gc policy rule#"):n="gcpolicy",s.gcPolicy&&i&&(s.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):n="file",c=p.split("#")[1],s.files=s.files||{},s.files[c]="";break;default:switch(n&&n!=="devices"&&s.devices&&a&&(s.devices.push(a),a=void 0),n||""){case"features":{s.features=s.features||{},s.features[p.trim()]=!!d;break}case"label":{s.labels=s.labels||{},s.labels[p.trim()]=d;break}case"devices":{switch(A.trim()){case"name":{s.devices&&a&&s.devices.push(a),a={},a.name=d;break}case"on-demand":{a&&d&&(a.onDemand=d=="true");break}case"automatically allowed":{a&&d&&(a.autoAllow=d=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=d)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=d=="true";break}case"filters":{d&&(i.filter=d.split(","));break}case"keep duration":{i.keepDuration=d;break}case"keep bytes":{i.keepBytes=d;break}case"reserved space":{i.reservedSpace=d;break}case"max used space":{i.maxUsedSpace=d;break}case"min free space":{i.minFreeSpace=d;break}}break}case"file":{c&&s.files&&(s.files[c].length>0&&(s.files[c]+=`
`),s.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var _xe=_(Ss(),1);var IT=_(require("fs"),1);var RT=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!IT.default.existsSync(e))throw new Error(`config file ${e} not found`);e=IT.default.readFileSync(e,{encoding:"utf-8"})}let n=zt.tmpName({tmpdir:zt.tmpDir()});return IT.default.writeFileSync(n,e),n}};var wT=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new RT,this.buildx=e?.buildx||new e0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){yt(r)}return e.buildkit}async getVersionWithinImage(e){return T(`BuildKit.getVersionWithinImage nodeName: ${e}`),qr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${e0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return T(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),qr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new Cg({buildx:this.buildx}).inspect(e));for(let s of n.nodes){let i=s.buildkit;if(T(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(s.name||"")}catch{return T(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(T(`BuildKit.versionSatisfies ${s.name}: version ${i}`),n.driver=="docker"&&!i.endsWith("-moby")||!_xe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var ST=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await qr.isAvailable();return T(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await _e.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(T(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(T(`Compose.isAvailable error: ${n}`),!1));return T(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await _e.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await _e.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var jp=_(require("fs"),1),Jc=_(require("os"),1),Bg=_(require("path"),1);var vT=_(Ss(),1),U0e=_(require("util"),1);var NT=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);T(`Install.download version: ${n.version}`);let s=await t.getRelease(n,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);T(`Install.download vspec: ${i}`);let a=vT.clean(i)||"";if(!vT.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new _1({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:Bg.default.join(Jc.default.homedir(),".bin","docker-compose"),cacheFile:Jc.default.platform()=="win32"?"docker-compose.e
# 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 FT=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new e0,this.sigstore=e?.sigstore||new XA}async download(e){let r=await t.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);T(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);T(`Install.download vspec: ${s}`);let i=qg.clean(s)||"";if(!qg.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new _1({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Dg.default.join(ta.default.homedir(),".bin"),cacheFile:ta.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return W(`Cosign binary found in ${c}`),c;let u=G0e.format(r.downloadURL,s,this.filename());W(`Downloading ${u}`);let p=await Ei(u,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&qg.satisfies(s,">=3.0.1")&&await this.verifySignature(p,u);let l=await a.save(p,e.skipState);return W(`Cached to ${l}`),l}async build(e,r,n){let s=await this.vspec(e);T(`Install.build vspec: ${s}`);let i=new _1({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Dg.default.join(ta.default.homedir(),".bin"),cacheFile:ta.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return W(`Cosign binary found in ${a}`),a;let c=Dg.default.join(zt.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await _e.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(Wxe)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),l=await i.save(p,n);return W(`Cached to ${l}`),l}async install(e,r){r=r||zt.tmpDir();let n=Dg.default.join(r,"cosign-bin");kC.default.existsSync(n)||kC.default.mkdirSync(n,{recursive:!0});let s=ta.default.platform()=="win32"?"cosign.exe":"cosign",i=Dg.default.join(n,s);return kC.default.copyFileSync(e,i),W("Fixing perms"),kC.default.chmodSync(i,"0755"),Ca(n),W("Added Cosign to PATH"),W(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new e0({standalone:!0}).isAvailable(),s=await new e0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)T("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)T("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!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 e0({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;W(`Downloading keyless verification bundle at ${n}`);let s=await Ei(n,void 0,this.githubToken);T(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});W(`Cosign binary signature verified! ${i.tlogID?`${Tf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ta.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ta.default.arch();break}}let r=ta.default.platform()=="win32"?"windows":ta.default.platform(),n=ta.default.platform()=="win32"?".exe":"";return G0e.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Bt.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return W(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await ep.remoteS
`,sepLabels:Rs("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Rs("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Rs("bake-target")||"docker-metadata-action",githubToken:Rs("github-token")}}o(Pxe,"getInputs");async function kxe(t,e){switch(t){case"workflow":return await sXt(e);case"git":return await iXt();default:throw new Error(`Invalid context source: ${t}`)}}o(kxe,"getContext");async function sXt(t){let e=Ct.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await oXt(e.sha,t),...e}}o(sXt,"getContextFromWorkflow");async function iXt(){let t=await ep.context();return{commitDate:await ep.commitDate(t.sha),...t}}o(iXt,"getContextFromGit");async function oXt(t,e){let r=Ct.context.payload;if(r.commits){let n=r.commits.find(s=>s.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:Ct.context.repo.owner,repo:Ct.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return T(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}o(oXt,"getCommitDateFromWorkflow");var nl=_(kV(),1),WHe=_(require("fs"),1),LHe=_(require("path"),1),L4=_(jxe(),1),ci=_(RHe(),1),Vg=_(Ss(),1);var ut=class t extends Error{static{o(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let i of s)for(let a in i){let c=i[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var W4=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var Fx=o(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(W4(s)){if(typeof s.name!="string")throw new ut("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=s}else throw new ut("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${r}`])}return e},"normalize_columns_array");var dne=class{static{o(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},fne=dne;var wHe=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,s)=>{let i=Buffer.from(String.fromCharCode(s),t.encoding);return s!==63&&i.length===1&&i[0]===63||n.push(i),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Arra
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:l,from_line:A,ltrim:d,max_record_size:h,raw:m,relax_quotes:z,rtrim:C,skip_empty_lines:E,to:B,to_line:I}=this.options,{comment:w,escape:N,quote:x,record_delimiter:Q}=this.options,{bomSkipped:$,delimiterDiscovered:me,delimiterBufPrevious:De,rawBuffer:Z,escapeIsQuote:qe}=this.state;if(!me&&p){let ze;if(De===void 0?ze=n:De!==void 0&&n===void 0?ze=De:ze=Buffer.concat([De,n]),n=void 0,s||ze.length>p.size)this.options.delimiter=[Buffer.from(NHe(ze,this.options.delimiter_auto))],this.state.previousBuf=ze,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=ze;return}}let{previousBuf:Y}=this.state,J;if(Y===void 0)if(n===void 0){a();return}else J=n;else Y!==void 0&&n===void 0?J=Y:J=Buffer.concat([Y,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(J.length<3){if(s===!1){this.state.previousBuf=J;return}}else{for(let ze in Xg)if(Xg[ze].compare(J,0,Xg[ze].length)===0){let at=Xg[ze].length;this.state.bufBytesStart+=at,J=J.slice(at);let Lt=Hg({...this.original_options,encoding:ze});for(let Qe in Lt)this.options[Qe]=Lt[Qe];({comment:w,escape:N,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ne=J.length,re;for(re=0;re<Ne&&!this.__needMoreData(re,Ne,s);re++){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&&Q.length===0&&this.__autoDiscoverRecordDelimiter(J,re)&&(Q=this.options.record_delimiter);let ze=J[re];if(m===!0&&Z.append(ze),(ze===Yn0||ze===Jn0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(J,re,ze)&&re+N.length<Ne)if(qe){if(this.__isQuote(J,re+N.length)){this.state.escaping=!0,re+=N.length-1;continue}}else{this.state.escaping=!0,re+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(J,re))if(this.state.quoting===!0){let Qe=J[re+x.length],s0=C&&this.__isCharTrimable(J,re+x.length),Rt=w!==null&&this.__compareBytes(w,J,re+x.length,Qe),ce=this.__isDelimiter(J,re+x.length,Qe),ui=Q.length===0?this.__autoDiscoverRecordDelimiter(J,re+x.length):this.__isRecordDelimiter(Qe,J,re+x.length);if(N!==null&&this.__isEscape(J,re,ze)&&this.__isQuote(J,re+N.length))re+=N.length-1;else if(!Qe||ce||ui||Rt||s0){this.state.quoting=!1,this.state.wasQuoting=!0,re+=x.length-1;continue}else if(z===!1){let Sn=this.__error(new ut("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Qe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Sn!==void 0)return Sn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),re+=x.length-1}else if(this.state.field.length!==0){if(z===!1){let Qe=this.__infoField(),s0=Object.keys(Xg).map(ce=>Xg[ce].equals(this.state.field.toString())?ce:!1).filter(Boolean)[0],Rt=this.__error(new ut("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Qe.column)} at line ${Qe.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,s0?`(${s0} bom)`:void 0],this.options,Qe,{field:this.state.field}));if(Rt!==void 0)return Rt}}else{this.state.quoting=!0,re+=x.length-1;continue}if(this.state.quoting===!1){let Qe=this.__isRecordDelimiter(ze,J,re);if(Qe!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),re+=Qe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=Qe-1;continue}this.info.bytes=this.state.bufBytesStart+r
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[s+p])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(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Yf=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=Tx(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");function THe(t){let e=[];if(t.length==1){let r=!1,n=Yf(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let i=s.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return FHe(e)}e=[];for(let r of t){let n={name:"",enable:!0},s=Yf(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return FHe(e)}o(THe,"Transform");function FHe(t){Fd("Processing images input");for(let e of t)W(`name=${e.name},enable=${e.enable}`);return Td(),t}o(FHe,"output");var bne=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(bne||{}),xx=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(xx||{}),_x=(r=>(r.Short="short",r.Long="long",r))(_x||{}),hne=class{static{o(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},Zn0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function xHe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(es0(n));let r=e.sort((n,s)=>Number(n.attrs.priority)<Number(s.attrs.priority)?1:Number(n.attrs.priority)>Number(s.attrs.priority)?-1:0);Fd("Processing tags input");for(let n of r)W(n.toString());return Td(),r}o(xHe,"Transform");function es0(t){let e=Yf(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new hne;for(let n of e){let s=n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(s.length==1)r.attrs.value=s[0];else{let i=s[0].toLowerCase(),a=s[1];switch(i){case"type":{if(!Object.values(bne).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[i]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProp
/*! 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 12:36:07 +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.
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
moment-timezone/moment-timezone.js:
(*! moment-timezone.js *)
2026-05-28 08:28:29 +00:00
(*! version : 0.6.2 *)
(*! Copyright (c) JS Foundation and other contributors *)
(*! license : MIT *)
(*! github.com/moment/moment-timezone *)
xregexp/lib/xregexp.js:
(*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*)
xregexp/lib/addons/build.js:
(*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*)
xregexp/lib/addons/matchrecursive.js:
(*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*)
xregexp/lib/addons/unicode-base.js:
(*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*)
xregexp/lib/addons/unicode-blocks.js:
(*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-categories.js:
(*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-properties.js:
(*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-scripts.js:
(*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
@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