Merge pull request #465 from docker/dependabot/npm_and_yarn/undici-6.27.0

chore(deps): Bump undici from 6.24.1 to 6.27.0
This commit is contained in:
CrazyMax authored and GitHub committed 2026-07-01 16:38:06 +02:00
commit 539a713879
4 files changed
+160 -167

No files matched your search

Generated Vendored
+152 -152
View File
@@ -1,83 +1,83 @@
var Bst=Object.create;var Q1=Object.defineProperty;var vst=Object.getOwnPropertyDescriptor;var _st=Object.getOwnPropertyNames;var xst=Object.getPrototypeOf,Rst=Object.prototype.hasOwnProperty;var o=(t,e)=>Q1(t,"name",{value:e,configurable:!0});var Tst=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),pme=(t,e)=>{for(var r in e)Q1(t,r,{get:e[r],enumerable:!0})},Nst=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _st(e))!Rst.call(t,n)&&n!==r&&Q1(t,n,{get:()=>e[n],enumerable:!(i=vst(e,n))||i.enumerable});return t};var U=(t,e,r)=>(r=t!=null?Bst(xst(t)):{},Nst(e||!t||!t.__esModule?Q1(r,"default",{value:t,enumerable:!0}):r,t));var wme=m(ab=>{"use strict";var bSr=require("net"),Lst=require("tls"),VH=require("http"),yme=require("https"),Mst=require("events"),wSr=require("assert"),Fst=require("util");ab.httpOverHttp=Ust;ab.httpsOverHttp=qst;ab.httpOverHttps=Gst;ab.httpsOverHttps=Hst;function Ust(t){var e=new Id(t);return e.request=VH.request,e}o(Ust,"httpOverHttp");function qst(t){var e=new Id(t);return e.request=VH.request,e.createSocket=Eme,e.defaultPort=443,e}o(qst,"httpsOverHttp");function Gst(t){var e=new Id(t);return e.request=yme.request,e}o(Gst,"httpOverHttps");function Hst(t){var e=new Id(t);return e.request=yme.request,e.createSocket=Eme,e.defaultPort=443,e}o(Hst,"httpsOverHttps");function Id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||VH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(i,n,s,a){for(var c=bme(n,s,a),u=0,l=e.requests.length;u<l;++u){var f=e.requests[u];if(f.host===c.host&&f.port===c.port){e.requests.splice(u,1),f.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)},"onFree"))}o(Id,"TunnelingAgent");Fst.inherits(Id,Mst.EventEmitter);Id.prototype.addRequest=o(function(e,r,i,n){var s=this,a=jH({request:e},s.options,bme(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",l),c.on("agentRemove",l),e.onSocket(c);function u(){s.emit("free",c,a)}o(u,"onFree");function l(f){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",l),c.removeListener("agentRemove",l)}o(l,"onCloseOrRemove")})},"addRequest");Id.prototype.createSocket=o(function(e,r){var i=this,n={};i.sockets.push(n);var s=jH({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Sm("making CONNECT request");var a=i.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",l),a.once("error",f),a.end();function c(h){h.upgrade=!0}o(c,"onResponse");function u(h,d,p){process.nextTick(function(){l(h,d,p)})}o(u,"onUpgrade");function l(h,d,p){if(a.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Sm("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var A=new Error("tunneling socket could not be established, statusCode="+h.statusCode);A.code="ECONNRESET",e.request.emit("error",A),i.removeSocket(n);return}if(p.length>0){Sm("got illegal response body from proxy"),d.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),i.removeSocket(n);return}return Sm("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=d,r(d)}o(l,"onConnect");function f(h){a.removeAllListeners(),Sm(`tunneling socket could not be established, cause=%s
`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",e.request.emit("error",d),i.removeSocket(n)}o(f,"onError")},"createSocket");Id.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}},"removeSocket");function Eme(t,e){var r=this;Id.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=jH({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),a=Lst.connect(0,s);r.sockets[r.sockets.indexOf(i)]=a,e(a)})}o(Eme,"createSecureSocket");function bme(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(bme,"toOptions");function jH(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,a=n.length;s<a;++s){var c=n[s];i[c]!==void 0&&(t[c]=i[c])}}return t}o(jH,"mergeOptions");var Sm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Sm=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"):Sm=o(function(){},"debug");ab.debug=Sm});var cb=m((SSr,Cme)=>{Cme.exports=wme()});var Yr=m((BSr,Ime)=>{Ime.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 sr=m((vSr,Wme)=>{"use strict";var Sme=Symbol.for("undici.error.UND_ERR"),Kr=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[Sme]===!0}[Sme]=!0},Bme=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),$H=class extends Kr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Bme]===!0}[Bme]=!0},vme=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),WH=class extends Kr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[vme]===!0}[vme]=!0},_me=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),JH=class extends Kr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[_me]===!0}[_me]=!0},xme=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),YH=class extends Kr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(age,"isValidHeaderValue");function sct(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let a=i[s-1].trim();if(Hat.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(sct,"setRequestReferrerPolicyOnRedirect");function oct(){return"allowed"}o(oct,"crossOriginResourcePolicyCheck");function act(){return"success"}o(act,"corsCheck");function cct(){return"success"}o(cct,"TAOCheck");function uct(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(uct,"appendFetchMetadata");function lct(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&&G6(t.origin)&&!G6(sv(t))&&(e=null);break;case"same-origin":aD(t,sv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(lct,"appendRequestOriginHeader");function yb(t,e){return t}o(yb,"coarsenTime");function fct(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:yb(t.domainLookupStartTime,r),domainLookupEndTime:yb(t.domainLookupEndTime,r),connectionStartTime:yb(t.connectionStartTime,r),connectionEndTime:yb(t.connectionEndTime,r),secureConnectionStartTime:yb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(fct,"clampAndCoarsenConnectionTimingInfo");function hct(t){return yb(Wat.now(),t)}o(hct,"coarsenedSharedCurrentTime");function dct(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(dct,"createOpaqueTimingInfo");function cge(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(cge,"makePolicyContainer");function pct(t){return{referrerPolicy:t.referrerPolicy}}o(pct,"clonePolicyContainer");function mct(t){let e=t.referrerPolicy;Wg(e);let r=null;if(t.referrer==="client"){let c=rge();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let i=q6(r),n=q6(r,!0);i.toString().length>4096&&(i=n);let s=aD(t,i),a=nv(i)&&!nv(t.url);switch(e){case"origin":return n??q6(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let c=sv(t);return aD(i,c)?i:nv(i)&&!nv(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(mct,"determineRequestsReferrer");function q6(t,e){return Wg(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(q6,"stripURLForReferrer");function nv(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}o(nv,"isURLPotentiallyTrustworthy");function Act(t,e){if(oD===void 0)return!0;let r=uge(e);if(r==="no metadata"||r.length===0)return!0;let i=yct(r),n=Ect(r,i);for(let s of n){let a=s.algo,c=s.hash,u=oD.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)),bct(u,c))return!0}return!1}o(Act,"bytesMatch");var gct=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function uge(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=gct.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();nge.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}o(uge,"parseMetadata");function yct(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}o(yct,"getStrongestMetadata");function Ect(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}o(Ect,"filterMetadataListByAlgorithm");function bct(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(bct,"compareBase64Mixed");function wct(t){}o(wct,"tryUpgr Line truncated
`);function iut(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(iut,"isAsciiString");function nut(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}o(nut,"validateBoundary");function sut(t,e){uD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.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(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&lD(t,tut,s)||s.position===t.length-4&&lD(t,rut,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=out(t,s);if(c==="failure")return"failure";let{name:u,filename:l,contentType:f,encoding:h}=c;s.position+=2;let d;{let A=t.indexOf(i.subarray(2),s.position);if(A===-1)return"failure";d=t.subarray(s.position,A-4),s.position+=d.length,h==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;l!==null?(f??="text/plain",iut(f)||(f=""),p=new Zct([d],l,{type:f})):p=Wct(Buffer.from(d)),uD(Cge(u)),uD(typeof p=="string"&&Cge(p)||Yct(p)),n.push(Kct(u,p,l))}}o(sut,"multipartFormDataParser");function out(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let a=bb(c=>c!==10&&c!==13&&c!==58,t,e);if(a=J6(a,!0,!0,c=>c===9||c===32),!Jct.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,bb(c=>c===32||c===9,t,e),$ct(a)){case"content-disposition":{if(r=i=null,!lD(t,eut,e)||(e.position+=17,r=Bge(t,e),r===null))return"failure";if(lD(t,Sge,e)){let c=e.position+Sge.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,i=Bge(t,e),i===null))return"failure"}break}case"content-type":{let c=bb(u=>u!==10&&u!==13,t,e);c=J6(c,!1,!0,u=>u===9||u===32),n=Ige(c);break}case"content-transfer-encoding":{let c=bb(u=>u!==10&&u!==13,t,e);c=J6(c,!1,!0,u=>u===9||u===32),s=Ige(c);break}default:bb(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(out,"parseMultipartFormDataHeaders");function Bge(t,e){uD(t[e.position-1]===34);let r=bb(i=>i!==10&&i!==13&&i!==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(Bge,"parseMultipartFormDataName");function bb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}o(bb,"collectASequenceOfBytes");function J6(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}o(J6,"removeChars");function lD(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}o(lD,"bufferStartsWith");vge.exports={multipartFormDataParser:sut,validateBoundary:nut}});var Ib=m((hBr,Lge)=>{"use strict";var cv=Dt(),{ReadableStreamFrom:aut,isBlobLike:xge,isReadableStreamLike:cut,readableStreamClose:uut,createDeferredPromise:lut,fullyReadBody:fut,extractMimeType:hut,utf8DecodeBytes:Nge}=Ja(),{FormData:Rge}=av(),{kState:Cb}=Bm(),{webidl:dut}=bs(),{Blob:put}=require("node:buffer"),Y6=require("node:assert"),{isErrored:Dge,isDisturbed:mut}=require("node:stream"),{isArrayBuffer:Aut}=require("node:util/types"),{serializeAMimeType:gut}=da(),{multipartFormDataParser:yut}=_ge(),K6;try{let t=require("node:crypto");K6=o(e=>t.randomInt(0,e),"random")}catch{K6=o(t=>Math.floor(Math.random(t)),"random")}var fD=new TextEncoder;function Eut(){}o(Eut,"noop");var Oge=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pge;Oge&&(Pge=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!mut(e)&&!Dge(e)&&e.cancel("Response object has been garbage collected").catch(Eut)}));function kge(t,e=!1){let r=null;t instanceof ReadableStream?r=t:xge(t)?r=t.stream():r=new ReadableStream({async pull(u){let l=typeof n=="string"?fD.encode(n):n;l.byteLength&&u.enqueue(l),queueMicrotask(()=>uut(u))},start(){},type:"bytes"}),Y6(cut(r));let i=null,n=null,s=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Aut(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(cv.isFormDataLike(t)){let u=`----formdata-undici-0${`${K6(1e11)}`.padStart(11,"0")}`,l=`--${u}\r
var Lst=Object.create;var U1=Object.defineProperty;var Mst=Object.getOwnPropertyDescriptor;var Fst=Object.getOwnPropertyNames;var Ust=Object.getPrototypeOf,qst=Object.prototype.hasOwnProperty;var o=(t,e)=>U1(t,"name",{value:e,configurable:!0});var Gst=(t,e)=>()=>(t&&(e=t(t=0)),e);var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wme=(t,e)=>{for(var r in e)U1(t,r,{get:e[r],enumerable:!0})},Hst=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Fst(e))!qst.call(t,n)&&n!==r&&U1(t,n,{get:()=>e[n],enumerable:!(i=Mst(e,n))||i.enumerable});return t};var U=(t,e,r)=>(r=t!=null?Lst(Ust(t)):{},Hst(e||!t||!t.__esModule?U1(r,"default",{value:t,enumerable:!0}):r,t));var xme=m(lb=>{"use strict";var _Sr=require("net"),Jst=require("tls"),JH=require("http"),Bme=require("https"),Yst=require("events"),xSr=require("assert"),Kst=require("util");lb.httpOverHttp=Xst;lb.httpsOverHttp=Zst;lb.httpOverHttps=eot;lb.httpsOverHttps=tot;function Xst(t){var e=new Id(t);return e.request=JH.request,e}o(Xst,"httpOverHttp");function Zst(t){var e=new Id(t);return e.request=JH.request,e.createSocket=vme,e.defaultPort=443,e}o(Zst,"httpsOverHttp");function eot(t){var e=new Id(t);return e.request=Bme.request,e}o(eot,"httpOverHttps");function tot(t){var e=new Id(t);return e.request=Bme.request,e.createSocket=vme,e.defaultPort=443,e}o(tot,"httpsOverHttps");function Id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||JH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(i,n,s,a){for(var c=_me(n,s,a),u=0,l=e.requests.length;u<l;++u){var f=e.requests[u];if(f.host===c.host&&f.port===c.port){e.requests.splice(u,1),f.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)},"onFree"))}o(Id,"TunnelingAgent");Kst.inherits(Id,Yst.EventEmitter);Id.prototype.addRequest=o(function(e,r,i,n){var s=this,a=YH({request:e},s.options,_me(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",l),c.on("agentRemove",l),e.onSocket(c);function u(){s.emit("free",c,a)}o(u,"onFree");function l(f){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",l),c.removeListener("agentRemove",l)}o(l,"onCloseOrRemove")})},"addRequest");Id.prototype.createSocket=o(function(e,r){var i=this,n={};i.sockets.push(n);var s=YH({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Bm("making CONNECT request");var a=i.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",l),a.once("error",f),a.end();function c(h){h.upgrade=!0}o(c,"onResponse");function u(h,d,p){process.nextTick(function(){l(h,d,p)})}o(u,"onUpgrade");function l(h,d,p){if(a.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Bm("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var A=new Error("tunneling socket could not be established, statusCode="+h.statusCode);A.code="ECONNRESET",e.request.emit("error",A),i.removeSocket(n);return}if(p.length>0){Bm("got illegal response body from proxy"),d.destroy();var A=new Error("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),i.removeSocket(n);return}return Bm("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=d,r(d)}o(l,"onConnect");function f(h){a.removeAllListeners(),Bm(`tunneling socket could not be established, cause=%s
`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",e.request.emit("error",d),i.removeSocket(n)}o(f,"onError")},"createSocket");Id.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}},"removeSocket");function vme(t,e){var r=this;Id.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=YH({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),a=Jst.connect(0,s);r.sockets[r.sockets.indexOf(i)]=a,e(a)})}o(vme,"createSecureSocket");function _me(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(_me,"toOptions");function YH(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,a=n.length;s<a;++s){var c=n[s];i[c]!==void 0&&(t[c]=i[c])}}return t}o(YH,"mergeOptions");var Bm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Bm=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"):Bm=o(function(){},"debug");lb.debug=Bm});var fb=m((NSr,Rme)=>{Rme.exports=xme()});var Kr=m((DSr,Tme)=>{Tme.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 rr=m((OSr,tAe)=>{"use strict";var Nme=Symbol.for("undici.error.UND_ERR"),Xr=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[Nme]===!0}[Nme]=!0},Dme=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),KH=class extends Xr{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Dme]===!0}[Dme]=!0},Ome=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),XH=class extends Xr{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Ome]===!0}[Ome]=!0},Pme=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),ZH=class extends Xr{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[Pme]===!0}[Pme]=!0},kme=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),e6=class extends Xr{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(pge,"isValidHeaderValue");function gct(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let a=i[s-1].trim();if(tct.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(gct,"setRequestReferrerPolicyOnRedirect");function yct(){return"allowed"}o(yct,"crossOriginResourcePolicyCheck");function Ect(){return"success"}o(Ect,"corsCheck");function bct(){return"success"}o(bct,"TAOCheck");function wct(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(wct,"appendFetchMetadata");function Cct(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&&$6(t.origin)&&!$6(cv(t))&&(e=null);break;case"same-origin":fD(t,cv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Cct,"appendRequestOriginHeader");function wb(t,e){return t}o(wb,"coarsenTime");function Ict(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:wb(t.domainLookupStartTime,r),domainLookupEndTime:wb(t.domainLookupEndTime,r),connectionStartTime:wb(t.connectionStartTime,r),connectionEndTime:wb(t.connectionEndTime,r),secureConnectionStartTime:wb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Ict,"clampAndCoarsenConnectionTimingInfo");function Sct(t){return wb(oct.now(),t)}o(Sct,"coarsenedSharedCurrentTime");function Bct(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(Bct,"createOpaqueTimingInfo");function mge(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(mge,"makePolicyContainer");function vct(t){return{referrerPolicy:t.referrerPolicy}}o(vct,"clonePolicyContainer");function _ct(t){let e=t.referrerPolicy;Wg(e);let r=null;if(t.referrer==="client"){let c=uge();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let i=j6(r),n=j6(r,!0);i.toString().length>4096&&(i=n);let s=fD(t,i),a=av(i)&&!av(t.url);switch(e){case"origin":return n??j6(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let c=cv(t);return fD(i,c)?i:av(i)&&!av(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(_ct,"determineRequestsReferrer");function j6(t,e){return Wg(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(j6,"stripURLForReferrer");function av(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}o(av,"isURLPotentiallyTrustworthy");function xct(t,e){if(lD===void 0)return!0;let r=Age(e);if(r==="no metadata"||r.length===0)return!0;let i=Tct(r),n=Nct(r,i);for(let s of n){let a=s.algo,c=s.hash,u=lD.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)),Dct(u,c))return!0}return!1}o(xct,"bytesMatch");var Rct=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Age(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=Rct.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();fge.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}o(Age,"parseMetadata");function Tct(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}o(Tct,"getStrongestMetadata");function Nct(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}o(Nct,"filterMetadataListByAlgorithm");function Dct(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(Dct,"compareBase64Mixed");function Oct(t){}o(Oct,"tryUpgr Line truncated
`);function mut(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(mut,"isAsciiString");function Aut(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}o(Aut,"validateBoundary");function gut(t,e){dD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.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(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&pD(t,dut,s)||s.position===t.length-4&&pD(t,put,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=yut(t,s);if(c==="failure")return"failure";let{name:u,filename:l,contentType:f,encoding:h}=c;s.position+=2;let d;{let A=t.indexOf(i.subarray(2),s.position);if(A===-1)return"failure";d=t.subarray(s.position,A-4),s.position+=d.length,h==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;l!==null?(f??="text/plain",mut(f)||(f=""),p=new fut([d],l,{type:f})):p=out(Buffer.from(d)),dD(Rge(u)),dD(typeof p=="string"&&Rge(p)||cut(p)),n.push(uut(u,p,l))}}o(gut,"multipartFormDataParser");function yut(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let a=Ib(c=>c!==10&&c!==13&&c!==58,t,e);if(a=ez(a,!0,!0,c=>c===9||c===32),!aut.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ib(c=>c===32||c===9,t,e),sut(a)){case"content-disposition":{if(r=i=null,!pD(t,hut,e)||(e.position+=17,r=Dge(t,e),r===null))return"failure";if(pD(t,Nge,e)){let c=e.position+Nge.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,i=Dge(t,e),i===null))return"failure"}break}case"content-type":{let c=Ib(u=>u!==10&&u!==13,t,e);c=ez(c,!1,!0,u=>u===9||u===32),n=Tge(c);break}case"content-transfer-encoding":{let c=Ib(u=>u!==10&&u!==13,t,e);c=ez(c,!1,!0,u=>u===9||u===32),s=Tge(c);break}default:Ib(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(yut,"parseMultipartFormDataHeaders");function Dge(t,e){dD(t[e.position-1]===34);let r=Ib(i=>i!==10&&i!==13&&i!==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(Dge,"parseMultipartFormDataName");function Ib(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}o(Ib,"collectASequenceOfBytes");function ez(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}o(ez,"removeChars");function pD(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}o(pD,"bufferStartsWith");Oge.exports={multipartFormDataParser:gut,validateBoundary:Aut}});var vb=m((EBr,zge)=>{"use strict";var fv=Dt(),{ReadableStreamFrom:Eut,isBlobLike:kge,isReadableStreamLike:but,readableStreamClose:wut,createDeferredPromise:Cut,fullyReadBody:Iut,extractMimeType:Sut,utf8DecodeBytes:Mge}=Ya(),{FormData:Qge}=lv(),{kState:Bb}=vm(),{webidl:But}=ws(),{Blob:vut}=require("node:buffer"),tz=require("node:assert"),{isErrored:Fge,isDisturbed:_ut}=require("node:stream"),{isArrayBuffer:xut}=require("node:util/types"),{serializeAMimeType:Rut}=pa(),{multipartFormDataParser:Tut}=Pge(),rz;try{let t=require("node:crypto");rz=o(e=>t.randomInt(0,e),"random")}catch{rz=o(t=>Math.floor(Math.random(t)),"random")}var mD=new TextEncoder;function Nut(){}o(Nut,"noop");var Uge=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,qge;Uge&&(qge=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!_ut(e)&&!Fge(e)&&e.cancel("Response object has been garbage collected").catch(Nut)}));function Gge(t,e=!1){let r=null;t instanceof ReadableStream?r=t:kge(t)?r=t.stream():r=new ReadableStream({async pull(u){let l=typeof n=="string"?mD.encode(n):n;l.byteLength&&u.enqueue(l),queueMicrotask(()=>wut(u))},start(){},type:"bytes"}),tz(but(r));let i=null,n=null,s=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(xut(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(fv.isFormDataLike(t)){let u=`----formdata-undici-0${`${rz(1e11)}`.padStart(11,"0")}`,l=`--${u}\r
Content-Disposition: form-data`;let f=o(b=>b.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),h=o(b=>b.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),d=[],p=new Uint8Array([13,10]);s=0;let A=!1;for(let[b,E]of t)if(typeof E=="string"){let w=fD.encode(l+`; name="${f(h(b))}"\r
`),"normalizeLinefeeds"),d=[],p=new Uint8Array([13,10]);s=0;let A=!1;for(let[b,E]of t)if(typeof E=="string"){let w=mD.encode(l+`; name="${f(h(b))}"\r
\r
${h(E)}\r
`);d.push(w),s+=w.byteLength}else{let w=fD.encode(`${l}; name="${f(h(b))}"`+(E.name?`; filename="${f(E.name)}"`:"")+`\r
`);d.push(w),s+=w.byteLength}else{let w=mD.encode(`${l}; name="${f(h(b))}"`+(E.name?`; filename="${f(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(w,E,p),typeof E.size=="number"?s+=w.byteLength+E.size+p.byteLength:A=!0}let y=fD.encode(`--${u}--\r
`);d.push(y),s+=y.byteLength,A&&(s=null),n=t,i=o(async function*(){for(let b of d)b.stream?yield*b.stream():yield b},"action"),a=`multipart/form-data; boundary=${u}`}else if(xge(t))n=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(cv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:aut(t)}if((typeof n=="string"||cv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let u;r=new ReadableStream({async start(){u=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:f,done:h}=await u.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!Dge(r)){let d=new Uint8Array(f);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await u.return()},type:"bytes"})}return[{stream:r,source:n,length:s},a]}o(kge,"extractBody");function but(t,e=!1){return t instanceof ReadableStream&&(Y6(!cv.isDisturbed(t),"The body has already been consumed."),Y6(!t.locked,"The stream is locked.")),kge(t,e)}o(but,"safelyExtractBody");function wut(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}o(wut,"cloneBody");function Cut(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Cut,"throwIfAborted");function Iut(t){return{blob(){return wb(this,r=>{let i=Tge(this);return i===null?i="":i&&(i=gut(i)),new put([r],{type:i})},t)},arrayBuffer(){return wb(this,r=>new Uint8Array(r).buffer,t)},text(){return wb(this,Nge,t)},json(){return wb(this,But,t)},formData(){return wb(this,r=>{let i=Tge(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=yut(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Rge;return s[Cb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new Rge;for(let[a,c]of n)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return wb(this,r=>new Uint8Array(r),t)}}}o(Iut,"bodyMixinMethods");function Sut(t){Object.assign(t.prototype,Iut(t))}o(Sut,"mixinBody");async function wb(t,e,r){if(dut.brandCheck(t,r),Qge(t))throw new TypeError("Body is unusable: Body has already been read");Cut(t[Cb]);let i=lut(),n=o(a=>i.reject(a),"errorSteps"),s=o(a=>{try{i.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[Cb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await fut(t[Cb].body,s,n),i.promise)}o(wb,"consumeBody");function Qge(t){let e=t[Cb].body;return e!=null&&(e.stream.locked||cv.isDisturbed(e.stream))}o(Qge,"bodyUnusable");function But(t){return JSON.parse(Nge(t))}o(But,"parseJSONFromBytes");function Tge(t){let e=t[Cb].headersList,r=hut(e);return r==="failure"?null:r}o(Tge,"bodyMimeType");Lge.exports={extractBody:kge,safelyExtractBody:but,cloneBody:wut,mixinBody:Sut,streamRegistry:Pge,hasFinalizationRegistry:Oge,bodyUnusable:Qge}});var Wge=m((pBr,$ge)=>{"use strict";var it=require("node:assert"),ft=Dt(),{channels:Mge}=lb(),X6=O6(),{RequestContentLengthMismatchError:Jg,ResponseContentLengthMismatchError:vut,RequestAbortedError:zge,HeadersTimeoutError:_ut,HeadersOverflowError:xut,SocketError:gD,InformationalError:Sb,BodyTimeoutError:Rut,HTTPParserError:Tut,ResponseExceededMaxSizeError:Nut}=sr(),{kUrl:Vge,kReset:pa,kClient:rz,kParser:mi,kBlocking:fv,kRunning:qs,kPending:Dut,kSize:Fge,kWriting:_m,kQueue:ml,kNoRef:uv,kKeepAliveDefaultTimeout:Out,kHostHeader:Put,kPendingIdx:kut,kRunningIdx:Jc,kError:Yc,kPipelining:mD,kSocket:Bb,kKeepAliveTimeoutValue:yD,kMaxHeadersSize:Z6,kKeepAliveMaxTimeout:Qut,kKeepAliveTimeoutThreshold:Lut,kHeadersTimeout:Mut,kBodyTimeout:Fut,kStrictContentLength:iz,kMaxRequests:Uge,kCounter:Uut,kMaxResponseSize:qut,kOnError:Gut,kResume:vm,kHTTPContext:jge}=Yr(),mf=PAe(),Hut=Buffer.alloc(0),hD=Buffer[Symbol.species],dD=ft.addListener,zut=ft.removeAllListeners,ez;async function Vut(){let t=process.env.JEST_WORKER_ID?Q6():void 0,e;try{e=await WebAssembly.compile(LAe())}catch{e=await WebAssembly.compile(t||Q6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,i,n)=>0,"wasm_on_url"),wasm_on_status:o((r,i,n)=>{it(gn.ptr===r);let s=i-gf+Af.byteOffset;return gn.onStatus(new hD(Af.buffer,s,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(it(gn.ptr===r),gn.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,i,n)=>{it(gn.ptr===r);let s=i-gf+Af.byteOffset;return gn.onHeaderField(new hD(Af.buffer,s,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,i,n)=>{it(gn.ptr===r);let s=i-gf+Af.byteOffset;return gn.onHeaderValue(new hD(Af.buffer,s,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,i,n,s)=>(it(gn.ptr===r),gn.onHeadersComplete(i,!!n,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,i,n)=>{it(gn.ptr===r);let s=i-gf+Af.byteOffset;return gn.onBody(new hD(Af.buffer,s,n))||0},"wasm_on_body"),wasm_on_message_complete:o(r=>(it(gn. Line truncated
`);d.push(w,E,p),typeof E.size=="number"?s+=w.byteLength+E.size+p.byteLength:A=!0}let y=mD.encode(`--${u}--\r
`);d.push(y),s+=y.byteLength,A&&(s=null),n=t,i=o(async function*(){for(let b of d)b.stream?yield*b.stream():yield b},"action"),a=`multipart/form-data; boundary=${u}`}else if(kge(t))n=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(fv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Eut(t)}if((typeof n=="string"||fv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let u;r=new ReadableStream({async start(){u=i(t)[Symbol.asyncIterator]()},async pull(l){let{value:f,done:h}=await u.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!Fge(r)){let d=new Uint8Array(f);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await u.return()},type:"bytes"})}return[{stream:r,source:n,length:s},a]}o(Gge,"extractBody");function Dut(t,e=!1){return t instanceof ReadableStream&&(tz(!fv.isDisturbed(t),"The body has already been consumed."),tz(!t.locked,"The stream is locked.")),Gge(t,e)}o(Dut,"safelyExtractBody");function Out(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}o(Out,"cloneBody");function Put(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Put,"throwIfAborted");function kut(t){return{blob(){return Sb(this,r=>{let i=Lge(this);return i===null?i="":i&&(i=Rut(i)),new vut([r],{type:i})},t)},arrayBuffer(){return Sb(this,r=>new Uint8Array(r).buffer,t)},text(){return Sb(this,Mge,t)},json(){return Sb(this,Lut,t)},formData(){return Sb(this,r=>{let i=Lge(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=Tut(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Qge;return s[Bb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new Qge;for(let[a,c]of n)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Sb(this,r=>new Uint8Array(r),t)}}}o(kut,"bodyMixinMethods");function Qut(t){Object.assign(t.prototype,kut(t))}o(Qut,"mixinBody");async function Sb(t,e,r){if(But.brandCheck(t,r),Hge(t))throw new TypeError("Body is unusable: Body has already been read");Put(t[Bb]);let i=Cut(),n=o(a=>i.reject(a),"errorSteps"),s=o(a=>{try{i.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[Bb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await Iut(t[Bb].body,s,n),i.promise)}o(Sb,"consumeBody");function Hge(t){let e=t[Bb].body;return e!=null&&(e.stream.locked||fv.isDisturbed(e.stream))}o(Hge,"bodyUnusable");function Lut(t){return JSON.parse(Mge(t))}o(Lut,"parseJSONFromBytes");function Lge(t){let e=t[Bb].headersList,r=Sut(e);return r==="failure"?null:r}o(Lge,"bodyMimeType");zge.exports={extractBody:Gge,safelyExtractBody:Dut,cloneBody:Out,mixinBody:Qut,streamRegistry:qge,hasFinalizationRegistry:Uge,bodyUnusable:Hge}});var oye=m((wBr,sye)=>{"use strict";var Ye=require("node:assert"),nt=Dt(),{channels:Vge}=db(),iz=M6(),{RequestContentLengthMismatchError:Jg,ResponseContentLengthMismatchError:jge,RequestAbortedError:eye,HeadersTimeoutError:Mut,HeadersOverflowError:Fut,SocketError:_b,InformationalError:xb,BodyTimeoutError:Uut,HTTPParserError:qut,ResponseExceededMaxSizeError:Gut}=rr(),{kUrl:tye,kReset:ma,kClient:ED,kParser:Mr,kBlocking:pv,kRunning:on,kPending:rye,kSize:$ge,kWriting:_m,kQueue:Al,kNoRef:hv,kKeepAliveDefaultTimeout:Hut,kHostHeader:zut,kPendingIdx:Vut,kRunningIdx:Kc,kError:Co,kPipelining:bD,kSocket:Kg,kKeepAliveTimeoutValue:CD,kMaxHeadersSize:nz,kKeepAliveMaxTimeout:jut,kKeepAliveTimeoutThreshold:$ut,kHeadersTimeout:Wut,kBodyTimeout:Jut,kStrictContentLength:az,kMaxRequests:Wge,kCounter:Yut,kMaxResponseSize:Kut,kOnError:Jge,kResume:Rd,kHTTPContext:iye}=Kr(),Ka=qAe(),Yge=Buffer.alloc(0),AD=Buffer[Symbol.species],gD=nt.addListener,Xut=nt.removeAllListeners,Xg=Symbol("kIdleSocketValidation"),Yg=Symbol("kIdleSocketValidationTimeout"),fz=Symbol("kSocketUsed"),sz;async function Zut(){let t=process.env.JEST_WORKER_ID?q6():void 0,e;try{e=await WebAssembly.compile(zAe())}catch{e=await WebAssembly.compile(t||q6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,i,n)=>0,"wasm_on_url"),wasm_on_status:o((r,i,n)=>{Ye(Ai.ptr===r);let s=i-gf+Af.byteOffset;return Ai.onStatus(new AD(Af.buffer,s,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(Ye(Ai.ptr===r),Ai.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,i,n)=>{Ye(Ai.ptr===r);let s=i-gf+Af.byteOffset;return Ai.onHeaderField(new AD(Af.buffer,s,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,i,n)=>{Ye(Ai.ptr===r);let s=i-gf+Af.byteOffset;return Ai.onHeaderValue(new AD(Af.buffer,s,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,i,n,s)=>(Ye(Ai.ptr===r),Ai.onHeadersComplete(i,!!n,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,i,n)=>{Ye(Ai.ptr===r);let s=i-gf+Af.byteOf Line truncated
`;if(typeof n=="string"?y+=`host: ${n}\r
`:y+=t[Put],s?y+=`connection: upgrade\r
`:y+=t[zut],s?y+=`connection: upgrade\r
upgrade: ${s}\r
`:t[mD]&&!p[pa]?y+=`connection: keep-alive\r
`:t[bD]&&!p[ma]?y+=`connection: keep-alive\r
`:y+=`connection: close\r
`,Array.isArray(l))for(let b=0;b<l.length;b+=2){let E=l[b+0],w=l[b+1];if(Array.isArray(w))for(let B=0;B<w.length;B++)y+=`${E}: ${w[B]}\r
`;else y+=`${E}: ${w}\r
`}return Mge.sendHeaders.hasSubscribers&&Mge.sendHeaders.publish({request:e,headers:y,socket:p}),!u||d===0?Gge(A,null,t,e,p,f,y,h):ft.isBuffer(u)?Gge(A,u,t,e,p,f,y,h):ft.isBlobLike(u)?typeof u.stream=="function"?Hge(A,u.stream(),t,e,p,f,y,h):Xut(A,u,t,e,p,f,y,h):ft.isStream(u)?Kut(A,u,t,e,p,f,y,h):ft.isIterable(u)?Hge(A,u,t,e,p,f,y,h):it(!1),!0}o(Yut,"writeH1");function Kut(t,e,r,i,n,s,a,c){it(s!==0||r[qs]===0,"stream body cannot be pipelined");let u=!1,l=new ED({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:c,header:a}),f=o(function(A){if(!u)try{!l.write(A)&&this.pause&&this.pause()}catch(y){ft.destroy(this,y)}},"onData"),h=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!u){let A=new zge;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!u){if(u=!0,it(n.destroyed||n[_m]&&r[qs]<=1),n.off("drain",h).off("error",p),e.removeListener("data",f).removeListener("end",p).removeListener("close",d),!A)try{l.end()}catch(y){A=y}l.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?ft.destroy(e,A):ft.destroy(e)}},"onFinished");e.on("data",f).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",h).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(Kut,"writeStream");function Gge(t,e,r,i,n,s,a,c){try{e?ft.isBuffer(e)&&(it(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${s}\r
`}return Vge.sendHeaders.hasSubscribers&&Vge.sendHeaders.publish({request:e,headers:y,socket:p}),!u||d===0?Xge(A,null,t,e,p,f,y,h):nt.isBuffer(u)?Xge(A,u,t,e,p,f,y,h):nt.isBlobLike(u)?typeof u.stream=="function"?Zge(A,u.stream(),t,e,p,f,y,h):alt(A,u,t,e,p,f,y,h):nt.isStream(u)?olt(A,u,t,e,p,f,y,h):nt.isIterable(u)?Zge(A,u,t,e,p,f,y,h):Ye(!1),!0}o(slt,"writeH1");function olt(t,e,r,i,n,s,a,c){Ye(s!==0||r[on]===0,"stream body cannot be pipelined");let u=!1,l=new ID({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:c,header:a}),f=o(function(A){if(!u)try{!l.write(A)&&this.pause&&this.pause()}catch(y){nt.destroy(this,y)}},"onData"),h=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!u){let A=new eye;queueMicrotask(()=>p(A))}},"onClose"),p=o(function(A){if(!u){if(u=!0,Ye(n.destroyed||n[_m]&&r[on]<=1),n.off("drain",h).off("error",p),e.removeListener("data",f).removeListener("end",p).removeListener("close",d),!A)try{l.end()}catch(y){A=y}l.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?nt.destroy(e,A):nt.destroy(e)}},"onFinished");e.on("data",f).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",h).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(olt,"writeStream");function Xge(t,e,r,i,n,s,a,c){try{e?nt.isBuffer(e)&&(Ye(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${s}\r
\r
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!c&&i.reset!==!1&&(n[pa]=!0)):s===0?n.write(`${a}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!c&&i.reset!==!1&&(n[ma]=!0)):s===0?n.write(`${a}content-length: 0\r
\r
`,"latin1"):(it(s===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),i.onRequestSent(),r[vm]()}catch(u){t(u)}}o(Gge,"writeBuffer");async function Xut(t,e,r,i,n,s,a,c){it(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Jg;let u=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${s}\r
`,"latin1"):(Ye(s===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),i.onRequestSent(),r[Rd]()}catch(u){t(u)}}o(Xge,"writeBuffer");async function alt(t,e,r,i,n,s,a,c){Ye(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Jg;let u=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${s}\r
\r
`,"latin1"),n.write(u),n.uncork(),i.onBodySent(u),i.onRequestSent(),!c&&i.reset!==!1&&(n[pa]=!0),r[vm]()}catch(u){t(u)}}o(Xut,"writeBlob");async function Hge(t,e,r,i,n,s,a,c){it(s!==0||r[qs]===0,"iterator body cannot be pipelined");let u=null;function l(){if(u){let d=u;u=null,d()}}o(l,"onDrain");let f=o(()=>new Promise((d,p)=>{it(u===null),n[Yc]?p(n[Yc]):u=d}),"waitForDrain");n.on("close",l).on("drain",l);let h=new ED({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(n[Yc])throw n[Yc];h.write(d)||await f()}h.end()}catch(d){h.destroy(d)}finally{n.off("close",l).off("drain",l)}}o(Hge,"writeIterable");var ED=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[_m]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Yc])throw r[Yc];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&a+l>n){if(s[iz])throw new Jg;process.emitWarning(new Jg)}r.cork(),a===0&&(!c&&i.reset!==!1&&(r[pa]=!0),n===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"),n.write(u),n.uncork(),i.onBodySent(u),i.onRequestSent(),!c&&i.reset!==!1&&(n[ma]=!0),r[Rd]()}catch(u){t(u)}}o(alt,"writeBlob");async function Zge(t,e,r,i,n,s,a,c){Ye(s!==0||r[on]===0,"iterator body cannot be pipelined");let u=null;function l(){if(u){let d=u;u=null,d()}}o(l,"onDrain");let f=o(()=>new Promise((d,p)=>{Ye(u===null),n[Co]?p(n[Co]):u=d}),"waitForDrain");n.on("close",l).on("drain",l);let h=new ID({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(n[Co])throw n[Co];h.write(d)||await f()}h.end()}catch(d){h.destroy(d)}finally{n.off("close",l).off("drain",l)}}o(Zge,"writeIterable");var ID=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[_m]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[Co])throw r[Co];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&a+l>n){if(s[az])throw new Jg;process.emitWarning(new Jg)}r.cork(),a===0&&(!c&&i.reset!==!1&&(r[ma]=!0),n===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let f=r.write(e);return r.uncork(),i.onBodySent(e),f||r[mi].timeout&&r[mi].timeoutType===vb&&r[mi].timeout.refresh&&r[mi].timeout.refresh(),f}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[_m]=!1,e[Yc])throw e[Yc];if(!e.destroyed){if(n===0?s?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=l;let f=r.write(e);return r.uncork(),i.onBodySent(e),f||r[Mr].timeout&&r[Mr].timeoutType===Rb&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),f}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[_m]=!1,e[Co])throw e[Co];if(!e.destroyed){if(n===0?s?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&&n!==r){if(i[iz])throw new Jg;process.emitWarning(new Jg)}e[mi].timeout&&e[mi].timeoutType===vb&&e[mi].timeout.refresh&&e[mi].timeout.refresh(),i[vm]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[_m]=!1,e&&(it(i[qs]<=1,"pipeline should only contain this request"),n(e))}};$ge.exports=$ut});var rye=m((ABr,tye)=>{"use strict";var Kc=require("node:assert"),{pipeline:Zut}=require("node:stream"),Ut=Dt(),{RequestContentLengthMismatchError:az,RequestAbortedError:Jge,SocketError:hv,InformationalError:cz}=sr(),{kUrl:bD,kReset:CD,kClient:_b,kRunning:ID,kPending:elt,kQueue:xm,kPendingIdx:uz,kRunningIdx:Al,kError:yl,kSocket:Qn,kStrictContentLength:tlt,kOnError:lz,kMaxConcurrentStreams:eye,kHTTP2Session:gl,kResume:Rm,kSize:rlt,kHTTPContext:ilt}=Yr(),Rd=Symbol("open streams"),Yge,Kge=!1,wD;try{wD=require("node:http2")}catch{wD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:nlt,HTTP2_HEADER_METHOD:slt,HTTP2_HEADER_PATH:olt,HTTP2_HEADER_SCHEME:alt,HTTP2_HEADER_CONTENT_LENGTH:clt,HTTP2_HEADER_EXPECT:ult,HTTP2_HEADER_STATUS:llt}}=wD;function flt(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}o(flt,"parseH2Headers");async function hlt(t,e){t[Qn]=e,Kge||(Kge=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=wD.connect(t[bD],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[eye]});r[Rd]=0,r[_b]=t,r[Qn]=e,Ut.addListener(r,"error",plt),Ut.addListener(r,"frameError",mlt),Ut.addListener(r,"end",Alt),Ut.addListener(r,"goaway",glt),Ut.addListener(r,"close",function(){let{[_b]:n}=this,{[Qn]:s}=n,a=this[Qn][yl]||this[yl]||new hv("closed",Ut.getSocketInfo(s));if(n[gl]=null,n.destroyed){Kc(n[elt]===0);let c=n[xm].splice(n[Al]);for(let u=0;u<c.length;u++){let l=c[u];Ut.errorRequest(n,l,a)}}}),r.unref(),t[gl]=r,e[gl]=r,Ut.addListener(e,"error",function(n){Kc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[yl]=n,this[_b][lz](n)}),Ut.addListener(e,"end",function(){Ut.destroy(this,new hv("other side closed",Ut.getSocketInfo(this)))}),Ut.addListener(e,"close",function(){let n=this[yl]||new hv("closed",Ut.getSocketInfo(this));t[Qn]=null,this[gl]!=null&&this[gl].destroy(n),t[uz]=t[Al],Kc(t[ID]===0),t.emit("disconnect",t[bD],[t],n),t[Rm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Elt(t,...n)},resume(){dlt(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(hlt,"connectH2");function dlt(t){let e=t[Qn];e?.destroyed===!1&&(t[rlt]===0&&t[eye]===0?(e.unref(),t[gl].unref()):(e.ref(),t[gl].ref()))}o(dlt,"resumeH2");function plt(t){Kc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qn][yl]=t,this[_b][lz](t)}o(plt,"onHttp2SessionError");function mlt(t,e,r){if(r===0){let i=new cz(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Qn][yl]=i,this[_b][lz](i)}}o(mlt,"onHttp2FrameError");function Alt(){let t=new hv("other side closed",Ut.getSocketInfo(this[Qn]));this.destroy(t),Ut.destroy(this[Qn],t)}o(Alt,"onHttp2SessionEnd");function glt(t){let e=this[yl]||new hv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ut.getSocketInfo(this)),r=this[_b];if(r[Qn]=null,r[ilt]=null,this[gl]!=null&&(this[gl].destroy(e),this[gl]=null),Ut.destroy(this[Qn],e),r[Al]<r[xm].length){let i=r[xm][r[Al]];r[xm][r[Al]++]=null,Ut.errorRequest(r,i,e),r[uz]=r[Al]}Kc(r[ID]===0),r.emit("disconnect",r[bD],[r],e),r[Rm]()}o(glt,"onHTTP2GoAway");function ylt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(ylt,"shouldSendContentLength");function Elt(t,e){let r=t[gl],{method:i,path:n,host:s,upgrade:a,expectContinue:c,signal:u,headers:l}=e,{body:f}=e;if(a)return Ut.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let R=0;R<l.length;R+=2){let M=l[R+0],V=l[R+1];if(Array.isArray(V))for(let Q=0;Q<V.length;Q++)h[M]?h[M]+=`,${V[Q]}`:h[M]=V[Q];else h[M]=V}let d,{hostname:p,port:A}=t[bD];h[nlt]=s||`${p}${A?`:${A}`:""}`,h[slt]=i;let y=o(R=>{e.aborted||e.completed||(R=R||new Jge,Ut.errorRequest(t,e,R),d!=null&&Ut.destroy(d,R),Ut.destroy(f,R),t[xm][t[Al]++]=null,t[Rm]())},"abort");try{e.onConnect(y)}catch(R){Ut.errorRequest(t,e,R)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),d=r.request(h,{endStream:!1,signal:u}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Rd],t[xm][t[Al]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Rd],t[xm][t[Al]++]=null}),d.once("close",()=>{r[Rd]-=1,r[Rd]===0&&r.unref()}),!0;h[olt]=n,h[alt]="https";let b=i==="PUT"||i==="POST"||i==="PATCH";f&&typeof f.read=="function"&&f.read(0);let E=Ut.bodyLength(f);if(Ut.isFormDataLike(f)){Yge??=Ib().extractBody;let[R,M]=Yge(f);h["content-type"]=M,f=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!b)&&(E=null),ylt(i)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[tlt])return Ut.err Line truncated
`,this[Vlt]=u??3e5,this[zlt]=n??3e5,this[jlt]=w??!0,this[$lt]=R,this[pz]=V,this[Nm]=null,this[Xlt]=X>-1?X:-1,this[eft]=j??100,this[Li]=null,this[El]=[],this[Nd]=0,this[bl]=0,this[Av]=re=>Az(this,re),this[Zlt]=re=>pye(this,re)}get pipelining(){return this[_D]}set pipelining(e){this[_D]=e,this[Av](!0)}get[Ev](){return this[El].length-this[bl]}get[yv](){return this[bl]-this[Nd]}get[gv](){return this[El].length-this[Nd]}get[Llt](){return!!this[Li]&&!this[Rb]&&!this[Li].destroyed}get[dz](){return!!(this[Li]?.busy(null)||this[gv]>=(dye(this)||1)||this[Ev]>0)}[Qlt](e){mye(this),this.once("connect",e)}[Klt](e,r){let i=e.origin||this[Ef].origin,n=new Tlt(i,e,r);return this[El].push(n),this[Kg]||(Yg.bodyLength(n.body)==null&&Yg.isIterable(n.body)?(this[Kg]=1,queueMicrotask(()=>Az(this))):this[Av](!0)),this[Kg]&&this[Dm]!==2&&this[dz]&&(this[Dm]=2),this[Dm]<2}async[Jlt](){return new Promise(e=>{this[gv]?this[Nm]=e:e(null)})}async[Ylt](e){return new Promise(r=>{let i=this[El].splice(this[bl]);for(let s=0;s<i.length;s++){let a=i[s];Yg.errorRequest(this,a,e)}let n=o(()=>{this[Nm]&&(this[Nm](),this[Nm]=null),r(null)},"callback");this[Li]?(this[Li].destroy(e,n),this[Li]=null):queueMicrotask(n),this[Av]()})}},ift=vD();function pye(t,e){if(t[yv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Td(t[bl]===t[Nd]);let r=t[El].splice(t[Nd]);for(let i=0;i<r.length;i++){let n=r[i];Yg.errorRequest(t,n,e)}Td(t[gv]===0)}}o(pye,"onError");async function mye(t){Td(!t[Rb]),Td(!t[Li]);let{host:e,hostname:r,protocol:i,port:n}=t[Ef];if(r[0]==="["){let s=r.indexOf("]");Td(s!==-1);let a=r.substring(1,s);Td(hye.isIP(a)),r=a}t[Rb]=!0,xb.beforeConnect.hasSubscribers&&xb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Li]?.version,servername:t[Tm],localAddress:t[mv]},connector:t[pv]});try{let s=await new Promise((a,c)=>{t[pv]({host:e,hostname:r,protocol:i,port:n,servername:t[Tm],localAddress:t[mv]},(u,l)=>{u?c(u):a(l)})});if(t.destroyed){Yg.destroy(s.on("error",lye),new Olt);return}Td(s);try{t[Li]=s.alpnProtocol==="h2"?await rft(t,s):await tft(t,s)}catch(a){throw s.destroy().on("error",lye),a}t[Rb]=!1,s[Wlt]=0,s[pz]=t[pz],s[klt]=t,s[Flt]=null,xb.connected.hasSubscribers&&xb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Li]?.version,servername:t[Tm],localAddress:t[mv]},connector:t[pv],socket:s}),t.emit("connect",t[Ef],[t])}catch(s){if(t.destroyed)return;if(t[Rb]=!1,xb.connectError.hasSubscribers&&xb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Li]?.version,servername:t[Tm],localAddress:t[mv]},connector:t[pv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Td(t[yv]===0);t[Ev]>0&&t[El][t[bl]].servername===t[Tm];){let a=t[El][t[bl]++];Yg.errorRequest(t,a,s)}else pye(t,s);t.emit("connectionError",t[Ef],[t],s)}t[Av]()}o(mye,"connect");function fye(t){t[Dm]=0,t.emit("drain",t[Ef],[t])}o(fye,"emitDrain");function Az(t,e){t[Kg]!==2&&(t[Kg]=2,nft(t,e),t[Kg]=0,t[Nd]>256&&(t[El].splice(0,t[Nd]),t[bl]-=t[Nd],t[Nd]=0))}o(Az,"resume");function nft(t,e){for(;;){if(t.destroyed){Td(t[Ev]===0);return}if(t[Nm]&&!t[gv]){t[Nm](),t[Nm]=null;return}if(t[Li]&&t[Li].resume(),t[dz])t[Dm]=2;else if(t[Dm]===2){e?(t[Dm]=1,queueMicrotask(()=>fye(t))):fye(t);continue}if(t[Ev]===0||t[yv]>=(dye(t)||1))return;let r=t[El][t[bl]];if(t[Ef].protocol==="https:"&&t[Tm]!==r.servername){if(t[yv]>0)return;t[Tm]=r.servername,t[Li]?.destroy(new Dlt("servername changed"),()=>{t[Li]=null,Az(t)})}if(t[Rb])return;if(!t[Li]){mye(t);return}if(t[Li].destroyed||t[Li].busy(r))return;!r.aborted&&t[Li].write(r)?t[bl]++:t[El].splice(t[bl],1)}}o(nft,"_resume");Aye.exports=mz});var gz=m((BBr,gye)=>{"use strict";var xD=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)}};gye.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new xD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new xD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Eye=m((_Br,yye)=>{var{kFree:sft,kConnected:oft,kPending:aft,kQueued:cft,kRunning:uft,kSize:lft}=Yr(),Xg=Symbol("pool"),yz=class{static{o(this,"PoolStats")}constructor(e){this[Xg]=e}get connected(){return this[Xg][oft]}get free(){return this[Xg][sft]}get pending(){return this[Xg][aft]}get queued(){return this[Xg][cft]}get running(){return this[Xg][uft]}get size(){return this[Xg][lft]}};yye.exports=yz});var Sz=m((RBr,Rye)=>{"use strict";var fft=pb(),hft=gz(),{kConnected:Ez,kSize:bye,kRunning:wye,kPending:Cye,kQueued:bv,kBusy:dft,kFree:pft,kUrl:mft,kClose:Aft,kDestroy:gft,kDispatch:yft}=Yr( Line truncated
`,"latin1"),r!==null&&n!==r){if(i[az])throw new Jg;process.emitWarning(new Jg)}e[Mr].timeout&&e[Mr].timeoutType===Rb&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),i[Rd]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[_m]=!1,e&&(Ye(i[on]<=1,"pipeline should only contain this request"),n(e))}};sye.exports=tlt});var pye=m((IBr,dye)=>{"use strict";var Xc=require("node:assert"),{pipeline:clt}=require("node:stream"),Ut=Dt(),{RequestContentLengthMismatchError:hz,RequestAbortedError:aye,SocketError:mv,InformationalError:dz}=rr(),{kUrl:SD,kReset:vD,kClient:Tb,kRunning:_D,kPending:ult,kQueue:xm,kPendingIdx:pz,kRunningIdx:gl,kError:El,kSocket:Ln,kStrictContentLength:llt,kOnError:mz,kMaxConcurrentStreams:hye,kHTTP2Session:yl,kResume:Rm,kSize:flt,kHTTPContext:hlt}=Kr(),Td=Symbol("open streams"),cye,uye=!1,BD;try{BD=require("node:http2")}catch{BD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:dlt,HTTP2_HEADER_METHOD:plt,HTTP2_HEADER_PATH:mlt,HTTP2_HEADER_SCHEME:Alt,HTTP2_HEADER_CONTENT_LENGTH:glt,HTTP2_HEADER_EXPECT:ylt,HTTP2_HEADER_STATUS:Elt}}=BD;function blt(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}o(blt,"parseH2Headers");async function wlt(t,e){t[Ln]=e,uye||(uye=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=BD.connect(t[SD],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[hye]});r[Td]=0,r[Tb]=t,r[Ln]=e,Ut.addListener(r,"error",Ilt),Ut.addListener(r,"frameError",Slt),Ut.addListener(r,"end",Blt),Ut.addListener(r,"goaway",vlt),Ut.addListener(r,"close",function(){let{[Tb]:n}=this,{[Ln]:s}=n,a=this[Ln][El]||this[El]||new mv("closed",Ut.getSocketInfo(s));if(n[yl]=null,n.destroyed){Xc(n[ult]===0);let c=n[xm].splice(n[gl]);for(let u=0;u<c.length;u++){let l=c[u];Ut.errorRequest(n,l,a)}}}),r.unref(),t[yl]=r,e[yl]=r,Ut.addListener(e,"error",function(n){Xc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[El]=n,this[Tb][mz](n)}),Ut.addListener(e,"end",function(){Ut.destroy(this,new mv("other side closed",Ut.getSocketInfo(this)))}),Ut.addListener(e,"close",function(){let n=this[El]||new mv("closed",Ut.getSocketInfo(this));t[Ln]=null,this[yl]!=null&&this[yl].destroy(n),t[pz]=t[gl],Xc(t[_D]===0),t.emit("disconnect",t[SD],[t],n),t[Rm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return xlt(t,...n)},resume(){Clt(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(wlt,"connectH2");function Clt(t){let e=t[Ln];e?.destroyed===!1&&(t[flt]===0&&t[hye]===0?(e.unref(),t[yl].unref()):(e.ref(),t[yl].ref()))}o(Clt,"resumeH2");function Ilt(t){Xc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ln][El]=t,this[Tb][mz](t)}o(Ilt,"onHttp2SessionError");function Slt(t,e,r){if(r===0){let i=new dz(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ln][El]=i,this[Tb][mz](i)}}o(Slt,"onHttp2FrameError");function Blt(){let t=new mv("other side closed",Ut.getSocketInfo(this[Ln]));this.destroy(t),Ut.destroy(this[Ln],t)}o(Blt,"onHttp2SessionEnd");function vlt(t){let e=this[El]||new mv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ut.getSocketInfo(this)),r=this[Tb];if(r[Ln]=null,r[hlt]=null,this[yl]!=null&&(this[yl].destroy(e),this[yl]=null),Ut.destroy(this[Ln],e),r[gl]<r[xm].length){let i=r[xm][r[gl]];r[xm][r[gl]++]=null,Ut.errorRequest(r,i,e),r[pz]=r[gl]}Xc(r[_D]===0),r.emit("disconnect",r[SD],[r],e),r[Rm]()}o(vlt,"onHTTP2GoAway");function _lt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(_lt,"shouldSendContentLength");function xlt(t,e){let r=t[yl],{method:i,path:n,host:s,upgrade:a,expectContinue:c,signal:u,headers:l}=e,{body:f}=e;if(a)return Ut.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let R=0;R<l.length;R+=2){let M=l[R+0],V=l[R+1];if(Array.isArray(V))for(let Q=0;Q<V.length;Q++)h[M]?h[M]+=`,${V[Q]}`:h[M]=V[Q];else h[M]=V}let d,{hostname:p,port:A}=t[SD];h[dlt]=s||`${p}${A?`:${A}`:""}`,h[plt]=i;let y=o(R=>{e.aborted||e.completed||(R=R||new aye,Ut.errorRequest(t,e,R),d!=null&&Ut.destroy(d,R),Ut.destroy(f,R),t[xm][t[gl]++]=null,t[Rm]())},"abort");try{e.onConnect(y)}catch(R){Ut.errorRequest(t,e,R)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),d=r.request(h,{endStream:!1,signal:u}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[Td],t[xm][t[gl]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[Td],t[xm][t[gl]++]=null}),d.once("close",()=>{r[Td]-=1,r[Td]===0&&r.unref()}),!0;h[mlt]=n,h[Alt]="https";let b=i==="PUT"||i==="POST"||i==="PATCH";f&&typeof f.read=="function"&&f.read(0);let E=Ut.bodyLength(f);if(Ut.isFormDataLike(f)){cye??=vb().extractBody;let[R,M]=cye(f);h["content-type"]=M,f=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!b)&&(E=null),_lt(i)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[llt])return Ut.err Line truncated
`,this[eft]=u??3e5,this[Zlt]=n??3e5,this[tft]=w??!0,this[rft]=R,this[Ez]=V,this[Nm]=null,this[aft]=X>-1?X:-1,this[uft]=j??100,this[Mi]=null,this[bl]=[],this[Dd]=0,this[wl]=0,this[Ev]=me=>wz(this,me),this[cft]=me=>vye(this,me)}get pipelining(){return this[ND]}set pipelining(e){this[ND]=e,this[Ev](!0)}get[Cv](){return this[bl].length-this[wl]}get[wv](){return this[wl]-this[Dd]}get[bv](){return this[bl].length-this[Dd]}get[jlt](){return!!this[Mi]&&!this[Db]&&!this[Mi].destroyed}get[yz](){return!!(this[Mi]?.busy(null)||this[bv]>=(Bye(this)||1)||this[Cv]>0)}[Vlt](e){_ye(this),this.once("connect",e)}[oft](e,r){let i=e.origin||this[Ef].origin,n=new Flt(i,e,r);return this[bl].push(n),this[ey]||(Zg.bodyLength(n.body)==null&&Zg.isIterable(n.body)?(this[ey]=1,queueMicrotask(()=>wz(this))):this[Ev](!0)),this[ey]&&this[Dm]!==2&&this[yz]&&(this[Dm]=2),this[Dm]<2}async[nft](){return new Promise(e=>{this[bv]?this[Nm]=e:e(null)})}async[sft](e){return new Promise(r=>{let i=this[bl].splice(this[wl]);for(let s=0;s<i.length;s++){let a=i[s];Zg.errorRequest(this,a,e)}let n=o(()=>{this[Nm]&&(this[Nm](),this[Nm]=null),r(null)},"callback");this[Mi]?(this[Mi].destroy(e,n),this[Mi]=null):queueMicrotask(n),this[Ev]()})}},hft=TD();function vye(t,e){if(t[wv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Nd(t[wl]===t[Dd]);let r=t[bl].splice(t[Dd]);for(let i=0;i<r.length;i++){let n=r[i];Zg.errorRequest(t,n,e)}Nd(t[bv]===0)}}o(vye,"onError");async function _ye(t){Nd(!t[Db]),Nd(!t[Mi]);let{host:e,hostname:r,protocol:i,port:n}=t[Ef];if(r[0]==="["){let s=r.indexOf("]");Nd(s!==-1);let a=r.substring(1,s);Nd(Sye.isIP(a)),r=a}t[Db]=!0,Nb.beforeConnect.hasSubscribers&&Nb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Mi]?.version,servername:t[Tm],localAddress:t[yv]},connector:t[gv]});try{let s=await new Promise((a,c)=>{t[gv]({host:e,hostname:r,protocol:i,port:n,servername:t[Tm],localAddress:t[yv]},(u,l)=>{u?c(u):a(l)})});if(t.destroyed){Zg.destroy(s.on("error",Cye),new Glt);return}Nd(s);try{t[Mi]=s.alpnProtocol==="h2"?await fft(t,s):await lft(t,s)}catch(a){throw s.destroy().on("error",Cye),a}t[Db]=!1,s[ift]=0,s[Ez]=t[Ez],s[zlt]=t,s[Wlt]=null,Nb.connected.hasSubscribers&&Nb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Mi]?.version,servername:t[Tm],localAddress:t[yv]},connector:t[gv],socket:s}),t.emit("connect",t[Ef],[t])}catch(s){if(t.destroyed)return;if(t[Db]=!1,Nb.connectError.hasSubscribers&&Nb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Mi]?.version,servername:t[Tm],localAddress:t[yv]},connector:t[gv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Nd(t[wv]===0);t[Cv]>0&&t[bl][t[wl]].servername===t[Tm];){let a=t[bl][t[wl]++];Zg.errorRequest(t,a,s)}else vye(t,s);t.emit("connectionError",t[Ef],[t],s)}t[Ev]()}o(_ye,"connect");function Iye(t){t[Dm]=0,t.emit("drain",t[Ef],[t])}o(Iye,"emitDrain");function wz(t,e){t[ey]!==2&&(t[ey]=2,dft(t,e),t[ey]=0,t[Dd]>256&&(t[bl].splice(0,t[Dd]),t[wl]-=t[Dd],t[Dd]=0))}o(wz,"resume");function dft(t,e){for(;;){if(t.destroyed){Nd(t[Cv]===0);return}if(t[Nm]&&!t[bv]){t[Nm](),t[Nm]=null;return}if(t[Mi]&&t[Mi].resume(),t[yz])t[Dm]=2;else if(t[Dm]===2){e?(t[Dm]=1,queueMicrotask(()=>Iye(t))):Iye(t);continue}if(t[Cv]===0||t[wv]>=(Bye(t)||1))return;let r=t[bl][t[wl]];if(t[Ef].protocol==="https:"&&t[Tm]!==r.servername){if(t[wv]>0)return;t[Tm]=r.servername,t[Mi]?.destroy(new qlt("servername changed"),()=>{t[Mi]=null,wz(t)})}if(t[Db])return;if(!t[Mi]){_ye(t);return}if(t[Mi].destroyed||t[Mi].busy(r))return;!r.aborted&&t[Mi].write(r)?t[wl]++:t[bl].splice(t[wl],1)}}o(dft,"_resume");xye.exports=bz});var Cz=m((DBr,Rye)=>{"use strict";var DD=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)}};Rye.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new DD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new DD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Nye=m((PBr,Tye)=>{var{kFree:pft,kConnected:mft,kPending:Aft,kQueued:gft,kRunning:yft,kSize:Eft}=Kr(),ty=Symbol("pool"),Iz=class{static{o(this,"PoolStats")}constructor(e){this[ty]=e}get connected(){return this[ty][mft]}get free(){return this[ty][pft]}get pending(){return this[ty][Aft]}get queued(){return this[ty][gft]}get running(){return this[ty][yft]}get size(){return this[ty][Eft]}};Tye.exports=Iz});var Rz=m((QBr,qye)=>{"use strict";var bft=gb(),wft=Cz(),{kConnected:Sz,kSize:Dye,kRunning:Oye,kPending:Pye,kQueued:Iv,kBusy:Cft,kFree:Ift,kUrl:Sft,kClose:Bft,kDestroy:vft,kDispatch:_ft}=Kr( Line truncated
${i.count} ${i.noun} ${i.is} pending:
${e.format(r)}
`.trim())}};k0e.exports=SV});var jD=m((_vr,U0e)=>{"use strict";var L0e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Vdt}=sr(),jdt=Db();F0e()===void 0&&M0e(new jdt);function M0e(t){if(!t||typeof t.dispatch!="function")throw new Vdt("Argument agent must implement Agent");Object.defineProperty(globalThis,L0e,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(M0e,"setGlobalDispatcher");function F0e(){return globalThis[L0e]}o(F0e,"getGlobalDispatcher");U0e.exports={setGlobalDispatcher:M0e,getGlobalDispatcher:F0e}});var $D=m((Tvr,q0e)=>{"use strict";q0e.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 H0e=m((Dvr,G0e)=>{"use strict";var $dt=BD();G0e.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,s){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,s);let u=new $dt(r,a,n,s);return r(c,u)},"redirectInterceptor")}});var V0e=m((Pvr,z0e)=>{"use strict";var Wdt=QD();z0e.exports=t=>e=>o(function(i,n){return e(i,new Wdt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var $0e=m((Qvr,j0e)=>{"use strict";var Jdt=Dt(),{InvalidArgumentError:Ydt,RequestAbortedError:Kdt}=sr(),Xdt=$D(),BV=class extends Xdt{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ydt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let a=Jdt.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Kdt(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function Zdt({maxSize:t}={maxSize:1024*1024}){return e=>o(function(i,n){let{dumpMaxSize:s=t}=i,a=new BV({maxSize:s},n);return e(i,a)},"Intercept")}o(Zdt,"createDumpInterceptor");j0e.exports=Zdt});var Y0e=m((Mvr,J0e)=>{"use strict";var{isIP:ept}=require("node:net"),{lookup:tpt}=require("node:dns"),rpt=$D(),{InvalidArgumentError:Gb,InformationalError:ipt}=sr(),W0e=Math.pow(2,31)-1,vV=class{static{o(this,"DNSInstance")}#e=0;#t=0;#i=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.#n}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){i(a??new ipt("No DNS entries found"));return}this.setRecords(e,c);let u=this.#i.get(e.hostname),l=this.pick(e,u,s.affinity),f;typeof l.port=="number"?f=`:${l.port}`:e.port!==""?f=`:${e.port}`:f="",i(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${f}`)});else{let a=this.pick(e,n,s.affinity);if(a==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",i(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,i){tpt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);i(null,a.values())})}#n(e,r,i){let n=null,{records:s,offset:a}=r,c;if(this.dualStack?(i==null&&(a==null||a===W0e?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?c=s[i]:c=s[i===4?6:4]):c=s[i],c==null||c.ips.length===0)return n;c.offset==null||c.offset===W0e?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return n=c.ips[u]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(u,1),this.pick(e,r,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=n.records[s.family]??{ips:[]};a.ips.push(s),n.records[s.family]=a}this.#i.set(e.hostname,n)}getHandler(e,r){return new _V(this,e,r)}},_V=class extends rpt{static{o(this,"DNSDispatchHan Line truncated
${s}`;break;case"retry":RCe(s)&&(r[n]=s);break;case"id":TCe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&RCe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&TCe(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}}};NCe.exports={EventSourceStream:hj}});var UCe=m((q_r,FCe)=>{"use strict";var{pipeline:dyt}=require("node:stream"),{fetching:pyt}=Pv(),{makeRequest:myt}=Vb(),{webidl:Qd}=bs(),{EventSourceStream:Ayt}=DCe(),{parseMIMEType:gyt}=da(),{createFastMessageEvent:yyt}=Kb(),{isNetworkError:OCe}=Dv(),{delay:Eyt}=lj(),{kEnumerableProperty:dy}=Dt(),{environmentSettingsObject:PCe}=Ja(),kCe=!1,QCe=3e3,$v=0,LCe=1,Wv=2,byt="anonymous",wyt="use-credentials",rw=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#i=!1;#r=$v;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),Qd.util.markAsUncloneable(this);let i="EventSource constructor";Qd.argumentLengthCheck(arguments,1,i),kCe||(kCe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Qd.converters.USVString(e,i,"url"),r=Qd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:QCe};let n=PCe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=byt;r.withCredentials&&(a=wyt,this.#i=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=PCe.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=myt(c),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===Wv)return;this.#r=$v;let e={request:this.#n,dispatcher:this.#l},r=o(i=>{OCe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=i=>{if(OCe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=i.headersList.get("content-type",!0),s=n!==null?gyt(n):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=LCe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let c=new Ayt({eventSourceSettings:this.#u,push:o(u=>{this.dispatchEvent(yyt(u.type,u.options))},"push")});dyt(i.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=pyt(e)}async#c(){this.#r!==Wv&&(this.#r=$v,this.dispatchEvent(new Event("error")),await Eyt(this.#u.reconnectionTime),this.#r===$v&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){Qd.brandCheck(this,t),this.#r!==Wv&&(this.#r=Wv,this.#s.abort(),this.#n=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}},MCe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:$v,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:LCe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Wv,writable:!1}};Object.defineProperties(rw,MCe);Object.defineProperties(rw.prototype,MCe);Object.defineProperties(rw.prototype,{close:dy,onerror:dy,onmessage:dy,onopen:dy,readyState:dy,url:dy,withCredentials:dy});Qd.converters.EventSourceInitDict=Qd.dictionaryConverter([{key:"withCredentials",converter:Qd.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Qd.converters.any}]);FCe.exports={EventSource:rw,defaultReconnectionTime:QCe}});var Hm=m((H_r,ot)=>{"use strict";var Cyt=Tb(),qCe=XB(),Iyt=Nb(),Syt=Mye(),Byt=Db(),vyt=Lz(),_yt=cEe(),xyt=pEe(),GCe=sr(),PO=Dt(),{InvalidArgumentError:OO}=GCe,iw=e0e(),Ryt=ev(),Tyt=yV(),Nyt=Q0e(),Dyt=wV(),Oyt=sV(),Pyt=QD(),{getGlobalDispatcher:HCe,setGlobalDispatcher:kyt}=jD(),Qyt=$D(),Lyt=BD(),Myt=vD();Object.assign(qCe.prototype,iw);ot.exports.Dispatcher=qCe;ot.exports.Client=Cyt;ot.exports.Pool=Iyt;ot.exports.BalancedPoo Line truncated
%s`,M,M,w,i);var V=w.type==="*"?y9:w.type==="?"?g9:"\\"+w.type;n=!0,i=i.slice(0,w.reStart)+V+"\\("+M}A(),s&&(i+="\\\\");var Q=!1;switch(i.charAt(0)){case"[":case".":case"(":Q=!0}for(var X=c.length-1;X>-1;X--){var F=c[X],ee=i.slice(0,F.reStart),j=i.slice(F.reStart,F.reEnd-8),ce=i.slice(F.reEnd-8,F.reEnd),re=i.slice(F.reEnd);ce+=re;var me=ee.split("(").length-1,Ae=re;for(y=0;y<me;y++)Ae=Ae.replace(/\)[+*?]?/,"");re=Ae;var ne="";re===""&&e!==nP&&(ne="$");var se=ee+j+re+ne+ce;i=se}if(i!==""&&n&&(i="(?=.)"+i),Q&&(i=d+i),e===nP)return[i,n];if(!n)return iCt(t);var Be=r.nocase?"i":"";try{var ve=new RegExp("^"+i+"$",Be)}catch{return new RegExp("$.")}return ve._glob=t,ve._src=i,ve}o(tCt,"parse");oc.makeRe=function(t,e){return new Cs(t,e||{}).makeRe()};Cs.prototype.makeRe=rCt;function rCt(){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?y9:e.dot?Wwt:Jwt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(a){return a===E9?r:typeof a=="string"?nCt(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}o(rCt,"makeRe");oc.match=function(t,e,r){r=r||{};var i=new Cs(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};Cs.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 i=this.options;p_.sep!=="/"&&(e=e.split(p_.sep).join("/")),e=e.split(VBe),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<n.length;a++){var c=n[a],u=e;i.matchBase&&c.length===1&&(u=[s]);var l=this.matchOne(u,c,r);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Cs.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,a=t.length,c=e.length;n<a&&s<c;n++,s++){this.debug("matchOne loop");var u=e[s],l=t[n];if(this.debug(e,u,l),u===!1)return!1;if(u===E9){this.debug("GLOBSTAR",[e,u,l]);var f=n,h=s+1;if(h===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;f<a;){var d=t[f];if(this.debug(`
`.trim())}};$0e.exports=RV});var YD=m((Pvr,X0e)=>{"use strict";var J0e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:ept}=rr(),tpt=kb();K0e()===void 0&&Y0e(new tpt);function Y0e(t){if(!t||typeof t.dispatch!="function")throw new ept("Argument agent must implement Agent");Object.defineProperty(globalThis,J0e,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(Y0e,"setGlobalDispatcher");function K0e(){return globalThis[J0e]}o(K0e,"getGlobalDispatcher");X0e.exports={setGlobalDispatcher:Y0e,getGlobalDispatcher:K0e}});var KD=m((Lvr,Z0e)=>{"use strict";Z0e.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 tbe=m((Fvr,ebe)=>{"use strict";var rpt=RD();ebe.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,s){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,s);let u=new rpt(r,a,n,s);return r(c,u)},"redirectInterceptor")}});var ibe=m((qvr,rbe)=>{"use strict";var ipt=UD();rbe.exports=t=>e=>o(function(i,n){return e(i,new ipt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var sbe=m((Hvr,nbe)=>{"use strict";var npt=Dt(),{InvalidArgumentError:spt,RequestAbortedError:opt}=rr(),apt=KD(),TV=class extends apt{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new spt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let a=npt.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new opt(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function cpt({maxSize:t}={maxSize:1024*1024}){return e=>o(function(i,n){let{dumpMaxSize:s=t}=i,a=new TV({maxSize:s},n);return e(i,a)},"Intercept")}o(cpt,"createDumpInterceptor");nbe.exports=cpt});var cbe=m((Vvr,abe)=>{"use strict";var{isIP:upt}=require("node:net"),{lookup:lpt}=require("node:dns"),fpt=KD(),{InvalidArgumentError:Vb,InformationalError:hpt}=rr(),obe=Math.pow(2,31)-1,NV=class{static{o(this,"DNSInstance")}#e=0;#t=0;#i=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.#n}get full(){return this.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){i(a??new hpt("No DNS entries found"));return}this.setRecords(e,c);let u=this.#i.get(e.hostname),l=this.pick(e,u,s.affinity),f;typeof l.port=="number"?f=`:${l.port}`:e.port!==""?f=`:${e.port}`:f="",i(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${f}`)});else{let a=this.pick(e,n,s.affinity);if(a==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",i(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,i){lpt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);i(null,a.values())})}#n(e,r,i){let n=null,{records:s,offset:a}=r,c;if(this.dualStack?(i==null&&(a==null||a===obe?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?c=s[i]:c=s[i===4?6:4]):c=s[i],c==null||c.ips.length===0)return n;c.offset==null||c.offset===obe?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return n=c.ips[u]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(u,1),this.pick(e,r,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=n.records[s.family]??{ips:[]};a.ips.push(s),n.records[s.family]=a}this.#i.set(e.hostname,n)}getHandler(e,r){return new DV(this,e,r)}},DV=class extends fpt{static{o(this,"DNSDispatchHan Line truncated
${s}`;break;case"retry":qCe(s)&&(r[n]=s);break;case"id":GCe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&qCe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&GCe(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}}};HCe.exports={EventSourceStream:Ej}});var XCe=m((W_r,KCe)=>{"use strict";var{pipeline:byt}=require("node:stream"),{fetching:wyt}=Lv(),{makeRequest:Cyt}=Wb(),{webidl:Ld}=ws(),{EventSourceStream:Iyt}=zCe(),{parseMIMEType:Syt}=pa(),{createFastMessageEvent:Byt}=ew(),{isNetworkError:VCe}=kv(),{delay:vyt}=gj(),{kEnumerableProperty:Ay}=Dt(),{environmentSettingsObject:jCe}=Ya(),$Ce=!1,WCe=3e3,Kv=0,JCe=1,Xv=2,_yt="anonymous",xyt="use-credentials",sw=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#i=!1;#r=Kv;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),Ld.util.markAsUncloneable(this);let i="EventSource constructor";Ld.argumentLengthCheck(arguments,1,i),$Ce||($Ce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ld.converters.USVString(e,i,"url"),r=Ld.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:WCe};let n=jCe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=_yt;r.withCredentials&&(a=xyt,this.#i=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=jCe.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=Cyt(c),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===Xv)return;this.#r=Kv;let e={request:this.#n,dispatcher:this.#l},r=o(i=>{VCe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=i=>{if(VCe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let n=i.headersList.get("content-type",!0),s=n!==null?Syt(n):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=JCe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let c=new Iyt({eventSourceSettings:this.#u,push:o(u=>{this.dispatchEvent(Byt(u.type,u.options))},"push")});byt(i.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=wyt(e)}async#o(){this.#r!==Xv&&(this.#r=Kv,this.dispatchEvent(new Event("error")),await vyt(this.#u.reconnectionTime),this.#r===Kv&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){Ld.brandCheck(this,t),this.#r!==Xv&&(this.#r=Xv,this.#s.abort(),this.#n=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}},YCe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Kv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:JCe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xv,writable:!1}};Object.defineProperties(sw,YCe);Object.defineProperties(sw.prototype,YCe);Object.defineProperties(sw.prototype,{close:Ay,onerror:Ay,onmessage:Ay,onopen:Ay,readyState:Ay,url:Ay,withCredentials:Ay});Ld.converters.EventSourceInitDict=Ld.dictionaryConverter([{key:"withCredentials",converter:Ld.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ld.converters.any}]);KCe.exports={EventSource:sw,defaultReconnectionTime:WCe}});var Hm=m((Y_r,at)=>{"use strict";var Ryt=Ob(),ZCe=tv(),Tyt=Pb(),Nyt=Yye(),Dyt=kb(),Oyt=Gz(),Pyt=bEe(),kyt=vEe(),eIe=rr(),MO=Dt(),{InvalidArgumentError:LO}=eIe,ow=h0e(),Qyt=iv(),Lyt=IV(),Myt=W0e(),Fyt=vV(),Uyt=lV(),qyt=UD(),{getGlobalDispatcher:tIe,setGlobalDispatcher:Gyt}=YD(),Hyt=KD(),zyt=RD(),Vyt=TD();Object.assign(ZCe.prototype,ow);at.exports.Dispatcher=ZCe;at.exports.Client=Ryt;at.exports.Pool=Tyt;at.exports.BalancedPoo Line truncated
%s`,M,M,w,i);var V=w.type==="*"?B9:w.type==="?"?S9:"\\"+w.type;n=!0,i=i.slice(0,w.reStart)+V+"\\("+M}A(),s&&(i+="\\\\");var Q=!1;switch(i.charAt(0)){case"[":case".":case"(":Q=!0}for(var X=c.length-1;X>-1;X--){var F=c[X],ee=i.slice(0,F.reStart),j=i.slice(F.reStart,F.reEnd-8),ce=i.slice(F.reEnd-8,F.reEnd),ie=i.slice(F.reEnd);ce+=ie;var me=ee.split("(").length-1,Ae=ie;for(y=0;y<me;y++)Ae=Ae.replace(/\)[+*?]?/,"");ie=Ae;var ne="";ie===""&&e!==cP&&(ne="$");var se=ee+j+ie+ne+ce;i=se}if(i!==""&&n&&(i="(?=.)"+i),Q&&(i=d+i),e===cP)return[i,n];if(!n)return lCt(t);var Be=r.nocase?"i":"";try{var ve=new RegExp("^"+i+"$",Be)}catch{return new RegExp("$.")}return ve._glob=t,ve._src=i,ve}o(cCt,"parse");cc.makeRe=function(t,e){return new Is(t,e||{}).makeRe()};Is.prototype.makeRe=uCt;function uCt(){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?B9:e.dot?tCt:rCt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(a){return a===v9?r:typeof a=="string"?fCt(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}o(uCt,"makeRe");cc.match=function(t,e,r){r=r||{};var i=new Is(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};Is.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 i=this.options;y_.sep!=="/"&&(e=e.split(y_.sep).join("/")),e=e.split(ive),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<n.length;a++){var c=n[a],u=e;i.matchBase&&c.length===1&&(u=[s]);var l=this.matchOne(u,c,r);if(l)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate},"match");Is.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,a=t.length,c=e.length;n<a&&s<c;n++,s++){this.debug("matchOne loop");var u=e[s],l=t[n];if(this.debug(e,u,l),u===!1)return!1;if(u===v9){this.debug("GLOBSTAR",[e,u,l]);var f=n,h=s+1;if(h===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;f<a;){var d=t[f];if(this.debug(`
globstar while`,t,f,e,h,d),this.matchOne(t.slice(f),e.slice(h),r))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,f,e,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,f,e,h),f===a))}var p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=l.match(u),this.debug("pattern match",u,l,p)),!p)return!1}if(n===a&&s===c)return!0;if(n===a)return r;if(s===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function iCt(t){return t.replace(/\\(.)/g,"$1")}o(iCt,"globUnescape");function nCt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(nCt,"regExpEscape")});var Aw=m((g2r,XBe)=>{"use strict";var hCt="2.0.0",dCt=Number.MAX_SAFE_INTEGER||9007199254740991,pCt=16,mCt=250,ACt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];XBe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:pCt,MAX_SAFE_BUILD_LENGTH:mCt,MAX_SAFE_INTEGER:dCt,RELEASE_TYPES:ACt,SEMVER_SPEC_VERSION:hCt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var g_=m((y2r,ZBe)=>{"use strict";var gCt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};ZBe.exports=gCt});var gw=m((xf,eve)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:w9,MAX_SAFE_BUILD_LENGTH:yCt,MAX_LENGTH:ECt}=Aw(),bCt=g_();xf=eve.exports={};var wCt=xf.re=[],CCt=xf.safeRe=[],Te=xf.src=[],ICt=xf.safeSrc=[],Ne=xf.t={},SCt=0,C9="[a-zA-Z0-9-]",BCt=[["\\s",1],["\\d",ECt],[C9,yCt]],vCt=o(t=>{for(let[e,r]of BCt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),At=o((t,e,r)=>{let i=vCt(e),n=SCt++;bCt(t,n,e),Ne[t]=n,Te[n]=e,ICt[n]=i,wCt[n]=new RegExp(e,r?"g":void 0),CCt[n]=new RegExp(i,r?"g":void 0)},"createToken");At("NUMERICIDENTIFIER","0|[1-9]\\d*");At("NUMERICIDENTIFIERLOOSE","\\d+");At("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${C9}*`);At("MAINVERSION",`(${Te[Ne.NUMERICIDENTIFIER]})\\.(${Te[Ne.NUMERICIDENTIFIER]})\\.(${Te[Ne.NUMERICIDENTIFIER]})`);At("MAINVERSIONLOOSE",`(${Te[Ne.NUMERICIDENTIFIERLOOSE]})\\.(${Te[Ne.NUMERICIDENTIFIERLOOSE]})\\.(${Te[Ne.NUMERICIDENTIFIERLOOSE]})`);At("PRERELEASEIDENTIFIER",`(?:${Te[Ne.NONNUMERICIDENTIFIER]}|${Te[Ne.NUMERICIDENTIFIER]})`);At("PRERELEASEIDENTIFIERLOOSE",`(?:${Te[Ne.NONNUMERICIDENTIFIER]}|${Te[Ne.NUMERICIDENTIFIERLOOSE]})`);At("PRERELEASE",`(?:-(${Te[Ne.PRERELEASEIDENTIFIER]}(?:\\.${Te[Ne.PRERELEASEIDENTIFIER]})*))`);At("PRERELEASELOOSE",`(?:-?(${Te[Ne.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Te[Ne.PRERELEASEIDENTIFIERLOOSE]})*))`);At("BUILDIDENTIFIER",`${C9}+`);At("BUILD",`(?:\\+(${Te[Ne.BUILDIDENTIFIER]}(?:\\.${Te[Ne.BUILDIDENTIFIER]})*))`);At("FULLPLAIN",`v?${Te[Ne.MAINVERSION]}${Te[Ne.PRERELEASE]}?${Te[Ne.BUILD]}?`);At("FULL",`^${Te[Ne.FULLPLAIN]}$`);At("LOOSEPLAIN",`[v=\\s]*${Te[Ne.MAINVERSIONLOOSE]}${Te[Ne.PRERELEASELOOSE]}?${Te[Ne.BUILD]}?`);At("LOOSE",`^${Te[Ne.LOOSEPLAIN]}$`);At("GTLT","((?:<|>)?=?)");At("XRANGEIDENTIFIERLOOSE",`${Te[Ne.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);At("XRANGEIDENTIFIER",`${Te[Ne.NUMERICIDENTIFIER]}|x|X|\\*`);At("XRANGEPLAIN",`[v=\\s]*(${Te[Ne.XRANGEIDENTIFIER]})(?:\\.(${Te[Ne.XRANGEIDENTIFIER]})(?:\\.(${Te[Ne.XRANGEIDENTIFIER]})(?:${Te[Ne.PRERELEASE]})?${Te[Ne.BUILD]}?)?)?`);At("XRANGEPLAINLOOSE",`[v=\\s]*(${Te[Ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Te[Ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Te[Ne.XRANGEIDENTIFIERLOOSE]})(?:${Te[Ne.PRERELEASELOOSE]})?${Te[Ne.BUILD]}?)?)?`);At("XRANGE",`^${Te[Ne.GTLT]}\\s*${Te[Ne.XRANGEPLAIN]}$`);At("XRANGELOOSE",`^${Te[Ne.GTLT]}\\s*${Te[Ne.XRANGEPLAINLOOSE]}$`);At("COERCEPLAIN",`(^|[^\\d])(\\d{1,${w9}})(?:\\.(\\d{1,${w9}}))?(?:\\.(\\d{1,${w9}}))?`);At("COERCE",`${Te[Ne.COERCEPLAIN]}(?:$|[^\\d])`);At("COERCEFULL",Te[Ne.COERCEPLAIN]+`(?:${Te[Ne.PRERELEASE]})?(?:${Te[Ne.BUILD]})?(?:$|[^\\d])`);At("COERCERTL",Te[Ne.COERCE],!0);At("COERCERTLFULL",Te[Ne.COERCEFULL],!0);At("LONETILDE","(?:~>?)");At("TILDETRIM",`(\\s*)${Te[Ne.LONETILDE]}\\s+`,!0);xf.tildeTrimReplace="$1~";At("TILDE",`^${Te[Ne.LONETILDE]}${Te[Ne.XRANGEPLAIN]}$`);At("TILDELOOSE",`^${Te[Ne.LONETILDE]}${Te[Ne.XRANGEPLAINLOOSE]}$`);At("LONECARET","(?:\\^)");At("CARETTRIM",`(\\s*)${Te[Ne.LONECARET]}\\s+`,!0);xf.caretTrimReplace="$1^";At("CARET",`^${Te[Ne.LONECARET]}${Te[Ne.XRANGEPLAIN]}$`);At("CARETLOOSE",`^${Te[Ne.LONECARET]}${Te[Ne.XRANGEPLAINLOOSE]}$`);At("COMPARATORLOOSE",`^${Te[Ne.GTLT]}\\s*(${Te[Ne.LOOSEPLAIN]})$|^$`);At("COMPARATOR",`^${Te[Ne.GTLT]}\\s*(${Te[Ne.FULLPLAIN]})$|^$`);At("COMPARATORTRIM",`(\\s*)${Te[Ne.GTLT]}\\s*(${Te[Ne.LOOSEPLAIN]}|${Te[Ne.XRANGEPLAIN]})`,!0);xf.comparatorTrimReplace="$1$2$3";At("HYPHENRANGE",`^\\s*(${Te[Ne.XRANGEPLAIN]})\\s+-\\s+(${Te[Ne.XRANGEPLAIN]})\\s*$`);At("HYPHENRANGELOOSE",`^\\s*(${Te[Ne.XRANGEPLAINLOOSE]})\\s+-\\s+(${Te[Ne.XRANGEPLAINLOOSE]})\\s*$`);At("STAR","(<|>)?=?\\s*\\*");At("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");At("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var cP=m((b2r,tve)=>{"use strict";var _Ct=Object.freeze({loose:!0}),xCt=Object.freeze({}),RCt=o(t=>t?typeof t!="object"?_Ct:t:xCt,"parseOptions");tve.exports=RCt});var I9=m((C2r,nve)=>{"use strict";var rve=/^[0-9]+$/,ive=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=rve Line truncated
>>> no match, partial?`,t,f,e,h),f===a))}var p;if(typeof u=="string"?(p=l===u,this.debug("string match",u,l,p)):(p=l.match(u),this.debug("pattern match",u,l,p)),!p)return!1}if(n===a&&s===c)return!0;if(n===a)return r;if(s===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function lCt(t){return t.replace(/\\(.)/g,"$1")}o(lCt,"globUnescape");function fCt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(fCt,"regExpEscape")});var Ew=m((S2r,lve)=>{"use strict";var ECt="2.0.0",bCt=Number.MAX_SAFE_INTEGER||9007199254740991,wCt=16,CCt=250,ICt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lve.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:wCt,MAX_SAFE_BUILD_LENGTH:CCt,MAX_SAFE_INTEGER:bCt,RELEASE_TYPES:ICt,SEMVER_SPEC_VERSION:ECt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var w_=m((B2r,fve)=>{"use strict";var SCt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fve.exports=SCt});var bw=m((xf,hve)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:x9,MAX_SAFE_BUILD_LENGTH:BCt,MAX_LENGTH:vCt}=Ew(),_Ct=w_();xf=hve.exports={};var xCt=xf.re=[],RCt=xf.safeRe=[],Te=xf.src=[],TCt=xf.safeSrc=[],Ne=xf.t={},NCt=0,R9="[a-zA-Z0-9-]",DCt=[["\\s",1],["\\d",vCt],[R9,BCt]],OCt=o(t=>{for(let[e,r]of DCt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),At=o((t,e,r)=>{let i=OCt(e),n=NCt++;_Ct(t,n,e),Ne[t]=n,Te[n]=e,TCt[n]=i,xCt[n]=new RegExp(e,r?"g":void 0),RCt[n]=new RegExp(i,r?"g":void 0)},"createToken");At("NUMERICIDENTIFIER","0|[1-9]\\d*");At("NUMERICIDENTIFIERLOOSE","\\d+");At("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${R9}*`);At("MAINVERSION",`(${Te[Ne.NUMERICIDENTIFIER]})\\.(${Te[Ne.NUMERICIDENTIFIER]})\\.(${Te[Ne.NUMERICIDENTIFIER]})`);At("MAINVERSIONLOOSE",`(${Te[Ne.NUMERICIDENTIFIERLOOSE]})\\.(${Te[Ne.NUMERICIDENTIFIERLOOSE]})\\.(${Te[Ne.NUMERICIDENTIFIERLOOSE]})`);At("PRERELEASEIDENTIFIER",`(?:${Te[Ne.NONNUMERICIDENTIFIER]}|${Te[Ne.NUMERICIDENTIFIER]})`);At("PRERELEASEIDENTIFIERLOOSE",`(?:${Te[Ne.NONNUMERICIDENTIFIER]}|${Te[Ne.NUMERICIDENTIFIERLOOSE]})`);At("PRERELEASE",`(?:-(${Te[Ne.PRERELEASEIDENTIFIER]}(?:\\.${Te[Ne.PRERELEASEIDENTIFIER]})*))`);At("PRERELEASELOOSE",`(?:-?(${Te[Ne.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Te[Ne.PRERELEASEIDENTIFIERLOOSE]})*))`);At("BUILDIDENTIFIER",`${R9}+`);At("BUILD",`(?:\\+(${Te[Ne.BUILDIDENTIFIER]}(?:\\.${Te[Ne.BUILDIDENTIFIER]})*))`);At("FULLPLAIN",`v?${Te[Ne.MAINVERSION]}${Te[Ne.PRERELEASE]}?${Te[Ne.BUILD]}?`);At("FULL",`^${Te[Ne.FULLPLAIN]}$`);At("LOOSEPLAIN",`[v=\\s]*${Te[Ne.MAINVERSIONLOOSE]}${Te[Ne.PRERELEASELOOSE]}?${Te[Ne.BUILD]}?`);At("LOOSE",`^${Te[Ne.LOOSEPLAIN]}$`);At("GTLT","((?:<|>)?=?)");At("XRANGEIDENTIFIERLOOSE",`${Te[Ne.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);At("XRANGEIDENTIFIER",`${Te[Ne.NUMERICIDENTIFIER]}|x|X|\\*`);At("XRANGEPLAIN",`[v=\\s]*(${Te[Ne.XRANGEIDENTIFIER]})(?:\\.(${Te[Ne.XRANGEIDENTIFIER]})(?:\\.(${Te[Ne.XRANGEIDENTIFIER]})(?:${Te[Ne.PRERELEASE]})?${Te[Ne.BUILD]}?)?)?`);At("XRANGEPLAINLOOSE",`[v=\\s]*(${Te[Ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Te[Ne.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Te[Ne.XRANGEIDENTIFIERLOOSE]})(?:${Te[Ne.PRERELEASELOOSE]})?${Te[Ne.BUILD]}?)?)?`);At("XRANGE",`^${Te[Ne.GTLT]}\\s*${Te[Ne.XRANGEPLAIN]}$`);At("XRANGELOOSE",`^${Te[Ne.GTLT]}\\s*${Te[Ne.XRANGEPLAINLOOSE]}$`);At("COERCEPLAIN",`(^|[^\\d])(\\d{1,${x9}})(?:\\.(\\d{1,${x9}}))?(?:\\.(\\d{1,${x9}}))?`);At("COERCE",`${Te[Ne.COERCEPLAIN]}(?:$|[^\\d])`);At("COERCEFULL",Te[Ne.COERCEPLAIN]+`(?:${Te[Ne.PRERELEASE]})?(?:${Te[Ne.BUILD]})?(?:$|[^\\d])`);At("COERCERTL",Te[Ne.COERCE],!0);At("COERCERTLFULL",Te[Ne.COERCEFULL],!0);At("LONETILDE","(?:~>?)");At("TILDETRIM",`(\\s*)${Te[Ne.LONETILDE]}\\s+`,!0);xf.tildeTrimReplace="$1~";At("TILDE",`^${Te[Ne.LONETILDE]}${Te[Ne.XRANGEPLAIN]}$`);At("TILDELOOSE",`^${Te[Ne.LONETILDE]}${Te[Ne.XRANGEPLAINLOOSE]}$`);At("LONECARET","(?:\\^)");At("CARETTRIM",`(\\s*)${Te[Ne.LONECARET]}\\s+`,!0);xf.caretTrimReplace="$1^";At("CARET",`^${Te[Ne.LONECARET]}${Te[Ne.XRANGEPLAIN]}$`);At("CARETLOOSE",`^${Te[Ne.LONECARET]}${Te[Ne.XRANGEPLAINLOOSE]}$`);At("COMPARATORLOOSE",`^${Te[Ne.GTLT]}\\s*(${Te[Ne.LOOSEPLAIN]})$|^$`);At("COMPARATOR",`^${Te[Ne.GTLT]}\\s*(${Te[Ne.FULLPLAIN]})$|^$`);At("COMPARATORTRIM",`(\\s*)${Te[Ne.GTLT]}\\s*(${Te[Ne.LOOSEPLAIN]}|${Te[Ne.XRANGEPLAIN]})`,!0);xf.comparatorTrimReplace="$1$2$3";At("HYPHENRANGE",`^\\s*(${Te[Ne.XRANGEPLAIN]})\\s+-\\s+(${Te[Ne.XRANGEPLAIN]})\\s*$`);At("HYPHENRANGELOOSE",`^\\s*(${Te[Ne.XRANGEPLAINLOOSE]})\\s+-\\s+(${Te[Ne.XRANGEPLAINLOOSE]})\\s*$`);At("STAR","(<|>)?=?\\s*\\*");At("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");At("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var hP=m((_2r,dve)=>{"use strict";var PCt=Object.freeze({loose:!0}),kCt=Object.freeze({}),QCt=o(t=>t?typeof t!="object"?PCt:t:kCt,"parseOptions");dve.exports=QCt});var T9=m((R2r,Ave)=>{"use strict";var pve=/^[0-9]+$/,mve=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=pve Line truncated
`).join(`
`+s),t.push(n+"m+"+$P.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=mvt()+e+" "+t[0]}o(pvt,"formatArgs");function mvt(){return Bs.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(mvt,"getDate");function Avt(...t){return process.stderr.write(jP.format(...t)+`
`)}o(Avt,"log");function gvt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(gvt,"save");function yvt(){return process.env.DEBUG}o(yvt,"load");function Evt(t){t.inspectOpts={};let e=Object.keys(Bs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Bs.inspectOpts[e[r]]}o(Evt,"init");$P.exports=f$()(Bs);var{formatters:Lxe}=$P.exports;Lxe.o=function(t){return this.inspectOpts.colors=this.useColors,jP.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Lxe.O=function(t){return this.inspectOpts.colors=this.useColors,jP.inspect(t,this.inspectOpts)}});var xy=m((uPr,m$)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?m$.exports=Dxe():m$.exports=Mxe()});var qxe=m(ba=>{"use strict";var bvt=ba&&ba.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),wvt=ba&&ba.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Fxe=ba&&ba.__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)&&bvt(e,t,r);return wvt(e,t),e};Object.defineProperty(ba,"__esModule",{value:!0});ba.req=ba.json=ba.toBuffer=void 0;var Cvt=Fxe(require("http")),Ivt=Fxe(require("https"));async function Uxe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}o(Uxe,"toBuffer");ba.toBuffer=Uxe;async function Svt(t){let r=(await Uxe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}o(Svt,"json");ba.json=Svt;function Bvt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Ivt:Cvt).request(t,e),n=new Promise((s,a)=>{i.once("response",s).once("error",a).end()});return i.then=n.then.bind(n),i}o(Bvt,"req");ba.req=Bvt});var Vxe=m(lc=>{"use strict";var Hxe=lc&&lc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),vvt=lc&&lc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zxe=lc&&lc.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Hxe(e,t,r);return vvt(e,t),e},_vt=lc&&lc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Hxe(e,t,r)};Object.defineProperty(lc,"__esModule",{value:!0});lc.Agent=void 0;var xvt=zxe(require("net")),Gxe=zxe(require("http")),Rvt=require("https");_vt(qxe(),lc);var Df=Symbol("AgentBaseInternalState"),A$=class extends Gxe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Df]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 xvt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Rvt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(s,a),c instanceof Gxe.Agent)try{return c.addRequest(e,n)}catch(u){return i(u)}this[Df].currentSocket=c,super.createSocket(e,r,i)},c=>{this.decrementSockets(s,a),i(c)})}createConnection(){let e=this[Df].currentSocket;if(this[Df].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Df].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Df]&&(this[Df].defaultPort=e)}get protocol(){return this[Df].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Df]&&(this[Df].protocol=e)}};lc.Agent=A$});var jxe=m(_w=>{"use strict";var Tvt=_w&&_w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_w,"__esModule",{value:!0});_w.parseProxyResponse=void 0;var Nvt=Tvt(xy()),WP=(0,Nvt.default)("https-proxy-agent:parse-proxy-response");function Dvt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let f=t.read();f?l(f):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),WP("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function u(f){a(),WP("onerror %o",f),r(f)}o(u,"onerror");function l(f){n.push(f),i+=f.length;let h=Buffer.concat(n,i),d=h.indexOf(`\r
`+s),t.push(n+"m+"+KP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Cvt()+e+" "+t[0]}o(wvt,"formatArgs");function Cvt(){return vs.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Cvt,"getDate");function Ivt(...t){return process.stderr.write(YP.format(...t)+`
`)}o(Ivt,"log");function Svt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Svt,"save");function Bvt(){return process.env.DEBUG}o(Bvt,"load");function vvt(t){t.inspectOpts={};let e=Object.keys(vs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vs.inspectOpts[e[r]]}o(vvt,"init");KP.exports=y$()(vs);var{formatters:Jxe}=KP.exports;Jxe.o=function(t){return this.inspectOpts.colors=this.useColors,YP.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Jxe.O=function(t){return this.inspectOpts.colors=this.useColors,YP.inspect(t,this.inspectOpts)}});var Ny=m((APr,C$)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?C$.exports=zxe():C$.exports=Yxe()});var Zxe=m(wa=>{"use strict";var _vt=wa&&wa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),xvt=wa&&wa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kxe=wa&&wa.__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)&&_vt(e,t,r);return xvt(e,t),e};Object.defineProperty(wa,"__esModule",{value:!0});wa.req=wa.json=wa.toBuffer=void 0;var Rvt=Kxe(require("http")),Tvt=Kxe(require("https"));async function Xxe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}o(Xxe,"toBuffer");wa.toBuffer=Xxe;async function Nvt(t){let r=(await Xxe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}o(Nvt,"json");wa.json=Nvt;function Dvt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Tvt:Rvt).request(t,e),n=new Promise((s,a)=>{i.once("response",s).once("error",a).end()});return i.then=n.then.bind(n),i}o(Dvt,"req");wa.req=Dvt});var iRe=m(hc=>{"use strict";var tRe=hc&&hc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Ovt=hc&&hc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rRe=hc&&hc.__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)&&tRe(e,t,r);return Ovt(e,t),e},Pvt=hc&&hc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&tRe(e,t,r)};Object.defineProperty(hc,"__esModule",{value:!0});hc.Agent=void 0;var kvt=rRe(require("net")),eRe=rRe(require("http")),Qvt=require("https");Pvt(Zxe(),hc);var Df=Symbol("AgentBaseInternalState"),I$=class extends eRe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Df]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 kvt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Qvt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(s,a),c instanceof eRe.Agent)try{return c.addRequest(e,n)}catch(u){return i(u)}this[Df].currentSocket=c,super.createSocket(e,r,i)},c=>{this.decrementSockets(s,a),i(c)})}createConnection(){let e=this[Df].currentSocket;if(this[Df].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Df].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Df]&&(this[Df].defaultPort=e)}get protocol(){return this[Df].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Df]&&(this[Df].protocol=e)}};hc.Agent=I$});var nRe=m(Tw=>{"use strict";var Lvt=Tw&&Tw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tw,"__esModule",{value:!0});Tw.parseProxyResponse=void 0;var Mvt=Lvt(Ny()),XP=(0,Mvt.default)("https-proxy-agent:parse-proxy-response");function Fvt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let f=t.read();f?l(f):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),XP("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function u(f){a(),XP("onerror %o",f),r(f)}o(u,"onerror");function l(f){n.push(f),i+=f.length;let h=Buffer.concat(n,i),d=h.indexOf(`\r
\r
`);if(d===-1){WP("have not received end of HTTP headers yet..."),s();return}let p=h.slice(0,d).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let y=A.split(" "),b=+y[1],E=y.slice(2).join(" "),w={};for(let B of p){if(!B)continue;let R=B.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let M=B.slice(0,R).toLowerCase(),V=B.slice(R+1).trimStart(),Q=w[M];typeof Q=="string"?w[M]=[Q,V]:Array.isArray(Q)?Q.push(V):w[M]=V}WP("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:b,statusText:E,headers:w},buffered:h})}o(l,"ondata"),t.on("error",u),t.on("end",c),s()})}o(Dvt,"parseProxyResponse");_w.parseProxyResponse=Dvt});var Xxe=m(du=>{"use strict";var Ovt=du&&du.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Pvt=du&&du.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Yxe=du&&du.__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)&&Ovt(e,t,r);return Pvt(e,t),e},Kxe=du&&du.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(du,"__esModule",{value:!0});du.HttpsProxyAgent=void 0;var JP=Yxe(require("net")),$xe=Yxe(require("tls")),kvt=Kxe(require("assert")),Qvt=Kxe(xy()),Lvt=Vxe(),Mvt=require("url"),Fvt=jxe(),D_=(0,Qvt.default)("https-proxy-agent"),Wxe=o(t=>t.servername===void 0&&t.host&&!JP.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),YP=class extends Lvt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Mvt.URL(e):e,this.proxyHeaders=r?.headers??{},D_("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Jxe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?(D_("Creating `tls.Socket`: %o",this.connectOpts),n=$xe.connect(Wxe(this.connectOpts))):(D_("Creating `net.Socket`: %o",this.connectOpts),n=JP.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=JP.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(d===-1){XP("have not received end of HTTP headers yet..."),s();return}let p=h.slice(0,d).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let y=A.split(" "),b=+y[1],E=y.slice(2).join(" "),w={};for(let B of p){if(!B)continue;let R=B.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let M=B.slice(0,R).toLowerCase(),V=B.slice(R+1).trimStart(),Q=w[M];typeof Q=="string"?w[M]=[Q,V]:Array.isArray(Q)?Q.push(V):w[M]=V}XP("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:b,statusText:E,headers:w},buffered:h})}o(l,"ondata"),t.on("error",u),t.on("end",c),s()})}o(Fvt,"parseProxyResponse");Tw.parseProxyResponse=Fvt});var lRe=m(pu=>{"use strict";var Uvt=pu&&pu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),qvt=pu&&pu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cRe=pu&&pu.__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)&&Uvt(e,t,r);return qvt(e,t),e},uRe=pu&&pu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pu,"__esModule",{value:!0});pu.HttpsProxyAgent=void 0;var ZP=cRe(require("net")),sRe=cRe(require("tls")),Gvt=uRe(require("assert")),Hvt=uRe(Ny()),zvt=iRe(),Vvt=require("url"),jvt=nRe(),Q_=(0,Hvt.default)("https-proxy-agent"),oRe=o(t=>t.servername===void 0&&t.host&&!ZP.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),ek=class extends zvt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Vvt.URL(e):e,this.proxyHeaders=r?.headers??{},Q_("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?aRe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?(Q_("Creating `tls.Socket`: %o",this.connectOpts),n=sRe.connect(oRe(this.connectOpts))):(Q_("Creating `net.Socket`: %o",this.connectOpts),n=ZP.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ZP.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let d=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(s))c+=`${d}: ${s[d]}\r
`;let u=(0,Fvt.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:l,buffered:f}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",Uvt),r.secureEndpoint?(D_("Upgrading socket connection to TLS"),$xe.connect({...Jxe(Wxe(r),"host","path","port"),socket:n})):n;n.destroy();let h=new JP.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{D_("Replaying proxy buffer for failed request"),(0,kvt.default)(d.listenerCount("data")>0),d.push(f),d.push(null)}),h}};YP.protocols=["http","https"];du.HttpsProxyAgent=YP;function Uvt(t){t.resume()}o(Uvt,"resume");function Jxe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(Jxe,"omit")});var tRe=m(wa=>{"use strict";var qvt=wa&&wa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Gvt=wa&&wa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zxe=wa&&wa.__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)&&qvt(e,t,r);return Gvt(e,t),e};Object.defineProperty(wa,"__esModule",{value:!0});wa.req=wa.json=wa.toBuffer=void 0;var Hvt=Zxe(require("http")),zvt=Zxe(require("https"));async function eRe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}o(eRe,"toBuffer");wa.toBuffer=eRe;async function Vvt(t){let r=(await eRe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}o(Vvt,"json");wa.json=Vvt;function jvt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?zvt:Hvt).request(t,e),n=new Promise((s,a)=>{i.once("response",s).once("error",a).end()});return i.then=n.then.bind(n),i}o(jvt,"req");wa.req=jvt});var O_=m(fc=>{"use strict";var iRe=fc&&fc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$vt=fc&&fc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nRe=fc&&fc.__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)&&iRe(e,t,r);return $vt(e,t),e},Wvt=fc&&fc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&iRe(e,t,r)};Object.defineProperty(fc,"__esModule",{value:!0});fc.Agent=void 0;var Jvt=nRe(require("net")),rRe=nRe(require("http")),Yvt=require("https");Wvt(tRe(),fc);var Of=Symbol("AgentBaseInternalState"),g$=class extends rRe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Of]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 Jvt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Yvt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(s,a),c instanceof rRe.Agent)return c.addRequest(e,n);this[Of].currentSocket=c,super.createSocket(e,r,i)},c=>{this.decrementSockets(s,a),i(c)})}createConnection(){let e=this[Of].currentSocket;if(this[Of].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Of].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Of]&&(this[Of].defaultPort=e)}get protocol(){return this[Of].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Of]&&(this[Of].protocol=e)}};fc.Agent=g$});var y$=m(pu=>{"use strict";var Kvt=pu&&pu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Xvt=pu&&pu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oRe=pu&&pu.__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)&&Kvt(e,t,r);return Xvt(e,t),e},Zvt=pu&&pu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pu,"__esModule",{value:!0});pu.HttpProxyAgent=void 0;var e_t=oRe(require("net")),t_t=oRe(require("tls")),r_t=Zvt(xy()),i_t=require("events"),n_t=O_(),sRe=require("url"),xw=(0,r_t.default)("http-proxy-agent"),KP=class extends n_t.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new sRe.URL(e):e,this.proxyHeaders=r?.headers??{},xw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?s_t(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${n}//${s}`,c=new sRe.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(i.username||i.password){let l=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(u)){let f=u[l];f&&e.setHeader(l,f)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;xw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(xw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
`;let u=(0,jvt.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:l,buffered:f}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",$vt),r.secureEndpoint?(Q_("Upgrading socket connection to TLS"),sRe.connect({...aRe(oRe(r),"host","path","port"),socket:n})):n;n.destroy();let h=new ZP.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{Q_("Replaying proxy buffer for failed request"),(0,Gvt.default)(d.listenerCount("data")>0),d.push(f),d.push(null)}),h}};ek.protocols=["http","https"];pu.HttpsProxyAgent=ek;function $vt(t){t.resume()}o($vt,"resume");function aRe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(aRe,"omit")});var dRe=m(Ca=>{"use strict";var Wvt=Ca&&Ca.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Jvt=Ca&&Ca.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fRe=Ca&&Ca.__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)&&Wvt(e,t,r);return Jvt(e,t),e};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.req=Ca.json=Ca.toBuffer=void 0;var Yvt=fRe(require("http")),Kvt=fRe(require("https"));async function hRe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}o(hRe,"toBuffer");Ca.toBuffer=hRe;async function Xvt(t){let r=(await hRe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}o(Xvt,"json");Ca.json=Xvt;function Zvt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Kvt:Yvt).request(t,e),n=new Promise((s,a)=>{i.once("response",s).once("error",a).end()});return i.then=n.then.bind(n),i}o(Zvt,"req");Ca.req=Zvt});var L_=m(dc=>{"use strict";var mRe=dc&&dc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),e_t=dc&&dc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ARe=dc&&dc.__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)&&mRe(e,t,r);return e_t(e,t),e},t_t=dc&&dc.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mRe(e,t,r)};Object.defineProperty(dc,"__esModule",{value:!0});dc.Agent=void 0;var r_t=ARe(require("net")),pRe=ARe(require("http")),i_t=require("https");t_t(dRe(),dc);var Of=Symbol("AgentBaseInternalState"),S$=class extends pRe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Of]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 r_t.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?i_t.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(s,a),c instanceof pRe.Agent)return c.addRequest(e,n);this[Of].currentSocket=c,super.createSocket(e,r,i)},c=>{this.decrementSockets(s,a),i(c)})}createConnection(){let e=this[Of].currentSocket;if(this[Of].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Of].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Of]&&(this[Of].defaultPort=e)}get protocol(){return this[Of].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Of]&&(this[Of].protocol=e)}};dc.Agent=S$});var B$=m(mu=>{"use strict";var n_t=mu&&mu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),s_t=mu&&mu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yRe=mu&&mu.__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)&&n_t(e,t,r);return s_t(e,t),e},o_t=mu&&mu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mu,"__esModule",{value:!0});mu.HttpProxyAgent=void 0;var a_t=yRe(require("net")),c_t=yRe(require("tls")),u_t=o_t(Ny()),l_t=require("events"),f_t=L_(),gRe=require("url"),Nw=(0,u_t.default)("http-proxy-agent"),tk=class extends f_t.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new gRe.URL(e):e,this.proxyHeaders=r?.headers??{},Nw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?h_t(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${n}//${s}`,c=new gRe.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(i.username||i.password){let l=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(u)){let f=u[l];f&&e.setHeader(l,f)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;Nw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Nw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+i.substring(n),xw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(xw("Creating `tls.Socket`: %o",this.connectOpts),s=t_t.connect(this.connectOpts)):(xw("Creating `net.Socket`: %o",this.connectOpts),s=e_t.connect(this.connectOpts)),await(0,i_t.once)(s,"connect"),s}};KP.protocols=["http","https"];pu.HttpProxyAgent=KP;function s_t(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(s_t,"omit")});var xRe=m(fk=>{"use strict";Object.defineProperty(fk,"__esModule",{value:!0});fk.state=void 0;fk.state={instrumenterImplementation:void 0}});var VRe=m(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.state=void 0;Ak.state={operationRequestMap:new WeakMap}});var I2e=m(jw=>{"use strict";Object.defineProperty(jw,"__esModule",{value:!0});var B2t=require("os"),v2t=require("util");function _2t(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(_2t,"_interopDefaultLegacy");var x2t=_2t(v2t);function R2t(t,...e){process.stderr.write(`${x2t.default.format(t,...e)}${B2t.EOL}`)}o(R2t,"log");var d2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,m2e,Y7=[],K7=[],kQ=[];d2e&&X7(d2e);var A2e=Object.assign(t=>g2e(t),{enable:X7,enabled:Z7,disable:T2t,log:R2t});function X7(t){m2e=t,Y7=[],K7=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?K7.push(new RegExp(`^${i.substr(1)}$`)):Y7.push(new RegExp(`^${i}$`));for(let i of kQ)i.enabled=Z7(i.namespace)}o(X7,"enable");function Z7(t){if(t.endsWith("*"))return!0;for(let e of K7)if(e.test(t))return!1;for(let e of Y7)if(e.test(t))return!0;return!1}o(Z7,"enabled");function T2t(){let t=m2e||"";return X7(""),t}o(T2t,"disable");function g2e(t){let e=Object.assign(r,{enabled:Z7(t),destroy:N2t,log:A2e.log,namespace:t,extend:D2t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return o(r,"debug"),kQ.push(e),e}o(g2e,"createDebugger");function N2t(){let t=kQ.indexOf(this);return t>=0?(kQ.splice(t,1),!0):!1}o(N2t,"destroy");function D2t(t){let e=g2e(`${this.namespace}:${t}`);return e.log=this.log,e}o(D2t,"extend");var bx=A2e,y2e=new Set,OQ=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,QQ,LQ=bx("azure");LQ.log=(...t)=>{bx.log(...t)};var eK=["verbose","info","warning","error"];OQ&&(C2e(OQ)?E2e(OQ):console.error(`AZURE_LOG_LEVEL set to unknown log level '${OQ}'; logging is not enabled. Acceptable values: ${eK.join(", ")}.`));function E2e(t){if(t&&!C2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${eK.join(",")}`);QQ=t;let e=[];for(let r of y2e)w2e(r)&&e.push(r.namespace);bx.enable(e.join(","))}o(E2e,"setLogLevel");function O2t(){return QQ}o(O2t,"getLogLevel");var p2e={verbose:400,info:300,warning:200,error:100};function P2t(t){let e=LQ.extend(t);return b2e(LQ,e),{error:PQ(e,"error"),warning:PQ(e,"warning"),info:PQ(e,"info"),verbose:PQ(e,"verbose")}}o(P2t,"createClientLogger");function b2e(t,e){e.log=(...r)=>{t.log(...r)}}o(b2e,"patchLogMethod");function PQ(t,e){let r=Object.assign(t.extend(e),{level:e});if(b2e(t,r),w2e(r)){let i=bx.disable();bx.enable(i+","+r.namespace)}return y2e.add(r),r}o(PQ,"createLogger");function w2e(t){return!!(QQ&&p2e[t.level]<=p2e[QQ])}o(w2e,"shouldEnable");function C2e(t){return eK.includes(t)}o(C2e,"isAzureLogLevel");jw.AzureLogger=LQ;jw.createClientLogger=P2t;jw.getLogLevel=O2t;jw.setLogLevel=E2e});var iK=m(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0});var $w=new WeakMap,MQ=new WeakMap,wx=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,$w.set(this,[]),MQ.set(this,!1)}get aborted(){if(!MQ.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return MQ.get(this)}static get none(){return new t}addEventListener(e,r){if(!$w.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");$w.get(this).push(r)}removeEventListener(e,r){if(!$w.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=$w.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function S2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=$w.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),MQ.set(t,!0)}o(S2e,"abortSignal");var tK=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},rK=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new wx,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){S2e(this._signal)}static timeout(e){let r=new wx,i=setTimeout(S2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};Cx.AbortController=rK;Cx.AbortError=tK;Cx.AbortSignal=wx});var R2e=m(Ci=>{"use strict";Object.defineP Line truncated
`)+4,e.outputData[0].data=e._header+i.substring(n),Nw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Nw("Creating `tls.Socket`: %o",this.connectOpts),s=c_t.connect(this.connectOpts)):(Nw("Creating `net.Socket`: %o",this.connectOpts),s=a_t.connect(this.connectOpts)),await(0,l_t.once)(s,"connect"),s}};tk.protocols=["http","https"];mu.HttpProxyAgent=tk;function h_t(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(h_t,"omit")});var URe=m(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});mk.state=void 0;mk.state={instrumenterImplementation:void 0}});var iTe=m(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.state=void 0;bk.state={operationRequestMap:new WeakMap}});var k2e=m(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});var D2t=require("os"),O2t=require("util");function P2t(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(P2t,"_interopDefaultLegacy");var k2t=P2t(O2t);function Q2t(t,...e){process.stderr.write(`${k2t.default.format(t,...e)}${D2t.EOL}`)}o(Q2t,"log");var B2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,_2e,iK=[],nK=[],FQ=[];B2e&&sK(B2e);var x2e=Object.assign(t=>R2e(t),{enable:sK,enabled:oK,disable:L2t,log:Q2t});function sK(t){_2e=t,iK=[],nK=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?nK.push(new RegExp(`^${i.substr(1)}$`)):iK.push(new RegExp(`^${i}$`));for(let i of FQ)i.enabled=oK(i.namespace)}o(sK,"enable");function oK(t){if(t.endsWith("*"))return!0;for(let e of nK)if(e.test(t))return!1;for(let e of iK)if(e.test(t))return!0;return!1}o(oK,"enabled");function L2t(){let t=_2e||"";return sK(""),t}o(L2t,"disable");function R2e(t){let e=Object.assign(r,{enabled:oK(t),destroy:M2t,log:x2e.log,namespace:t,extend:F2t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return o(r,"debug"),FQ.push(e),e}o(R2e,"createDebugger");function M2t(){let t=FQ.indexOf(this);return t>=0?(FQ.splice(t,1),!0):!1}o(M2t,"destroy");function F2t(t){let e=R2e(`${this.namespace}:${t}`);return e.log=this.log,e}o(F2t,"extend");var Sx=x2e,T2e=new Set,LQ=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,UQ,qQ=Sx("azure");qQ.log=(...t)=>{Sx.log(...t)};var aK=["verbose","info","warning","error"];LQ&&(P2e(LQ)?N2e(LQ):console.error(`AZURE_LOG_LEVEL set to unknown log level '${LQ}'; logging is not enabled. Acceptable values: ${aK.join(", ")}.`));function N2e(t){if(t&&!P2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${aK.join(",")}`);UQ=t;let e=[];for(let r of T2e)O2e(r)&&e.push(r.namespace);Sx.enable(e.join(","))}o(N2e,"setLogLevel");function U2t(){return UQ}o(U2t,"getLogLevel");var v2e={verbose:400,info:300,warning:200,error:100};function q2t(t){let e=qQ.extend(t);return D2e(qQ,e),{error:MQ(e,"error"),warning:MQ(e,"warning"),info:MQ(e,"info"),verbose:MQ(e,"verbose")}}o(q2t,"createClientLogger");function D2e(t,e){e.log=(...r)=>{t.log(...r)}}o(D2e,"patchLogMethod");function MQ(t,e){let r=Object.assign(t.extend(e),{level:e});if(D2e(t,r),O2e(r)){let i=Sx.disable();Sx.enable(i+","+r.namespace)}return T2e.add(r),r}o(MQ,"createLogger");function O2e(t){return!!(UQ&&v2e[t.level]<=v2e[UQ])}o(O2e,"shouldEnable");function P2e(t){return aK.includes(t)}o(P2e,"isAzureLogLevel");Jw.AzureLogger=qQ;Jw.createClientLogger=q2t;Jw.getLogLevel=U2t;Jw.setLogLevel=N2e});var lK=m(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var Yw=new WeakMap,GQ=new WeakMap,Bx=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Yw.set(this,[]),GQ.set(this,!1)}get aborted(){if(!GQ.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return GQ.get(this)}static get none(){return new t}addEventListener(e,r){if(!Yw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Yw.get(this).push(r)}removeEventListener(e,r){if(!Yw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Yw.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Q2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Yw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),GQ.set(t,!0)}o(Q2e,"abortSignal");var cK=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},uK=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Bx,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Q2e(this._signal)}static timeout(e){let r=new Bx,i=setTimeout(Q2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};vx.AbortController=uK;vx.AbortError=cK;vx.AbortSignal=Bx});var q2e=m(Ii=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${f}
Polling status: ${O2e.includes(f)?"Stopped":"Running"}`),f==="succeeded"){let h=a(l,r);if(h!==void 0)return{response:await e(h).catch(N2e({state:r,stateProxy:i,isOperationError:c})),status:f}}return{response:l,status:f}}o(l1t,"pollOperationHelper");async function L2e(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:l,getPollingInterval:f,processResult:h,getError:d,updateState:p,setDelay:A,isDone:y,setErrorAsResult:b}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:w,status:B}=await l1t({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:E,getResourceLocation:a,isOperationError:u,options:n});if(k2e({status:B,response:w,state:r,stateProxy:i,isDone:y,processResult:h,getError:d,setErrorAsResult:b}),!O2e.includes(B)){let R=f?.(w);R&&A(R);let M=c?.(w,r);if(M!==void 0){let V=E!==M;r.config.operationLocation=M,l?.(M,V)}else l?.(E,!1)}p?.(r,w)}}o(L2e,"pollOperation");function M2e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(M2e,"getOperationLocationPollingUrl");function F2e(t){return t.headers.location}o(F2e,"getLocationHeader");function U2e(t){return t.headers["operation-location"]}o(U2e,"getOperationLocationHeader");function q2e(t){return t.headers["azure-asyncoperation"]}o(q2e,"getAzureAsyncOperationHeader");function f1t(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(f1t,"findResourceLocation");function G2e(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=U2e(e),a=q2e(e),c=M2e({operationLocation:s,azureAsyncOperation:a}),u=F2e(e),l=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:f1t({requestMethod:l,location:u,requestPath:i,resourceLocationConfig:n})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(G2e,"inferLroMode");function H2e(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 pK(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 jy.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(H2e,"transformStatus");function h1t(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return H2e({status:r,statusCode:t.statusCode})}o(h1t,"getStatus");function d1t(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return H2e({status:s,statusCode:t.statusCode})}o(d1t,"getProvisioningState");function pK(t){return t===202?"running":t<300?"succeeded":"failed"}o(pK,"toOperationStatus");function z2e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?p1t(new Date(e)):r*1e3}}o(z2e,"parseRetryAfter");function V2e(t){let e=t.flatResponse.error;if(!e){jy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){jy.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(V2e,"getErrorFromResponse");function p1t(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(p1t,"calculatePollingIntervalFromDate");function j2e(t){let{response:e,state:r,operationLocation:i}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return pK(e.rawResponse.statusCode);case"Body":return mK(e,r);default:return"running"}}o(n,"helper");let s=n();return s==="running"&&i===void 0?"succeeded":s}o(j2e,"getStatusFromInitialResponse");async function m1t(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return Q2e({init:o(async()=>{let a=await n.sendInitialRequest(),c=G2e({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:i?({flatResponse:a},c)=>i(a,c):({flatResponse:a})=>a,getOperationStatus:j2e,setErrorAsResult:s})}o(m1t,"initHttpOperation");function $2e({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=s,n=1;break;case 1:r[i++]=a<<2|(s&48)>>4,a=s,n=2;break;case 2:r[i++]=(a&15)<<4|(s&60)>>2,a=s,n=3;break;case 3:r[i++]=(a&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}o(X1t,"base64decode");Zw.base64decode=X1t;function Z1t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=rp[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=rp[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=rp[n|i>>6],e+=rp[i&63],r=0;break}return r&&(e+=rp[n],e+="=",r==1&&(e+="=")),e}o(Z1t,"base64encode");Zw.base64encode=Z1t});var I1e=m(iL=>{"use strict";Object.defineProperty(iL,"__esModule",{value:!0});iL.utf8read=void 0;var BK=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function eDt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(BK(i)),n=0);return r.length?(n&&r.push(BK(i.slice(0,n))),r.join("")):BK(i.slice(0,n))}o(eDt,"utf8read");iL.utf8read=eDt});var Tx=m(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.WireType=sh.mergeBinaryOptions=sh.UnknownFieldHandler=void 0;var tDt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,a)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:a})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:a,data:c}of t.list(i))n.tag(s,a).raw(c)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(tDt=sh.UnknownFieldHandler||(sh.UnknownFieldHandler={}));function rDt(t,e){return Object.assign(Object.assign({},t),e)}o(rDt,"mergeBinaryOptions");sh.mergeBinaryOptions=rDt;var iDt;(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"})(iDt=sh.WireType||(sh.WireType={}))});var sL=m(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.varint32read=xa.varint32write=xa.int64toString=xa.int64fromString=xa.varint64write=xa.varint64read=void 0;function nDt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(nDt,"varint64read");xa.varint64read=nDt;function sDt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(sDt,"varint64write");xa.varint64write=sDt;var nL=65536*65536;function oDt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(a,c){let u=Number(t.slice(a,c));n*=r,i=i*r+u,i>=nL&&(n=n+(i/nL|0),i=i%nL)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}o(oDt,"int64fromString");xa.int64fromString=oDt;function aDt(t,e){if(e>>>0<=2097151)return""+(nL*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,a=i+n*8147497,c=n*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function l(f,h){let d=f?String(f):"";return h?"0000000".slice(d.length)+d:d}return o(l,"decimalFrom1e7"),l(c,0)+l(a,c)+l(s,1)}o(aDt,"int64toString");xa.int64toString=aDt;function cDt(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(cDt,"varint32write");xa.varint32write=cDt;function uDt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(uDt,"varint32read");xa.varint32read=uDt});var pA=m(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.PbLong=dA.PbULong=dA.detectBi=void 0;var Nx=sL(),Br;function S1e(){let t=new DataView(new ArrayBuffer(8));Br=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};DL.RpcError=XK});var eX=m(PL=>{"use strict";Object.defineProperty(PL,"__esModule",{value:!0});PL.mergeRpcOptions=void 0;var rDe=Hi();function NOt(t,e){if(!e)return t;let r={};OL(t,r),OL(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=rDe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=rDe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},OL(t.meta,r.meta),OL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(NOt,"mergeRpcOptions");PL.mergeRpcOptions=NOt;function OL(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}o(OL,"copy")});var rX=m(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.Deferred=Ky.DeferredState=void 0;var ch;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ch=Ky.DeferredState||(Ky.DeferredState={}));var tX=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ch.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ch.PENDING)throw new Error(`cannot resolve ${ch[this.state].toLowerCase()}`);this._resolve(e),this._state=ch.RESOLVED}reject(e){if(this.state!==ch.PENDING)throw new Error(`cannot reject ${ch[this.state].toLowerCase()}`);this._reject(e),this._state=ch.REJECTED}resolvePending(e){this._state===ch.PENDING&&this.resolve(e)}rejectPending(e){this._state===ch.PENDING&&this.reject(e)}};Ky.Deferred=tX});var nX=m(kL=>{"use strict";Object.defineProperty(kL,"__esModule",{value:!0});kL.RpcOutputStreamController=void 0;var iDe=rX(),Xy=Hi(),iX=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){Xy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Xy.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){Xy.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(){Xy.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;Xy.assert(e,"bad state"),Xy.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 iDe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Xy.assert(i.state==iDe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};kL.RpcOutputStreamController=iX});var oX=m(oC=>{"use strict";var DOt=oC&&oC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(oC,"__esModule",{value:!0});oC.UnaryCall=void 0;var sX=class{static{o(this,"UnaryCall")}constructor(e,r,i,n,s,a,c){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return DOt(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};oC.UnaryCall=sX});var cX=m(aC=>{"use strict";var OOt=aC&&aC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function Line truncated
Polling status: ${V2e.includes(f)?"Stopped":"Running"}`),f==="succeeded"){let h=a(l,r);if(h!==void 0)return{response:await e(h).catch(H2e({state:r,stateProxy:i,isOperationError:c})),status:f}}return{response:l,status:f}}o(g1t,"pollOperationHelper");async function J2e(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:l,getPollingInterval:f,processResult:h,getError:d,updateState:p,setDelay:A,isDone:y,setErrorAsResult:b}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:w,status:B}=await g1t({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:E,getResourceLocation:a,isOperationError:u,options:n});if($2e({status:B,response:w,state:r,stateProxy:i,isDone:y,processResult:h,getError:d,setErrorAsResult:b}),!V2e.includes(B)){let R=f?.(w);R&&A(R);let M=c?.(w,r);if(M!==void 0){let V=E!==M;r.config.operationLocation=M,l?.(M,V)}else l?.(E,!1)}p?.(r,w)}}o(J2e,"pollOperation");function Y2e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Y2e,"getOperationLocationPollingUrl");function K2e(t){return t.headers.location}o(K2e,"getLocationHeader");function X2e(t){return t.headers["operation-location"]}o(X2e,"getOperationLocationHeader");function Z2e(t){return t.headers["azure-asyncoperation"]}o(Z2e,"getAzureAsyncOperationHeader");function y1t(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(y1t,"findResourceLocation");function e1e(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=X2e(e),a=Z2e(e),c=Y2e({operationLocation:s,azureAsyncOperation:a}),u=K2e(e),l=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:y1t({requestMethod:l,location:u,requestPath:i,resourceLocationConfig:n})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:l==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}o(e1e,"inferLroMode");function t1e(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 wK(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 Jy.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(t1e,"transformStatus");function E1t(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return t1e({status:r,statusCode:t.statusCode})}o(E1t,"getStatus");function b1t(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return t1e({status:s,statusCode:t.statusCode})}o(b1t,"getProvisioningState");function wK(t){return t===202?"running":t<300?"succeeded":"failed"}o(wK,"toOperationStatus");function r1e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?w1t(new Date(e)):r*1e3}}o(r1e,"parseRetryAfter");function i1e(t){let e=t.flatResponse.error;if(!e){Jy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Jy.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(i1e,"getErrorFromResponse");function w1t(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(w1t,"calculatePollingIntervalFromDate");function n1e(t){let{response:e,state:r,operationLocation:i}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return wK(e.rawResponse.statusCode);case"Body":return CK(e,r);default:return"running"}}o(n,"helper");let s=n();return s==="running"&&i===void 0?"succeeded":s}o(n1e,"getStatusFromInitialResponse");async function C1t(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return W2e({init:o(async()=>{let a=await n.sendInitialRequest(),c=e1e({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:i?({flatResponse:a},c)=>i(a,c):({flatResponse:a})=>a,getOperationStatus:n1e,setErrorAsResult:s})}o(C1t,"initHttpOperation");function s1e({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=s,n=1;break;case 1:r[i++]=a<<2|(s&48)>>4,a=s,n=2;break;case 2:r[i++]=(a&15)<<4|(s&60)>>2,a=s,n=3;break;case 3:r[i++]=(a&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}o(sDt,"base64decode");rC.base64decode=sDt;function oDt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=ip[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=ip[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=ip[n|i>>6],e+=ip[i&63],r=0;break}return r&&(e+=ip[n],e+="=",r==1&&(e+="=")),e}o(oDt,"base64encode");rC.base64encode=oDt});var k1e=m(aL=>{"use strict";Object.defineProperty(aL,"__esModule",{value:!0});aL.utf8read=void 0;var DK=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function aDt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(DK(i)),n=0);return r.length?(n&&r.push(DK(i.slice(0,n))),r.join("")):DK(i.slice(0,n))}o(aDt,"utf8read");aL.utf8read=aDt});var Px=m(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.WireType=sh.mergeBinaryOptions=sh.UnknownFieldHandler=void 0;var cDt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,a)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:a})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:a,data:c}of t.list(i))n.tag(s,a).raw(c)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(cDt=sh.UnknownFieldHandler||(sh.UnknownFieldHandler={}));function uDt(t,e){return Object.assign(Object.assign({},t),e)}o(uDt,"mergeBinaryOptions");sh.mergeBinaryOptions=uDt;var lDt;(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"})(lDt=sh.WireType||(sh.WireType={}))});var uL=m(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.varint32read=Ra.varint32write=Ra.int64toString=Ra.int64fromString=Ra.varint64write=Ra.varint64read=void 0;function fDt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(fDt,"varint64read");Ra.varint64read=fDt;function hDt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(hDt,"varint64write");Ra.varint64write=hDt;var cL=65536*65536;function dDt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(a,c){let u=Number(t.slice(a,c));n*=r,i=i*r+u,i>=cL&&(n=n+(i/cL|0),i=i%cL)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}o(dDt,"int64fromString");Ra.int64fromString=dDt;function pDt(t,e){if(e>>>0<=2097151)return""+(cL*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,a=i+n*8147497,c=n*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function l(f,h){let d=f?String(f):"";return h?"0000000".slice(d.length)+d:d}return o(l,"decimalFrom1e7"),l(c,0)+l(a,c)+l(s,1)}o(pDt,"int64toString");Ra.int64toString=pDt;function mDt(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(mDt,"varint32write");Ra.varint32write=mDt;function ADt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(ADt,"varint32read");Ra.varint32read=ADt});var pA=m(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.PbLong=dA.PbULong=dA.detectBi=void 0;var kx=uL(),Br;function Q1e(){let t=new DataView(new ArrayBuffer(8));Br=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};QL.RpcError=sX});var aX=m(ML=>{"use strict";Object.defineProperty(ML,"__esModule",{value:!0});ML.mergeRpcOptions=void 0;var pDe=zi();function MOt(t,e){if(!e)return t;let r={};LL(t,r),LL(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=pDe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=pDe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LL(t.meta,r.meta),LL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(MOt,"mergeRpcOptions");ML.mergeRpcOptions=MOt;function LL(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}o(LL,"copy")});var uX=m(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.Deferred=eE.DeferredState=void 0;var ch;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ch=eE.DeferredState||(eE.DeferredState={}));var cX=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ch.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ch.PENDING)throw new Error(`cannot resolve ${ch[this.state].toLowerCase()}`);this._resolve(e),this._state=ch.RESOLVED}reject(e){if(this.state!==ch.PENDING)throw new Error(`cannot reject ${ch[this.state].toLowerCase()}`);this._reject(e),this._state=ch.REJECTED}resolvePending(e){this._state===ch.PENDING&&this.resolve(e)}rejectPending(e){this._state===ch.PENDING&&this.reject(e)}};eE.Deferred=cX});var fX=m(FL=>{"use strict";Object.defineProperty(FL,"__esModule",{value:!0});FL.RpcOutputStreamController=void 0;var mDe=uX(),tE=zi(),lX=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){tE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){tE.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){tE.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(){tE.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;tE.assert(e,"bad state"),tE.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 mDe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;tE.assert(i.state==mDe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};FL.RpcOutputStreamController=lX});var dX=m(uC=>{"use strict";var FOt=uC&&uC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(uC,"__esModule",{value:!0});uC.UnaryCall=void 0;var hX=class{static{o(this,"UnaryCall")}constructor(e,r,i,n,s,a,c){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return FOt(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};uC.UnaryCall=hX});var mX=m(lC=>{"use strict";var UOt=lC&&lC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function Line truncated
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(OMt,"logUnexpecedPropertyAccessOnce");function PMt(){Object.keys(AM).forEach(function(t){delete AM[t]})}o(PMt,"resetLoggedProperties")});var yM=m(hh=>{"use strict";hh.__esModule=!0;hh.HandlebarsEnvironment=_Z;function ake(t){return t&&t.__esModule?t:{default:t}}o(ake,"_interopRequireDefault");var iE=Qo(),kMt=wc(),BZ=ake(kMt),QMt=wZ(),LMt=ike(),MMt=IZ(),gM=ake(MMt),FMt=SZ(),UMt="4.7.9";hh.VERSION=UMt;var qMt=8;hh.COMPILER_REVISION=qMt;var GMt=7;hh.LAST_COMPATIBLE_COMPILER_REVISION=GMt;var HMt={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"};hh.REVISION_CHANGES=HMt;var vZ="[object Object]";function _Z(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},QMt.registerDefaultHelpers(this),LMt.registerDefaultDecorators(this)}o(_Z,"HandlebarsEnvironment");_Z.prototype={constructor:_Z,logger:gM.default,log:gM.default.log,registerHelper:o(function(e,r){if(iE.toString.call(e)===vZ){if(r)throw new BZ.default("Arg not supported with multiple helpers");iE.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(iE.toString.call(e)===vZ)iE.extend(this.partials,e);else{if(typeof r>"u")throw new BZ.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(iE.toString.call(e)===vZ){if(r)throw new BZ.default("Arg not supported with multiple decorators");iE.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){FMt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var zMt=gM.default.log;hh.log=zMt;hh.createFrame=iE.createFrame;hh.logger=gM.default});var uke=m((EM,cke)=>{"use strict";EM.__esModule=!0;function xZ(t){this.string=t}o(xZ,"SafeString");xZ.prototype.toString=xZ.prototype.toHTML=function(){return""+this.string};EM.default=xZ;cke.exports=EM.default});var lke=m(RZ=>{"use strict";RZ.__esModule=!0;RZ.wrapHelper=VMt;function VMt(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(VMt,"wrapHelper")});var Ake=m(yA=>{"use strict";yA.__esModule=!0;yA.checkRevision=KMt;yA.template=XMt;yA.wrapProgram=bM;yA.resolvePartial=ZMt;yA.invokePartial=eFt;yA.noop=pke;function jMt(t){return t&&t.__esModule?t:{default:t}}o(jMt,"_interopRequireDefault");function $Mt(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($Mt,"_interopRequireWildcard");var WMt=Qo(),bC=$Mt(WMt),JMt=wc(),sp=jMt(JMt),op=yM(),fke=wZ(),YMt=lke(),hke=SZ();function KMt(t){var e=t&&t[0]||1,r=op.COMPILER_REVISION;if(!(e>=op.LAST_COMPATIBLE_COMPILER_REVISION&&e<=op.COMPILER_REVISION))if(e<op.LAST_COMPATIBLE_COMPILER_REVISION){var i=op.REVISION_CHANGES[r],n=op.REVISION_CHANGES[e];throw new sp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new sp.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(KMt,"checkRevision");function XMt(t,e){if(!e)throw new sp.default("No environment passed to template");if(!t||!t.main)throw new sp.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 i(a,c,u){u.hash&&(c=bC.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,a,c,u);if(l==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),l=u.partials[u.name](c,u)),l!=null){if(u.indent){for(var f=l.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(UMt,"logUnexpecedPropertyAccessOnce");function qMt(){Object.keys(bM).forEach(function(t){delete bM[t]})}o(qMt,"resetLoggedProperties")});var CM=m(hh=>{"use strict";hh.__esModule=!0;hh.HandlebarsEnvironment=PZ;function Eke(t){return t&&t.__esModule?t:{default:t}}o(Eke,"_interopRequireDefault");var oE=Lo(),GMt=Ic(),DZ=Eke(GMt),HMt=xZ(),zMt=mke(),VMt=TZ(),wM=Eke(VMt),jMt=NZ(),$Mt="4.7.9";hh.VERSION=$Mt;var WMt=8;hh.COMPILER_REVISION=WMt;var JMt=7;hh.LAST_COMPATIBLE_COMPILER_REVISION=JMt;var YMt={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"};hh.REVISION_CHANGES=YMt;var OZ="[object Object]";function PZ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},HMt.registerDefaultHelpers(this),zMt.registerDefaultDecorators(this)}o(PZ,"HandlebarsEnvironment");PZ.prototype={constructor:PZ,logger:wM.default,log:wM.default.log,registerHelper:o(function(e,r){if(oE.toString.call(e)===OZ){if(r)throw new DZ.default("Arg not supported with multiple helpers");oE.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(oE.toString.call(e)===OZ)oE.extend(this.partials,e);else{if(typeof r>"u")throw new DZ.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(oE.toString.call(e)===OZ){if(r)throw new DZ.default("Arg not supported with multiple decorators");oE.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){jMt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var KMt=wM.default.log;hh.log=KMt;hh.createFrame=oE.createFrame;hh.logger=wM.default});var wke=m((IM,bke)=>{"use strict";IM.__esModule=!0;function kZ(t){this.string=t}o(kZ,"SafeString");kZ.prototype.toString=kZ.prototype.toHTML=function(){return""+this.string};IM.default=kZ;bke.exports=IM.default});var Cke=m(QZ=>{"use strict";QZ.__esModule=!0;QZ.wrapHelper=XMt;function XMt(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(XMt,"wrapHelper")});var xke=m(yA=>{"use strict";yA.__esModule=!0;yA.checkRevision=nFt;yA.template=sFt;yA.wrapProgram=SM;yA.resolvePartial=oFt;yA.invokePartial=aFt;yA.noop=vke;function ZMt(t){return t&&t.__esModule?t:{default:t}}o(ZMt,"_interopRequireDefault");function eFt(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(eFt,"_interopRequireWildcard");var tFt=Lo(),IC=eFt(tFt),rFt=Ic(),op=ZMt(rFt),ap=CM(),Ike=xZ(),iFt=Cke(),Ske=NZ();function nFt(t){var e=t&&t[0]||1,r=ap.COMPILER_REVISION;if(!(e>=ap.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ap.COMPILER_REVISION))if(e<ap.LAST_COMPATIBLE_COMPILER_REVISION){var i=ap.REVISION_CHANGES[r],n=ap.REVISION_CHANGES[e];throw new op.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new op.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(nFt,"checkRevision");function sFt(t,e){if(!e)throw new op.default("No environment passed to template");if(!t||!t.main)throw new op.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 i(a,c,u){u.hash&&(c=IC.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,a,c,u);if(l==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),l=u.partials[u.name](c,u)),l!=null){if(u.indent){for(var f=l.split(`
`),h=0,d=f.length;h<d&&!(!f[h]&&h+1===d);h++)f[h]=u.indent+f[h];l=f.join(`
`)}return l}else throw new sp.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(i,"invokePartialWrapper");var n={strict:o(function(c,u,l){if(!c||!(u in c))throw new sp.default('"'+u+'" not defined in '+c,{loc:l});return n.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||hke.resultIsAllowed(l,n.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var h=c[f]&&n.lookupProperty(c[f],u);if(h!=null)return h}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:bC.escapeExpression,invokePartial:i,fn:o(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,h){var d=this.programs[c],p=this.fn(c);return u||h||f||l?d=bM(this,c,p,u,l,f,h):d||(d=this.programs[c]=bM(this,c,p)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=bC.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=tFt(a,u));var l=void 0,f=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function h(d){return""+t.main(n,d,n.helpers,n.partials,u,f,l)}return o(h,"main"),h=mke(t.main,h,n,c.depths||[],u,f),h(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};dke(c,e.helpers,n),dke(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=bC.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=hke.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;fke.moveHelperToHooks(n,"helperMissing",u),fke.moveHelperToHooks(n,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(t.useBlockParams&&!u)throw new sp.default("must pass block params");if(t.useDepths&&!l)throw new sp.default("must pass parent depths");return bM(n,a,t[a],c,0,u,l)},s}o(XMt,"template");function bM(t,e,r,i,n,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(t,u,t.helpers,t.partials,l.data||i,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=mke(r,c,t,a,i,s),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(bM,"wrapProgram");function ZMt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=wM(r.partials,t)):r.name==="@partial-block"?t=wM(r.data,"partial-block"):t=wM(r.partials,r.name),t}o(ZMt,"resolvePartial");function eFt(t,e,r){var i=wM(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==pke&&(function(){r.data=op.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=op.createFrame(u.data),u.data["partial-block"]=i,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=bC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new sp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(eFt,"invokePartial");function pke(){return""}o(pke,"noop");function wM(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(wM,"lookupOwnProperty");function tFt(t,e){return(!e||!("root"in e))&&(e=e?op.createFrame(e):{},e.root=t),e}o(tFt,"initData");function mke(t,e,r,i,n,s){if(t.decorator){var a={};e=t.decorator(e,a,r,i&&i[0],n,s,i),bC.extend(e,a)}return e}o(mke,"executeDecorators");function dke(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=rFt(n,r)})}o(dke,"addHelpers");function rFt(t,e){var r=e.lookupProperty;return YMt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}o(rFt,"passLookupPropertyOption")});var TZ=m((CM,gke)=>{"use strict";CM.__esModule=!0;CM.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};gke.exports=CM.default});var Cke=m((IM,wke)=>{"use strict";IM.__esModule=!0;function DZ(t){return t&&t.__esModule?t:{default:t}}o(DZ,"_interopRequireDefault");function OZ(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(OZ,"_interopRequireWildcard");var iFt=yM(),yke=OZ(iFt),nFt=uke(),sFt=DZ(nFt),oFt=wc(),aFt=DZ(oFt),cFt=Qo(),NZ=OZ(cFt),uFt=Ake Line truncated
`)}return l}else throw new op.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(i,"invokePartialWrapper");var n={strict:o(function(c,u,l){if(!c||!(u in c))throw new op.default('"'+u+'" not defined in '+c,{loc:l});return n.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var l=c[u];if(l==null||Object.prototype.hasOwnProperty.call(c,u)||Ske.resultIsAllowed(l,n.protoAccessControl,u))return l},"lookupProperty"),lookup:o(function(c,u){for(var l=c.length,f=0;f<l;f++){var h=c[f]&&n.lookupProperty(c[f],u);if(h!=null)return h}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:IC.escapeExpression,invokePartial:i,fn:o(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,l,f,h){var d=this.programs[c],p=this.fn(c);return u||h||f||l?d=SM(this,c,p,u,l,f,h):d||(d=this.programs[c]=SM(this,c,p)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var l=c||u;return c&&u&&c!==u&&(l=IC.extend({},u,c)),l},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=cFt(a,u));var l=void 0,f=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?l=a!=c.depths[0]?[a].concat(c.depths):c.depths:l=[a]);function h(d){return""+t.main(n,d,n.helpers,n.partials,u,f,l)}return o(h,"main"),h=_ke(t.main,h,n,c.depths||[],u,f),h(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};Bke(c,e.helpers,n),Bke(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=IC.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=Ske.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;Ike.moveHelperToHooks(n,"helperMissing",u),Ike.moveHelperToHooks(n,"blockHelperMissing",u)}},s._child=function(a,c,u,l){if(t.useBlockParams&&!u)throw new op.default("must pass block params");if(t.useDepths&&!l)throw new op.default("must pass parent depths");return SM(n,a,t[a],c,0,u,l)},s}o(sFt,"template");function SM(t,e,r,i,n,s,a){function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(f=[u].concat(a)),r(t,u,t.helpers,t.partials,l.data||i,s&&[l.blockParams].concat(s),f)}return o(c,"prog"),c=_ke(r,c,t,a,i,s),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(SM,"wrapProgram");function oFt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=BM(r.partials,t)):r.name==="@partial-block"?t=BM(r.data,"partial-block"):t=BM(r.partials,r.name),t}o(oFt,"resolvePartial");function aFt(t,e,r){var i=BM(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==vke&&(function(){r.data=ap.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=ap.createFrame(u.data),u.data["partial-block"]=i,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=IC.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new op.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(aFt,"invokePartial");function vke(){return""}o(vke,"noop");function BM(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(BM,"lookupOwnProperty");function cFt(t,e){return(!e||!("root"in e))&&(e=e?ap.createFrame(e):{},e.root=t),e}o(cFt,"initData");function _ke(t,e,r,i,n,s){if(t.decorator){var a={};e=t.decorator(e,a,r,i&&i[0],n,s,i),IC.extend(e,a)}return e}o(_ke,"executeDecorators");function Bke(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=uFt(n,r)})}o(Bke,"addHelpers");function uFt(t,e){var r=e.lookupProperty;return iFt.wrapHelper(t,function(i){return i.lookupProperty=r,i})}o(uFt,"passLookupPropertyOption")});var LZ=m((vM,Rke)=>{"use strict";vM.__esModule=!0;vM.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};Rke.exports=vM.default});var Pke=m((_M,Oke)=>{"use strict";_M.__esModule=!0;function FZ(t){return t&&t.__esModule?t:{default:t}}o(FZ,"_interopRequireDefault");function UZ(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(UZ,"_interopRequireWildcard");var lFt=CM(),Tke=UZ(lFt),fFt=wke(),hFt=FZ(fFt),dFt=Ic(),pFt=FZ(dFt),mFt=Lo(),MZ=UZ(mFt),AFt=xke Line truncated
`+this.lexer.showPosition()+`
Expecting `+me.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Ae="Parse error on line "+(h+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Ae,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:b,expected:me})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+R);switch(Q[0]){case 1:a.push(R),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),R=null,M?(R=M,M=null):(d=this.lexer.yyleng,f=this.lexer.yytext,h=this.lexer.yylineno,b=this.lexer.yylloc,p>0&&p--);break;case 2:if(ce=this.productions_[Q[1]][1],ee.$=c[c.length-ce],ee._$={first_line:u[u.length-(ce||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ce||1)].first_column,last_column:u[u.length-1].last_column},E&&(ee._$.range=[u[u.length-(ce||1)].range[0],u[u.length-1].range[1]]),F=this.performAction.call(ee,f,d,h,this.yy,Q[1],c,u),typeof F<"u")return F;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),u=u.slice(0,-1*ce)),a.push(this.productions_[Q[1]][0]),c.push(ee.$),u.push(ee._$),re=l[a[a.length-2]][a[a.length-1]],a.push(re);break;case 3:return!0}}return!0},"parse")},e=(function(){var i={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+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 l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column: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=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
Expecting `+me.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Ae="Parse error on line "+(h+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Ae,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:b,expected:me})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+R);switch(Q[0]){case 1:a.push(R),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),R=null,M?(R=M,M=null):(d=this.lexer.yyleng,f=this.lexer.yytext,h=this.lexer.yylineno,b=this.lexer.yylloc,p>0&&p--);break;case 2:if(ce=this.productions_[Q[1]][1],ee.$=c[c.length-ce],ee._$={first_line:u[u.length-(ce||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ce||1)].first_column,last_column:u[u.length-1].last_column},E&&(ee._$.range=[u[u.length-(ce||1)].range[0],u[u.length-1].range[1]]),F=this.performAction.call(ee,f,d,h,this.yy,Q[1],c,u),typeof F<"u")return F;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),u=u.slice(0,-1*ce)),a.push(this.productions_[Q[1]][0]),c.push(ee.$),u.push(ee._$),ie=l[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},e=(function(){var i={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+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 l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column: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=[l[0],l[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,l,f;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(c=this._input.match(this.rules[h[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(f=a[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,h[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"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(s){this.begin(s)},"begin")};return i.options={},i.performAction=o(function(s,a,c,u){function l(h,d){return a.yytext=a.yytext.substring(h,a.yyleng-d+h)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(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:(l(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=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(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"),i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();BM.default=hFt;Bke.exports=BM.default});var RM=m((xM,Rke)=>{"use strict";xM.__esModule=!0;function dFt(t){return t&&t.__esModule?t:{default:t}}o(dFt,"_interopRequireDefault");var pFt=wc(),kZ=dFt(pFt);function vM(){this.parents=[]}o(vM,"Visitor");vM.prototype={constructor:vM,mutating:!1,acceptKey:o(function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!vM.prototype[i.type])throw new kZ.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new kZ.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new kZ.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:_M,Decorator:_M,BlockStatement:_ke,DecoratorBlock:_ke,PartialStatement:xke,PartialBlockStatement:o(function(e){xke.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:_M,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new aE(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 aE?e:(e=iee(e,this,r),new aE(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},"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,i=[];Object.keys(e).forEach(function(s){var a=iee(e[s],r);a!=="undefined"&&i.push([r.quotedString(s),":",a])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(iee(e[i],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};LM.default=lQe;fQe.exports=LM.default});var gQe=m((MM,AQe)=>{"use strict";MM.__esModule=!0;function mQe(t){return t&&t.__esModule?t:{default:t}}o(mQe,"_interopRequireDefault");var dQe=yM(),fUt=wc(),see=mQe(fUt),hUt=Qo(),dUt=hQe(),pQe=mQe(dUt);function vC(t){this.value=t}o(vC,"Literal");function _C(){}o(_C,"JavaScriptCompiler");_C.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=dQe.COMPILER_REVISION,r=dQe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,i){return hUt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["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,i,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{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 s=e.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[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 see.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.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"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(s){this.begin(s)},"begin")};return i.options={},i.performAction=o(function(s,a,c,u){function l(h,d){return a.yytext=a.yytext.substring(h,a.yyleng-d+h)}o(l,"strip");var f=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(l(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:(l(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=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=l(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"),i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();RM.default=EFt;Lke.exports=RM.default});var OM=m((DM,qke)=>{"use strict";DM.__esModule=!0;function bFt(t){return t&&t.__esModule?t:{default:t}}o(bFt,"_interopRequireDefault");var wFt=Ic(),GZ=bFt(wFt);function TM(){this.parents=[]}o(TM,"Visitor");TM.prototype={constructor:TM,mutating:!1,acceptKey:o(function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!TM.prototype[i.type])throw new GZ.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new GZ.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new GZ.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:NM,Decorator:NM,BlockStatement:Fke,DecoratorBlock:Fke,PartialStatement:Uke,PartialBlockStatement:o(function(e){Uke.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:NM,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new lE(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 lE?e:(e=lee(e,this,r),new lE(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},"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,i=[];Object.keys(e).forEach(function(s){var a=lee(e[s],r);a!=="undefined"&&i.push([r.quotedString(s),":",a])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(lee(e[i],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};qM.default=CQe;IQe.exports=qM.default});var RQe=m((GM,xQe)=>{"use strict";GM.__esModule=!0;function _Qe(t){return t&&t.__esModule?t:{default:t}}o(_Qe,"_interopRequireDefault");var BQe=CM(),yUt=Ic(),hee=_Qe(yUt),EUt=Lo(),bUt=SQe(),vQe=_Qe(bUt);function RC(t){this.value=t}o(RC,"Literal");function TC(){}o(TC,"JavaScriptCompiler");TC.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=BQe.COMPILER_REVISION,r=BQe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,i){return EUt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["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,i,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{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 s=e.opcodes,a=void 0,c=void 0,u=void 0,l=void 0;for(u=0,l=s.length;u<l;u++)a=s[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 hee.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;"),n?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 f=this.createFunctionContext(n);if(this.isChild)return f;var h={compiler:this.compilerInfo(),main:f};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,p=d.programs,A=d.decorators;for(u=0,l=p.length;u<l;u++)h[u]=p[u],A[u]&&(h[u+"_d"]=A[u],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),n?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),r.srcName?(h=h.toStringWithSourceMap({file:r.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h},"compile"),preamble:o(function(){this.lastContext=0,this.source=new pQe.default(this.options.srcName),this.decorators=new pQe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(i+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+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(i);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var f=this.createFunctionContext(n);if(this.isChild)return f;var h={compiler:this.compilerInfo(),main:f};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,p=d.programs,A=d.decorators;for(u=0,l=p.length;u<l;u++)h[u]=p[u],A[u]&&(h[u+"_d"]=A[u],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),n?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),r.srcName?(h=h.toStringWithSourceMap({file:r.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h},"compile"),preamble:o(function(){this.lastContext=0,this.source=new vQe.default(this.options.srcName),this.decorators=new vQe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var l=r.aliases[u];l.children&&l.referenceCount>1&&(i+=", alias"+ ++s+"="+u,l.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+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(i);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,i=!this.forceBuffer,n=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),s=!0,r||(i=!1))}),i?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,182 +86,182 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Ae="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",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,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},"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,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},"lookupData"),resolvePath:o(function(e,r,i,n,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(pUt(this.options.strict&&s,this,r,i,e));return}for(var c=r.length,u=o(function(f){a.replaceStack(function(h){var d=a.nameLookup(h,r[f],e);return n?[" && ",d]:[" != null ? ",d," : ",h]})},"_loop"),l=i;l<c;l++)u(l)},"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 i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),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",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,i){var n=this.popStack(),s=this.setupHelper(e,r),a=[];i&&a.push(s.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",i,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Bi.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};Bi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Bi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Bi.prototype.BlockStatement=Bi.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};Bi.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+" }}")};Bi.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+" }}")};Bi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Bi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Bi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};Bi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Bi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Bi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Bi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Bi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Bi.prototype.NullLiteral=function(){return"NULL"};Bi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};Bi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var cee=m((kKr,SQe)=>{var qM=bQe().default,IQe=wQe();qM.PrintVisitor=IQe.PrintVisitor;qM.print=IQe.print;SQe.exports=qM;function CQe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=qM.compile(i)}o(CQe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=CQe,require.extensions[".hbs"]=CQe)});var QQe=m(VM=>{"use strict";Object.defineProperty(VM,"__esModule",{value:!0});VM.getProxyUrl=LUt;VM.checkBypass=kQe;function LUt(t){let e=t.protocol==="https:";if(kQe(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 zM(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new zM(`http://${r}`)}else return}o(LUt,"getProxyUrl");function kQe(t){if(!t.hostname)return!1;let e=t.hostname;if(MUt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||n.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(kQe,"checkBypass");function MUt(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(MUt,"isLoopbackAddress");var zM=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 MQe=m(ri=>{"use strict";var FUt=ri&&ri.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),UUt=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JM=ri&&ri.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&FUt(r,e,i[n]);return UUt(r,e), Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=s,n=1;break;case 1:r[i++]=a<<2|(s&48)>>4,a=s,n=2;break;case 2:r[i++]=(a&15)<<4|(s&60)>>2,a=s,n=3;break;case 3:r[i++]=(a&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}o(f3t,"base64decode");QC.base64decode=f3t;function h3t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=hp[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=hp[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=hp[n|i>>6],e+=hp[i&63],r=0;break}return r&&(e+=hp[n],e+="=",r==1&&(e+="=")),e}o(h3t,"base64encode");QC.base64encode=h3t});var HLe=m(lF=>{"use strict";Object.defineProperty(lF,"__esModule",{value:!0});lF.utf8read=void 0;var Hee=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function d3t(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Hee(i)),n=0);return r.length?(n&&r.push(Hee(i.slice(0,n))),r.join("")):Hee(i.slice(0,n))}o(d3t,"utf8read");lF.utf8read=d3t});var BR=m(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.WireType=ph.mergeBinaryOptions=ph.UnknownFieldHandler=void 0;var p3t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,a)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:a})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:a,data:c}of t.list(i))n.tag(s,a).raw(c)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(p3t=ph.UnknownFieldHandler||(ph.UnknownFieldHandler={}));function m3t(t,e){return Object.assign(Object.assign({},t),e)}o(m3t,"mergeBinaryOptions");ph.mergeBinaryOptions=m3t;var A3t;(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"})(A3t=ph.WireType||(ph.WireType={}))});var hF=m(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.varint32read=Oa.varint32write=Oa.int64toString=Oa.int64fromString=Oa.varint64write=Oa.varint64read=void 0;function g3t(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(g3t,"varint64read");Oa.varint64read=g3t;function y3t(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(y3t,"varint64write");Oa.varint64write=y3t;var fF=65536*65536;function E3t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(a,c){let u=Number(t.slice(a,c));n*=r,i=i*r+u,i>=fF&&(n=n+(i/fF|0),i=i%fF)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}o(E3t,"int64fromString");Oa.int64fromString=E3t;function b3t(t,e){if(e>>>0<=2097151)return""+(fF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,a=i+n*8147497,c=n*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function l(f,h){let d=f?String(f):"";return h?"0000000".slice(d.length)+d:d}return o(l,"decimalFrom1e7"),l(c,0)+l(a,c)+l(s,1)}o(b3t,"int64toString");Oa.int64toString=b3t;function w3t(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(w3t,"varint32write");Oa.varint32write=w3t;function C3t(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(C3t,"varint32read");Oa.varint32read=C3t});var IA=m(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.PbLong=CA.PbULong=CA.detectBi=void 0;var vR=hF(),vr;function zLe(){let t=new DataView(new ArrayBuffer(8));vr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("92233720368547 Line truncated
`)}};FF.RpcError=Rte});var Nte=m(qF=>{"use strict";Object.defineProperty(qF,"__esModule",{value:!0});qF.mergeRpcOptions=void 0;var BMe=Hr();function z4t(t,e){if(!e)return t;let r={};UF(t,r),UF(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=BMe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=BMe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},UF(t.meta,r.meta),UF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(z4t,"mergeRpcOptions");qF.mergeRpcOptions=z4t;function UF(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}o(UF,"copy")});var Ote=m(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.Deferred=pE.DeferredState=void 0;var wh;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(wh=pE.DeferredState||(pE.DeferredState={}));var Dte=class{static{o(this,"Deferred")}constructor(e=!0){this._state=wh.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==wh.PENDING)throw new Error(`cannot resolve ${wh[this.state].toLowerCase()}`);this._resolve(e),this._state=wh.RESOLVED}reject(e){if(this.state!==wh.PENDING)throw new Error(`cannot reject ${wh[this.state].toLowerCase()}`);this._reject(e),this._state=wh.REJECTED}resolvePending(e){this._state===wh.PENDING&&this.resolve(e)}rejectPending(e){this._state===wh.PENDING&&this.reject(e)}};pE.Deferred=Dte});var kte=m(GF=>{"use strict";Object.defineProperty(GF,"__esModule",{value:!0});GF.RpcOutputStreamController=void 0;var vMe=Ote(),mE=Hr(),Pte=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){mE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){mE.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){mE.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(){mE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;mE.assert(e,"bad state"),mE.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 vMe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;mE.assert(i.state==vMe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};GF.RpcOutputStreamController=Pte});var Lte=m(VC=>{"use strict";var V4t=VC&&VC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(VC,"__esModule",{value:!0});VC.UnaryCall=void 0;var Qte=class{static{o(this,"UnaryCall")}constructor(e,r,i,n,s,a,c){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return V4t(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};VC.UnaryCall=Qte});var Fte=m(jC=>{"use strict";var j4t=jC&&jC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch( Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",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,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},"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,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},"lookupData"),resolvePath:o(function(e,r,i,n,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(wUt(this.options.strict&&s,this,r,i,e));return}for(var c=r.length,u=o(function(f){a.replaceStack(function(h){var d=a.nameLookup(h,r[f],e);return n?[" && ",d]:[" != null ? ",d," : ",h]})},"_loop"),l=i;l<c;l++)u(l)},"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 i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),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",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,i){var n=this.popStack(),s=this.setupHelper(e,r),a=[];i&&a.push(s.name),a.push(n),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",i,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};vi.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};vi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};vi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};vi.prototype.BlockStatement=vi.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};vi.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+" }}")};vi.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+" }}")};vi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};vi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};vi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};vi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};vi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};vi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};vi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};vi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};vi.prototype.NullLiteral=function(){return"NULL"};vi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};vi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var mee=m((GKr,QQe)=>{var VM=DQe().default,kQe=OQe();VM.PrintVisitor=kQe.PrintVisitor;VM.print=kQe.print;QQe.exports=VM;function PQe(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=VM.compile(i)}o(PQe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=PQe,require.extensions[".hbs"]=PQe)});var WQe=m(JM=>{"use strict";Object.defineProperty(JM,"__esModule",{value:!0});JM.getProxyUrl=zUt;JM.checkBypass=$Qe;function zUt(t){let e=t.protocol==="https:";if($Qe(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 WM(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new WM(`http://${r}`)}else return}o(zUt,"getProxyUrl");function $Qe(t){if(!t.hostname)return!1;let e=t.hostname;if(VUt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||n.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o($Qe,"checkBypass");function VUt(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(VUt,"isLoopbackAddress");var WM=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 YQe=m(ii=>{"use strict";var jUt=ii&&ii.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$Ut=ii&&ii.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZM=ii&&ii.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&jUt(r,e,i[n]);return $Ut(r,e), Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=s,n=1;break;case 1:r[i++]=a<<2|(s&48)>>4,a=s,n=2;break;case 2:r[i++]=(a&15)<<4|(s&60)>>2,a=s,n=3;break;case 3:r[i++]=(a&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}o(y3t,"base64decode");FC.base64decode=y3t;function E3t(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=dp[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=dp[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=dp[n|i>>6],e+=dp[i&63],r=0;break}return r&&(e+=dp[n],e+="=",r==1&&(e+="=")),e}o(E3t,"base64encode");FC.base64encode=E3t});var tMe=m(pF=>{"use strict";Object.defineProperty(pF,"__esModule",{value:!0});pF.utf8read=void 0;var Yee=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function b3t(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Yee(i)),n=0);return r.length?(n&&r.push(Yee(i.slice(0,n))),r.join("")):Yee(i.slice(0,n))}o(b3t,"utf8read");pF.utf8read=b3t});var RR=m(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.WireType=ph.mergeBinaryOptions=ph.UnknownFieldHandler=void 0;var w3t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,a)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:a})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:a,data:c}of t.list(i))n.tag(s,a).raw(c)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(w3t=ph.UnknownFieldHandler||(ph.UnknownFieldHandler={}));function C3t(t,e){return Object.assign(Object.assign({},t),e)}o(C3t,"mergeBinaryOptions");ph.mergeBinaryOptions=C3t;var I3t;(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"})(I3t=ph.WireType||(ph.WireType={}))});var AF=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.varint32read=Pa.varint32write=Pa.int64toString=Pa.int64fromString=Pa.varint64write=Pa.varint64read=void 0;function S3t(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(S3t,"varint64read");Pa.varint64read=S3t;function B3t(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(B3t,"varint64write");Pa.varint64write=B3t;var mF=65536*65536;function v3t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(a,c){let u=Number(t.slice(a,c));n*=r,i=i*r+u,i>=mF&&(n=n+(i/mF|0),i=i%mF)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}o(v3t,"int64fromString");Pa.int64fromString=v3t;function _3t(t,e){if(e>>>0<=2097151)return""+(mF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,a=i+n*8147497,c=n*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function l(f,h){let d=f?String(f):"";return h?"0000000".slice(d.length)+d:d}return o(l,"decimalFrom1e7"),l(c,0)+l(a,c)+l(s,1)}o(_3t,"int64toString");Pa.int64toString=_3t;function x3t(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(x3t,"varint32write");Pa.varint32write=x3t;function R3t(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(R3t,"varint32read");Pa.varint32read=R3t});var IA=m(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.PbLong=CA.PbULong=CA.detectBi=void 0;var TR=AF(),vr;function rMe(){let t=new DataView(new ArrayBuffer(8));vr=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("92233720368547 Line truncated
`)}};HF.RpcError=Qte});var Mte=m(VF=>{"use strict";Object.defineProperty(VF,"__esModule",{value:!0});VF.mergeRpcOptions=void 0;var LMe=zr();function K4t(t,e){if(!e)return t;let r={};zF(t,r),zF(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=LMe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=LMe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zF(t.meta,r.meta),zF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(K4t,"mergeRpcOptions");VF.mergeRpcOptions=K4t;function zF(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}o(zF,"copy")});var Ute=m(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.Deferred=gE.DeferredState=void 0;var wh;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(wh=gE.DeferredState||(gE.DeferredState={}));var Fte=class{static{o(this,"Deferred")}constructor(e=!0){this._state=wh.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==wh.PENDING)throw new Error(`cannot resolve ${wh[this.state].toLowerCase()}`);this._resolve(e),this._state=wh.RESOLVED}reject(e){if(this.state!==wh.PENDING)throw new Error(`cannot reject ${wh[this.state].toLowerCase()}`);this._reject(e),this._state=wh.REJECTED}resolvePending(e){this._state===wh.PENDING&&this.resolve(e)}rejectPending(e){this._state===wh.PENDING&&this.reject(e)}};gE.Deferred=Fte});var Gte=m(jF=>{"use strict";Object.defineProperty(jF,"__esModule",{value:!0});jF.RpcOutputStreamController=void 0;var MMe=Ute(),yE=zr(),qte=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){yE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){yE.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){yE.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(){yE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;yE.assert(e,"bad state"),yE.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 MMe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;yE.assert(i.state==MMe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};jF.RpcOutputStreamController=qte});var zte=m(WC=>{"use strict";var X4t=WC&&WC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};Object.defineProperty(WC,"__esModule",{value:!0});WC.UnaryCall=void 0;var Hte=class{static{o(this,"UnaryCall")}constructor(e,r,i,n,s,a,c){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return X4t(this,void 0,void 0,function*(){let[e,r,i,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:i,trailers:n}})}};WC.UnaryCall=Hte});var jte=m(JC=>{"use strict";var Z4t=JC&&JC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch( Line truncated
globstar while`,e,h,r,d,p),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,p),!0;if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,h,r,d),h===c))}var A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=f.match(l),this.debug("pattern match",l,f,A)),!A)return!1}if(s===c&&a===u)return!0;if(s===c)return i;if(a===u)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return cFe(this.pattern,this.options)}parse(e,r){WF(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return zl;if(e==="")return"";let n="",s=!1,a=!1,c=[],u=[],l,f=!1,h=-1,d=-1,p,A,y,b=e.charAt(0)===".",E=i.dot||b,w=o(()=>b?"":E?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),B=o(Q=>Q.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),R=o(()=>{if(l){switch(l){case"*":n+=bre,s=!0;break;case"?":n+=Ire,s=!0;break;default:n+="\\"+l;break}this.debug("clearStateChar %j %j",l,n),l=!1}},"clearStateChar");for(let Q=0,X;Q<e.length&&(X=e.charAt(Q));Q++){if(this.debug("%s %s %s %j",e,Q,n,X),a){if(X==="/")return!1;sFe[X]&&(n+="\\"),n+=X,a=!1;continue}switch(X){case"/":return!1;case"\\":if(f&&e.charAt(Q+1)==="-"){n+=X;continue}R(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,Q,n,X),f){this.debug(" in class"),X==="!"&&Q===d+1&&(X="^"),n+=X;continue}this.debug("call clearStateChar %j",l),R(),l=X,i.noext&&R();continue;case"(":{if(f){n+="(";continue}if(!l){n+="\\(";continue}let F={type:l,start:Q-1,reStart:n.length,open:nFe[l].open,close:nFe[l].close};this.debug(this.pattern," ",F),c.push(F),n+=F.open,F.start===0&&F.type!=="!"&&(b=!0,n+=B(e.slice(Q+1))),this.debug("plType %j %j",l,n),l=!1;continue}case")":{let F=c[c.length-1];if(f||!F){n+="\\)";continue}c.pop(),R(),s=!0,A=F,n+=A.close,A.type==="!"&&u.push(Object.assign(A,{reEnd:n.length}));continue}case"|":{let F=c[c.length-1];if(f||!F){n+="\\|";continue}R(),n+="|",F.start===0&&F.type!=="!"&&(b=!0,n+=B(e.slice(Q+1)));continue}case"[":if(R(),f){n+="\\"+X;continue}f=!0,d=Q,h=n.length,n+=X;continue;case"]":if(Q===d+1||!f){n+="\\"+X;continue}p=e.substring(d+1,Q);try{RegExp("["+k5t(O5t(p))+"]"),n+=X}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:R(),sFe[X]&&!(X==="^"&&f)&&(n+="\\"),n+=X;break}}for(f&&(p=e.slice(d+1),y=this.parse(p,wre),n=n.substring(0,h)+"\\["+y[0],s=s||y[1]),A=c.pop();A;A=c.pop()){let Q;Q=n.slice(A.reStart+A.open.length),this.debug("setting tail",n,A),Q=Q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(F,ee,j)=>(j||(j="\\"),ee+ee+j+"|")),this.debug(`tail=%j
%s`,Q,Q,A,n);let X=A.type==="*"?bre:A.type==="?"?Ire:"\\"+A.type;s=!0,n=n.slice(0,A.reStart)+X+"\\("+Q}R(),a&&(n+="\\\\");let M=T5t[n.charAt(0)];for(let Q=u.length-1;Q>-1;Q--){let X=u[Q],F=n.slice(0,X.reStart),ee=n.slice(X.reStart,X.reEnd-8),j=n.slice(X.reEnd),ce=n.slice(X.reEnd-8,X.reEnd)+j,re=F.split(")").length,me=F.split("(").length-re,Ae=j;for(let se=0;se<me;se++)Ae=Ae.replace(/\)[+*?]?/,"");j=Ae;let ne=j===""&&r!==wre?"(?:$|\\/)":"";n=F+ee+j+ne+ce}if(n!==""&&s&&(n="(?=.)"+n),M&&(n=w()+n),r===wre)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return D5t(e);let V=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",V),{_glob:e,_src:n})}catch{return new RegExp("$.")}}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,i=r.noglobstar?bre:r.dot?x5t:R5t,n=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?P5t(c):c===zl?zl:c._src).reduce((c,u)=>(c[c.length-1]===zl&&u===zl||c.push(u),c),[]),a.forEach((c,u)=>{c!==zl||a[u-1]===zl||(u===0?a.length>1?a[u+1]="(?:\\/|"+i+"\\/)?"+a[u+1]:a[u]=i:u===a.length-1?a[u-1]+="(?:\\/|"+i+")?":(a[u-1]+="(?:\\/|\\/"+i+"\\/)"+a[u+1],a[u+1]=zl))}),a.filter(c=>c!==zl).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}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 i=this.options;Cre.sep!=="/"&&(e=e.split(Cre.sep).join("/")),e=e.split(oFe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<n.length;a++){let c=n[a],u=e;if(i.matchBase&&c.length===1&&(u=[s]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return vc.defaults(e).Minimatch}};vc.Minimatch=tI});var pFe=m((Lii,dFe)=>{dFe.exports=hFe;var vre=require("fs"),{EventEmitter:Q5t}=require("events"),{Minimatch:Bre}=uFe(),{resolve:L5t}=require("path");function M5t(t,e){return new Promise((r,i)=>{vre.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}o(M5t,"readdir");function lFe(t,e){return new Promise((r,i)=>{(e?vre.stat:vre.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?lFe(t,!1):null):r(null):r(a)})})}o(lFe,"stat");async function*fFe(t,e,r,i,n,s){let a=await M5t(e+t,s);for(let c of a){let u=c.name;u===void 0&&(u=c,i=!0);let l=t+"/"+u,f=l.slice(1),h=e+"/"+f,d=null;(i||r)&&(d=await lFe(h,r)),!d&&c.name!==void 0&&(d=c),d===null&&(d={isDirectory:o(()=>!1,"isDirectory")}),d.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:d},yield*fFe(l,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:d}}}o(fFe,"exploreWalkAsync");async function*F5t(t,e,r,i){yield*fFe("",t,e,r,i,!0)}o(F5t,"explore");function U5t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(U5t,"readOptions");var JF=class extends Q5t{static{o(this,"ReaddirGlob")}constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=U5t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new Bre(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new Bre(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new Bre(s,{dot:!0}))}this.iterator=F5t(L5t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit Line truncated
`,O);O=$===-1?D.length:$}else if(G!==-1&&D[O]==="/"&&D[O+1]==="*"){let $=D.indexOf("*/",O);$!==-1?(O=$+2,G=D.indexOf("*/",O)):(x+=D[O],O++)}else x+=D[O],O++;return x}o(Es,"stripComments");function ll(D){let x=Es(D.toString()),O=x.match(Eo);if(O||(O=x.match(ys)),!O)throw new Error(`could not parse args in autoInject
>>> no match, partial?`,e,h,r,d),h===c))}var A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=f.match(l),this.debug("pattern match",l,f,A)),!A)return!1}if(s===c&&a===u)return!0;if(s===c)return i;if(a===u)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return bFe(this.pattern,this.options)}parse(e,r){XF(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Vl;if(e==="")return"";let n="",s=!1,a=!1,c=[],u=[],l,f=!1,h=-1,d=-1,p,A,y,b=e.charAt(0)===".",E=i.dot||b,w=o(()=>b?"":E?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),B=o(Q=>Q.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),R=o(()=>{if(l){switch(l){case"*":n+=_re,s=!0;break;case"?":n+=Tre,s=!0;break;default:n+="\\"+l;break}this.debug("clearStateChar %j %j",l,n),l=!1}},"clearStateChar");for(let Q=0,X;Q<e.length&&(X=e.charAt(Q));Q++){if(this.debug("%s %s %s %j",e,Q,n,X),a){if(X==="/")return!1;gFe[X]&&(n+="\\"),n+=X,a=!1;continue}switch(X){case"/":return!1;case"\\":if(f&&e.charAt(Q+1)==="-"){n+=X;continue}R(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,Q,n,X),f){this.debug(" in class"),X==="!"&&Q===d+1&&(X="^"),n+=X;continue}this.debug("call clearStateChar %j",l),R(),l=X,i.noext&&R();continue;case"(":{if(f){n+="(";continue}if(!l){n+="\\(";continue}let F={type:l,start:Q-1,reStart:n.length,open:AFe[l].open,close:AFe[l].close};this.debug(this.pattern," ",F),c.push(F),n+=F.open,F.start===0&&F.type!=="!"&&(b=!0,n+=B(e.slice(Q+1))),this.debug("plType %j %j",l,n),l=!1;continue}case")":{let F=c[c.length-1];if(f||!F){n+="\\)";continue}c.pop(),R(),s=!0,A=F,n+=A.close,A.type==="!"&&u.push(Object.assign(A,{reEnd:n.length}));continue}case"|":{let F=c[c.length-1];if(f||!F){n+="\\|";continue}R(),n+="|",F.start===0&&F.type!=="!"&&(b=!0,n+=B(e.slice(Q+1)));continue}case"[":if(R(),f){n+="\\"+X;continue}f=!0,d=Q,h=n.length,n+=X;continue;case"]":if(Q===d+1||!f){n+="\\"+X;continue}p=e.substring(d+1,Q);try{RegExp("["+G5t(U5t(p))+"]"),n+=X}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:R(),gFe[X]&&!(X==="^"&&f)&&(n+="\\"),n+=X;break}}for(f&&(p=e.slice(d+1),y=this.parse(p,xre),n=n.substring(0,h)+"\\["+y[0],s=s||y[1]),A=c.pop();A;A=c.pop()){let Q;Q=n.slice(A.reStart+A.open.length),this.debug("setting tail",n,A),Q=Q.replace(/((?:\\{2}){0,64})(\\?)\|/g,(F,ee,j)=>(j||(j="\\"),ee+ee+j+"|")),this.debug(`tail=%j
%s`,Q,Q,A,n);let X=A.type==="*"?_re:A.type==="?"?Tre:"\\"+A.type;s=!0,n=n.slice(0,A.reStart)+X+"\\("+Q}R(),a&&(n+="\\\\");let M=L5t[n.charAt(0)];for(let Q=u.length-1;Q>-1;Q--){let X=u[Q],F=n.slice(0,X.reStart),ee=n.slice(X.reStart,X.reEnd-8),j=n.slice(X.reEnd),ce=n.slice(X.reEnd-8,X.reEnd)+j,ie=F.split(")").length,me=F.split("(").length-ie,Ae=j;for(let se=0;se<me;se++)Ae=Ae.replace(/\)[+*?]?/,"");j=Ae;let ne=j===""&&r!==xre?"(?:$|\\/)":"";n=F+ee+j+ne+ce}if(n!==""&&s&&(n="(?=.)"+n),M&&(n=w()+n),r===xre)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return F5t(e);let V=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",V),{_glob:e,_src:n})}catch{return new RegExp("$.")}}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,i=r.noglobstar?_re:r.dot?k5t:Q5t,n=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?q5t(c):c===Vl?Vl:c._src).reduce((c,u)=>(c[c.length-1]===Vl&&u===Vl||c.push(u),c),[]),a.forEach((c,u)=>{c!==Vl||a[u-1]===Vl||(u===0?a.length>1?a[u+1]="(?:\\/|"+i+"\\/)?"+a[u+1]:a[u]=i:u===a.length-1?a[u-1]+="(?:\\/|"+i+")?":(a[u-1]+="(?:\\/|\\/"+i+"\\/)"+a[u+1],a[u+1]=Vl))}),a.filter(c=>c!==Vl).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}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 i=this.options;Rre.sep!=="/"&&(e=e.split(Rre.sep).join("/")),e=e.split(yFe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<n.length;a++){let c=n[a],u=e;if(i.matchBase&&c.length===1&&(u=[s]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return xc.defaults(e).Minimatch}};xc.Minimatch=nI});var vFe=m((zii,BFe)=>{BFe.exports=SFe;var Ore=require("fs"),{EventEmitter:H5t}=require("events"),{Minimatch:Dre}=wFe(),{resolve:z5t}=require("path");function V5t(t,e){return new Promise((r,i)=>{Ore.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}o(V5t,"readdir");function CFe(t,e){return new Promise((r,i)=>{(e?Ore.stat:Ore.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?CFe(t,!1):null):r(null):r(a)})})}o(CFe,"stat");async function*IFe(t,e,r,i,n,s){let a=await V5t(e+t,s);for(let c of a){let u=c.name;u===void 0&&(u=c,i=!0);let l=t+"/"+u,f=l.slice(1),h=e+"/"+f,d=null;(i||r)&&(d=await CFe(h,r)),!d&&c.name!==void 0&&(d=c),d===null&&(d={isDirectory:o(()=>!1,"isDirectory")}),d.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:d},yield*IFe(l,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:d}}}o(IFe,"exploreWalkAsync");async function*j5t(t,e,r,i){yield*IFe("",t,e,r,i,!0)}o(j5t,"explore");function $5t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o($5t,"readOptions");var ZF=class extends H5t{static{o(this,"ReaddirGlob")}constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=$5t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new Dre(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new Dre(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new Dre(s,{dot:!0}))}this.iterator=j5t(z5t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit Line truncated
`,O);O=$===-1?D.length:$}else if(G!==-1&&D[O]==="/"&&D[O+1]==="*"){let $=D.indexOf("*/",O);$!==-1?(O=$+2,G=D.indexOf("*/",O)):(x+=D[O],O++)}else x+=D[O],O++;return x}o(bs,"stripComments");function fl(D){let x=bs(D.toString()),O=x.match(Eo);if(O||(O=x.match(Es)),!O)throw new Error(`could not parse args in autoInject
Source:
`+x);let[,G]=O;return G.replace(/\s/g,"").split(ul).map($=>$.replace(Gc,"").trim())}o(ll,"parseParams");function Hc(D,x){var O={};return Object.keys(D).forEach(G=>{var $=D[G],W,te=p($),ie=!te&&$.length===1||te&&$.length===0;if(Array.isArray($))W=[...$],$=W.pop(),O[G]=W.concat(W.length>0?le:$);else if(ie)O[G]=$;else{if(W=ll($),$.length===0&&!te&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");te||W.pop(),O[G]=W.concat(le)}function le(Ge,$t){var ir=W.map(Jt=>Ge[Jt]);ir.push($t),b($)(...ir)}o(le,"newTask")}),yo(O,x)}o(Hc,"autoInject");class fl{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(x){return x.prev?x.prev.next=x.next:this.head=x.next,x.next?x.next.prev=x.prev:this.tail=x.prev,x.prev=x.next=null,this.length-=1,x}empty(){for(;this.head;)this.shift();return this}insertAfter(x,O){O.prev=x,O.next=x.next,x.next?x.next.prev=O:this.tail=O,x.next=O,this.length+=1}insertBefore(x,O){O.prev=x.prev,O.next=x,x.prev?x.prev.next=O:this.head=O,x.prev=O,this.length+=1}unshift(x){this.head?this.insertBefore(this.head,x):zc(this,x)}push(x){this.tail?this.insertAfter(this.tail,x):zc(this,x)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var x=this.head;x;)yield x.data,x=x.next}remove(x){for(var O=this.head;O;){var{next:G}=O;x(O)&&this.removeLink(O),O=G}return this}}function zc(D,x){D.length=1,D.head=D.tail=x}o(zc,"setInitial");function Vc(D,x,O){if(x==null)x=1;else if(x===0)throw new RangeError("Concurrency must not be zero");var G=b(D),$=0,W=[];let te={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function ie(Ze,qe){te[Ze].push(qe)}o(ie,"on");function le(Ze,qe){let et=o((...Yt)=>{Ge(Ze,et),qe(...Yt)},"handleAndRemove");te[Ze].push(et)}o(le,"once");function Ge(Ze,qe){if(!Ze)return Object.keys(te).forEach(et=>te[et]=[]);if(!qe)return te[Ze]=[];te[Ze]=te[Ze].filter(et=>et!==qe)}o(Ge,"off");function $t(Ze,...qe){te[Ze].forEach(et=>et(...qe))}o($t,"trigger");var ir=!1;function Jt(Ze,qe,et,Yt){if(Yt!=null&&typeof Yt!="function")throw new Error("task callback must be a function");nr.started=!0;var Jr,Pn;function $c(zg,...YB){if(zg)return et?Pn(zg):Jr();if(YB.length<=1)return Jr(YB[0]);Jr(YB)}o($c,"promiseCallback");var ob=nr._createTaskItem(Ze,et?$c:Yt||$c);if(qe?nr._tasks.unshift(ob):nr._tasks.push(ob),ir||(ir=!0,l(()=>{ir=!1,nr.process()})),et||!Yt)return new Promise((zg,YB)=>{Jr=zg,Pn=YB})}o(Jt,"_insert");function jc(Ze){return function(qe,...et){$-=1;for(var Yt=0,Jr=Ze.length;Yt<Jr;Yt++){var Pn=Ze[Yt],$c=W.indexOf(Pn);$c===0?W.shift():$c>0&&W.splice($c,1),Pn.callback(qe,...et),qe!=null&&$t("error",qe,Pn.data)}$<=nr.concurrency-nr.buffer&&$t("unsaturated"),nr.idle()&&$t("drain"),nr.process()}}o(jc,"_createCB");function sb(Ze){return Ze.length===0&&nr.idle()?(l(()=>$t("drain")),!0):!1}o(sb,"_maybeDrain");let Hg=o(Ze=>qe=>{if(!qe)return new Promise((et,Yt)=>{le(Ze,(Jr,Pn)=>{if(Jr)return Yt(Jr);et(Pn)})});Ge(Ze),ie(Ze,qe)},"eventMethod");var JB=!1,nr={_tasks:new fl,_createTaskItem(Ze,qe){return{data:Ze,callback:qe}},*[Symbol.iterator](){yield*nr._tasks[Symbol.iterator]()},concurrency:x,payload:O,buffer:x/4,started:!1,paused:!1,push(Ze,qe){return Array.isArray(Ze)?sb(Ze)?void 0:Ze.map(et=>Jt(et,!1,!1,qe)):Jt(Ze,!1,!1,qe)},pushAsync(Ze,qe){return Array.isArray(Ze)?sb(Ze)?void 0:Ze.map(et=>Jt(et,!1,!0,qe)):Jt(Ze,!1,!0,qe)},kill(){Ge(),nr._tasks.empty()},unshift(Ze,qe){return Array.isArray(Ze)?sb(Ze)?void 0:Ze.map(et=>Jt(et,!0,!1,qe)):Jt(Ze,!0,!1,qe)},unshiftAsync(Ze,qe){return Array.isArray(Ze)?sb(Ze)?void 0:Ze.map(et=>Jt(et,!0,!0,qe)):Jt(Ze,!0,!0,qe)},remove(Ze){nr._tasks.remove(Ze)},process(){if(!JB){for(JB=!0;!nr.paused&&$<nr.concurrency&&nr._tasks.length;){var Ze=[],qe=[],et=nr._tasks.length;nr.payload&&(et=Math.min(et,nr.payload));for(var Yt=0;Yt<et;Yt++){var Jr=nr._tasks.shift();Ze.push(Jr),W.push(Jr),qe.push(Jr.data)}$+=1,nr._tasks.length===0&&$t("empty"),$===nr.concurrency&&$t("saturated");var Pn=re(jc(Ze));G(qe,Pn)}JB=!1}},length(){return nr._tasks.length},running(){return $},workersList(){return W},idle(){return nr._tasks.length+$===0},pause(){nr.paused=!0},resume(){nr.paused!==!1&&(nr.paused=!1,l(nr.process))}};return Object.defineProperties(nr,{saturated:{writable:!1,value:Hg("saturated")},unsaturated:{writable:!1,value:Hg("unsaturated")},empty:{writable:!1,value:Hg("empty")},drain:{writable:!1,value:Hg("drain")},error:{writable:!1,value:Hg("error")}}),nr}o(Vc,"queue$1");function Nn(D,x){return Vc(D,1,x)}o(Nn,"cargo$1");function An(D,x,O){return Vc(D,x,O)}o(An,"cargo");function hl(D,x,O,G){G=Q(G);var $=b(O);return rr(D,(W,te,ie)=>{$(x,W,(le,Ge)=>{x=Ge,ie(le)})},W=>G(W,x))}o(hl,"reduce");var Dn=E(hl,4);function dl(...D){var x=D.map(b);return function(...O){var G=this,$=O[O.length-1];return typeof $=="function"?O.pop():$=ci(),Dn(x,O,(W,te,ie)=>{te.apply(G,W.concat((le,...Ge)=>{ie(le,Ge)}))},(W,te)=>$(W,...te)),$[ai]}}o(dl,"seq"); Line truncated
GFS4: `),console.error(t)},"debug"));fi[Ts]||(SFe=global[Ts]||[],vFe(fi,SFe),fi.close=(function(t){function e(r,i){return t.call(fi,r,function(n){n||BFe(),typeof i=="function"&&i.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,eU,{value:t}),e})(fi.close),fi.closeSync=(function(t){function e(r){t.apply(fi,arguments),BFe()}return o(e,"closeSync"),Object.defineProperty(e,eU,{value:t}),e})(fi.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){gE(fi[Ts]),require("assert").equal(fi[Ts].length,0)}));var SFe;global[Ts]||vFe(global,fi[Ts]);Tre.exports=xre(J5t(fi));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!fi.__patched&&(Tre.exports=xre(fi),fi.__patched=!0);function xre(t){$5t(t),t.gracefulify=xre,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(F,ee,j){return typeof ee=="function"&&(j=ee,ee=null),ce(F,ee,j);function ce(re,me,Ae,ne){return e(re,me,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?rI([ce,[re,me,Ae],se,ne||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}o(ce,"go$readFile")}o(r,"readFile");var i=t.writeFile;t.writeFile=n;function n(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=null),re(F,ee,j,ce);function re(me,Ae,ne,se,Be){return i(me,Ae,ne,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?rI([re,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(re,"go$writeFile")}o(n,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=null),re(F,ee,j,ce);function re(me,Ae,ne,se,Be){return s(me,Ae,ne,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?rI([re,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(re,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=u);function u(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=0),re(F,ee,j,ce);function re(me,Ae,ne,se,Be){return c(me,Ae,ne,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?rI([re,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(re,"go$copyFile")}o(u,"copyFile");var l=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(F,ee,j){typeof ee=="function"&&(j=ee,ee=null);var ce=f.test(process.version)?o(function(Ae,ne,se,Be){return l(Ae,re(Ae,ne,se,Be))},"go$readdir"):o(function(Ae,ne,se,Be){return l(Ae,ne,re(Ae,ne,se,Be))},"go$readdir");return ce(F,ee,j);function re(me,Ae,ne,se){return function(Be,ve){Be&&(Be.code==="EMFILE"||Be.code==="ENFILE")?rI([ce,[me,Ae,ne],Be,se||Date.now(),Date.now()]):(ve&&ve.sort&&ve.sort(),typeof ne=="function"&&ne.call(this,Be,ve))}}}if(o(h,"readdir"),process.version.substr(0,4)==="v0.8"){var d=W5t(t);E=d.ReadStream,B=d.WriteStream}var p=t.ReadStream;p&&(E.prototype=Object.create(p.prototype),E.prototype.open=w);var A=t.WriteStream;A&&(B.prototype=Object.create(A.prototype),B.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:o(function(){return E},"get"),set:o(function(F){E=F},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return B},"get"),set:o(function(F){B=F},"set"),enumerable:!0,configurable:!0});var y=E;Object.defineProperty(t,"FileReadStream",{get:o(function(){return y},"get"),set:o(function(F){y=F},"set"),enumerable:!0,configurable:!0});var b=B;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return b},"get"),set:o(function(F){b=F},"set"),enumerable:!0,configurable:!0});function E(F,ee){return this instanceof E?(p.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}o(E,"ReadStream");function w(){var F=this;X(F.path,F.flags,F.mode,function(ee,j){ee?(F.autoClose&&F.destroy(),F.emit("error",ee)):(F.fd=j,F.emit("open",j),F.read())})}o(w,"ReadStream$open");function B(F,ee){return this instanceof B?(A.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}o(B,"WriteStream");function R(){var F=this;X(F.path,F.flags,F.mode,function(ee,j){ee?(F.destroy(),F.emit("error",ee)):(F.fd=j,F.emit("open",j))})}o(R,"WriteStream$open");function M(F,ee){return new t.ReadStream(F,ee)}o(M,"createReadStream");function V(F,ee){return new t.WriteStream(F,ee)}o(V,"createWriteStream");var Q=t.open;t.open=X;function X(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=null),re(F,ee,j,ce);function re(me,Ae,ne,se,Be){return Q(me,Ae,ne,function(ve,ht){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?rI([re,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(re,"go$open")}return o(X,"open"),t}o(xre,"patch");function rI(t){gE("ENQUEUE",t[0].name,t[1]),fi[Ts].push(t),Rre()}o(rI,"enqueue");var ZF;function BFe(){for(var t=Date.now(),e=0;e<fi[Ts].length;++e)fi[Ts][e].length>2&&(fi[Ts][e][3]=t,fi[Ts][e][4]=t);Rre()}o(BFe,"resetQueue");function Rre(){if(clearTimeout(ZF),ZF=void 0,fi[Ts].length!==0){var t=fi[Ts].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Aie.exports={AggregateError:mie,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Dzt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Ozt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);E3e(e,"signal"),Pzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[xzt]:!0}),i=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[Rzt](){var n;(n=i)===null||n===void 0||n()}}},"addAbortListener"),AbortSignalAny:Tzt.any||o(function(e){if(e.length===1)return e[0];let r=new Nzt,i=o(()=>r.abort(),"abort");return e.forEach(n=>{E3e(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal},"AbortSignalAny")};Aie.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var qo=m((eoi,C3e)=>{"use strict";var{format:kzt,inspect:IU,AggregateError:Qzt}=Ys(),Lzt=globalThis.AggregateError||Qzt,Mzt=Symbol("kIsNodeError"),Fzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Uzt=/^([A-Z][a-z0-9]*)+$/,qzt="__node_internal_",SU={};function bE(t,e){if(!t)throw new SU.ERR_INTERNAL_ASSERTION(e)}o(bE,"assert");function b3e(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(b3e,"addNumericalSeparator");function Gzt(t,e,r){if(typeof e=="function")return bE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return bE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:kzt(e,...r)}o(Gzt,"getMessage");function Ds(t,e,r){r||(r=Error);class i extends r{static{o(this,"NodeError")}constructor(...s){super(Gzt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[Mzt]=!0,SU[t]=i}o(Ds,"E");function w3e(t){let e=qzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(w3e,"hideStackFrames");function Hzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Lzt([e,t],e.message);return r.code=e.code,r}return t||e}o(Hzt,"aggregateTwoErrors");var gie=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new SU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Ds("ERR_ASSERTION","%s",Error);Ds("ERR_INVALID_ARG_TYPE",(t,e,r)=>{bE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],a=[];for(let u of e)bE(typeof u=="string","All expected entries have to be of type string"),Fzt.includes(u)?n.push(u.toLowerCase()):Uzt.test(u)?s.push(u):(bE(u!=="object",'The value "object" should be written as "Object"'),a.push(u));if(s.length>0){let u=n.indexOf("object");u!==-1&&(n.splice(n,u,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let u=n.pop();i+=`one of type ${n.join(", ")}, or ${u}`}}(s.length>0||a.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let u=s.pop();i+=`an instance of ${s.join(", ")}, or ${u}`}}a.length>0&&(i+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`;break;case Line truncated
`)),e.linkname&&(r+=$se(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=$se(" "+n+"="+i[n]+`
`);return tr.from(r)},"encodePax");VI.decodePax=o(function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(tr.toString(e.subarray(0,i)),10);if(!n)return r;let s=tr.toString(e.subarray(i+1,n-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(n)}return r},"decodePax");VI.encode=o(function(e){let r=tr.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),tr.byteLength(i)!==i.length)return null;for(;tr.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return tr.byteLength(i)>100||tr.byteLength(n)>155||e.linkname&&tr.byteLength(e.linkname)>100?null:(tr.write(r,i),tr.write(r,HA(e.mode&ser,6),100),tr.write(r,HA(e.uid,6),108),tr.write(r,HA(e.gid,6),116),her(e.size,r,124),tr.write(r,HA(e.mtime.getTime()/1e3|0,11),136),r[156]=e3+ler(e.type),e.linkname&&tr.write(r,e.linkname,157),tr.copy(wze,r,tN),tr.copy(rer,r,Wse),e.uname&&tr.write(r,e.uname,265),e.gname&&tr.write(r,e.gname,297),tr.write(r,HA(e.devmajor||0,6),329),tr.write(r,HA(e.devminor||0,6),337),n&&tr.write(r,n,345),tr.write(r,HA(Ize(r),6),148),r)},"encode");VI.decode=o(function(e,r,i){let n=e[156]===0?0:e[156]-e3,s=zI(e,0,100,r),a=GA(e,100,8),c=GA(e,108,8),u=GA(e,116,8),l=GA(e,124,12),f=GA(e,136,12),h=uer(n),d=e[157]===0?null:zI(e,157,100,r),p=zI(e,265,32),A=zI(e,297,32),y=GA(e,329,8),b=GA(e,337,8),E=Ize(e);if(E===256)return null;if(E!==GA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(oer(e))e[345]&&(s=zI(e,345,155,r)+"/"+s);else if(!aer(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:a,uid:c,gid:u,size:l,mtime:new Date(1e3*f),type:h,linkname:d,uname:p,gname:A,devmajor:y,devminor:b,pax:null}},"decode");function oer(t){return tr.equals(wze,t.subarray(tN,tN+6))}o(oer,"isUSTAR");function aer(t){return tr.equals(ier,t.subarray(tN,tN+6))&&tr.equals(ner,t.subarray(Wse,Wse+2))}o(aer,"isGNU");function cer(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(cer,"clamp");function uer(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(uer,"toType");function ler(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(ler,"toTypeflag");function Cze(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}o(Cze,"indexOf");function Ize(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(Ize,"cksum");function HA(t,e){return t=t.toString(8),t.length>e?ter.slice(0,e)+" ":eer.slice(0,e-t.length)+t+" "}o(HA,"encodeOct");function fer(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}o(fer,"encodeSizeBin");function her(t,e,r){t.toString(8).length>11?fer(t,e,r):tr.write(e,HA(t,11),r)}o(her,"encodeSize");function der(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let a=t[i];e?r.push(a):r.push(255-a)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}o(der,"parse256");function GA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return der(t);{for(;e<t.length&&t[e]===32;)e++;let i=cer(Cze(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(tr.toString(t.subarray(e,i)),8)}}o(GA,"decodeOct");function zI(t,e,r,i){return tr.toString(t.subarray(e,Cze(t,0,e,e+r)),i)}o(zI,"decodeStr");function $se(t){let e=tr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o($se,"addLength")});var xze=m((ali,_ze)=>{var{Writable:per,Readable:mer,getStreamError:Sze}=jse(),Aer=Tse(),Bze=Zq(),jI=Jse(),ger=Bze.alloc(0),Kse=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new Aer,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return ger;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return Bze.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Xse=class extends mer{static{o(this,"Source")}constructor(e,r,i){super(),this.header=r,this.offset=i,this._ Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).forEach(r=>{r.match(Urr)||r.match(qrr)||(e+=r)}),Buffer.from(e,"base64")}o(Grr,"toDER");function Hrr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`+x);let[,G]=O;return G.replace(/\s/g,"").split(ll).map($=>$.replace(zc,"").trim())}o(fl,"parseParams");function Vc(D,x){var O={};return Object.keys(D).forEach(G=>{var $=D[G],W,te=p($),re=!te&&$.length===1||te&&$.length===0;if(Array.isArray($))W=[...$],$=W.pop(),O[G]=W.concat(W.length>0?le:$);else if(re)O[G]=$;else{if(W=fl($),$.length===0&&!te&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");te||W.pop(),O[G]=W.concat(le)}function le(Ge,$t){var nr=W.map(Jt=>Ge[Jt]);nr.push($t),b($)(...nr)}o(le,"newTask")}),yo(O,x)}o(Vc,"autoInject");class hl{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(x){return x.prev?x.prev.next=x.next:this.head=x.next,x.next?x.next.prev=x.prev:this.tail=x.prev,x.prev=x.next=null,this.length-=1,x}empty(){for(;this.head;)this.shift();return this}insertAfter(x,O){O.prev=x,O.next=x.next,x.next?x.next.prev=O:this.tail=O,x.next=O,this.length+=1}insertBefore(x,O){O.prev=x.prev,O.next=x,x.prev?x.prev.next=O:this.head=O,x.prev=O,this.length+=1}unshift(x){this.head?this.insertBefore(this.head,x):jc(this,x)}push(x){this.tail?this.insertAfter(this.tail,x):jc(this,x)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var x=this.head;x;)yield x.data,x=x.next}remove(x){for(var O=this.head;O;){var{next:G}=O;x(O)&&this.removeLink(O),O=G}return this}}function jc(D,x){D.length=1,D.head=D.tail=x}o(jc,"setInitial");function $c(D,x,O){if(x==null)x=1;else if(x===0)throw new RangeError("Concurrency must not be zero");var G=b(D),$=0,W=[];let te={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function re(et,qe){te[et].push(qe)}o(re,"on");function le(et,qe){let tt=o((...Yt)=>{Ge(et,tt),qe(...Yt)},"handleAndRemove");te[et].push(tt)}o(le,"once");function Ge(et,qe){if(!et)return Object.keys(te).forEach(tt=>te[tt]=[]);if(!qe)return te[et]=[];te[et]=te[et].filter(tt=>tt!==qe)}o(Ge,"off");function $t(et,...qe){te[et].forEach(tt=>tt(...qe))}o($t,"trigger");var nr=!1;function Jt(et,qe,tt,Yt){if(Yt!=null&&typeof Yt!="function")throw new Error("task callback must be a function");sr.started=!0;var Yr,kn;function Jc(zg,...ZB){if(zg)return tt?kn(zg):Yr();if(ZB.length<=1)return Yr(ZB[0]);Yr(ZB)}o(Jc,"promiseCallback");var ub=sr._createTaskItem(et,tt?Jc:Yt||Jc);if(qe?sr._tasks.unshift(ub):sr._tasks.push(ub),nr||(nr=!0,l(()=>{nr=!1,sr.process()})),tt||!Yt)return new Promise((zg,ZB)=>{Yr=zg,kn=ZB})}o(Jt,"_insert");function Wc(et){return function(qe,...tt){$-=1;for(var Yt=0,Yr=et.length;Yt<Yr;Yt++){var kn=et[Yt],Jc=W.indexOf(kn);Jc===0?W.shift():Jc>0&&W.splice(Jc,1),kn.callback(qe,...tt),qe!=null&&$t("error",qe,kn.data)}$<=sr.concurrency-sr.buffer&&$t("unsaturated"),sr.idle()&&$t("drain"),sr.process()}}o(Wc,"_createCB");function cb(et){return et.length===0&&sr.idle()?(l(()=>$t("drain")),!0):!1}o(cb,"_maybeDrain");let Hg=o(et=>qe=>{if(!qe)return new Promise((tt,Yt)=>{le(et,(Yr,kn)=>{if(Yr)return Yt(Yr);tt(kn)})});Ge(et),re(et,qe)},"eventMethod");var XB=!1,sr={_tasks:new hl,_createTaskItem(et,qe){return{data:et,callback:qe}},*[Symbol.iterator](){yield*sr._tasks[Symbol.iterator]()},concurrency:x,payload:O,buffer:x/4,started:!1,paused:!1,push(et,qe){return Array.isArray(et)?cb(et)?void 0:et.map(tt=>Jt(tt,!1,!1,qe)):Jt(et,!1,!1,qe)},pushAsync(et,qe){return Array.isArray(et)?cb(et)?void 0:et.map(tt=>Jt(tt,!1,!0,qe)):Jt(et,!1,!0,qe)},kill(){Ge(),sr._tasks.empty()},unshift(et,qe){return Array.isArray(et)?cb(et)?void 0:et.map(tt=>Jt(tt,!0,!1,qe)):Jt(et,!0,!1,qe)},unshiftAsync(et,qe){return Array.isArray(et)?cb(et)?void 0:et.map(tt=>Jt(tt,!0,!0,qe)):Jt(et,!0,!0,qe)},remove(et){sr._tasks.remove(et)},process(){if(!XB){for(XB=!0;!sr.paused&&$<sr.concurrency&&sr._tasks.length;){var et=[],qe=[],tt=sr._tasks.length;sr.payload&&(tt=Math.min(tt,sr.payload));for(var Yt=0;Yt<tt;Yt++){var Yr=sr._tasks.shift();et.push(Yr),W.push(Yr),qe.push(Yr.data)}$+=1,sr._tasks.length===0&&$t("empty"),$===sr.concurrency&&$t("saturated");var kn=ie(Wc(et));G(qe,kn)}XB=!1}},length(){return sr._tasks.length},running(){return $},workersList(){return W},idle(){return sr._tasks.length+$===0},pause(){sr.paused=!0},resume(){sr.paused!==!1&&(sr.paused=!1,l(sr.process))}};return Object.defineProperties(sr,{saturated:{writable:!1,value:Hg("saturated")},unsaturated:{writable:!1,value:Hg("unsaturated")},empty:{writable:!1,value:Hg("empty")},drain:{writable:!1,value:Hg("drain")},error:{writable:!1,value:Hg("error")}}),sr}o($c,"queue$1");function Dn(D,x){return $c(D,1,x)}o(Dn,"cargo$1");function yn(D,x,O){return $c(D,x,O)}o(yn,"cargo");function dl(D,x,O,G){G=Q(G);var $=b(O);return ir(D,(W,te,re)=>{$(x,W,(le,Ge)=>{x=Ge,re(le)})},W=>G(W,x))}o(dl,"reduce");var On=E(dl,4);function pl(...D){var x=D.map(b);return function(...O){var G=this,$=O[O.length-1];return typeof $=="function"?O.pop():$=ui(),On(x,O,(W,te,re)=>{te.apply(G,W.concat((le,...Ge)=>{re(le,Ge)}))},(W,te)=>$(W,...te)),$[ci]}}o(pl,"seq"); Line truncated
GFS4: `),console.error(t)},"debug"));hi[Ns]||(QFe=global[Ns]||[],MFe(hi,QFe),hi.close=(function(t){function e(r,i){return t.call(hi,r,function(n){n||LFe(),typeof i=="function"&&i.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,nU,{value:t}),e})(hi.close),hi.closeSync=(function(t){function e(r){t.apply(hi,arguments),LFe()}return o(e,"closeSync"),Object.defineProperty(e,nU,{value:t}),e})(hi.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bE(hi[Ns]),require("assert").equal(hi[Ns].length,0)}));var QFe;global[Ns]||MFe(global,hi[Ns]);Lre.exports=kre(r8t(hi));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!hi.__patched&&(Lre.exports=kre(hi),hi.__patched=!0);function kre(t){e8t(t),t.gracefulify=kre,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(F,ee,j){return typeof ee=="function"&&(j=ee,ee=null),ce(F,ee,j);function ce(ie,me,Ae,ne){return e(ie,me,function(se){se&&(se.code==="EMFILE"||se.code==="ENFILE")?sI([ce,[ie,me,Ae],se,ne||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}o(ce,"go$readFile")}o(r,"readFile");var i=t.writeFile;t.writeFile=n;function n(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=null),ie(F,ee,j,ce);function ie(me,Ae,ne,se,Be){return i(me,Ae,ne,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?sI([ie,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(ie,"go$writeFile")}o(n,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=null),ie(F,ee,j,ce);function ie(me,Ae,ne,se,Be){return s(me,Ae,ne,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?sI([ie,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(ie,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=u);function u(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=0),ie(F,ee,j,ce);function ie(me,Ae,ne,se,Be){return c(me,Ae,ne,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?sI([ie,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(ie,"go$copyFile")}o(u,"copyFile");var l=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(F,ee,j){typeof ee=="function"&&(j=ee,ee=null);var ce=f.test(process.version)?o(function(Ae,ne,se,Be){return l(Ae,ie(Ae,ne,se,Be))},"go$readdir"):o(function(Ae,ne,se,Be){return l(Ae,ne,ie(Ae,ne,se,Be))},"go$readdir");return ce(F,ee,j);function ie(me,Ae,ne,se){return function(Be,ve){Be&&(Be.code==="EMFILE"||Be.code==="ENFILE")?sI([ce,[me,Ae,ne],Be,se||Date.now(),Date.now()]):(ve&&ve.sort&&ve.sort(),typeof ne=="function"&&ne.call(this,Be,ve))}}}if(o(h,"readdir"),process.version.substr(0,4)==="v0.8"){var d=t8t(t);E=d.ReadStream,B=d.WriteStream}var p=t.ReadStream;p&&(E.prototype=Object.create(p.prototype),E.prototype.open=w);var A=t.WriteStream;A&&(B.prototype=Object.create(A.prototype),B.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:o(function(){return E},"get"),set:o(function(F){E=F},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return B},"get"),set:o(function(F){B=F},"set"),enumerable:!0,configurable:!0});var y=E;Object.defineProperty(t,"FileReadStream",{get:o(function(){return y},"get"),set:o(function(F){y=F},"set"),enumerable:!0,configurable:!0});var b=B;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return b},"get"),set:o(function(F){b=F},"set"),enumerable:!0,configurable:!0});function E(F,ee){return this instanceof E?(p.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}o(E,"ReadStream");function w(){var F=this;X(F.path,F.flags,F.mode,function(ee,j){ee?(F.autoClose&&F.destroy(),F.emit("error",ee)):(F.fd=j,F.emit("open",j),F.read())})}o(w,"ReadStream$open");function B(F,ee){return this instanceof B?(A.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}o(B,"WriteStream");function R(){var F=this;X(F.path,F.flags,F.mode,function(ee,j){ee?(F.destroy(),F.emit("error",ee)):(F.fd=j,F.emit("open",j))})}o(R,"WriteStream$open");function M(F,ee){return new t.ReadStream(F,ee)}o(M,"createReadStream");function V(F,ee){return new t.WriteStream(F,ee)}o(V,"createWriteStream");var Q=t.open;t.open=X;function X(F,ee,j,ce){return typeof j=="function"&&(ce=j,j=null),ie(F,ee,j,ce);function ie(me,Ae,ne,se,Be){return Q(me,Ae,ne,function(ve,ht){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?sI([ie,[me,Ae,ne,se],ve,Be||Date.now(),Date.now()]):typeof se=="function"&&se.apply(this,arguments)})}o(ie,"go$open")}return o(X,"open"),t}o(kre,"patch");function sI(t){bE("ENQUEUE",t[0].name,t[1]),hi[Ns].push(t),Qre()}o(sI,"enqueue");var iU;function LFe(){for(var t=Date.now(),e=0;e<hi[Ns].length;++e)hi[Ns][e].length>2&&(hi[Ns][e][3]=t,hi[Ns][e][4]=t);Qre()}o(LFe,"resetQueue");function Qre(){if(clearTimeout(iU),iU=void 0,hi[Ns].length!==0){var t=hi[Ns].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};Iie.exports={AggregateError:Cie,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof Fzt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Uzt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);N3e(e,"signal"),qzt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[kzt]:!0}),i=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[Qzt](){var n;(n=i)===null||n===void 0||n()}}},"addAbortListener"),AbortSignalAny:Lzt.any||o(function(e){if(e.length===1)return e[0];let r=new Mzt,i=o(()=>r.abort(),"abort");return e.forEach(n=>{N3e(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal},"AbortSignalAny")};Iie.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Go=m((aoi,P3e)=>{"use strict";var{format:Gzt,inspect:_U,AggregateError:Hzt}=Ys(),zzt=globalThis.AggregateError||Hzt,Vzt=Symbol("kIsNodeError"),jzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],$zt=/^([A-Z][a-z0-9]*)+$/,Wzt="__node_internal_",xU={};function IE(t,e){if(!t)throw new xU.ERR_INTERNAL_ASSERTION(e)}o(IE,"assert");function D3e(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(D3e,"addNumericalSeparator");function Jzt(t,e,r){if(typeof e=="function")return IE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return IE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:Gzt(e,...r)}o(Jzt,"getMessage");function Os(t,e,r){r||(r=Error);class i extends r{static{o(this,"NodeError")}constructor(...s){super(Jzt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[Vzt]=!0,xU[t]=i}o(Os,"E");function O3e(t){let e=Wzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(O3e,"hideStackFrames");function Yzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new zzt([e,t],e.message);return r.code=e.code,r}return t||e}o(Yzt,"aggregateTwoErrors");var Sie=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Os("ERR_ASSERTION","%s",Error);Os("ERR_INVALID_ARG_TYPE",(t,e,r)=>{IE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],a=[];for(let u of e)IE(typeof u=="string","All expected entries have to be of type string"),jzt.includes(u)?n.push(u.toLowerCase()):$zt.test(u)?s.push(u):(IE(u!=="object",'The value "object" should be written as "Object"'),a.push(u));if(s.length>0){let u=n.indexOf("object");u!==-1&&(n.splice(n,u,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let u=n.pop();i+=`one of type ${n.join(", ")}, or ${u}`}}(s.length>0||a.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let u=s.pop();i+=`an instance of ${s.join(", ")}, or ${u}`}}a.length>0&&(i+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`;break;case Line truncated
`)),e.linkname&&(r+=eoe(" linkpath="+e.linkname+`
`));let i=e.pax;if(i)for(let n in i)r+=eoe(" "+n+"="+i[n]+`
`);return tr.from(r)},"encodePax");WI.decodePax=o(function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(tr.toString(e.subarray(0,i)),10);if(!n)return r;let s=tr.toString(e.subarray(i+1,n-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(n)}return r},"decodePax");WI.encode=o(function(e){let r=tr.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),tr.byteLength(i)!==i.length)return null;for(;tr.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return tr.byteLength(i)>100||tr.byteLength(n)>155||e.linkname&&tr.byteLength(e.linkname)>100?null:(tr.write(r,i),tr.write(r,HA(e.mode&her,6),100),tr.write(r,HA(e.uid,6),108),tr.write(r,HA(e.gid,6),116),Eer(e.size,r,124),tr.write(r,HA(e.mtime.getTime()/1e3|0,11),136),r[156]=n3+ger(e.type),e.linkname&&tr.write(r,e.linkname,157),tr.copy(Oze,r,sN),tr.copy(uer,r,toe),e.uname&&tr.write(r,e.uname,265),e.gname&&tr.write(r,e.gname,297),tr.write(r,HA(e.devmajor||0,6),329),tr.write(r,HA(e.devminor||0,6),337),n&&tr.write(r,n,345),tr.write(r,HA(kze(r),6),148),r)},"encode");WI.decode=o(function(e,r,i){let n=e[156]===0?0:e[156]-n3,s=$I(e,0,100,r),a=GA(e,100,8),c=GA(e,108,8),u=GA(e,116,8),l=GA(e,124,12),f=GA(e,136,12),h=Aer(n),d=e[157]===0?null:$I(e,157,100,r),p=$I(e,265,32),A=$I(e,297,32),y=GA(e,329,8),b=GA(e,337,8),E=kze(e);if(E===256)return null;if(E!==GA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(der(e))e[345]&&(s=$I(e,345,155,r)+"/"+s);else if(!per(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:a,uid:c,gid:u,size:l,mtime:new Date(1e3*f),type:h,linkname:d,uname:p,gname:A,devmajor:y,devminor:b,pax:null}},"decode");function der(t){return tr.equals(Oze,t.subarray(sN,sN+6))}o(der,"isUSTAR");function per(t){return tr.equals(ler,t.subarray(sN,sN+6))&&tr.equals(fer,t.subarray(toe,toe+2))}o(per,"isGNU");function mer(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(mer,"clamp");function Aer(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(Aer,"toType");function ger(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(ger,"toTypeflag");function Pze(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}o(Pze,"indexOf");function kze(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(kze,"cksum");function HA(t,e){return t=t.toString(8),t.length>e?cer.slice(0,e)+" ":aer.slice(0,e-t.length)+t+" "}o(HA,"encodeOct");function yer(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}o(yer,"encodeSizeBin");function Eer(t,e,r){t.toString(8).length>11?yer(t,e,r):tr.write(e,HA(t,11),r)}o(Eer,"encodeSize");function ber(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let a=t[i];e?r.push(a):r.push(255-a)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}o(ber,"parse256");function GA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return ber(t);{for(;e<t.length&&t[e]===32;)e++;let i=mer(Pze(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(tr.toString(t.subarray(e,i)),8)}}o(GA,"decodeOct");function $I(t,e,r,i){return tr.toString(t.subarray(e,Pze(t,0,e,e+r)),i)}o($I,"decodeStr");function eoe(t){let e=tr.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(eoe,"addLength")});var Uze=m((pli,Fze)=>{var{Writable:wer,Readable:Cer,getStreamError:Qze}=Zse(),Ier=Lse(),Lze=i3(),JI=roe(),Ser=Lze.alloc(0),noe=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new Ier,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return Ser;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return Lze.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},soe=class extends Cer{static{o(this,"Source")}constructor(e,r,i){super(),this.header=r,this.offset=i,this._ Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).forEach(r=>{r.match($rr)||r.match(Wrr)||(e+=r)}),Buffer.from(e,"base64")}o(Jrr,"toDER");function Yrr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
`).concat(`
`)}o(Hrr,"fromDER")});var G3=m(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.SHA2_HASH_ALGOS=ig.RSA_SIGNATURE_ALGOS=ig.ECDSA_SIGNATURE_ALGOS=void 0;ig.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"};ig.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"};ig.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 fae=m(H3=>{"use strict";Object.defineProperty(H3,"__esModule",{value:!0});H3.RFC3161TimestampVerificationError=void 0;var lae=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};H3.RFC3161TimestampVerificationError=lae});var r$e=m(qh=>{"use strict";var zrr=qh&&qh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Vrr=qh&&qh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jrr=qh&&qh.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&zrr(r,e,i[n]);return Vrr(r,e),r}})();Object.defineProperty(qh,"__esModule",{value:!0});qh.TSTInfo=void 0;var t$e=jrr(oS()),$rr=G3(),Wrr=fae(),hae=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 $rr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=t$e.digest(this.messageImprintHashAlgorithm,e);if(!t$e.bufferEqual(r,this.messageImprintHashedMessage))throw new Wrr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};qh.TSTInfo=hae});var n$e=m(Gh=>{"use strict";var Jrr=Gh&&Gh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Yrr=Gh&&Gh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Krr=Gh&&Gh.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Jrr(r,e,i[n]);return Yrr(r,e),r}})();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.RFC3161Timestamp=void 0;var Xrr=F3(),dae=Krr(oS()),i$e=G3(),AN=fae(),Zrr=r$e(),eir="1.2.840.113549.1.7.2",tir="1.2.840.113549.1.9.16.1.4",rir="1.2.840.113549.1.9.4",pae=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=Xrr.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 signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return i$e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return i$e.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Zrr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new AN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==eir)throw new AN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==tir)throw new AN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=dae.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].su Line truncated
`)}o(Yrr,"fromDER")});var j3=m(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.SHA2_HASH_ALGOS=ig.RSA_SIGNATURE_ALGOS=ig.ECDSA_SIGNATURE_ALGOS=void 0;ig.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"};ig.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"};ig.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 yae=m($3=>{"use strict";Object.defineProperty($3,"__esModule",{value:!0});$3.RFC3161TimestampVerificationError=void 0;var gae=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};$3.RFC3161TimestampVerificationError=gae});var p$e=m(qh=>{"use strict";var Krr=qh&&qh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Xrr=qh&&qh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zrr=qh&&qh.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Krr(r,e,i[n]);return Xrr(r,e),r}})();Object.defineProperty(qh,"__esModule",{value:!0});qh.TSTInfo=void 0;var d$e=Zrr(uS()),eir=j3(),tir=yae(),Eae=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 eir.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=d$e.digest(this.messageImprintHashAlgorithm,e);if(!d$e.bufferEqual(r,this.messageImprintHashedMessage))throw new tir.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};qh.TSTInfo=Eae});var A$e=m(Gh=>{"use strict";var rir=Gh&&Gh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),iir=Gh&&Gh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nir=Gh&&Gh.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&rir(r,e,i[n]);return iir(r,e),r}})();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.RFC3161Timestamp=void 0;var sir=H3(),bae=nir(uS()),m$e=j3(),bN=yae(),oir=p$e(),air="1.2.840.113549.1.7.2",cir="1.2.840.113549.1.9.16.1.4",uir="1.2.840.113549.1.9.4",wae=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=sir.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 signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return m$e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return m$e.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new oir.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new bN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==air)throw new bN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==cir)throw new bN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=bae.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].su Line truncated
\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\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{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\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\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 CWe=m(wWe=>{"use strict";var Kce=Gp().Buffer;wWe._dbcs=Hp;var Qs=-1,bWe=-2,$u=-10,ra=-1e3,yS=new Array(256),PN=-1;for(_4=0;_4<256;_4++)yS[_4]=Qs;var _4;function Hp(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=[],this.decodeTables[0]=yS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(yS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(yS.slice(0));for(var a=this.decodeTables[0],i=129;i<=254;i++)for(var c=this.decodeTables[ra-a[i]],u=48;u<=57;u++){if(c[u]===Qs)c[u]=ra-n;else if(c[u]>ra)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[ra-c[u]],f=129;f<=254;f++){if(l[f]===Qs)l[f]=ra-s;else{if(l[f]===ra-s)continue;if(l[f]>ra)throw new Error("gb18030 decode tables conflict at byte 3")}for(var h=this.decodeTables[ra-l[f]],d=48;d<=57;d++)h[d]===Qs&&(h[d]=bWe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var p={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
\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 PWe=m(OWe=>{"use strict";var nue=Hp().Buffer;OWe._dbcs=zp;var Ls=-1,DWe=-2,Wu=-10,ia=-1e3,wS=new Array(256),MN=-1;for(N4=0;N4<256;N4++)wS[N4]=Ls;var N4;function zp(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=[],this.decodeTables[0]=wS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(wS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(wS.slice(0));for(var a=this.decodeTables[0],i=129;i<=254;i++)for(var c=this.decodeTables[ia-a[i]],u=48;u<=57;u++){if(c[u]===Ls)c[u]=ia-n;else if(c[u]>ia)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[ia-c[u]],f=129;f<=254;f++){if(l[f]===Ls)l[f]=ia-s;else{if(l[f]===ia-s)continue;if(l[f]>ia)throw new Error("gb18030 decode tables conflict at byte 3")}for(var h=this.decodeTables[ia-l[f]],d=48;d<=57;d++)h[d]===Ls&&(h[d]=DWe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var p={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Wp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?sor:nor);if(!n||i&&!wue.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=Qc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(a=>a.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(wue.includes(this.algorithm)&&this.digest.match(ior)&&this.options.every(r=>r.match(oor)))?"":`${this.algorithm}-${this.digest}${GN(this.options)}`}};function TJe(t,e,r,i){let n=t!=="",s=!1,a="",c=i.length-1;for(let l=0;l<c;l++){let f=Wp.prototype.toString.call(i[l],r);f&&(s=!0,a+=f,a+=e)}let u=Wp.prototype.toString.call(i[c],r);return u&&(s=!0,a+=u),n&&s?t+e+a:t+a}o(TJe,"integrityHashToString");var d0=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||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of wue)this[n]&&(i=TJe(i,r,e,this[n]))}else for(let n of Object.keys(this))i=TJe(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:UN(e,r);return Qc(`${this.toString(r)} ${i}`,r)}hexDigest(){return Qc(this,{single:!0}).hexDigest()}merge(e,r){let i=Qc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(a=>s.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=Qc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(a=>s.digest===a.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||mor,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,a)=>i(s,a)||s):null}};Kh.exports.parse=Qc;function Qc(t,e){if(!t)return null;if(typeof t=="string")return bue(t,e);if(t.algorithm&&t.digest){let r=new d0;return r[t.algorithm]=[t],bue(UN(r,e),e)}else return bue(UN(t,e),e)}o(Qc,"parse");function bue(t,e){if(e?.single)return new Wp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Wp(n,e);if(s.algorithm&&s.digest){let a=s.algorithm;i[a]||(i[a]=[]),i[a].push(s)}return i},new d0);return r.isEmpty()?null:r}o(bue,"_parse");Kh.exports.stringify=UN;function UN(t,e){return t.algorithm&&t.digest?Wp.prototype.toString.call(t,e):typeof t=="string"?UN(Qc(t,e),e):d0.prototype.toString.call(t,e)}o(UN,"stringify");Kh.exports.fromHex=aor;function aor(t,e,r){let i=GN(r?.options);return Qc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}o(aor,"fromHex");Kh.exports.fromData=cor;function cor(t,e){let r=e?.algorithms||[...Iue],i=GN(e?.options);return r.reduce((n,s)=>{let a=qN.createHash(s).update(t).digest("base64"),c=new Wp(`${s}-${a}${i}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new d0)}o(cor,"fromData");Kh.exports.fromStream=uor;function uor(t,e){let r=Sue(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",a=>{s=a}),r.on("end",()=>i(s)),r.resume()})}o(uor,"fromStream");Kh.exports.checkData=lor;function lor(t,e,r){if(e=Qc(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 i=e.pickAlgorithm(r),n=qN.createHash(i).update(t).digest("base64"),s=Qc({algorithm:i,digest:n}),a=s.match(e,r);if(r=r||{},a||!r.error)return a;if(typeof r.size=="number"&&t.length!==r.size){let c=new Error(`data size mismatch when checking ${e}.
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Jp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?dor:hor);if(!n||i&&!xue.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=Mc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(a=>a.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(xue.includes(this.algorithm)&&this.digest.match(lor)&&this.options.every(r=>r.match(por)))?"":`${this.algorithm}-${this.digest}${jN(this.options)}`}};function GJe(t,e,r,i){let n=t!=="",s=!1,a="",c=i.length-1;for(let l=0;l<c;l++){let f=Jp.prototype.toString.call(i[l],r);f&&(s=!0,a+=f,a+=e)}let u=Jp.prototype.toString.call(i[c],r);return u&&(s=!0,a+=u),n&&s?t+e+a:t+a}o(GJe,"integrityHashToString");var A0=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||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of xue)this[n]&&(i=GJe(i,r,e,this[n]))}else for(let n of Object.keys(this))i=GJe(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:zN(e,r);return Mc(`${this.toString(r)} ${i}`,r)}hexDigest(){return Mc(this,{single:!0}).hexDigest()}merge(e,r){let i=Mc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(a=>s.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=Mc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(a=>s.digest===a.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||Cor,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,a)=>i(s,a)||s):null}};Kh.exports.parse=Mc;function Mc(t,e){if(!t)return null;if(typeof t=="string")return _ue(t,e);if(t.algorithm&&t.digest){let r=new A0;return r[t.algorithm]=[t],_ue(zN(r,e),e)}else return _ue(zN(t,e),e)}o(Mc,"parse");function _ue(t,e){if(e?.single)return new Jp(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Jp(n,e);if(s.algorithm&&s.digest){let a=s.algorithm;i[a]||(i[a]=[]),i[a].push(s)}return i},new A0);return r.isEmpty()?null:r}o(_ue,"_parse");Kh.exports.stringify=zN;function zN(t,e){return t.algorithm&&t.digest?Jp.prototype.toString.call(t,e):typeof t=="string"?zN(Mc(t,e),e):A0.prototype.toString.call(t,e)}o(zN,"stringify");Kh.exports.fromHex=mor;function mor(t,e,r){let i=jN(r?.options);return Mc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}o(mor,"fromHex");Kh.exports.fromData=Aor;function Aor(t,e){let r=e?.algorithms||[...Tue],i=jN(e?.options);return r.reduce((n,s)=>{let a=VN.createHash(s).update(t).digest("base64"),c=new Jp(`${s}-${a}${i}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new A0)}o(Aor,"fromData");Kh.exports.fromStream=gor;function gor(t,e){let r=Nue(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",a=>{s=a}),r.on("end",()=>i(s)),r.resume()})}o(gor,"fromStream");Kh.exports.checkData=yor;function yor(t,e,r){if(e=Mc(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 i=e.pickAlgorithm(r),n=VN.createHash(i).update(t).digest("base64"),s=Mc({algorithm:i,digest:n}),a=s.match(e,r);if(r=r||{},a||!r.error)return a;if(typeof r.size=="number"&&t.length!==r.size){let c=new Error(`data size mismatch when checking ${e}.
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 ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=s,c.expected=e,c.algorithm=i,c.sri=e,c}}o(lor,"checkData");Kh.exports.checkStream=hor;function hor(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Qc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Sue(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let a;i.on("verified",c=>{a=c}),i.on("end",()=>n(a)),i.resume()})}o(hor,"checkStream");Kh.exports.integrityStream=Sue;function Sue(t=Object.create(null)){return new Cue(t)}o(Sue,"integrityStream");Kh.exports.create=dor;function dor(t){let e=t?.algorithms||[...Iue],r=GN(t?.options),i=e.map(qN.createHash);return{update:o(function(n,s){return i.forEach(a=>a.update(n,s)),this},"update"),digest:o(function(){return e.reduce((s,a)=>{let c=i.shift().digest("base64"),u=new Wp(`${a}-${c}${r}`,t);if(u.algorithm&&u.digest){let l=u.algorithm;s[l]||(s[l]=[]),s[l].push(u)}return s},new d0)},"digest")}}o(dor,"createIntegrity");var por=qN.getHashes(),NJe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>por.includes(t));function mor(t,e){return NJe.indexOf(t.toLowerCase())>=NJe.indexOf(e.toLowerCase())?t:e}o(mor,"getPrioritizedHash")});var vue=m((egi,QJe)=>{var DJe=due(),OJe=Eue(),Aor=Xh(),PJe={shared:!1,ignoreCargoCult:!0},gor={status:200,headers:{}},CS=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"requestObject"),kJe=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"responseObject"),Bue=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=CS(r),this.response=kJe(i),this.options=n,this.policy=new DJe(this.request,this.response,PJe),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 DJe(CS(e),gor,PJe).storable()}satisfies(e){let r=CS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new OJe(this.request),n=new OJe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Aor.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=CS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=CS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=CS(e),n=kJe(r);return!this.policy.revalidatedPolicy(i,n).modified}};QJe.exports=Bue});var MJe=m((rgi,LJe)=>{var _ue=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"}};LJe.exports={NotCachedError:_ue}});var WJe=m((ngi,$Je)=>{"use strict";var FJe=typeof process=="object"&&process?process:{stdout:null,stderr:null},yor=require("events"),UJe=require("stream"),qJe=require("string_decoder").StringDecoder,Jp=Symbol("EOF"),Yp=Symbol("maybeEmitEnd"),fg=Symbol("emittedEnd"),q4=Symbol("emittingEnd"),HN=Symbol("emittedError"),G4=Symbol("closed"),GJe=Symbol("read"),H4=Symbol("flush"),HJe=Symbol("flushChunk"),Fa=Symbol("encoding"),Kp=Symbol("decoder"),z4=Symbol("flowing"),zN=Symbol("paused"),IS=Symbol("resume"),os=Symbol("bufferLength"),xue=Symbol("bufferPush"),Rue=Symbol("bufferShift"),co=Symbol("objectMode"),uo=Symbol("destroyed"),Tue=Symbol("emitData"),zJe=Symbol("emitEnd"),Nue=Symbol("emitEnd2"),Xp=Symbol("async"),VN=o(t=>Promise.resolve().then(t),"defer"),VJe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Eor=VJe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),bor=VJe&&Symbol.iterator||Symbol("iterator not implemented"),wor=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),Cor=o(t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBuffer"),Ior=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),V4=class{static{o(this,"Pipe")}constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[IS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Due=class extends V4{static{o(this,"PipeP Line truncated
`+a.map(d=>{let p=JSON.stringify(d);return`${A5(p)} ${p}`}).join(`
`),u=o(async()=>{let d=tfr(ed.join(t,"tmp"),i.tmpPrefix);return await _le(ed.dirname(d),{recursive:!0}),{target:d,moved:!1}},"setup"),l=o(async d=>{if(!d.moved)return nXe(d.target,{recursive:!0,force:!0})},"teardown"),f=o(async d=>{await Xlr(d.target,c,{flag:"wx"}),await _le(ed.dirname(n),{recursive:!0}),await sfr(d.target,n),d.moved=!0},"write"),h=await u();try{await f(h)}finally{await l(h)}return a.reverse().map(d=>g5(t,d,!0))}o(ofr,"compact");Mc.exports.insert=sXe;async function sXe(t,e,r,i={}){let{metadata:n,size:s,time:a}=i,c=c2(t,e),u={key:e,integrity:r&&efr.stringify(r),time:a||Date.now(),size:s,metadata:n};try{await _le(ed.dirname(c),{recursive:!0});let l=JSON.stringify(u);await Jlr(c,`
${A5(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return g5(t,u)}o(sXe,"insert");Mc.exports.find=afr;async function afr(t,e){let r=c2(t,e);try{return(await m5(r)).reduce((n,s)=>s&&s.key===e?g5(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}o(afr,"find");Mc.exports.delete=cfr;function cfr(t,e,r={}){if(!r.removeFully)return sXe(t,e,null,r);let i=c2(t,e);return nXe(i,{recursive:!0,force:!0})}o(cfr,"del");Mc.exports.lsStream=oXe;function oXe(t){let e=xle(t),r=new Zlr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(p5(),d5)),n=await vle(e);return await i(n,async s=>{let a=ed.join(e,s),c=await vle(a);await i(c,async u=>{let l=ed.join(a,u),f=await vle(l);await i(f,async h=>{let d=ed.join(l,h);try{let A=(await m5(d)).reduce((y,b)=>(y.set(b.key,b),y),new Map);for(let y of A.values()){let b=g5(t,y);b&&r.write(b)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:Ble})},{concurrency:Ble})},{concurrency:Ble}),r.end(),r}).catch(i=>r.emit("error",i)),r}o(oXe,"lsStream");Mc.exports.ls=ufr;async function ufr(t){return(await oXe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}o(ufr,"ls");Mc.exports.bucketEntries=m5;async function m5(t,e){let r=await Ylr(t,"utf8");return lfr(r,e)}o(m5,"bucketEntries");function lfr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||A5(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}o(lfr,"_bucketEntries");Mc.exports.bucketDir=xle;function xle(t){return ed.join(t,`index-v${nfr}`)}o(xle,"bucketDir");Mc.exports.bucketPath=c2;function c2(t,e){let r=aXe(e);return ed.join.apply(ed,[xle(t)].concat(ifr(r)))}o(c2,"bucketPath");Mc.exports.hashKey=aXe;function aXe(t){return cXe(t,"sha256")}o(aXe,"hashKey");Mc.exports.hashEntry=A5;function A5(t){return cXe(t,"sha1")}o(A5,"hashEntry");function cXe(t,e){return Wlr.createHash(e).update(t).digest("hex")}o(cXe,"hash");function g5(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?rfr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(g5,"formatEntry");function vle(t){return Klr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(vle,"readdirOrEmpty")});var kS=m(E5=>{"use strict";Object.defineProperty(E5,"__esModule",{value:!0});E5.LRUCache=void 0;var ffr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,lXe=new Set,Rle=typeof process=="object"&&process?process:{},fXe=o((t,e,r,i)=>{typeof Rle.emitWarning=="function"?Rle.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),y5=globalThis.AbortController,uXe=globalThis.AbortSignal;if(typeof y5>"u"){uXe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},y5=class{static{o(this,"AbortController")}constructor(){e()}signal=new uXe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Rle.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,fXe("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 hfr=o(t=>!lXe.has(t),"shouldWarn"),dg=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),hXe=o(t=>dg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?PS:null:null,"getUintArray"),PS=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},Tle=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=hXe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}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]}},Nle=class t{static{o(this,"LRUCache")}#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#_;#p;#I;#x;#E;#o;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:o(r=>e.#S(r),"isBackgroundFetch"),backgroundFetch:o((r,i,n,s)=>e.#z(r,i,n,s),"backgroundFetch"),moveToTail:o(r=>e.#q(r),"moveToTail"),indexes:o(r=>e.#O(r),"indexes"),rindexes:o(r=>e.#g(r),"rindexes"),isStale:o(r=>e.#T(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:u,dispose:l,onInsert:f,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:p,maxSize:A=0,maxEntrySize:y=0,sizeCalculation:b,fetchMethod:E,memoMethod:w,noDeleteOnFetchRejection:B,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:V,ignoreFetchAbort:Q,perf:X}=e;if(X!==void 0&&typeof X?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=X??ffr,r!==0&&!dg(r))throw new TypeError("max option must be a nonnegative integer");let F=r?hXe(r):Array;if(!F)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=A,this.maxEntrySize=y||this.#t,this.sizeCalculation=b,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new Typ Line truncated
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 ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=s,c.expected=e,c.algorithm=i,c.sri=e,c}}o(yor,"checkData");Kh.exports.checkStream=Eor;function Eor(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Mc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Nue(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let a;i.on("verified",c=>{a=c}),i.on("end",()=>n(a)),i.resume()})}o(Eor,"checkStream");Kh.exports.integrityStream=Nue;function Nue(t=Object.create(null)){return new Rue(t)}o(Nue,"integrityStream");Kh.exports.create=bor;function bor(t){let e=t?.algorithms||[...Tue],r=jN(t?.options),i=e.map(VN.createHash);return{update:o(function(n,s){return i.forEach(a=>a.update(n,s)),this},"update"),digest:o(function(){return e.reduce((s,a)=>{let c=i.shift().digest("base64"),u=new Jp(`${a}-${c}${r}`,t);if(u.algorithm&&u.digest){let l=u.algorithm;s[l]||(s[l]=[]),s[l].push(u)}return s},new A0)},"digest")}}o(bor,"createIntegrity");var wor=VN.getHashes(),HJe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>wor.includes(t));function Cor(t,e){return HJe.indexOf(t.toLowerCase())>=HJe.indexOf(e.toLowerCase())?t:e}o(Cor,"getPrioritizedHash")});var Oue=m((agi,WJe)=>{var zJe=bue(),VJe=vue(),Ior=Xh(),jJe={shared:!1,ignoreCargoCult:!0},Sor={status:200,headers:{}},BS=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"requestObject"),$Je=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"responseObject"),Due=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=BS(r),this.response=$Je(i),this.options=n,this.policy=new zJe(this.request,this.response,jJe),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 zJe(BS(e),Sor,jJe).storable()}satisfies(e){let r=BS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new VJe(this.request),n=new VJe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Ior.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=BS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=BS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=BS(e),n=$Je(r);return!this.policy.revalidatedPolicy(i,n).modified}};WJe.exports=Due});var YJe=m((ugi,JJe)=>{var Pue=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"}};JJe.exports={NotCachedError:Pue}});var oYe=m((fgi,sYe)=>{"use strict";var KJe=typeof process=="object"&&process?process:{stdout:null,stderr:null},Bor=require("events"),XJe=require("stream"),ZJe=require("string_decoder").StringDecoder,Yp=Symbol("EOF"),Kp=Symbol("maybeEmitEnd"),fg=Symbol("emittedEnd"),V4=Symbol("emittingEnd"),$N=Symbol("emittedError"),j4=Symbol("closed"),eYe=Symbol("read"),$4=Symbol("flush"),tYe=Symbol("flushChunk"),Ua=Symbol("encoding"),Xp=Symbol("decoder"),W4=Symbol("flowing"),WN=Symbol("paused"),vS=Symbol("resume"),as=Symbol("bufferLength"),kue=Symbol("bufferPush"),Que=Symbol("bufferShift"),co=Symbol("objectMode"),uo=Symbol("destroyed"),Lue=Symbol("emitData"),rYe=Symbol("emitEnd"),Mue=Symbol("emitEnd2"),Zp=Symbol("async"),JN=o(t=>Promise.resolve().then(t),"defer"),iYe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",vor=iYe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),_or=iYe&&Symbol.iterator||Symbol("iterator not implemented"),xor=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),Ror=o(t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBuffer"),Tor=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),J4=class{static{o(this,"Pipe")}constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[vS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Fue=class extends J4{static{o(this,"PipeP Line truncated
`+a.map(d=>{let p=JSON.stringify(d);return`${b5(p)} ${p}`}).join(`
`),u=o(async()=>{let d=cfr(ed.join(t,"tmp"),i.tmpPrefix);return await Ple(ed.dirname(d),{recursive:!0}),{target:d,moved:!1}},"setup"),l=o(async d=>{if(!d.moved)return AXe(d.target,{recursive:!0,force:!0})},"teardown"),f=o(async d=>{await sfr(d.target,c,{flag:"wx"}),await Ple(ed.dirname(n),{recursive:!0}),await hfr(d.target,n),d.moved=!0},"write"),h=await u();try{await f(h)}finally{await l(h)}return a.reverse().map(d=>w5(t,d,!0))}o(dfr,"compact");Uc.exports.insert=gXe;async function gXe(t,e,r,i={}){let{metadata:n,size:s,time:a}=i,c=h2(t,e),u={key:e,integrity:r&&afr.stringify(r),time:a||Date.now(),size:s,metadata:n};try{await Ple(ed.dirname(c),{recursive:!0});let l=JSON.stringify(u);await rfr(c,`
${b5(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return w5(t,u)}o(gXe,"insert");Uc.exports.find=pfr;async function pfr(t,e){let r=h2(t,e);try{return(await E5(r)).reduce((n,s)=>s&&s.key===e?w5(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}o(pfr,"find");Uc.exports.delete=mfr;function mfr(t,e,r={}){if(!r.removeFully)return gXe(t,e,null,r);let i=h2(t,e);return AXe(i,{recursive:!0,force:!0})}o(mfr,"del");Uc.exports.lsStream=yXe;function yXe(t){let e=kle(t),r=new ofr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(y5(),g5)),n=await Ole(e);return await i(n,async s=>{let a=ed.join(e,s),c=await Ole(a);await i(c,async u=>{let l=ed.join(a,u),f=await Ole(l);await i(f,async h=>{let d=ed.join(l,h);try{let A=(await E5(d)).reduce((y,b)=>(y.set(b.key,b),y),new Map);for(let y of A.values()){let b=w5(t,y);b&&r.write(b)}}catch(p){if(p.code==="ENOENT")return;throw p}},{concurrency:Dle})},{concurrency:Dle})},{concurrency:Dle}),r.end(),r}).catch(i=>r.emit("error",i)),r}o(yXe,"lsStream");Uc.exports.ls=Afr;async function Afr(t){return(await yXe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}o(Afr,"ls");Uc.exports.bucketEntries=E5;async function E5(t,e){let r=await ifr(t,"utf8");return gfr(r,e)}o(E5,"bucketEntries");function gfr(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||b5(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}o(gfr,"_bucketEntries");Uc.exports.bucketDir=kle;function kle(t){return ed.join(t,`index-v${ffr}`)}o(kle,"bucketDir");Uc.exports.bucketPath=h2;function h2(t,e){let r=EXe(e);return ed.join.apply(ed,[kle(t)].concat(lfr(r)))}o(h2,"bucketPath");Uc.exports.hashKey=EXe;function EXe(t){return bXe(t,"sha256")}o(EXe,"hashKey");Uc.exports.hashEntry=b5;function b5(t){return bXe(t,"sha1")}o(b5,"hashEntry");function bXe(t,e){return tfr.createHash(e).update(t).digest("hex")}o(bXe,"hash");function w5(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?ufr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(w5,"formatEntry");function Ole(t){return nfr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(Ole,"readdirOrEmpty")});var MS=m(I5=>{"use strict";Object.defineProperty(I5,"__esModule",{value:!0});I5.LRUCache=void 0;var yfr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,CXe=new Set,Qle=typeof process=="object"&&process?process:{},IXe=o((t,e,r,i)=>{typeof Qle.emitWarning=="function"?Qle.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),C5=globalThis.AbortController,wXe=globalThis.AbortSignal;if(typeof C5>"u"){wXe=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},C5=class{static{o(this,"AbortController")}constructor(){e()}signal=new wXe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Qle.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,IXe("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 Efr=o(t=>!CXe.has(t),"shouldWarn"),dg=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),SXe=o(t=>dg(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?LS:null:null,"getUintArray"),LS=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},Lle=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=SXe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}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]}},Mle=class t{static{o(this,"LRUCache")}#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#_;#p;#I;#x;#E;#c;static unsafeExposeInternals(e){return{starts:e.#_,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:o(r=>e.#S(r),"isBackgroundFetch"),backgroundFetch:o((r,i,n,s)=>e.#z(r,i,n,s),"backgroundFetch"),moveToTail:o(r=>e.#q(r),"moveToTail"),indexes:o(r=>e.#O(r),"indexes"),rindexes:o(r=>e.#g(r),"rindexes"),isStale:o(r=>e.#T(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#o}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:u,dispose:l,onInsert:f,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:p,maxSize:A=0,maxEntrySize:y=0,sizeCalculation:b,fetchMethod:E,memoMethod:w,noDeleteOnFetchRejection:B,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:M,allowStaleOnFetchAbort:V,ignoreFetchAbort:Q,perf:X}=e;if(X!==void 0&&typeof X?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=X??yfr,r!==0&&!dg(r))throw new TypeError("max option must be a nonnegative integer");let F=r?SXe(r):Array;if(!F)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=A,this.maxEntrySize=y||this.#t,this.sizeCalculation=b,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new Typ Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o($fr,"checksumError")});var PXe=m((UEi,Vle)=>{"use strict";var TXe=OS(),NXe=u2(),DXe=RXe(),Wfr=jN(),{PassThrough:Jfr}=Lue(),Yfr=m0(),OXe=o(t=>({algorithms:["sha512"],...t}),"putOpts");Vle.exports=Kfr;async function Kfr(t,e,r,i={}){let{memoize:n}=i;i=OXe(i);let s=await DXe(t,r,i),a=await TXe.insert(t,e,s.integrity,{...i,size:s.size});return n&&NXe.put(t,a,r,i),s.integrity}o(Kfr,"putData");Vle.exports.stream=Xfr;function Xfr(t,e,r={}){let{memoize:i}=r;r=OXe(r);let n,s,a,c,u=new Yfr;if(i){let f=new Jfr().on("collect",h=>{c=h});u.push(f)}let l=DXe.stream(t,r).on("integrity",f=>{n=f}).on("size",f=>{s=f}).on("error",f=>{a=f});return u.push(l),u.push(new Wfr({async flush(){if(!a){let f=await TXe.insert(t,e,n,{...r,size:s});i&&c&&NXe.put(t,f,c,r),u.emit("integrity",n),u.emit("size",s)}}})),u}o(Xfr,"putStream")});var QXe=m(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.range=S0.balanced=void 0;var Zfr=o((t,e,r)=>{let i=t instanceof RegExp?kXe(t,r):t,n=e instanceof RegExp?kXe(e,r):e,s=i!==null&&n!=null&&(0,S0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}},"balanced");S0.balanced=Zfr;var kXe=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),ehr=o((t,e,r)=>{let i,n,s,a,c,u=r.indexOf(t),l=r.indexOf(e,u+1),f=u;if(u>=0&&l>0){if(t===e)return[u,l];for(i=[],s=r.length;f>=0&&!c;){if(f===u)i.push(f),u=r.indexOf(t,f+1);else if(i.length===1){let h=i.pop();h!==void 0&&(c=[h,l])}else n=i.pop(),n!==void 0&&n<s&&(s=n,a=l),l=r.indexOf(e,f+1);f=u<l&&u>=0?u:l}i.length&&a!==void 0&&(c=[s,a])}return c},"range");S0.range=ehr});var Wle=m(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.EXPANSION_MAX=void 0;zS.expand=dhr;var LXe=QXe(),MXe="\0SLASH"+Math.random()+"\0",FXe="\0OPEN"+Math.random()+"\0",$le="\0CLOSE"+Math.random()+"\0",UXe="\0COMMA"+Math.random()+"\0",qXe="\0PERIOD"+Math.random()+"\0",thr=new RegExp(MXe,"g"),rhr=new RegExp(FXe,"g"),ihr=new RegExp($le,"g"),nhr=new RegExp(UXe,"g"),shr=new RegExp(qXe,"g"),ohr=/\\\\/g,ahr=/\\{/g,chr=/\\}/g,uhr=/\\,/g,lhr=/\\./g;zS.EXPANSION_MAX=1e5;function jle(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(jle,"numeric");function fhr(t){return t.replace(ohr,MXe).replace(ahr,FXe).replace(chr,$le).replace(uhr,UXe).replace(lhr,qXe)}o(fhr,"escapeBraces");function hhr(t){return t.replace(thr,"\\").replace(rhr,"{").replace(ihr,"}").replace(nhr,",").replace(shr,".")}o(hhr,"unescapeBraces");function GXe(t){if(!t)return[""];let e=[],r=(0,LXe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,a=i.split(",");a[a.length-1]+="{"+n+"}";let c=GXe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(GXe,"parseCommaParts");function dhr(t,e={}){if(!t)return[];let{max:r=zS.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),A2(fhr(t),r,!0).map(hhr)}o(dhr,"expand");function phr(t){return"{"+t+"}"}o(phr,"embrace");function mhr(t){return/^-?0\d/.test(t)}o(mhr,"isPadded");function Ahr(t,e){return t<=e}o(Ahr,"lte");function ghr(t,e){return t>=e}o(ghr,"gte");function A2(t,e,r){let i=[],n=(0,LXe.balanced)("{","}",t);if(!n)return[t];let s=n.pre,a=n.post.length?A2(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let c=0;c<a.length&&c<e;c++){let u=s+"{"+n.body+"}"+a[c];i.push(u)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),l=c||u,f=n.body.indexOf(",")>=0;if(!l&&!f)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+$le+n.post,A2(t,e,!0)):[t];let h;if(l)h=n.body.split(/\.\./);else if(h=GXe(n.body),h.length===1&&h[0]!==void 0&&(h=A2(h[0],e,!1).map(phr),h.length===1))return a.map(p=>n.pre+h[0]+p);let d;if(l&&h[0]!==void 0&&h[1]!==void 0){let p=jle(h[0]),A=jle(h[1]),y=Math.max(h[0].length,h[1].length),b=h.length===3&&h[2]!==void 0?Math.abs(jle(h[2])):1,E=Ahr;A<p&&(b*=-1,E=ghr);let B=h.some(mhr);d=[];for(let R=p;E(R,A);R+=b){let M;if(u)M=String.fromCharCode(R),M==="\\"&&(M="");else if(M=String(R),B){let V=y-M.length;if(V>0){let Q=new Array(V+1).join("0");R<0?M="-"+Q+M.slice(1):M=Q+M}}d.push(M)}}else{d=[];for(let p=0;p<h.length;p++)d.push.apply(d,A2(h[p],e,!1))}for(let p=0;p<d.length;p++)for(let A=0;A<a.length&&i.length<e;A++){let y=s+d[p]+a[A];(!r||l||y)&&i.push(y)}}return i}o(A2,"expand_")});var HXe=m(T5=>{"use strict";Object.defineProperty(T5,"__esModule",{value:!0});T5.assertValidPattern=void 0;var yhr=1024*64,Ehr=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>yhr)throw new TypeError("pattern is too long")},"assertValidPattern");T5.assertValidPattern=Ehr});var VXe=m(N5=>{"use strict";Object.defineProperty(N5,"__esModule",{value:!0});N5.parseClass=void 0;var bhr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:grap Line truncated
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(ehr,"checksumError")});var jXe=m(($Ei,Xle)=>{"use strict";var GXe=QS(),HXe=d2(),zXe=qXe(),thr=YN(),{PassThrough:rhr}=zue(),ihr=y0(),VXe=o(t=>({algorithms:["sha512"],...t}),"putOpts");Xle.exports=nhr;async function nhr(t,e,r,i={}){let{memoize:n}=i;i=VXe(i);let s=await zXe(t,r,i),a=await GXe.insert(t,e,s.integrity,{...i,size:s.size});return n&&HXe.put(t,a,r,i),s.integrity}o(nhr,"putData");Xle.exports.stream=shr;function shr(t,e,r={}){let{memoize:i}=r;r=VXe(r);let n,s,a,c,u=new ihr;if(i){let f=new rhr().on("collect",h=>{c=h});u.push(f)}let l=zXe.stream(t,r).on("integrity",f=>{n=f}).on("size",f=>{s=f}).on("error",f=>{a=f});return u.push(l),u.push(new thr({async flush(){if(!a){let f=await GXe.insert(t,e,n,{...r,size:s});i&&c&&HXe.put(t,f,c,r),u.emit("integrity",n),u.emit("size",s)}}})),u}o(shr,"putStream")});var WXe=m(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.range=_0.balanced=void 0;var ohr=o((t,e,r)=>{let i=t instanceof RegExp?$Xe(t,r):t,n=e instanceof RegExp?$Xe(e,r):e,s=i!==null&&n!=null&&(0,_0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}},"balanced");_0.balanced=ohr;var $Xe=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),ahr=o((t,e,r)=>{let i,n,s,a,c,u=r.indexOf(t),l=r.indexOf(e,u+1),f=u;if(u>=0&&l>0){if(t===e)return[u,l];for(i=[],s=r.length;f>=0&&!c;){if(f===u)i.push(f),u=r.indexOf(t,f+1);else if(i.length===1){let h=i.pop();h!==void 0&&(c=[h,l])}else n=i.pop(),n!==void 0&&n<s&&(s=n,a=l),l=r.indexOf(e,f+1);f=u<l&&u>=0?u:l}i.length&&a!==void 0&&(c=[s,a])}return c},"range");_0.range=ahr});var tfe=m($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});$S.EXPANSION_MAX=void 0;$S.expand=bhr;var JXe=WXe(),YXe="\0SLASH"+Math.random()+"\0",KXe="\0OPEN"+Math.random()+"\0",efe="\0CLOSE"+Math.random()+"\0",XXe="\0COMMA"+Math.random()+"\0",ZXe="\0PERIOD"+Math.random()+"\0",chr=new RegExp(YXe,"g"),uhr=new RegExp(KXe,"g"),lhr=new RegExp(efe,"g"),fhr=new RegExp(XXe,"g"),hhr=new RegExp(ZXe,"g"),dhr=/\\\\/g,phr=/\\{/g,mhr=/\\}/g,Ahr=/\\,/g,ghr=/\\./g;$S.EXPANSION_MAX=1e5;function Zle(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(Zle,"numeric");function yhr(t){return t.replace(dhr,YXe).replace(phr,KXe).replace(mhr,efe).replace(Ahr,XXe).replace(ghr,ZXe)}o(yhr,"escapeBraces");function Ehr(t){return t.replace(chr,"\\").replace(uhr,"{").replace(lhr,"}").replace(fhr,",").replace(hhr,".")}o(Ehr,"unescapeBraces");function eZe(t){if(!t)return[""];let e=[],r=(0,JXe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,a=i.split(",");a[a.length-1]+="{"+n+"}";let c=eZe(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(eZe,"parseCommaParts");function bhr(t,e={}){if(!t)return[];let{max:r=$S.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),b2(yhr(t),r,!0).map(Ehr)}o(bhr,"expand");function whr(t){return"{"+t+"}"}o(whr,"embrace");function Chr(t){return/^-?0\d/.test(t)}o(Chr,"isPadded");function Ihr(t,e){return t<=e}o(Ihr,"lte");function Shr(t,e){return t>=e}o(Shr,"gte");function b2(t,e,r){let i=[],n=(0,JXe.balanced)("{","}",t);if(!n)return[t];let s=n.pre,a=n.post.length?b2(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let c=0;c<a.length&&c<e;c++){let u=s+"{"+n.body+"}"+a[c];i.push(u)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),l=c||u,f=n.body.indexOf(",")>=0;if(!l&&!f)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+efe+n.post,b2(t,e,!0)):[t];let h;if(l)h=n.body.split(/\.\./);else if(h=eZe(n.body),h.length===1&&h[0]!==void 0&&(h=b2(h[0],e,!1).map(whr),h.length===1))return a.map(p=>n.pre+h[0]+p);let d;if(l&&h[0]!==void 0&&h[1]!==void 0){let p=Zle(h[0]),A=Zle(h[1]),y=Math.max(h[0].length,h[1].length),b=h.length===3&&h[2]!==void 0?Math.abs(Zle(h[2])):1,E=Ihr;A<p&&(b*=-1,E=Shr);let B=h.some(Chr);d=[];for(let R=p;E(R,A);R+=b){let M;if(u)M=String.fromCharCode(R),M==="\\"&&(M="");else if(M=String(R),B){let V=y-M.length;if(V>0){let Q=new Array(V+1).join("0");R<0?M="-"+Q+M.slice(1):M=Q+M}}d.push(M)}}else{d=[];for(let p=0;p<h.length;p++)d.push.apply(d,b2(h[p],e,!1))}for(let p=0;p<d.length;p++)for(let A=0;A<a.length&&i.length<e;A++){let y=s+d[p]+a[A];(!r||l||y)&&i.push(y)}}return i}o(b2,"expand_")});var tZe=m(P5=>{"use strict";Object.defineProperty(P5,"__esModule",{value:!0});P5.assertValidPattern=void 0;var Bhr=1024*64,vhr=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Bhr)throw new TypeError("pattern is too long")},"assertValidPattern");P5.assertValidPattern=vhr});var iZe=m(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0});k5.parseClass=void 0;var _hr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:grap Line truncated
globstar while`,e,d,r,p,A),this.matchOne(e.slice(d),r.slice(p),i))return this.debug("globstar found match!",d,u,A),!0;if(A==="."||A===".."||!n.dot&&A.charAt(0)==="."){this.debug("dot detected!",e,d,r,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,d,r,p),d===u))}let y;if(typeof f=="string"?(y=h===f,this.debug("string match",f,h,y)):(y=f.test(h),this.debug("pattern match",f,h,y)),!y)return!1}if(a===u&&c===l)return!0;if(a===u)return i;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,He.braceExpand)(this.pattern,this.options)}parse(e){(0,M5.assertValidPattern)(e);let r=this.options;if(e==="**")return He.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(jhr))?n=r.dot?Whr:$hr:(i=e.match(Qhr))?n=(r.nocase?r.dot?Uhr:Fhr:r.dot?Mhr:Lhr)(i[1]):(i=e.match(Jhr))?n=(r.nocase?r.dot?Khr:Yhr:r.dot?Xhr:Zhr)(i):(i=e.match(qhr))?n=r.dot?Hhr:Ghr:(i=e.match(zhr))&&(n=Vhr);let s=KXe.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}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,i=r.noglobstar?tdr:r.dot?rdr:idr,n=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(h=>{if(h instanceof RegExp)for(let d of h.flags.split(""))n.add(d);return typeof h=="string"?udr(h):h===He.GLOBSTAR?He.GLOBSTAR:h._src});l.forEach((h,d)=>{let p=l[d+1],A=l[d-1];h!==He.GLOBSTAR||A===He.GLOBSTAR||(A===void 0?p!==void 0&&p!==He.GLOBSTAR?l[d+1]="(?:\\/|"+i+"\\/)?"+p:l[d]=i:p===void 0?l[d-1]=A+"(?:\\/|\\/"+i+")?":p!==He.GLOBSTAR&&(l[d-1]=A+"(?:\\/|\\/"+i+"\\/)"+p,l[d+1]=He.GLOBSTAR))});let f=l.filter(h=>h!==He.GLOBSTAR);if(this.partial&&f.length>=1){let h=[];for(let d=1;d<=f.length;d++)h.push(f.slice(0,d).join("/"));return"(?:"+h.join("|")+")"}return f.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<s.length;c++){let u=s[c],l=n;if(i.matchBase&&u.length===1&&(l=[a]),this.matchOne(l,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return He.minimatch.defaults(e).Minimatch}};He.Minimatch=B0;var ldr=Kle();Object.defineProperty(He,"AST",{enumerable:!0,get:o(function(){return ldr.AST},"get")});var fdr=Xle();Object.defineProperty(He,"escape",{enumerable:!0,get:o(function(){return fdr.escape},"get")});var hdr=O5();Object.defineProperty(He,"unescape",{enumerable:!0,get:o(function(){return hdr.unescape},"get")});He.minimatch.AST=KXe.AST;He.minimatch.Minimatch=B0;He.minimatch.escape=Ohr.escape;He.minimatch.unescape=Phr.unescape});var oZe=m(oa=>{"use strict";var ddr=oa&&oa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oa,"__esModule",{value:!0});oa.Minipass=oa.isWritable=oa.isReadable=oa.isStream=void 0;var tZe=typeof process=="object"&&process?process:{stdout:null,stderr:null},sfe=require("node:events"),sZe=ddr(require("node:stream")),pdr=require("node:string_decoder"),mdr=o(t=>!!t&&typeof t=="object"&&(t instanceof V5||t instanceof sZe.default||(0,oa.isReadable)(t)||(0,oa.isWritable)(t)),"isStream");oa.isStream=mdr;var Adr=o(t=>!!t&&typeof t=="object"&&t instanceof sfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==sZe.default.Writable.prototype.pipe,"isReadable");oa.isReadable=Adr;var gdr=o(t=>!!t&&typeof t=="object"&&t instanceof sfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");oa.isWritable=gdr;var fm=Symbol("EOF"),hm=Symbol("maybeEmitEnd"),yg=Symbol("emittedEnd"),F5=Symbol("emittingEnd"),y2=Symbol("emittedError"),U5=Symbol("closed"),rZe=Symbol("read"),q5=Symbol("flush"),iZe=Symbol("flushChunk"),nf=Symbol("encoding"),VS=Symbol("decoder"),us=Symbol("flowing"),E2=Symbol("paused"),jS=Symbol("resume"),ls=Symbol("buffer"),sa=Symbol("pipes"),fs=Symbol("bufferLength"),Zle=Symbol("bufferPush"),G5=Symbol("bufferShift"),po=Symbol("objectMode"),tn=Symbol("destroyed"),efe=Symbol("error"),tfe=Symbol("emitData"),nZe=Symbol("emitEnd"),rfe=Symbol("emitEnd2"),rd=Symbol("async"),ife=Symbol("abort"),H5=Symbol("aborted"),b2=Symbol("signal"),v0=Symbol("dataListeners"),Fc=Symbol("discarded"),w2=o(t=>Promise.resolve().then(t),"defer"),ydr=o(t=>t(),"nodefer"),Edr=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),bdr=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),wdr=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),z5=class{static{o(this,"Pipe")}src;dest; Line truncated
>>> no match, partial?`,e,d,r,p),d===u))}let y;if(typeof f=="string"?(y=h===f,this.debug("string match",f,h,y)):(y=f.test(h),this.debug("pattern match",f,h,y)),!y)return!1}if(a===u&&c===l)return!0;if(a===u)return i;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,He.braceExpand)(this.pattern,this.options)}parse(e){(0,G5.assertValidPattern)(e);let r=this.options;if(e==="**")return He.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(Zhr))?n=r.dot?tdr:edr:(i=e.match(Hhr))?n=(r.nocase?r.dot?$hr:jhr:r.dot?Vhr:zhr)(i[1]):(i=e.match(rdr))?n=(r.nocase?r.dot?ndr:idr:r.dot?sdr:odr)(i):(i=e.match(Whr))?n=r.dot?Yhr:Jhr:(i=e.match(Khr))&&(n=Xhr);let s=uZe.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}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,i=r.noglobstar?cdr:r.dot?udr:ldr,n=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(h=>{if(h instanceof RegExp)for(let d of h.flags.split(""))n.add(d);return typeof h=="string"?Adr(h):h===He.GLOBSTAR?He.GLOBSTAR:h._src});l.forEach((h,d)=>{let p=l[d+1],A=l[d-1];h!==He.GLOBSTAR||A===He.GLOBSTAR||(A===void 0?p!==void 0&&p!==He.GLOBSTAR?l[d+1]="(?:\\/|"+i+"\\/)?"+p:l[d]=i:p===void 0?l[d-1]=A+"(?:\\/|\\/"+i+")?":p!==He.GLOBSTAR&&(l[d-1]=A+"(?:\\/|\\/"+i+"\\/)"+p,l[d+1]=He.GLOBSTAR))});let f=l.filter(h=>h!==He.GLOBSTAR);if(this.partial&&f.length>=1){let h=[];for(let d=1;d<=f.length;d++)h.push(f.slice(0,d).join("/"));return"(?:"+h.join("|")+")"}return f.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<s.length;c++){let u=s[c],l=n;if(i.matchBase&&u.length===1&&(l=[a]),this.matchOne(l,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return He.minimatch.defaults(e).Minimatch}};He.Minimatch=x0;var gdr=nfe();Object.defineProperty(He,"AST",{enumerable:!0,get:o(function(){return gdr.AST},"get")});var ydr=sfe();Object.defineProperty(He,"escape",{enumerable:!0,get:o(function(){return ydr.escape},"get")});var Edr=L5();Object.defineProperty(He,"unescape",{enumerable:!0,get:o(function(){return Edr.unescape},"get")});He.minimatch.AST=uZe.AST;He.minimatch.Minimatch=x0;He.minimatch.escape=Uhr.escape;He.minimatch.unescape=qhr.unescape});var yZe=m(aa=>{"use strict";var bdr=aa&&aa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(aa,"__esModule",{value:!0});aa.Minipass=aa.isWritable=aa.isReadable=aa.isStream=void 0;var dZe=typeof process=="object"&&process?process:{stdout:null,stderr:null},hfe=require("node:events"),gZe=bdr(require("node:stream")),wdr=require("node:string_decoder"),Cdr=o(t=>!!t&&typeof t=="object"&&(t instanceof J5||t instanceof gZe.default||(0,aa.isReadable)(t)||(0,aa.isWritable)(t)),"isStream");aa.isStream=Cdr;var Idr=o(t=>!!t&&typeof t=="object"&&t instanceof hfe.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==gZe.default.Writable.prototype.pipe,"isReadable");aa.isReadable=Idr;var Sdr=o(t=>!!t&&typeof t=="object"&&t instanceof hfe.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");aa.isWritable=Sdr;var hm=Symbol("EOF"),dm=Symbol("maybeEmitEnd"),yg=Symbol("emittedEnd"),H5=Symbol("emittingEnd"),C2=Symbol("emittedError"),z5=Symbol("closed"),pZe=Symbol("read"),V5=Symbol("flush"),mZe=Symbol("flushChunk"),sf=Symbol("encoding"),WS=Symbol("decoder"),ls=Symbol("flowing"),I2=Symbol("paused"),JS=Symbol("resume"),fs=Symbol("buffer"),oa=Symbol("pipes"),hs=Symbol("bufferLength"),ofe=Symbol("bufferPush"),j5=Symbol("bufferShift"),po=Symbol("objectMode"),rn=Symbol("destroyed"),afe=Symbol("error"),cfe=Symbol("emitData"),AZe=Symbol("emitEnd"),ufe=Symbol("emitEnd2"),rd=Symbol("async"),lfe=Symbol("abort"),$5=Symbol("aborted"),S2=Symbol("signal"),R0=Symbol("dataListeners"),qc=Symbol("discarded"),B2=o(t=>Promise.resolve().then(t),"defer"),Bdr=o(t=>t(),"nodefer"),vdr=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),_dr=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),xdr=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),W5=class{static{o(this,"Pipe")}src;dest; Line truncated
\r
`);if(d===-1){C8("have not received end of HTTP headers yet..."),s();return}let p=h.slice(0,d).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let y=A.split(" "),b=+y[1],E=y.slice(2).join(" "),w={};for(let B of p){if(!B)continue;let R=B.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let M=B.slice(0,R).toLowerCase(),V=B.slice(R+1).trimStart(),Q=w[M];typeof Q=="string"?w[M]=[Q,V]:Array.isArray(Q)?Q.push(V):w[M]=V}C8("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:b,statusText:E,headers:w},buffered:h})}o(l,"ondata"),t.on("error",u),t.on("end",c),s()})}o(Rmr,"parseProxyResponse");XS.parseProxyResponse=Rmr});var xet=m(el=>{"use strict";var Tmr=el&&el.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Nmr=el&&el.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vet=el&&el.__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)&&Tmr(e,t,r);return Nmr(e,t),e},_et=el&&el.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(el,"__esModule",{value:!0});el.HttpsProxyAgent=void 0;var q2=vet(require("net")),Iet=vet(require("tls")),Dmr=_et(require("assert")),Omr=_et(xy()),Pmr=O_(),kmr=require("url"),Qmr=Cet(),G2=(0,Omr.default)("https-proxy-agent"),I8=class extends Pmr.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new kmr.URL(e):e,this.proxyHeaders=r?.headers??{},G2("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Bet(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){G2("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=Iet.connect({...this.connectOpts,servername:d&&q2.isIP(d)?void 0:d})}else G2("Creating `net.Socket`: %o",this.connectOpts),n=q2.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=q2.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(d===-1){v8("have not received end of HTTP headers yet..."),s();return}let p=h.slice(0,d).toString("ascii").split(`\r
`),A=p.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let y=A.split(" "),b=+y[1],E=y.slice(2).join(" "),w={};for(let B of p){if(!B)continue;let R=B.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${B}"`));let M=B.slice(0,R).toLowerCase(),V=B.slice(R+1).trimStart(),Q=w[M];typeof Q=="string"?w[M]=[Q,V]:Array.isArray(Q)?Q.push(V):w[M]=V}v8("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:b,statusText:E,headers:w},buffered:h})}o(l,"ondata"),t.on("error",u),t.on("end",c),s()})}o(Qmr,"parseProxyResponse");tB.parseProxyResponse=Qmr});var Uet=m(tl=>{"use strict";var Lmr=tl&&tl.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Mmr=tl&&tl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Met=tl&&tl.__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)&&Lmr(e,t,r);return Mmr(e,t),e},Fet=tl&&tl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tl,"__esModule",{value:!0});tl.HttpsProxyAgent=void 0;var V2=Met(require("net")),Qet=Met(require("tls")),Fmr=Fet(require("assert")),Umr=Fet(Ny()),qmr=L_(),Gmr=require("url"),Hmr=ket(),j2=(0,Umr.default)("https-proxy-agent"),_8=class extends qmr.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Gmr.URL(e):e,this.proxyHeaders=r?.headers??{},j2("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Let(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){j2("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=Qet.connect({...this.connectOpts,servername:d&&V2.isIP(d)?void 0:d})}else j2("Creating `net.Socket`: %o",this.connectOpts),n=V2.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=V2.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(i.username||i.password){let d=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(s))c+=`${d}: ${s[d]}\r
`;let u=(0,Qmr.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:l,buffered:f}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Lmr),r.secureEndpoint){G2("Upgrading socket connection to TLS");let d=r.servername||r.host;return Iet.connect({...Bet(r,"host","path","port"),socket:n,servername:q2.isIP(d)?void 0:d})}return n}n.destroy();let h=new q2.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{G2("Replaying proxy buffer for failed request"),(0,Dmr.default)(d.listenerCount("data")>0),d.push(f),d.push(null)}),h}};I8.protocols=["http","https"];el.HttpsProxyAgent=I8;function Lmr(t){t.resume()}o(Lmr,"resume");function Bet(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(Bet,"omit")});var Det=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var Ret=require("buffer"),N0={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."};mm.ERRORS=N0;function Mmr(t){if(!Ret.Buffer.isEncoding(t))throw new Error(N0.INVALID_ENCODING)}o(Mmr,"checkEncoding");mm.checkEncoding=Mmr;function Tet(t){return typeof t=="number"&&isFinite(t)&&Gmr(t)}o(Tet,"isFiniteInteger");mm.isFiniteInteger=Tet;function Net(t,e){if(typeof t=="number"){if(!Tet(t)||t<0)throw new Error(e?N0.INVALID_OFFSET:N0.INVALID_LENGTH)}else throw new Error(e?N0.INVALID_OFFSET_NON_NUMBER:N0.INVALID_LENGTH_NON_NUMBER)}o(Net,"checkOffsetOrLengthValue");function Fmr(t){Net(t,!1)}o(Fmr,"checkLengthValue");mm.checkLengthValue=Fmr;function Umr(t){Net(t,!0)}o(Umr,"checkOffsetValue");mm.checkOffsetValue=Umr;function qmr(t,e){if(t<0||t>e.length)throw new Error(N0.INVALID_TARGET_OFFSET)}o(qmr,"checkTargetOffset");mm.checkTargetOffset=qmr;function Gmr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(Gmr,"isInteger");function Hmr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof Ret.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(Hmr,"bigIntAndBufferInt64Check");mm.bigIntAndBufferInt64Check=Hmr});var Pet=m(Wfe=>{"use strict";Object.defineProperty(Wfe,"__esModule",{value:!0});var Tt=Det(),Oet=4096,zmr="utf8",$fe=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=zmr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Tt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Tt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Tt.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(Tt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Oet);else{if(typeof e<"u")throw new Error(Tt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Oet)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return Tt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Tt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt Line truncated
`;let u=(0,Hmr.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:l,buffered:f}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",zmr),r.secureEndpoint){j2("Upgrading socket connection to TLS");let d=r.servername||r.host;return Qet.connect({...Let(r,"host","path","port"),socket:n,servername:V2.isIP(d)?void 0:d})}return n}n.destroy();let h=new V2.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{j2("Replaying proxy buffer for failed request"),(0,Fmr.default)(d.listenerCount("data")>0),d.push(f),d.push(null)}),h}};_8.protocols=["http","https"];tl.HttpsProxyAgent=_8;function zmr(t){t.resume()}o(zmr,"resume");function Let(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}o(Let,"omit")});var zet=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var qet=require("buffer"),P0={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."};Am.ERRORS=P0;function Vmr(t){if(!qet.Buffer.isEncoding(t))throw new Error(P0.INVALID_ENCODING)}o(Vmr,"checkEncoding");Am.checkEncoding=Vmr;function Get(t){return typeof t=="number"&&isFinite(t)&&Jmr(t)}o(Get,"isFiniteInteger");Am.isFiniteInteger=Get;function Het(t,e){if(typeof t=="number"){if(!Get(t)||t<0)throw new Error(e?P0.INVALID_OFFSET:P0.INVALID_LENGTH)}else throw new Error(e?P0.INVALID_OFFSET_NON_NUMBER:P0.INVALID_LENGTH_NON_NUMBER)}o(Het,"checkOffsetOrLengthValue");function jmr(t){Het(t,!1)}o(jmr,"checkLengthValue");Am.checkLengthValue=jmr;function $mr(t){Het(t,!0)}o($mr,"checkOffsetValue");Am.checkOffsetValue=$mr;function Wmr(t,e){if(t<0||t>e.length)throw new Error(P0.INVALID_TARGET_OFFSET)}o(Wmr,"checkTargetOffset");Am.checkTargetOffset=Wmr;function Jmr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(Jmr,"isInteger");function Ymr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof qet.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(Ymr,"bigIntAndBufferInt64Check");Am.bigIntAndBufferInt64Check=Ymr});var jet=m(the=>{"use strict";Object.defineProperty(the,"__esModule",{value:!0});var Tt=zet(),Vet=4096,Kmr="utf8",ehe=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=Kmr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Tt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Tt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Tt.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(Tt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Vet);else{if(typeof e<"u")throw new Error(Tt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Vet)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return Tt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Tt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt Line truncated
globstar while`,e,d,r,p,A),this.matchOne(e.slice(d),r.slice(p),i))return this.debug("globstar found match!",d,u,A),!0;if(A==="."||A===".."||!n.dot&&A.charAt(0)==="."){this.debug("dot detected!",e,d,r,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(`
>>> no match, partial?`,e,d,r,p),d===u))}let y;if(typeof f=="string"?(y=h===f,this.debug("string match",f,h,y)):(y=f.test(h),this.debug("pattern match",f,h,y)),!y)return!1}if(a===u&&c===l)return!0;if(a===u)return i;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,ze.braceExpand)(this.pattern,this.options)}parse(e){(0,wG.assertValidPattern)(e);let r=this.options;if(e==="**")return ze.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(b0r))?n=r.dot?C0r:w0r:(i=e.match(l0r))?n=(r.nocase?r.dot?p0r:d0r:r.dot?h0r:f0r)(i[1]):(i=e.match(I0r))?n=(r.nocase?r.dot?B0r:S0r:r.dot?v0r:_0r)(i):(i=e.match(m0r))?n=r.dot?g0r:A0r:(i=e.match(y0r))&&(n=E0r);let s=jrt.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}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,i=r.noglobstar?R0r:r.dot?T0r:N0r,n=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(h=>{if(h instanceof RegExp)for(let d of h.flags.split(""))n.add(d);return typeof h=="string"?L0r(h):h===ze.GLOBSTAR?ze.GLOBSTAR:h._src});l.forEach((h,d)=>{let p=l[d+1],A=l[d-1];h!==ze.GLOBSTAR||A===ze.GLOBSTAR||(A===void 0?p!==void 0&&p!==ze.GLOBSTAR?l[d+1]="(?:\\/|"+i+"\\/)?"+p:l[d]=i:p===void 0?l[d-1]=A+"(?:\\/|\\/"+i+")?":p!==ze.GLOBSTAR&&(l[d-1]=A+"(?:\\/|\\/"+i+"\\/)"+p,l[d+1]=ze.GLOBSTAR))});let f=l.filter(h=>h!==ze.GLOBSTAR);if(this.partial&&f.length>=1){let h=[];for(let d=1;d<=f.length;d++)h.push(f.slice(0,d).join("/"));return"(?:"+h.join("|")+")"}return f.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<s.length;c++){let u=s[c],l=n;if(i.matchBase&&u.length===1&&(l=[a]),this.matchOne(l,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ze.minimatch.defaults(e).Minimatch}};ze.Minimatch=F0;var M0r=Ede();Object.defineProperty(ze,"AST",{enumerable:!0,get:o(function(){return M0r.AST},"get")});var F0r=bde();Object.defineProperty(ze,"escape",{enumerable:!0,get:o(function(){return F0r.escape},"get")});var U0r=AG();Object.defineProperty(ze,"unescape",{enumerable:!0,get:o(function(){return U0r.unescape},"get")});ze.minimatch.AST=jrt.AST;ze.minimatch.Minimatch=F0;ze.minimatch.escape=a0r.escape;ze.minimatch.unescape=c0r.unescape});var Ide=m(ol=>{"use strict";var Krt=ol&&ol.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ol,"__esModule",{value:!0});ol.SuccinctRoles=ol.DelegatedRole=ol.Role=ol.TOP_LEVEL_ROLE_NAMES=void 0;var Xrt=Krt(require("crypto")),q0r=Yrt(),CG=Krt(require("util")),IG=dd(),U0=cf();ol.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var s1=class t{static{o(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(G0r(r))throw new IG.ValueError("duplicate key IDs found");if(i<1)throw new IG.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&CG.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&CG.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!U0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};ol.Role=s1;function G0r(t){return new Set(t).size!==t.length}o(G0r,"hasDuplicates");var wde=class t extends s1{static{o(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new IG.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&CG.default.isDeepStrictEqual(this.paths,e.paths)&&CG.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)retur Line truncated
>>> no match, partial?`,e,d,r,p),d===u))}let y;if(typeof f=="string"?(y=h===f,this.debug("string match",f,h,y)):(y=f.test(h),this.debug("pattern match",f,h,y)),!y)return!1}if(a===u&&c===l)return!0;if(a===u)return i;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,ze.braceExpand)(this.pattern,this.options)}parse(e){(0,BG.assertValidPattern)(e);let r=this.options;if(e==="**")return ze.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(_0r))?n=r.dot?R0r:x0r:(i=e.match(g0r))?n=(r.nocase?r.dot?w0r:b0r:r.dot?E0r:y0r)(i[1]):(i=e.match(T0r))?n=(r.nocase?r.dot?D0r:N0r:r.dot?O0r:P0r)(i):(i=e.match(C0r))?n=r.dot?S0r:I0r:(i=e.match(B0r))&&(n=v0r);let s=nit.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}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,i=r.noglobstar?Q0r:r.dot?L0r:M0r,n=new Set(r.nocase?["i"]:[]),s=e.map(u=>{let l=u.map(h=>{if(h instanceof RegExp)for(let d of h.flags.split(""))n.add(d);return typeof h=="string"?z0r(h):h===ze.GLOBSTAR?ze.GLOBSTAR:h._src});l.forEach((h,d)=>{let p=l[d+1],A=l[d-1];h!==ze.GLOBSTAR||A===ze.GLOBSTAR||(A===void 0?p!==void 0&&p!==ze.GLOBSTAR?l[d+1]="(?:\\/|"+i+"\\/)?"+p:l[d]=i:p===void 0?l[d-1]=A+"(?:\\/|\\/"+i+")?":p!==ze.GLOBSTAR&&(l[d-1]=A+"(?:\\/|\\/"+i+"\\/)"+p,l[d+1]=ze.GLOBSTAR))});let f=l.filter(h=>h!==ze.GLOBSTAR);if(this.partial&&f.length>=1){let h=[];for(let d=1;d<=f.length;d++)h.push(f.slice(0,d).join("/"));return"(?:"+h.join("|")+")"}return f.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];s="^"+a+s+c+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<s.length;c++){let u=s[c],l=n;if(i.matchBase&&u.length===1&&(l=[a]),this.matchOne(l,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ze.minimatch.defaults(e).Minimatch}};ze.Minimatch=G0;var V0r=vde();Object.defineProperty(ze,"AST",{enumerable:!0,get:o(function(){return V0r.AST},"get")});var j0r=_de();Object.defineProperty(ze,"escape",{enumerable:!0,get:o(function(){return j0r.escape},"get")});var $0r=bG();Object.defineProperty(ze,"unescape",{enumerable:!0,get:o(function(){return $0r.unescape},"get")});ze.minimatch.AST=nit.AST;ze.minimatch.Minimatch=G0;ze.minimatch.escape=p0r.escape;ze.minimatch.unescape=m0r.unescape});var Tde=m(al=>{"use strict";var uit=al&&al.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(al,"__esModule",{value:!0});al.SuccinctRoles=al.DelegatedRole=al.Role=al.TOP_LEVEL_ROLE_NAMES=void 0;var lit=uit(require("crypto")),W0r=cit(),vG=uit(require("util")),_G=dd(),H0=uf();al.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var u1=class t{static{o(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(J0r(r))throw new _G.ValueError("duplicate key IDs found");if(i<1)throw new _G.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&vG.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&vG.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!H0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};al.Role=u1;function J0r(t){return new Set(t).size!==t.length}o(J0r,"hasDuplicates");var xde=class t extends u1{static{o(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new _G.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&vG.default.isDeepStrictEqual(this.paths,e.paths)&&vG.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)retur Line truncated
`).join(`
`+s),t.push(n+"m+"+kG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=jbr()+e+" "+t[0]}o(Vbr,"formatArgs");function jbr(){return gs.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(jbr,"getDate");function $br(...t){return process.stderr.write(PG.formatWithOptions(gs.inspectOpts,...t)+`
`)}o($br,"log");function Wbr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Wbr,"save");function Jbr(){return process.env.DEBUG}o(Jbr,"load");function Ybr(t){t.inspectOpts={};let e=Object.keys(gs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=gs.inspectOpts[e[r]]}o(Ybr,"init");kG.exports=Hde()(gs);var{formatters:dit}=kG.exports;dit.o=function(t){return this.inspectOpts.colors=this.useColors,PG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};dit.O=function(t){return this.inspectOpts.colors=this.useColors,PG.inspect(t,this.inspectOpts)}});var Vde=m((dIi,zde)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?zde.exports=hit():zde.exports=pit()});var Ait=m((pIi,mit)=>{var Kbr=require("dns"),Xbr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],Zbr=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 i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}: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:Kbr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>Xbr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");mit.exports=Zbr});var $de=m((AIi,wit)=>{var git=due(),yit=Eue(),ewr=Xh(),Eit={shared:!1,ignoreCargoCult:!0},twr={status:200,headers:{}},BB=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"requestObject"),bit=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"responseObject"),jde=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=BB(r),this.response=bit(i),this.options=n,this.policy=new git(this.request,this.response,Eit),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 git(BB(e),twr,Eit).storable()}satisfies(e){let r=BB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new yit(this.request),n=new yit(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?ewr.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=BB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=BB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=BB(e),n=bit(r);return!this.policy.revalidatedPolicy(i,n).modified}};wit.exports=jde});var Iit=m((yIi,Cit)=>{var Wde=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"}};Cit.exports={NotCachedError:Wde}});var Yde=m((bIi,Sit)=>{"use strict";var rwr=m0(),Jde=class extends rwr{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)}};Sit.exports=Jde});var vit=m((CIi,Bit)=>{var{URL:iwr,format:nwr}=require("url"),swr={auth:!1,fragment:!1,search:!0,unicode:!1},owr=o(t=>{let e=new iwr(t.url);return`make-fetch-happen:request-cache:${nwr(e,swr)}`},"cacheKey");Bit.exports=owr});var _it=m((SIi,awr)=>{awr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmc Line truncated
`+s),t.push(n+"m+"+FG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Zbr()+e+" "+t[0]}o(Xbr,"formatArgs");function Zbr(){return ys.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Zbr,"getDate");function ewr(...t){return process.stderr.write(MG.formatWithOptions(ys.inspectOpts,...t)+`
`)}o(ewr,"log");function twr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(twr,"save");function rwr(){return process.env.DEBUG}o(rwr,"load");function iwr(t){t.inspectOpts={};let e=Object.keys(ys.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ys.inspectOpts[e[r]]}o(iwr,"init");FG.exports=Yde()(ys);var{formatters:Bit}=FG.exports;Bit.o=function(t){return this.inspectOpts.colors=this.useColors,MG.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Bit.O=function(t){return this.inspectOpts.colors=this.useColors,MG.inspect(t,this.inspectOpts)}});var Xde=m((bIi,Kde)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kde.exports=Sit():Kde.exports=vit()});var xit=m((wIi,_it)=>{var nwr=require("dns"),swr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],owr=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 i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}: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:nwr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>swr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");_it.exports=owr});var epe=m((IIi,Oit)=>{var Rit=bue(),Tit=vue(),awr=Xh(),Nit={shared:!1,ignoreCargoCult:!0},cwr={status:200,headers:{}},xB=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"requestObject"),Dit=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},"responseObject"),Zde=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=xB(r),this.response=Dit(i),this.options=n,this.policy=new Rit(this.request,this.response,Nit),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 Rit(xB(e),cwr,Nit).storable()}satisfies(e){let r=xB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new Tit(this.request),n=new Tit(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?awr.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=xB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=xB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=xB(e),n=Dit(r);return!this.policy.revalidatedPolicy(i,n).modified}};Oit.exports=Zde});var kit=m((BIi,Pit)=>{var tpe=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"}};Pit.exports={NotCachedError:tpe}});var ipe=m((_Ii,Qit)=>{"use strict";var uwr=y0(),rpe=class extends uwr{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)}};Qit.exports=rpe});var Mit=m((RIi,Lit)=>{var{URL:lwr,format:fwr}=require("url"),hwr={auth:!1,fragment:!1,search:!0,unicode:!1},dwr=o(t=>{let e=new lwr(t.url);return`make-fetch-happen:request-cache:${fwr(e,hwr)}`},"cacheKey");Lit.exports=dwr});var Fit=m((NIi,pwr)=>{pwr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmc Line truncated
`,IIr=/\u2014 (\S+) (\S+)\n/g;function SIr(t,e){let r=t.inclusionProof,i=qpe.fromString(r.checkpoint.envelope),n=aH.fromString(i.note);if(!BIr(i,e))throw new g1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(SIr,"verifyCheckpoint");function BIr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>vnt.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?vnt.crypto.verify(r,n.publicKey,i.signature):!1})}o(BIr,"verifySignedNote");var qpe=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Upe))throw new g1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Upe),i=e.slice(0,r+1),s=e.slice(r+Upe.length).matchAll(IIr),a=Array.from(s,c=>{let[,u,l]=c,f=Buffer.from(l,"base64");if(f.length<5)throw new g1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:f.subarray(0,4),signature:f.subarray(4)}});if(a.length===0)throw new g1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,a)}},aH=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new g1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(i,n,s,a)}};y1.LogCheckpoint=aH});var xnt=m(Vpe=>{"use strict";Object.defineProperty(Vpe,"__esModule",{value:!0});Vpe.verifyMerkleInclusion=xIr;var zpe=Oc(),Gpe=go(),vIr=Buffer.from([0]),_Ir=Buffer.from([1]);function xIr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new Gpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:a}=RIr(i,n);if(r.hashes.length!==s+a)throw new Gpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),l=kIr(t.canonicalizedBody),f=NIr(TIr(l,c,i),u);if(!zpe.crypto.bufferEqual(f,e.logHash))throw new Gpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(xIr,"verifyMerkleInclusion");function RIr(t,e){let r=DIr(t,e),i=OIr(t>>BigInt(r));return{inner:r,border:i}}o(RIr,"decompInclProof");function TIr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?Hpe(n,i):Hpe(i,n),t)}o(TIr,"chainInner");function NIr(t,e){return e.reduce((r,i)=>Hpe(i,r),t)}o(NIr,"chainBorderRight");function DIr(t,e){return PIr(t^e-BigInt(1))}o(DIr,"innerProofSize");function OIr(t){return t.toString(2).split("1").length-1}o(OIr,"onesCount");function PIr(t){return t===0n?0:t.toString(2).length}o(PIr,"bitLength");function Hpe(t,e){return zpe.crypto.digest("sha256",_Ir,t,e)}o(Hpe,"hashChildren");function kIr(t){return zpe.crypto.digest("sha256",vIr,t)}o(kIr,"hashLeaf")});var Tnt=m(jpe=>{"use strict";Object.defineProperty(jpe,"__esModule",{value:!0});jpe.verifyTLogSET=MIr;var Rnt=Oc(),QIr=go(),LIr=DB();function MIr(t,e){if(!(0,LIr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=FIr(t),a=Buffer.from(Rnt.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Rnt.crypto.verify(a,n.publicKey,c)}))throw new QIr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(MIr,"verifyTLogSET");function FIr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}o(FIr,"toVerificationPayload")});var Dnt=m(cH=>{"use strict";Object.defineProperty(cH,"__esModule",{value:!0});cH.verifyTLogBody=zIr;cH.verifyTLogInclusion=VIr;var Nnt=Ghe(),Jpe=go(),$pe=Int(),Wpe=Snt(),UIr=Bnt(),qIr=_nt(),GIr=xnt(),HIr=Tnt();function zIr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new Jpe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==$pe.DSSE_API_VERSION_V1)return(0,$pe.verifyDSSETLogBody)(n,e);{let s=Nnt.Entry.fromJSON(n);return(0,$pe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,UIr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==Wpe.HASHEDREKORD_API_VERSION_V1)return(0,Wpe.verifyHashedRekordTLogBody)(n,e);{let s=Nnt.Entry.fromJSON(n);return(0,Wpe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new Jpe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(zIr,"verifyTLogBody");function VIr(t,e){let r=!1;if(jIr(t)&&((0,HIr.verifyTLogSET)(t,e),r=!0),$Ir(t)){let i=(0,qIr.verifyCheckpoint)(t,e);(0,GIr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new Jpe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(VIr,"verifyTLogInclusion");function jIr(t){return t.inclusionPromise!==void 0}o(jIr,"isTLogEntryWithInclusionPromise");function $Ir(t){return t.inclusionProof!==void 0}o($Ir,"isTLogEntryWithInclusionProof")});var Lnt=m(uH=>{"use strict";Object.defineProperty(uH,"__esModule",{value:!0});uH.Verifier=void 0;var WIr=require("util"),OB=go(),Ont=ynt(),Ype=Ent(),Pnt=Cnt(),knt=Dnt(),Kpe=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let i of e.timestamps)switch(i.$case){case"timestamp-authority":r.push((0,Pnt.getTSATimestamp)(i.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,Pnt.getTLogTimestamp)(i.tlogEntry);n&&r.push(n);break}}if(Qnt(r))throw new OB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.len Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Ay,"getBooleanInput");function hIe(t,e){if(process.env.GITHUB_OUTPUT||"")return F1("OUTPUT",HH(t,e));process.stdout.write(Rj.EOL),Cd("set-output",{name:t},wd(e))}o(hIe,"setOutput");function UO(t){process.exitCode=xj.Failure,cw(t)}o(UO,"setFailed");function gy(){return process.env.RUNNER_DEBUG==="1"}o(gy,"isDebug");function z(t){Cd("debug",{},t)}o(z,"debug");function cw(t,e={}){Cd("error",UH(e),t instanceof Error?t.toString():t)}o(cw,"error");function wr(t,e={}){Cd("warning",UH(e),t instanceof Error?t.toString():t)}o(wr,"warning");function Y(t){process.stdout.write(t+Rj.EOL)}o(Y,"info");function gEt(t){GH("group",t)}o(gEt,"startGroup");function yEt(){GH("endgroup")}o(yEt,"endGroup");function Ai(t,e){return AEt(this,void 0,void 0,function*(){gEt(t);let r;try{r=yield e()}finally{yEt()}return r})}o(Ai,"group");function iu(t,e){if(process.env.GITHUB_STATE||"")return F1("STATE",HH(t,e));Cd("save-state",{name:t},wd(e))}o(iu,"saveState");function dIe(t){return process.env[`STATE_${t}`]||""}o(dIe,"getState");var HL=U(require("fs"),1),GX=U(require("os"),1),HX=U(require("path"),1);var mIe=U(require("os"),1);function t_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(t_,"toCommandValue");function AIe(t,e,r){let i=new Tj(t,e,r);process.stdout.write(i.toString()+mIe.EOL)}o(AIe,"issueCommand");var pIe="::",Tj=class{static{o(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=pIe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${bEt(n)}`)}}return e+=`${pIe}${EEt(this.message)}`,e}};function EEt(t){return t_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(EEt,"escapeData");function bEt(t){return t_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(bEt,"escapeProperty");var bIe=U(require("os"),1);var yIe=require("os"),r_=require("fs");var Nj=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},{access:wEt,appendFile:CEt,writeFile:IEt}=r_.promises,gIe="GITHUB_STEP_SUMMARY";var Dj=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Nj(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[gIe];if(!e)throw new Error(`Unable to find environment variable for $${gIe}. Check if your runtime environment supports job summaries.`);try{yield wEt(e,r_.constants.R_OK|r_.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,i={}){let n=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Nj(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?IEt:CEt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Nj(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(yIe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:f}=a,h=c?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),f&&{rowspan:f});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},a=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.adLine truncated
`,TIr=/\u2014 (\S+) (\S+)\n/g;function NIr(t,e){let r=t.inclusionProof,i=Wpe.fromString(r.checkpoint.envelope),n=fH.fromString(i.note);if(!DIr(i,e))throw new w1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(NIr,"verifyCheckpoint");function DIr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>Mnt.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?Mnt.crypto.verify(r,n.publicKey,i.signature):!1})}o(DIr,"verifySignedNote");var Wpe=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes($pe))throw new w1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf($pe),i=e.slice(0,r+1),s=e.slice(r+$pe.length).matchAll(TIr),a=Array.from(s,c=>{let[,u,l]=c,f=Buffer.from(l,"base64");if(f.length<5)throw new w1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:f.subarray(0,4),signature:f.subarray(4)}});if(a.length===0)throw new w1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,a)}},fH=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new w1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(i,n,s,a)}};C1.LogCheckpoint=fH});var Unt=m(Xpe=>{"use strict";Object.defineProperty(Xpe,"__esModule",{value:!0});Xpe.verifyMerkleInclusion=kIr;var Kpe=kc(),Jpe=go(),OIr=Buffer.from([0]),PIr=Buffer.from([1]);function kIr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new Jpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:a}=QIr(i,n);if(r.hashes.length!==s+a)throw new Jpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),l=GIr(t.canonicalizedBody),f=MIr(LIr(l,c,i),u);if(!Kpe.crypto.bufferEqual(f,e.logHash))throw new Jpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(kIr,"verifyMerkleInclusion");function QIr(t,e){let r=FIr(t,e),i=UIr(t>>BigInt(r));return{inner:r,border:i}}o(QIr,"decompInclProof");function LIr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?Ype(n,i):Ype(i,n),t)}o(LIr,"chainInner");function MIr(t,e){return e.reduce((r,i)=>Ype(i,r),t)}o(MIr,"chainBorderRight");function FIr(t,e){return qIr(t^e-BigInt(1))}o(FIr,"innerProofSize");function UIr(t){return t.toString(2).split("1").length-1}o(UIr,"onesCount");function qIr(t){return t===0n?0:t.toString(2).length}o(qIr,"bitLength");function Ype(t,e){return Kpe.crypto.digest("sha256",PIr,t,e)}o(Ype,"hashChildren");function GIr(t){return Kpe.crypto.digest("sha256",OIr,t)}o(GIr,"hashLeaf")});var Gnt=m(Zpe=>{"use strict";Object.defineProperty(Zpe,"__esModule",{value:!0});Zpe.verifyTLogSET=VIr;var qnt=kc(),HIr=go(),zIr=kB();function VIr(t,e){if(!(0,zIr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=jIr(t),a=Buffer.from(qnt.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return qnt.crypto.verify(a,n.publicKey,c)}))throw new HIr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(VIr,"verifyTLogSET");function jIr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}o(jIr,"toVerificationPayload")});var znt=m(hH=>{"use strict";Object.defineProperty(hH,"__esModule",{value:!0});hH.verifyTLogBody=KIr;hH.verifyTLogInclusion=XIr;var Hnt=Jhe(),rme=go(),eme=knt(),tme=Qnt(),$Ir=Lnt(),WIr=Fnt(),JIr=Unt(),YIr=Gnt();function KIr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new rme.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==eme.DSSE_API_VERSION_V1)return(0,eme.verifyDSSETLogBody)(n,e);{let s=Hnt.Entry.fromJSON(n);return(0,eme.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,$Ir.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==tme.HASHEDREKORD_API_VERSION_V1)return(0,tme.verifyHashedRekordTLogBody)(n,e);{let s=Hnt.Entry.fromJSON(n);return(0,tme.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new rme.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(KIr,"verifyTLogBody");function XIr(t,e){let r=!1;if(ZIr(t)&&((0,YIr.verifyTLogSET)(t,e),r=!0),eSr(t)){let i=(0,WIr.verifyCheckpoint)(t,e);(0,JIr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new rme.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(XIr,"verifyTLogInclusion");function ZIr(t){return t.inclusionPromise!==void 0}o(ZIr,"isTLogEntryWithInclusionPromise");function eSr(t){return t.inclusionProof!==void 0}o(eSr,"isTLogEntryWithInclusionProof")});var Jnt=m(dH=>{"use strict";Object.defineProperty(dH,"__esModule",{value:!0});dH.Verifier=void 0;var tSr=require("util"),QB=go(),Vnt=Tnt(),ime=Nnt(),jnt=Pnt(),$nt=znt(),nme=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let i of e.timestamps)switch(i.$case){case"timestamp-authority":r.push((0,jnt.getTSATimestamp)(i.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,jnt.getTLogTimestamp)(i.tlogEntry);n&&r.push(n);break}}if(Wnt(r))throw new QB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.len Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Ey,"getBooleanInput");function SIe(t,e){if(process.env.GITHUB_OUTPUT||"")return H1("OUTPUT",$H(t,e));process.stdout.write(Qj.EOL),Cd("set-output",{name:t},wd(e))}o(SIe,"setOutput");function zO(t){process.exitCode=kj.Failure,fw(t)}o(zO,"setFailed");function by(){return process.env.RUNNER_DEBUG==="1"}o(by,"isDebug");function z(t){Cd("debug",{},t)}o(z,"debug");function fw(t,e={}){Cd("error",zH(e),t instanceof Error?t.toString():t)}o(fw,"error");function wr(t,e={}){Cd("warning",zH(e),t instanceof Error?t.toString():t)}o(wr,"warning");function Y(t){process.stdout.write(t+Qj.EOL)}o(Y,"info");function SEt(t){jH("group",t)}o(SEt,"startGroup");function BEt(){jH("endgroup")}o(BEt,"endGroup");function gi(t,e){return IEt(this,void 0,void 0,function*(){SEt(t);let r;try{r=yield e()}finally{BEt()}return r})}o(gi,"group");function nu(t,e){if(process.env.GITHUB_STATE||"")return H1("STATE",$H(t,e));Cd("save-state",{name:t},wd(e))}o(nu,"saveState");function BIe(t){return process.env[`STATE_${t}`]||""}o(BIe,"getState");var $L=U(require("fs"),1),JX=U(require("os"),1),YX=U(require("path"),1);var _Ie=U(require("os"),1);function s_(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(s_,"toCommandValue");function xIe(t,e,r){let i=new Lj(t,e,r);process.stdout.write(i.toString()+_Ie.EOL)}o(xIe,"issueCommand");var vIe="::",Lj=class{static{o(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=vIe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${_Et(n)}`)}}return e+=`${vIe}${vEt(this.message)}`,e}};function vEt(t){return s_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(vEt,"escapeData");function _Et(t){return s_(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(_Et,"escapeProperty");var DIe=U(require("os"),1);var TIe=require("os"),o_=require("fs");var Mj=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},{access:xEt,appendFile:REt,writeFile:TEt}=o_.promises,RIe="GITHUB_STEP_SUMMARY";var Fj=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Mj(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[RIe];if(!e)throw new Error(`Unable to find environment variable for $${RIe}. Check if your runtime environment supports job summaries.`);try{yield xEt(e,o_.constants.R_OK|o_.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,i={}){let n=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Mj(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?TEt:REt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Mj(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(TIe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:f}=a,h=c?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),f&&{rowspan:f});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},a=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.adLine truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new m_(s));return i.searchPaths.push(...d9(i.patterns)),i})}static stat(e,r,i){return b9(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield mw.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){cu(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else n=yield mw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield mw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(a=>a===s)){cu(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var lCt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function KBe(t,e){return lCt(this,void 0,void 0,function*(){return yield oP.create(t,e)})}o(KBe,"create");var CP=U(require("crypto"),1),Ew=U(require("fs"),1),wy=U(require("path"),1),z_e=U(G_e(),1),V_e=U(require("util"),1);var C_;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(C_||(C_={}));var xo;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(xo||(xo={}));var ac;(function(t){t.GNU="gnu",t.BSD="bsd"})(ac||(ac={}));var bP=2,wP=5e3,q9=5e3,G9=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,H_e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,I_="cache.tar",H9="manifest.txt",Y1r=10*Math.pow(1024,3);var yw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},gBt=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),n(c,u,a.done,a.value)})}}function n(s,a,c,u){Promise.resolve(u).then(function(l){s({value:l,done:c})},a)}},yBt="1.0";function S_(){return yw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=wy.join(i,"actions","temp")}let r=wy.join(e,CP.randomUUID());return yield Md(r),r})}o(S_,"createTempDirectory");function Rf(t){return Ew.statSync(t).size}o(Rf,"getArchiveFileSizeInBytes");function z9(t){return yw(this,void 0,void 0,function*(){var e,r,i,n,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield KBe(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,f=gBt(u.globGenerator()),h;h=yield f.next(),e=h.done,!e;l=!0){n=h.value,l=!1;let p=wy.relative(c,n).replace(new RegExp(`\\${wy.sep}`,"g"),"/");z(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(i=f.return)&&(yield i.call(f))}finally{if(r)throw r.error}}return a})}o(z9,"resolvePaths");function B_(t){return yw(this,void 0,void 0,function*(){return V_e.promisify(Ew.unlink)(t)})}o(B_,"unlinkFile");function j_e(t){return yw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),z(`Checking ${e} ${r.join(" ")}`);try{yield sc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>i+=n.toString(),"stdout"),stderr:o(n=>i+=n.toString(),"stderr")}})}catch(n){z(n.message)}return i=i.trim(),z(i),i})}o(j_e,"getVersion");function v_(){return yw(this,void 0,void 0,function*(){let t=yield j_e("zstd",["--quiet"]),e=z_e.clean(t);return z(`zstd version: ${e}`),t===""?xo.Gzip:xo.ZstdWithoutLong})}o(v_,"getCompressionMethod");function Zm(t){return t===xo.Gzip?C_.Gzip:C_.Zstd}o(Zm,"getCacheFileName");function $_e(){return yw(this,void 0,void 0,function*(){return Ew.existsSync(G9)?G9:(yield j_e("tar")).toLowerCase().includes("gnu tar")?ws("tar"):""})}o($_e,"getGnuTarPathOnWindows");function V9(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(V9,"assertDefined");function bw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(yBt),CP.createHash("sha256").update(i.join("|")).digest("hex")}o(bw,"getCacheVersion");function W_e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(W_e,"getRuntimeToken");var x_=U(require("http"),1),W9=U(require("https"),1);function j9(t){let e=t.protocol==="https:";if(EBt(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 SP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new SP(`http://${r}`)}else return}o(j9,"getProxyUrl");function EBt(t){if(!t.hostname)return!1;let e=t.hostname;if(bBt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||n.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(EBt,"checkBypass");function bBt(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(bBt,"isLoopbackAddress");var SP=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 eA=U(cb(),1),J_e=U(Hm(),1);var Fi=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},gi;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(gi||(gi={}));var Ro;(function(t){t.Accept="accept",t.ContentType="content-type"})(Ro||(Ro={}));var Gd;(function(t){t.ApplicationJson="application/json"})(Gd||(Gd={}));var CBt=[gi.MovedPermanently,gi.ResourceMoved,gi.SeeOther,gi.TemporaryRedirect,gi.PermanentRedirect],IBt=[gi.BadGateway,gi.ServiceUnavailable,gi.GatewayTimeout],SBt=["OPTIONS","GET","DELETE","HEAD"],BBt=10,vBt=5,Tf=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${kBt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function TP(t){return t instanceof To?!0:Iy(t)&&t.name==="RestError"}o(TP,"isRestError");function Ea(t,e){return Buffer.from(t,e)}o(Ea,"stringToUint8Array");var NP=U(require("node:http"),1),DP=U(require("node:https"),1),n$=U(require("node:zlib"),1),dxe=require("node:stream");var fu=R_("ts-http-runtime");var QBt={};function T_(t){return t&&typeof t.pipe=="function"}o(T_,"isReadableStream");function hxe(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(hxe,"isStreamComplete");function pxe(t){return t&&typeof t.byteLength=="number"}o(pxe,"isArrayBuffer");var OP=class extends dxe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},s$=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new Nf("The operation was aborted. Request has already been canceled.");i=o(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new xl;fu.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let l=UBt(c);l!==null&&e.headers.set("Content-Length",l)}let u;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,y=new OP(A);y.on("error",b=>{fu.error("Error in upload progress",b)}),T_(c)?c.pipe(y):y.end(c),c=y}let l=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let f=LBt(l),d={status:l.statusCode??0,headers:f,request:e};if(e.method==="HEAD")return l.resume(),d;u=a?MBt(l,f):l;let p=e.onDownloadProgress;if(p){let A=new OP(p);A.on("error",y=>{fu.error("Error in download progress",y)}),u.pipe(A),u=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await FBt(u),d}finally{if(e.abortSignal&&i){let l=Promise.resolve();T_(c)&&(l=hxe(c));let f=Promise.resolve();T_(u)&&(f=hxe(u)),Promise.all([l,f]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(h=>{fu.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,l)=>{let f=s?NP.default.request(c,u):DP.default.request(c,u);f.once("error",h=>{l(new To(h.message,{code:h.code??To.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new Nf("The operation was aborted. Rejecting from abort signal callback while making request.");f.destroy(h),l(h)}),i&&T_(i)?i.pipe(f):i?typeof i=="string"||Buffer.isBuffer(i)?f.end(i):pxe(i)?f.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(fu.error("Unrecognized body type",i),l(new To("Unrecognized body type"))):f.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?NP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new NP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return DP.default.globalAgent;let n=e.tlsSettings??QBt,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(fu.info("No cached TLS Agent exist, creating a new Agent"),s=new DP.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function LBt(t){let e=cc();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}o(LBt,"getResponseHeaders");function MBt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=n$.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=n$.default.createInflate();return t.pipe(i),i}return t}o(MBt,"getDecodedResponseStream");function FBt(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new To(`Error reading response as text: ${n.message}`,{code:To.PARSE_ERROR}))})})}o(FBt,"streamToText");function UBt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(g_t,"encodeHeaders");function y_t(t){return t instanceof Uint8Array?t.byteLength:rk(t)?t.size===-1?void 0:t.size:void 0}o(y_t,"getLength");function E_t(t){let e=0;for(let r of t){let i=y_t(r);if(i===void 0)return;e+=i}return e}o(E_t,"getTotalLength");async function b_t(t,e,r){let i=[Ea(`--${r}`,"utf-8"),...e.flatMap(s=>[Ea(`\r
`,"utf-8"),Ea(g_t(s.headers),"utf-8"),Ea(`\r
`,"utf-8"),s.body,Ea(`\r
--${r}`,"utf-8")]),Ea(`--\r
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new E_(s));return i.searchPaths.push(...b9(i.patterns)),i})}static stat(e,r,i){return _9(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield yw.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){uu(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else n=yield yw.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield yw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(a=>a===s)){uu(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var gCt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function uve(t,e){return gCt(this,void 0,void 0,function*(){return yield lP.create(t,e)})}o(uve,"create");var vP=U(require("crypto"),1),Cw=U(require("fs"),1),Sy=U(require("path"),1),rxe=U(exe(),1),ixe=U(require("util"),1);var v_;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(v_||(v_={}));var Ro;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ro||(Ro={}));var uc;(function(t){t.GNU="gnu",t.BSD="bsd"})(uc||(uc={}));var SP=2,BP=5e3,W9=5e3,J9=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,txe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,__="cache.tar",Y9="manifest.txt",iDr=10*Math.pow(1024,3);var ww=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},SBt=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),n(c,u,a.done,a.value)})}}function n(s,a,c,u){Promise.resolve(u).then(function(l){s({value:l,done:c})},a)}},BBt="1.0";function x_(){return ww(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=Sy.join(i,"actions","temp")}let r=Sy.join(e,vP.randomUUID());return yield Fd(r),r})}o(x_,"createTempDirectory");function Rf(t){return Cw.statSync(t).size}o(Rf,"getArchiveFileSizeInBytes");function K9(t){return ww(this,void 0,void 0,function*(){var e,r,i,n,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield uve(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,f=SBt(u.globGenerator()),h;h=yield f.next(),e=h.done,!e;l=!0){n=h.value,l=!1;let p=Sy.relative(c,n).replace(new RegExp(`\\${Sy.sep}`,"g"),"/");z(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(i=f.return)&&(yield i.call(f))}finally{if(r)throw r.error}}return a})}o(K9,"resolvePaths");function R_(t){return ww(this,void 0,void 0,function*(){return ixe.promisify(Cw.unlink)(t)})}o(R_,"unlinkFile");function nxe(t){return ww(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),z(`Checking ${e} ${r.join(" ")}`);try{yield ac(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>i+=n.toString(),"stdout"),stderr:o(n=>i+=n.toString(),"stderr")}})}catch(n){z(n.message)}return i=i.trim(),z(i),i})}o(nxe,"getVersion");function T_(){return ww(this,void 0,void 0,function*(){let t=yield nxe("zstd",["--quiet"]),e=rxe.clean(t);return z(`zstd version: ${e}`),t===""?Ro.Gzip:Ro.ZstdWithoutLong})}o(T_,"getCompressionMethod");function Zm(t){return t===Ro.Gzip?v_.Gzip:v_.Zstd}o(Zm,"getCacheFileName");function sxe(){return ww(this,void 0,void 0,function*(){return Cw.existsSync(J9)?J9:(yield nxe("tar")).toLowerCase().includes("gnu tar")?Cs("tar"):""})}o(sxe,"getGnuTarPathOnWindows");function X9(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(X9,"assertDefined");function Iw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(BBt),vP.createHash("sha256").update(i.join("|")).digest("hex")}o(Iw,"getCacheVersion");function oxe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(oxe,"getRuntimeToken");var D_=U(require("http"),1),t$=U(require("https"),1);function Z9(t){let e=t.protocol==="https:";if(vBt(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 xP(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new xP(`http://${r}`)}else return}o(Z9,"getProxyUrl");function vBt(t){if(!t.hostname)return!1;let e=t.hostname;if(_Bt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.protocol==="https:"&&(i=443);let n=[t.hostname.toUpperCase()];typeof i=="number"&&n.push(`${n[0]}:${i}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||n.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(vBt,"checkBypass");function _Bt(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(_Bt,"isLoopbackAddress");var xP=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 eA=U(fb(),1),axe=U(Hm(),1);var Ui=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},yi;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(yi||(yi={}));var To;(function(t){t.Accept="accept",t.ContentType="content-type"})(To||(To={}));var Hd;(function(t){t.ApplicationJson="application/json"})(Hd||(Hd={}));var RBt=[yi.MovedPermanently,yi.ResourceMoved,yi.SeeOther,yi.TemporaryRedirect,yi.PermanentRedirect],TBt=[yi.BadGateway,yi.ServiceUnavailable,yi.GatewayTimeout],NBt=["OPTIONS","GET","DELETE","HEAD"],DBt=10,OBt=5,Tf=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${GBt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function PP(t){return t instanceof No?!0:vy(t)&&t.name==="RestError"}o(PP,"isRestError");function ba(t,e){return Buffer.from(t,e)}o(ba,"stringToUint8Array");var kP=U(require("node:http"),1),QP=U(require("node:https"),1),f$=U(require("node:zlib"),1),Bxe=require("node:stream");var hu=O_("ts-http-runtime");var HBt={};function P_(t){return t&&typeof t.pipe=="function"}o(P_,"isReadableStream");function Sxe(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(Sxe,"isStreamComplete");function vxe(t){return t&&typeof t.byteLength=="number"}o(vxe,"isArrayBuffer");var LP=class extends Bxe.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},h$=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new Nf("The operation was aborted. Request has already been canceled.");i=o(l=>{l.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new Rl;hu.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let l=$Bt(c);l!==null&&e.headers.set("Content-Length",l)}let u;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,y=new LP(A);y.on("error",b=>{hu.error("Error in upload progress",b)}),P_(c)?c.pipe(y):y.end(c),c=y}let l=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let f=zBt(l),d={status:l.statusCode??0,headers:f,request:e};if(e.method==="HEAD")return l.resume(),d;u=a?VBt(l,f):l;let p=e.onDownloadProgress;if(p){let A=new LP(p);A.on("error",y=>{hu.error("Error in download progress",y)}),u.pipe(A),u=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await jBt(u),d}finally{if(e.abortSignal&&i){let l=Promise.resolve();P_(c)&&(l=Sxe(c));let f=Promise.resolve();P_(u)&&(f=Sxe(u)),Promise.all([l,f]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(h=>{hu.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,l)=>{let f=s?kP.default.request(c,u):QP.default.request(c,u);f.once("error",h=>{l(new No(h.message,{code:h.code??No.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new Nf("The operation was aborted. Rejecting from abort signal callback while making request.");f.destroy(h),l(h)}),i&&P_(i)?i.pipe(f):i?typeof i=="string"||Buffer.isBuffer(i)?f.end(i):vxe(i)?f.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(hu.error("Unrecognized body type",i),l(new No("Unrecognized body type"))):f.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?kP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new kP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return QP.default.globalAgent;let n=e.tlsSettings??HBt,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(hu.info("No cached TLS Agent exist, creating a new Agent"),s=new QP.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function zBt(t){let e=lc();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}o(zBt,"getResponseHeaders");function VBt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=f$.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=f$.default.createInflate();return t.pipe(i),i}return t}o(VBt,"getDecodedResponseStream");function jBt(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new No(`Error reading response as text: ${n.message}`,{code:No.PARSE_ERROR}))})})}o(jBt,"streamToText");function $Bt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(S_t,"encodeHeaders");function B_t(t){return t instanceof Uint8Array?t.byteLength:ok(t)?t.size===-1?void 0:t.size:void 0}o(B_t,"getLength");function v_t(t){let e=0;for(let r of t){let i=B_t(r);if(i===void 0)return;e+=i}return e}o(v_t,"getTotalLength");async function __t(t,e,r){let i=[ba(`--${r}`,"utf-8"),...e.flatMap(s=>[ba(`\r
`,"utf-8"),ba(S_t(s.headers),"utf-8"),ba(`\r
`,"utf-8"),s.body,ba(`\r
--${r}`,"utf-8")]),ba(`--\r
\r
`,"utf-8")],n=E_t(i);n&&t.headers.set("Content-Length",n),t.body=await ARe(i)}o(b_t,"buildRequestBody");var P_="multipartPolicy",w_t=70,C_t=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function I_t(t){if(t.length>w_t)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!C_t.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(I_t,"assertValidBoundary");function nk(){return{name:P_,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,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,a]=n;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?I_t(r):r=A_t(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await b_t(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(nk,"multipartPolicy");function sk(){return RP()}o(sk,"createEmptyPipeline");var gRe=vP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),WQr=gRe.logger;function Pf(t){return gRe.createClientLogger(t)}o(Pf,"createClientLogger");var kf=Pf("core-rest-pipeline");function B$(t={}){return kP({logger:kf.info,...t})}o(B$,"logPolicy");var v$=QP;function _$(t={}){return LP(t)}o(_$,"redirectPolicy");var ok=U(require("node:os"),1),ak=U(require("node:process"),1);function yRe(){return"User-Agent"}o(yRe,"getHeaderName");async function ERe(t){if(ak.default&&ak.default.versions){let e=`${ok.default.type()} ${ok.default.release()}; ${ok.default.arch()}`,r=ak.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(ERe,"setPlatformSpecificData");var ck="1.22.2";function N_t(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}o(N_t,"getUserAgentString");function bRe(){return yRe()}o(bRe,"getUserAgentHeaderName");async function uk(t){let e=new Map;e.set("core-rest-pipeline",ck),await ERe(e);let r=N_t(e);return t?`${t} ${r}`:r}o(uk,"getUserAgentValue");var wRe=bRe(),CRe="userAgentPolicy";function x$(t={}){let e=uk(t.userAgentPrefix);return{name:CRe,async sendRequest(r,i){return r.headers.has(wRe)||r.headers.set(wRe,await e),i(r)}}}o(x$,"userAgentPolicy");var hc=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function R$(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,a)=>{function c(){a(new hc(n??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){i?.removeEventListener("abort",l)}o(u,"removeListeners");function l(){r?.(),u(),c()}if(o(l,"onAbort"),i?.aborted)return c();try{t(f=>{u(),s(f)},f=>{u(),a(f)})}catch(f){a(f)}i?.addEventListener("abort",l)})}o(R$,"createAbortablePromise");var Q_t="The delay was aborted.";function k_(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return R$(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:i,abortErrorMsg:n??Q_t})}o(k_,"delay");function rA(t){if(Iy(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(rA,"getErrorMessage");function IRe(t){return Iy(t)}o(IRe,"isError");function Rw(){return Cy()}o(Rw,"randomUUID");var lr=vy;var SRe=Symbol("rawContent");function N$(t){return typeof t[SRe]=="function"}o(N$,"hasRawContent");function BRe(t){return N$(t)?t[SRe]():t}o(BRe,"getRawContent");var lk=P_;function D$(){let t=nk();return{name:lk,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)N$(i.body)&&(i.body=BRe(i.body));return t.sendRequest(e,r)},"sendRequest")}}o(D$,"multipartPolicy");var O$=MP;function P$(){return FP()}o(P$,"decompressResponsePolicy");function k$(t={}){return GP(t)}o(k$,"defaultRetryPolicy");function Q$(){return HP()}o(Q$,"formDataPolicy");function iA(t){return b$(t)}o(iA,"getDefaultProxySettings");function L$(t,e){return ZP(t,e)}o(L$,"proxyPolicy");var vRe="setClientRequestIdPolicy";function M$(t="x-ms-client-request-id"){return{name:vRe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(M$,"setClientRequestIdPolicy");function F$(t){return ek(t)}o(F$,"agentPolicy");function U$(t){return tk(t)}o(U$,"tlsPolicy");var Tw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function _Re(t={}){let e=new q$(t.parentContext);return t.span&&(e=e.setValue(Tw.span,t.span)),t.namespace&&(e=e.setValue(Tw.namespace,t.namespace)),e}o(_Re,"createTracingContext");var q$=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!oRt(u)){let h;return u.trim().length===0?h="Invalid space after '<'.":h="Tag '"+u+"' is an invalid name.",Ui("InvalidTag",h,No(t,s))}let l=tRt(t,s);if(l===!1)return Ui("InvalidAttr","Attributes for '"+u+"' have open quote.",No(t,s));let f=l.value;if(s=l.index,f[f.length-1]==="/"){let h=s-f.length;f=f.substring(0,f.length-1);let d=lTe(f,e);if(d===!0)i=!0;else return Ui(d.err.code,d.err.msg,No(t,h+d.err.line))}else if(c)if(l.tagClosed){if(f.trim().length>0)return Ui("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",No(t,a));if(r.length===0)return Ui("InvalidTag","Closing tag '"+u+"' has not been opened.",No(t,a));{let h=r.pop();if(u!==h.tagName){let d=No(t,h.tagStartPos);return Ui("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",No(t,a))}r.length==0&&(n=!0)}}else return Ui("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",No(t,s));else{let h=lTe(f,e);if(h!==!0)return Ui(h.err.code,h.err.msg,No(t,s-f.length+h.err.line));if(n===!0)return Ui("InvalidXml","Multiple possible root nodes found.",No(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=uTe(t,s);continue}else if(t[s+1]==="?"){if(s=cTe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let h=nRt(t,s);if(h==-1)return Ui("InvalidChar","char '&' is not expected.",No(t,s));s=h}else if(n===!0&&!aTe(t[s]))return Ui("InvalidXml","Extra text at the end",No(t,s));t[s]==="<"&&s--}}else{if(aTe(t[s]))continue;return Ui("InvalidChar","char '"+t[s]+"' is not expected.",No(t,s))}if(i){if(r.length==1)return Ui("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",No(t,r[0].tagStartPos));if(r.length>0)return Ui("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ui("InvalidXml","Start tag expected.",1);return!0}o(Ik,"validate");function aTe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(aTe,"isWhiteSpace");function cTe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Ui("InvalidXml","XML declaration allowed only at the start of the document.",No(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(cTe,"readPI");function uTe(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(uTe,"readCommentAndCDATA");var Zxt='"',eRt="'";function tRt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===Zxt||t[e]===eRt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}o(tRt,"readAttributeStr");var rRt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function lTe(t,e){let r=wk(t,rRt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Ui("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",$_(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Ui("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",$_(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Ui("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",$_(r[n]));let s=r[n][2];if(!sRt(s))return Ui("InvalidAttr","Attribute '"+s+"' is an invalid name.",$_(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return Ui("InvalidAttr","Attribute '"+s+"' is repeated.",$_(r[n]))}return!0}o(lTe,"validateAttributeString");function iRt(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(iRt,"validateNumberAmpersand");function nRt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,iRt(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(nRt,"validateAmpersand");function Ui(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ui,"getErrorObject");function sRt(t){return sW(t)}o(sRt,"validateAttrName");function oRt(t){return sW(t)}o(oRt,"validateTagName");function No(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(No,"getLineNumberForPosition");function $_(t){return t.startIndex+t[1].length}o($_,"getPositionFromMatch");var fTe={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"},hTe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},dTe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new Ia("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new Y_(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let l=t.charCodeAt(c+1);if(l===47){let f=kw(t,">",c,"Closing Tag is not closed."),h=t.substring(c+2,f).trim();if(n.removeNSPrefix){let p=h.indexOf(":");p!==-1&&(h=h.substr(p+1))}h=dW(n.transformTagName,h,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&n.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",c=f}else if(l===63){let f=pW(t,c,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.buildAttributesMap(f.tagExp,this.matcher,f.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),s.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&f.tagName==="?xml"||n.ignorePiTags)){let d=new Ia(f.tagName);d.add(n.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,c)}c=f.closeIndex+1}else if(l===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let f=kw(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let h=t.substring(c+4,f-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:h}])}c=f}else if(l===33&&t.charCodeAt(c+2)===68){let f=s.readDocType(t,c);this.entityDecoder.addInputEntities(f.entities),c=f.i}else if(l===33&&t.charCodeAt(c+2)===91){let f=kw(t,"]]>",c,"CDATA is not closed.")-2,h=t.substring(c+9,f);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:h}]):r.add(n.textNodeName,d),c=f+2}else{let f=pW(t,c,n.removeNSPrefix);if(!f){let V=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${V}"`)}let h=f.tagName,d=f.rawTagName,p=f.tagExp,A=f.attrExpPresent,y=f.closeIndex;if({tagName:h,tagExp:p}=dW(n.transformTagName,h,p,n),n.strictReservedNames&&(h===n.commentPropName||h===n.cdataPropName||h===n.textNodeName||h===n.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let b=r;b&&n.unpairedTagsSet.has(b.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(E=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),p=h):p=p.substr(0,p.length-1),A=h!==p);let w=null,B={},R;R=RRt(d),h!==e.tagname&&this.matcher.push(h,{},R),h!==p&&A&&(w=this.buildAttributesMap(p,this.matcher,h),w&&(B=xRt(w,n))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=c;if(this.isCurrentNodeStopNode){let V="";if(E)c=f.closeIndex;else if(n.unpairedTagsSet.has(h))c=f.closeIndex;else{let X=this.readStopNodeData(t,d,y+1);if(!X)throw new Error(`Unexpected end of ${d}`);c=X.i,V=X.tagContent}let Q=new Ia(h);w&&(Q[":@"]=w),Q.add(n.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,M)}else{if(E){({tagName:h,tagExp:p}=dW(n.transformTagName,h,p,n));let V=new Ia(h);w&&(V[":@"]=w),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(h)){let V=new Ia(h);w&&(V[":@"]=w),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=f.closeIndex;continue}else{let V=new Ia(h);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),w&&(V[":@"]=w),this.addChild(r,V,this.readonlyMatcher,M),r=V}i="",c=y}}}else i+=t[c];return e.child},"parseXml");function kRt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}o(kRt,"addChild");function QRt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(QRt,"replaceEntitiesValue");function LRt(t,e,r,i){return t&&(i===void 0&&(i=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(LRt,"saveTextToParentTag");function MRt(){return this.stopNodeExpressionsSet.Line truncated
`;function $Rt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(bW(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}o($Rt,"detectXmlVersionFromArray");function OTe(t,e,r,i,n){return!r.sanitizeName||Dy(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}o(OTe,"resolveTagName");function EW(t,e){let r="";e.format&&(r=jRt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?i.push(new mc(c)):c instanceof mc&&i.push(c)}let n=$Rt(t,e),s=new Mf;return PTe(t,e,r,s,i,n)}o(EW,"toXml");function PTe(t,e,r,i,n,s){let a="",c=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=yW(u,e),u}return""}for(let u=0;u<t.length;u++){let l=t[u],f=bW(l);if(f===void 0)continue;let d=f===e.textNodeName||f===e.cdataPropName||f===e.commentPropName||f[0]==="?"?f:OTe(f,!1,e,i,s),p=WRt(l[":@"],e);i.push(d,p);let A=YRt(i,n);if(d===e.textNodeName){let B=l[f];A||(B=e.tagValueProcessor(d,B),B=yW(B,e)),c&&(a+=r),a+=B,c=!1,i.pop();continue}else if(d===e.cdataPropName){c&&(a+=r);let B=l[f][0][e.textNodeName],R=xk(B);a+=`<![CDATA[${R}]]>`,c=!1,i.pop();continue}else if(d===e.commentPropName){let B=l[f][0][e.textNodeName],R=_k(B);a+=r+`<!--${R}-->`,c=!0,i.pop();continue}else if(d[0]==="?"){let B=DTe(l[":@"],e,A,i,s);a+=(d==="?xml"?"":r)+`<${d}${B}?>`,c=!0,i.pop();continue}let y=r;y!==""&&(y+=e.indentBy);let b=DTe(l[":@"],e,A,i,s),E=r+`<${d}${b}`,w;A?w=kTe(l[f],e):w=PTe(l[f],e,y,i,n,s),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!w||w.length===0)&&e.suppressEmptyNode?a+=E+"/>":w&&w.endsWith(">")?a+=E+`>${w}${r}</${d}>`:(a+=E+">",w&&r!==""&&(w.includes("/>")||w.includes("</"))?a+=r+e.indentBy+w+r:a+=w,a+=`</${d}>`),c=!0,i.pop()}return a}o(PTe,"arrToStr");function WRt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=oA(t[n]),i=!0}return i?r:null}o(WRt,"extractAttributeValues");function kTe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=bW(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=JRt(n[":@"],e),c=kTe(n[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(kTe,"getRawContent");function JRt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${oA(n)}"`}return r}o(JRt,"attr_to_str_raw");function bW(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}o(bW,"propName");function DTe(t,e,r,i,n){let s="";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:OTe(c,!0,e,i,n),l;r?l=t[a]:(l=e.attributeValueProcessor(a,t[a]),l=yW(l,e)),l===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${oA(l)}"`}return s}o(DTe,"attr_to_str");function YRt(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(YRt,"checkStopNode");function yW(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}o(yW,"replaceEntitiesValue");function wW(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(wW,"getIgnoreAttributesFn");var KRt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ba(t){if(this.options=Object.assign({},KRt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,"utf-8")],n=v_t(i);n&&t.headers.set("Content-Length",n),t.body=await xRe(i)}o(__t,"buildRequestBody");var M_="multipartPolicy",x_t=70,R_t=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function T_t(t){if(t.length>x_t)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!R_t.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(T_t,"assertValidBoundary");function ck(){return{name:M_,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,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,a]=n;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?T_t(r):r=I_t(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await __t(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(ck,"multipartPolicy");function uk(){return OP()}o(uk,"createEmptyPipeline");var RRe=TP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),tLr=RRe.logger;function Pf(t){return RRe.createClientLogger(t)}o(Pf,"createClientLogger");var kf=Pf("core-rest-pipeline");function D$(t={}){return FP({logger:kf.info,...t})}o(D$,"logPolicy");var O$=UP;function P$(t={}){return qP(t)}o(P$,"redirectPolicy");var lk=U(require("node:os"),1),fk=U(require("node:process"),1);function TRe(){return"User-Agent"}o(TRe,"getHeaderName");async function NRe(t){if(fk.default&&fk.default.versions){let e=`${lk.default.type()} ${lk.default.release()}; ${lk.default.arch()}`,r=fk.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(NRe,"setPlatformSpecificData");var hk="1.22.2";function M_t(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}o(M_t,"getUserAgentString");function DRe(){return TRe()}o(DRe,"getUserAgentHeaderName");async function dk(t){let e=new Map;e.set("core-rest-pipeline",hk),await NRe(e);let r=M_t(e);return t?`${t} ${r}`:r}o(dk,"getUserAgentValue");var ORe=DRe(),PRe="userAgentPolicy";function k$(t={}){let e=dk(t.userAgentPrefix);return{name:PRe,async sendRequest(r,i){return r.headers.has(ORe)||r.headers.set(ORe,await e),i(r)}}}o(k$,"userAgentPolicy");var pc=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Q$(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,a)=>{function c(){a(new pc(n??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){i?.removeEventListener("abort",l)}o(u,"removeListeners");function l(){r?.(),u(),c()}if(o(l,"onAbort"),i?.aborted)return c();try{t(f=>{u(),s(f)},f=>{u(),a(f)})}catch(f){a(f)}i?.addEventListener("abort",l)})}o(Q$,"createAbortablePromise");var H_t="The delay was aborted.";function F_(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return Q$(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:i,abortErrorMsg:n??H_t})}o(F_,"delay");function rA(t){if(vy(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(rA,"getErrorMessage");function kRe(t){return vy(t)}o(kRe,"isError");function Dw(){return By()}o(Dw,"randomUUID");var lr=Ry;var QRe=Symbol("rawContent");function M$(t){return typeof t[QRe]=="function"}o(M$,"hasRawContent");function LRe(t){return M$(t)?t[QRe]():t}o(LRe,"getRawContent");var pk=M_;function F$(){let t=ck();return{name:pk,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)M$(i.body)&&(i.body=LRe(i.body));return t.sendRequest(e,r)},"sendRequest")}}o(F$,"multipartPolicy");var U$=GP;function q$(){return HP()}o(q$,"decompressResponsePolicy");function G$(t={}){return jP(t)}o(G$,"defaultRetryPolicy");function H$(){return $P()}o(H$,"formDataPolicy");function iA(t){return _$(t)}o(iA,"getDefaultProxySettings");function z$(t,e){return ik(t,e)}o(z$,"proxyPolicy");var MRe="setClientRequestIdPolicy";function V$(t="x-ms-client-request-id"){return{name:MRe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(V$,"setClientRequestIdPolicy");function j$(t){return nk(t)}o(j$,"agentPolicy");function $$(t){return sk(t)}o($$,"tlsPolicy");var Ow={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function FRe(t={}){let e=new W$(t.parentContext);return t.span&&(e=e.setValue(Ow.span,t.span)),t.namespace&&(e=e.setValue(Ow.namespace,t.namespace)),e}o(FRe,"createTracingContext");var W$=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!dRt(u)){let h;return u.trim().length===0?h="Invalid space after '<'.":h="Tag '"+u+"' is an invalid name.",qi("InvalidTag",h,Do(t,s))}let l=cRt(t,s);if(l===!1)return qi("InvalidAttr","Attributes for '"+u+"' have open quote.",Do(t,s));let f=l.value;if(s=l.index,f[f.length-1]==="/"){let h=s-f.length;f=f.substring(0,f.length-1);let d=CTe(f,e);if(d===!0)i=!0;else return qi(d.err.code,d.err.msg,Do(t,h+d.err.line))}else if(c)if(l.tagClosed){if(f.trim().length>0)return qi("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Do(t,a));if(r.length===0)return qi("InvalidTag","Closing tag '"+u+"' has not been opened.",Do(t,a));{let h=r.pop();if(u!==h.tagName){let d=Do(t,h.tagStartPos);return qi("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",Do(t,a))}r.length==0&&(n=!0)}}else return qi("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Do(t,s));else{let h=CTe(f,e);if(h!==!0)return qi(h.err.code,h.err.msg,Do(t,s-f.length+h.err.line));if(n===!0)return qi("InvalidXml","Multiple possible root nodes found.",Do(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=wTe(t,s);continue}else if(t[s+1]==="?"){if(s=bTe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let h=fRt(t,s);if(h==-1)return qi("InvalidChar","char '&' is not expected.",Do(t,s));s=h}else if(n===!0&&!ETe(t[s]))return qi("InvalidXml","Extra text at the end",Do(t,s));t[s]==="<"&&s--}}else{if(ETe(t[s]))continue;return qi("InvalidChar","char '"+t[s]+"' is not expected.",Do(t,s))}if(i){if(r.length==1)return qi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Do(t,r[0].tagStartPos));if(r.length>0)return qi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return qi("InvalidXml","Start tag expected.",1);return!0}o(_k,"validate");function ETe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(ETe,"isWhiteSpace");function bTe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return qi("InvalidXml","XML declaration allowed only at the start of the document.",Do(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(bTe,"readPI");function wTe(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(wTe,"readCommentAndCDATA");var oRt='"',aRt="'";function cRt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===oRt||t[e]===aRt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}o(cRt,"readAttributeStr");var uRt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function CTe(t,e){let r=Bk(t,uRt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return qi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",K_(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return qi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",K_(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return qi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",K_(r[n]));let s=r[n][2];if(!hRt(s))return qi("InvalidAttr","Attribute '"+s+"' is an invalid name.",K_(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return qi("InvalidAttr","Attribute '"+s+"' is repeated.",K_(r[n]))}return!0}o(CTe,"validateAttributeString");function lRt(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(lRt,"validateNumberAmpersand");function fRt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,lRt(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(fRt,"validateAmpersand");function qi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(qi,"getErrorObject");function hRt(t){return hW(t)}o(hRt,"validateAttrName");function dRt(t){return hW(t)}o(dRt,"validateTagName");function Do(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Do,"getLineNumberForPosition");function K_(t){return t.startIndex+t[1].length}o(K_,"getPositionFromMatch");var ITe={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"},STe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},BTe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new Sa("!xml"),r=e,i="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,s=new ex(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let l=t.charCodeAt(c+1);if(l===47){let f=Mw(t,">",c,"Closing Tag is not closed."),h=t.substring(c+2,f).trim();if(n.removeNSPrefix){let p=h.indexOf(":");p!==-1&&(h=h.substr(p+1))}h=bW(n.transformTagName,h,"",n).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&n.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",c=f}else if(l===63){let f=wW(t,c,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let h=this.buildAttributesMap(f.tagExp,this.matcher,f.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),s.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&f.tagName==="?xml"||n.ignorePiTags)){let d=new Sa(f.tagName);d.add(n.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,c)}c=f.closeIndex+1}else if(l===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let f=Mw(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let h=t.substring(c+4,f-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:h}])}c=f}else if(l===33&&t.charCodeAt(c+2)===68){let f=s.readDocType(t,c);this.entityDecoder.addInputEntities(f.entities),c=f.i}else if(l===33&&t.charCodeAt(c+2)===91){let f=Mw(t,"]]>",c,"CDATA is not closed.")-2,h=t.substring(c+9,f);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:h}]):r.add(n.textNodeName,d),c=f+2}else{let f=wW(t,c,n.removeNSPrefix);if(!f){let V=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${V}"`)}let h=f.tagName,d=f.rawTagName,p=f.tagExp,A=f.attrExpPresent,y=f.closeIndex;if({tagName:h,tagExp:p}=bW(n.transformTagName,h,p,n),n.strictReservedNames&&(h===n.commentPropName||h===n.cdataPropName||h===n.textNodeName||h===n.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let b=r;b&&n.unpairedTagsSet.has(b.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(E=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),p=h):p=p.substr(0,p.length-1),A=h!==p);let w=null,B={},R;R=QRt(d),h!==e.tagname&&this.matcher.push(h,{},R),h!==p&&A&&(w=this.buildAttributesMap(p,this.matcher,h),w&&(B=kRt(w,n))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=c;if(this.isCurrentNodeStopNode){let V="";if(E)c=f.closeIndex;else if(n.unpairedTagsSet.has(h))c=f.closeIndex;else{let X=this.readStopNodeData(t,d,y+1);if(!X)throw new Error(`Unexpected end of ${d}`);c=X.i,V=X.tagContent}let Q=new Sa(h);w&&(Q[":@"]=w),Q.add(n.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,M)}else{if(E){({tagName:h,tagExp:p}=bW(n.transformTagName,h,p,n));let V=new Sa(h);w&&(V[":@"]=w),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(h)){let V=new Sa(h);w&&(V[":@"]=w),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=f.closeIndex;continue}else{let V=new Sa(h);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),w&&(V[":@"]=w),this.addChild(r,V,this.readonlyMatcher,M),r=V}i="",c=y}}}else i+=t[c];return e.child},"parseXml");function GRt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}o(GRt,"addChild");function HRt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(HRt,"replaceEntitiesValue");function zRt(t,e,r,i){return t&&(i===void 0&&(i=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,i),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(zRt,"saveTextToParentTag");function VRt(){return this.stopNodeExpressionsSet.Line truncated
`;function eTt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(_W(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}o(eTt,"detectXmlVersionFromArray");function VTe(t,e,r,i,n){return!r.sanitizeName||ky(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}o(VTe,"resolveTagName");function vW(t,e){let r="";e.format&&(r=ZRt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?i.push(new gc(c)):c instanceof gc&&i.push(c)}let n=eTt(t,e),s=new Mf;return jTe(t,e,r,s,i,n)}o(vW,"toXml");function jTe(t,e,r,i,n,s){let a="",c=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=BW(u,e),u}return""}for(let u=0;u<t.length;u++){let l=t[u],f=_W(l);if(f===void 0)continue;let d=f===e.textNodeName||f===e.cdataPropName||f===e.commentPropName||f[0]==="?"?f:VTe(f,!1,e,i,s),p=tTt(l[":@"],e);i.push(d,p);let A=iTt(i,n);if(d===e.textNodeName){let B=l[f];A||(B=e.tagValueProcessor(d,B),B=BW(B,e)),c&&(a+=r),a+=B,c=!1,i.pop();continue}else if(d===e.cdataPropName){c&&(a+=r);let B=l[f][0][e.textNodeName],R=Dk(B);a+=`<![CDATA[${R}]]>`,c=!1,i.pop();continue}else if(d===e.commentPropName){let B=l[f][0][e.textNodeName],R=Nk(B);a+=r+`<!--${R}-->`,c=!0,i.pop();continue}else if(d[0]==="?"){let B=zTe(l[":@"],e,A,i,s);a+=(d==="?xml"?"":r)+`<${d}${B}?>`,c=!0,i.pop();continue}let y=r;y!==""&&(y+=e.indentBy);let b=zTe(l[":@"],e,A,i,s),E=r+`<${d}${b}`,w;A?w=$Te(l[f],e):w=jTe(l[f],e,y,i,n,s),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!w||w.length===0)&&e.suppressEmptyNode?a+=E+"/>":w&&w.endsWith(">")?a+=E+`>${w}${r}</${d}>`:(a+=E+">",w&&r!==""&&(w.includes("/>")||w.includes("</"))?a+=r+e.indentBy+w+r:a+=w,a+=`</${d}>`),c=!0,i.pop()}return a}o(jTe,"arrToStr");function tTt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=oA(t[n]),i=!0}return i?r:null}o(tTt,"extractAttributeValues");function $Te(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=_W(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=rTt(n[":@"],e),c=$Te(n[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o($Te,"getRawContent");function rTt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${oA(n)}"`}return r}o(rTt,"attr_to_str_raw");function _W(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}o(_W,"propName");function zTe(t,e,r,i,n){let s="";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:VTe(c,!0,e,i,n),l;r?l=t[a]:(l=e.attributeValueProcessor(a,t[a]),l=BW(l,e)),l===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${oA(l)}"`}return s}o(zTe,"attr_to_str");function iTt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(iTt,"checkStopNode");function BW(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}o(BW,"replaceEntitiesValue");function xW(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(xW,"getIgnoreAttributesFn");var nTt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function va(t){if(this.options=Object.assign({},nTt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Ba,"Builder");function XRt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}o(XRt,"detectXmlVersionFromObj");function CW(t,e,r,i,n){return!r.sanitizeName||Dy(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}o(CW,"resolveTagName");Ba.prototype.build=function(t){if(this.options.preserveOrder)return EW(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mf,r=XRt(t,this.options);return this.j2x(t,0,e,r).val}};Ba.prototype.j2x=function(t,e,r,i){let n="",s="";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 f=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:CW(u,!1,this.options,r,i);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||f===this.options.cdataPropName||f===this.options.commentPropName?s+="":f[0]==="?"?s+=this.indentate(e)+"<"+f+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+f+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],f,"",e,r);else if(typeof t[u]!="object"){let h=this.isAttribute(u);if(h&&!this.ignoreAttributesFn(h,a)){let d=CW(h,!0,this.options,r,i);n+=this.buildAttrPairStr(d,""+t[u],c)}else if(!h)if(u===this.options.textNodeName){let d=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(d)}else{r.push(f);let d=this.checkStopNode(r);if(r.pop(),d){let p=""+t[u];p===""?s+=this.indentate(e)+"<"+f+this.closeTag(f)+this.tagEndChar:s+=this.indentate(e)+"<"+f+">"+p+"</"+f+this.tagEndChar}else s+=this.buildTextValNode(t[u],f,"",e,r)}}else if(Array.isArray(t[u])){let h=t[u].length,d="",p="";for(let A=0;A<h;A++){let y=t[u][A];if(!(typeof y>"u"))if(y===null)f[0]==="?"?s+=this.indentate(e)+"<"+f+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+f+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){r.push(f);let b=this.j2x(y,e+1,r,i);r.pop(),d+=b.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(p+=b.attrStr)}else d+=this.processTextOrObjNode(y,f,e,r,i);else if(this.options.oneListGroup){let b=this.options.tagValueProcessor(f,y);b=this.replaceEntitiesValue(b),d+=b}else{r.push(f);let b=this.checkStopNode(r);if(r.pop(),b){let E=""+y;E===""?d+=this.indentate(e)+"<"+f+this.closeTag(f)+this.tagEndChar:d+=this.indentate(e)+"<"+f+">"+E+"</"+f+this.tagEndChar}else d+=this.buildTextValNode(y,f,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,f,p,e)),s+=d}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let h=Object.keys(t[u]),d=h.length;for(let p=0;p<d;p++){let A=CW(h[p],!0,this.options,r,i);n+=this.buildAttrPairStr(A,""+t[u][h[p]],c)}}else s+=this.processTextOrObjNode(t[u],f,e,r,i)}return{attrStr:n,val:s}};Ba.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+'="'+oA(e)+'"'};function ZRt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let u=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(u,e,l,r)}let c=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,i):this.buildObjectNode(c.val,e,c.attrStr,r)}o(ZRt,"processTextOrObjNode");Ba.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=oA(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=oA(t[i]),r=!0)}return r?e:null};Ba.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(va,"Builder");function sTt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}o(sTt,"detectXmlVersionFromObj");function RW(t,e,r,i,n){return!r.sanitizeName||ky(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}o(RW,"resolveTagName");va.prototype.build=function(t){if(this.options.preserveOrder)return vW(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mf,r=sTt(t,this.options);return this.j2x(t,0,e,r).val}};va.prototype.j2x=function(t,e,r,i){let n="",s="";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 f=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:RW(u,!1,this.options,r,i);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||f===this.options.cdataPropName||f===this.options.commentPropName?s+="":f[0]==="?"?s+=this.indentate(e)+"<"+f+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+f+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],f,"",e,r);else if(typeof t[u]!="object"){let h=this.isAttribute(u);if(h&&!this.ignoreAttributesFn(h,a)){let d=RW(h,!0,this.options,r,i);n+=this.buildAttrPairStr(d,""+t[u],c)}else if(!h)if(u===this.options.textNodeName){let d=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(d)}else{r.push(f);let d=this.checkStopNode(r);if(r.pop(),d){let p=""+t[u];p===""?s+=this.indentate(e)+"<"+f+this.closeTag(f)+this.tagEndChar:s+=this.indentate(e)+"<"+f+">"+p+"</"+f+this.tagEndChar}else s+=this.buildTextValNode(t[u],f,"",e,r)}}else if(Array.isArray(t[u])){let h=t[u].length,d="",p="";for(let A=0;A<h;A++){let y=t[u][A];if(!(typeof y>"u"))if(y===null)f[0]==="?"?s+=this.indentate(e)+"<"+f+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+f+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){r.push(f);let b=this.j2x(y,e+1,r,i);r.pop(),d+=b.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(p+=b.attrStr)}else d+=this.processTextOrObjNode(y,f,e,r,i);else if(this.options.oneListGroup){let b=this.options.tagValueProcessor(f,y);b=this.replaceEntitiesValue(b),d+=b}else{r.push(f);let b=this.checkStopNode(r);if(r.pop(),b){let E=""+y;E===""?d+=this.indentate(e)+"<"+f+this.closeTag(f)+this.tagEndChar:d+=this.indentate(e)+"<"+f+">"+E+"</"+f+this.tagEndChar}else d+=this.buildTextValNode(y,f,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,f,p,e)),s+=d}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let h=Object.keys(t[u]),d=h.length;for(let p=0;p<d;p++){let A=RW(h[p],!0,this.options,r,i);n+=this.buildAttrPairStr(A,""+t[u][h[p]],c)}}else s+=this.processTextOrObjNode(t[u],f,e,r,i)}return{attrStr:n,val:s}};va.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+'="'+oA(e)+'"'};function oTt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let u=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(u,e,l,r)}let c=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,i):this.buildObjectNode(c.val,e,c.attrStr,r)}o(oTt,"processTextOrObjNode");va.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=oA(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=oA(t[i]),r=!0)}return r?e:null};va.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(lt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===lt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(lt.PREFIX_FOR_STORAGE));r.sort((n,s)=>Fk(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,a)=>!(s>0&&n.name.toLowerCase()===a[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=Qk(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=Lk(e.url),s={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let u=c.toLowerCase();s[u]=n[c],a.push(u)}a.sort();for(let c of a)i+=`
${c}:${decodeURIComponent(s[c])}`}return i}};var yi=class extends ky{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new tx(e,r,this)}computeHMACSHA256(e){return(0,HTe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var En=Pf("storage-common");var mu;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(mu||(mu={}));var cA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mu.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},cTt=new hc("The operation was aborted."),rx=class extends Ff{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,i=cA){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:cA.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):cA.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:cA.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:cA.maxRetryDelayInMs):cA.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:cA.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:cA.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=kk(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=aA(n.url,$d.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(En.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,a))return a;r=r||!s&&a.status===404}catch(c){if(En.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,i,a,c))throw c}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return En.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of s)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return En.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(i||n){let a=i?i.status:n?n.statusCode:0;if(!e&&a===404)return En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return En.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(i&&i?.status>=400){let a=i.headers.get(lt.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(En.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case mu.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case mu.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${n}ms`),Mk(n,i,cTt)}};var ix=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new rx(e,r,this.retryOptions)}};var uTt="storageBrowserPolicy";function zTe(){return{name:uTt,async sendRequest(t,e){return lr||((t.method==="GET"||t.method==="HEAD")&&(t.url=aA(t.url,$d.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(lt.COOKIE),t.headers.delete(lt.CONTENT_LENGTH)),e(t)}}}o(zTe,"storageBrowserPolicy");var lTt="StorageCorrectContentLengthPolicy";function VTe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(lt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:lTt,async sendRequest(e,r){return t(e),r(e)}}}o(VTe,"storageCorrectContentLengthPolicy");var fTt="storageRetryPolicy",Lw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:mu.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},hTt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],dTt=new hc("The operation was aborted.");function jTe(t={}){let e=t.retryPolicyType??Lw.retryPolicyType,r=t.maxTries??Lw.maxTries,i=t.retryDelayInMs??Lw.retryDelayInMs,n=t.maxRetryDelayInMs??Lw.maxRetryDelayInMs,s=t.secondaryHost??Lw.secondaryHost,a=t.tryTimeoutInMs??Lw.tryTimeoutInMs;function c({isPrimaryRetry:l,attempt:f,response:h,error:d}){if(f>=r)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(ft.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===ft.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(ft.PREFIX_FOR_STORAGE));r.sort((n,s)=>Hk(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,a)=>!(s>0&&n.name.toLowerCase()===a[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),i}getCanonicalizedResourceString(e){let r=Uk(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=qk(e.url),s={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let u=c.toLowerCase();s[u]=n[c],a.push(u)}a.sort();for(let c of a)i+=`
${c}:${decodeURIComponent(s[c])}`}return i}};var Ei=class extends My{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new sx(e,r,this)}computeHMACSHA256(e){return(0,tNe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var bn=Pf("storage-common");var Au;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Au||(Au={}));var cA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Au.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mTt=new pc("The operation was aborted."),ox=class extends Ff{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,i=cA){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:cA.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):cA.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:cA.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:cA.maxRetryDelayInMs):cA.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:cA.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:cA.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=Fk(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=aA(n.url,Wd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(bn.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,a))return a;r=r||!s&&a.status===404}catch(c){if(bn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,i,a,c))throw c}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return bn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let a of s)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return bn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(i||n){let a=i?i.status:n?n.statusCode:0;if(!e&&a===404)return bn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return bn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(i&&i?.status>=400){let a=i.headers.get(ft.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(bn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Au.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Au.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return bn.info(`RetryPolicy: Delay for ${n}ms`),Gk(n,i,mTt)}};var ax=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new ox(e,r,this.retryOptions)}};var ATt="storageBrowserPolicy";function rNe(){return{name:ATt,async sendRequest(t,e){return lr||((t.method==="GET"||t.method==="HEAD")&&(t.url=aA(t.url,Wd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ft.COOKIE),t.headers.delete(ft.CONTENT_LENGTH)),e(t)}}}o(rNe,"storageBrowserPolicy");var gTt="StorageCorrectContentLengthPolicy";function iNe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ft.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:gTt,async sendRequest(e,r){return t(e),r(e)}}}o(iNe,"storageCorrectContentLengthPolicy");var yTt="storageRetryPolicy",Uw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Au.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ETt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],bTt=new pc("The operation was aborted.");function nNe(t={}){let e=t.retryPolicyType??Uw.retryPolicyType,r=t.maxTries??Uw.maxTries,i=t.retryDelayInMs??Uw.retryDelayInMs,n=t.maxRetryDelayInMs??Uw.maxRetryDelayInMs,s=t.secondaryHost??Uw.secondaryHost,a=t.tryTimeoutInMs??Uw.tryTimeoutInMs;function c({isPrimaryRetry:l,attempt:f,response:h,error:d}){if(f>=r)return Line truncated
`)+`
`+i(s)+n(s),c=(0,$Te.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(lt.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===lt.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function i(s){let a=[];for(let[u,l]of s.headers)u.toLowerCase().startsWith(lt.PREFIX_FOR_STORAGE)&&a.push({name:u,value:l});a.sort((u,l)=>Fk(u.name.toLowerCase(),l.name.toLowerCase())),a=a.filter((u,l,f)=>!(l>0&&u.name.toLowerCase()===f[l-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}o(i,"getCanonicalizedHeadersString");function n(s){let a=Qk(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=Lk(s.url),l={};if(u){let f=[];for(let h in u)if(Object.prototype.hasOwnProperty.call(u,h)){let d=h.toLowerCase();l[d]=u[h],f.push(d)}f.sort();for(let h of f)c+=`
${h}:${decodeURIComponent(l[h])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:pTt,async sendRequest(s,a){return e(s),a(s)}}}o(_W,"storageSharedKeyCredentialPolicy");var mTt="storageRequestFailureDetailsParserPolicy";function WTe(){return{name:mTt,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(WTe,"storageRequestFailureDetailsParserPolicy");var JTe=require("node:crypto");var Uk=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,JTe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var qk="12.31.0",Gk="2026-02-06";var Hk="https://storage.azure.com/.default",Wd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Rl="",xW="*",ATt=1*1024*1024;var gTt=4*ATt;var YTe="AES256",KTe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",XTe=["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"],ZTe=["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"],eNe="BlobUsesCustomerSpecifiedEncryption",tNe="BlobDoesNotUseCustomerSpecifiedEncryption",rNe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Jd(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(Jd,"isPipelineLike");var nx=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 qi(t,e={}){t||(t=new Zr);let r=new nx([],e);return r._credential=t,r}o(qi,"newPipeline");function yTt(t){let e=[ETt,iNe,bTt,wTt,CTt,ITt,BTt];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>STt(n));return{wrappedPolicies:iW(r),afterRetry:i}}}}o(yTt,"processDownlevelPipeline");function RW(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?nW(e):vW(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${qk}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=U_({...r,loggingOptions:{additionalAllowedHeaderNames:XTe,additionalAllowedQueryParameters:ZTe,logger:Tk.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:Rk,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:SW,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:O$}),n.addPolicy(VTe()),n.addPolicy(jTe(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new Pl(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(y2t,"generateBlobSASQueryParameters20150405");function E2t(t,e){if(t=zy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",Hy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ol(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Pl(t.version,a,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(E2t,"generateBlobSASQueryParameters20181109");function b2t(t,e){if(t=zy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",Hy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ol(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Pl(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(b2t,"generateBlobSASQueryParameters20201206");function w2t(t,e){if(t=zy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",Hy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ol(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Pl(t.version,a,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,e.userDelegationKey),stringToSign:s}}o(w2t,"generateBlobSASQueryParametersUDK20181109");function C2t(t,e){if(t=zy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",Hy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ol(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Pl(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(C2t,"generateBlobSASQueryParametersUDK20200210");function I2t(t,e){if(t=zy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",Hy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ol(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Pl(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(I2t,"generateBlobSASQueryParametersUDK20201206");function S2t(t,e){if(t=zy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",Hy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ol(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Pl(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(S2t,"generateBlobSASQueryParametersUDK20250705");function Hy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}o(Hy,"getCanonicalName");function zy(t){let e=t.version?t.version:Gk;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(zy,"SASSignatureValuesSanityCheckAndAutofill");var Ax=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=Rw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Rl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Rl||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 Fe.withSpan("BlobLeaseClient-acquireLease",r,async i=>We(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Rl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Rl||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 Fe.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=We(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Rl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Rl||e.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 Fe.withSpan("BlobLeaseClient-releaseLease",e,async r=>We(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Rl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Rl||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
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"}};Jw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Wy=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"}};Wy.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var vx=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var P1t=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},EK=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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Y(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 o1e(t,e,r){return P1t(this,void 0,void 0,function*(){var i;let n=new kl(t),s=n.getBlockBlobClient(),a=new EK((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),z(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new $Q(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw wr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(o1e,"uploadCacheArchiveSDK");var c1e=U(require("buffer"),1),nh=U(require("fs"),1),u1e=U(require("stream"),1),l1e=U(require("util"),1);var WQ=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function JQ(t){return t?t>=200&&t<300:!1}o(JQ,"isSuccessStatusCode");function k1t(t){return t?t>=500:!0}o(k1t,"isServerErrorStatusCode");function Q1t(t){return t?[gi.BadGateway,gi.ServiceUnavailable,gi.GatewayTimeout].includes(t):!1}o(Q1t,"isRetryableStatusCode");function L1t(t){return WQ(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(L1t,"sleep");function a1e(t,e,r){return WQ(this,arguments,void 0,function*(i,n,s,a=bP,c=wP,u=void 0){let l="",f=1;for(;f<=a;){let h,d,p=!1;try{h=yield n()}catch(A){u&&(h=u(A)),p=!0,l=A.message}if(h&&(d=s(h),!k1t(d)))return h;if(d&&(p=Q1t(d),l=`Cache service responded with ${d}`),z(`${i} - Attempt ${f} of ${a} failed with error: ${l}`),!p){z(`${i} - Error is not retryable`);break}yield L1t(c),f++}throw Error(`${i} failed: ${l}`)})}o(a1e,"retry");function _x(t,e){return WQ(this,arguments,void 0,function*(r,i,n=bP,s=wP){return yield a1e(r,i,a=>a.statusCode,n,s,a=>{if(a instanceof Tf)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(_x,"retryTypedResponse");function Yw(t,e){return WQ(this,arguments,void 0,function*(r,i,n=bP,s=wP){return yield a1e(r,i,a=>a.message.statusCode,n,s)})}o(Yw,"retryHttpClientResponse");var bu=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function M1t(t,e){return bu(this,void 0,void 0,function*(){yield l1e.promisify(u1e.pipeline)(t.message,e)})}o(M1t,"pipeResponseToStream");var YQ=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,z(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])z(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(V1t,"printCachesListForDiagnostics");function IK(t,e,r){return _a(this,void 0,void 0,function*(){let i=new b1e.URL(t),n=p1e(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield h1e(t,e,n):n.concurrentBlobDownloads?yield f1e(t,e,n):yield KQ(t,e):yield KQ(t,e)})}o(IK,"downloadCache");function C1e(t,e,r){return _a(this,void 0,void 0,function*(){let i=CK(),n=bw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield _x("reserveCache",()=>_a(this,void 0,void 0,function*(){return i.postJson(Rx("caches"),s)}))})}o(C1e,"reserveCache");function E1e(t,e){return`bytes ${t}-${e}/*`}o(E1e,"getContentRange");function j1t(t,e,r,i,n){return _a(this,void 0,void 0,function*(){z(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${E1e(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":E1e(i,n)},a=yield Yw(`uploadChunk (start: ${i}, end: ${n})`,()=>_a(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!JQ(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(j1t,"uploadChunk");function $1t(t,e,r,i){return _a(this,void 0,void 0,function*(){let n=Rf(r),s=Rx(`caches/${e.toString()}`),a=Kw.openSync(r,"r"),c=bK(i),u=V9("uploadConcurrency",c.uploadConcurrency),l=V9("uploadChunkSize",c.uploadChunkSize),f=[...new Array(u).keys()];z("Awaiting all uploads");let h=0;try{yield Promise.all(f.map(()=>_a(this,void 0,void 0,function*(){for(;h<n;){let d=Math.min(n-h,l),p=h,A=h+d-1;h+=l,yield j1t(t,s,()=>Kw.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",y=>{throw new Error(`Cache upload failed because file read failed with ${y.message}`)}),p,A)}})))}finally{Kw.closeSync(a)}})}o($1t,"uploadFile");function W1t(t,e,r){return _a(this,void 0,void 0,function*(){let i={size:r};return yield _x("commitCache",()=>_a(this,void 0,void 0,function*(){return t.postJson(Rx(`caches/${e.toString()}`),i)}))})}o(W1t,"commitCache");function SK(t,e,r,i){return _a(this,void 0,void 0,function*(){if(bK(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield o1e(r,e,i)}else{let s=CK();z("Upload cache"),yield $1t(s,t,e,i),z("Commiting cache");let a=Rf(e);Y(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield W1t(s,t,a);if(!JQ(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);Y("Cache saved successfully")}})}o(SK,"saveCache");var ADe=U(uDe(),1),zi=U(Hi(),1),yc=U(Hi(),1),Zy=U(Hi(),1),eE=U(Hi(),1),tE=U(Hi(),1);var yX=U(Hi(),1),EX=U(Hi(),1),dDe=U(Hi(),1),pDe=U(Hi(),1),mDe=U(Hi(),1);var mX=U(Hi(),1),AX=U(Hi(),1),lDe=U(Hi(),1),fDe=U(Hi(),1),hDe=U(Hi(),1);var gX=class extends hDe.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,fDe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,lDe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let f=e.skip(u);l!==!1&&(l===!0?AX.UnknownFieldHandler.onRead:l)(this.typeName,s,c,u,f)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,mX.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,mX.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?AX.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},ML=new gX;var bX=class extends mDe.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>ML,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,pDe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dDe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(ML.internalBinaryRead(e,e.uint32(),i));break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let f=e.skip(u);l!==!1&&(l===!0?EX.UnknownFieldHandler.onRead:l)(this.typeName,s,c,u,f)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!== Line truncated
`));let i=yield kX(r,"create");yield QX(i,t)})}o(MX,"createTar");var pC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Ml=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},dC=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},GL=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function bDe(t){if(!t||t.length===0)throw new Ml("Path Validation Error: At least one directory or file path is required")}o(bDe,"checkPaths");function FX(t){if(t.length>512)throw new Ml(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ml(`Key Validation Error: ${t} cannot contain commas.`)}o(FX,"checkKey");function UX(){return xx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(UX,"isFeatureAvailable");function wDe(t,e,r,i){return pC(this,arguments,void 0,function*(n,s,a,c,u=!1){let l=xx();return z(`Cache service version: ${l}`),bDe(n),l==="v2"?yield uPt(n,s,a,c,u):yield cPt(n,s,a,c,u)})}o(wDe,"restoreCache");function cPt(t,e,r,i){return pC(this,arguments,void 0,function*(n,s,a,c,u=!1){a=a||[];let l=[s,...a];if(z("Resolved Keys:"),z(JSON.stringify(l)),l.length>10)throw new Ml("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)FX(d);let f=yield v_(),h="";try{let d=yield w1e(l,n,{compressionMethod:f,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return Y("Lookup only - skipping download"),d.cacheKey;h=Vx.join(yield S_(),Zm(f)),z(`Archive Path: ${h}`),yield IK(d.archiveLocation,h,c),gy()&&(yield zx(h,f));let p=Rf(h);return Y(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield LX(h,f),Y("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===Ml.name)throw d;p instanceof Tf&&typeof p.statusCode=="number"&&p.statusCode>=500?cw(`Failed to restore: ${d.message}`):wr(`Failed to restore: ${d.message}`)}finally{try{yield B_(h)}catch(d){z(`Failed to delete archive: ${d}`)}}})}o(cPt,"restoreCacheV1");function uPt(t,e,r,i){return pC(this,arguments,void 0,function*(n,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let l=[s,...a];if(z("Resolved Keys:"),z(JSON.stringify(l)),l.length>10)throw new Ml("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)FX(h);let f="";try{let h=PX(),d=yield v_(),p={key:s,restoreKeys:a,version:bw(n,d,u)},A=yield h.GetCacheEntryDownloadURL(p);if(!A.ok){z(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==A.matchedKey?Y(`Cache hit for restore-key: ${A.matchedKey}`):Y(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return Y("Lookup only - skipping download"),A.matchedKey;f=Vx.join(yield S_(),Zm(d)),z(`Archive path: ${f}`),z(`Starting download of archive to: ${f}`),yield IK(A.signedDownloadUrl,f,c);let b=Rf(f);return Y(`Cache Size: ~${Math.round(b/(1024*1024))} MB (${b} B)`),gy()&&(yield zx(f,d)),yield LX(f,d),Y("Cache restored successfully"),A.matchedKey}catch(h){let d=h;if(d.name===Ml.name)throw h;d instanceof Tf&&typeof d.statusCode=="number"&&d.statusCode>=500?cw(`Failed to restore: ${h.message}`):wr(`Failed to restore: ${h.message}`)}finally{try{f&&(yield B_(f))}catch(h){z(`Failed to delete archive: ${h}`)}}})}o(uPt,"restoreCacheV2");function qX(t,e,r){return pC(this,arguments,void 0,function*(i,n,s,a=!1){let c=xx();return z(`Cache service version: ${c}`),bDe(i),FX(n),c==="v2"?yield fPt(i,n,s,a):yield lPt(i,n,s,a)})}o(qX,"saveCache");function lPt(t,e,r){return pC(this,arguments,void 0,function*(i,n,s,a=!1){var c,u,l,f,h;let d=yield v_(),p=-1,A=yield z9(i);if(z("Cache Paths:"),z(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let y=yield S_(),b=Vx.join(y,Zm(d));z(`Archive Path: ${b}`);try{yield MX(y,A,d),gy()&&(yield zx(b,d));let E=10*1024*1024*1024,w=Rf(b);if(z(`File Size: ${w}`),w>E&&!wK())throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`);z("Reserving Cache");let B=yield C1e(n,i,{compressionMethod:d,enableCrossOsArchive:a,cacheSize:w});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)p=(u=B?.result)===null||u===void 0?void 0:u.cacheId;else throw B?.statusCode===400?new Error((f=(l=B?.error)===null||l===void 0?void 0:l.message)!==null&&f!==void 0?f:`Cache size of ~${Math.round(w/(1024*Line truncated
`,a).length:h,l?(c===null?0:c.length)+u.length:0,l?u.length+h:0);return d<p},"__needMoreData"),parse:o(function(i,n,s,a){let{bom:c,comment_no_infix:u,encoding:l,from_line:f,ltrim:h,max_record_size:d,raw:p,relax_quotes:A,rtrim:y,skip_empty_lines:b,to:E,to_line:w}=this.options,{comment:B,escape:R,quote:M,record_delimiter:V}=this.options,{bomSkipped:Q,previousBuf:X,rawBuffer:F,escapeIsQuote:ee}=this.state,j;if(X===void 0)if(i===void 0){a();return}else j=i;else X!==void 0&&i===void 0?j=X:j=Buffer.concat([X,i]);if(Q===!1)if(c===!1)this.state.bomSkipped=!0;else if(j.length<3){if(n===!1){this.state.previousBuf=j;return}}else{for(let me in RC)if(RC[me].compare(j,0,RC[me].length)===0){let Ae=RC[me].length;this.state.bufBytesStart+=Ae,j=j.slice(Ae);let ne=fee({...this.original_options,encoding:me});for(let se in ne)this.options[se]=ne[se];({comment:B,escape:R,quote:M}=this.options);break}this.state.bomSkipped=!0}let ce=j.length,re;for(re=0;re<ce&&!this.__needMoreData(re,ce,n);re++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),w!==-1&&this.info.lines>w){this.state.stop=!0,a();return}this.state.quoting===!1&&V.length===0&&this.__autoDiscoverRecordDelimiter(j,re)&&(V=this.options.record_delimiter);let me=j[re];if(p===!0&&F.append(me),(me===kUt||me===QUt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(j,re,me)&&re+R.length<ce)if(ee){if(this.__isQuote(j,re+R.length)){this.state.escaping=!0,re+=R.length-1;continue}}else{this.state.escaping=!0,re+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(j,re))if(this.state.quoting===!0){let se=j[re+M.length],Be=y&&this.__isCharTrimable(j,re+M.length),ve=B!==null&&this.__compareBytes(B,j,re+M.length,se),ht=this.__isDelimiter(j,re+M.length,se),Nt=V.length===0?this.__autoDiscoverRecordDelimiter(j,re+M.length):this.__isRecordDelimiter(se,j,re+M.length);if(R!==null&&this.__isEscape(j,re,me)&&this.__isQuote(j,re+R.length))re+=R.length-1;else if(!se||ht||Nt||ve||Be){this.state.quoting=!1,this.state.wasQuoting=!0,re+=M.length-1;continue}else if(A===!1){let Qr=this.__error(new er("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(se)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Qr!==void 0)return Qr}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(M),re+=M.length-1}else if(this.state.field.length!==0){if(A===!1){let se=this.__infoField(),Be=Object.keys(RC).map(ht=>RC[ht].equals(this.state.field.toString())?ht:!1).filter(Boolean)[0],ve=this.__error(new er("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(se.column)} at line ${se.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Be?`(${Be} bom)`:void 0],this.options,se,{field:this.state.field}));if(ve!==void 0)return ve}}else{this.state.quoting=!0,re+=M.length-1;continue}if(this.state.quoting===!1){let se=this.__isRecordDelimiter(me,j,re);if(se!==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)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),re+=se-1;continue}if(b===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=se-1;continue}this.info.bytes=this.state.bufBytesStart+re;let ht=this.__onField();if(ht!==void 0)return ht;this.info.bytes=this.state.bufBytesStart+re+se;let Nt=this.__onRecord(s);if(Nt!==void 0)return Nt;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,re+=se-1;continue}if(this.state.commenting)continue;if(B!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,j,re,me)!==0){this.state.commenting=!0;continue}let Be=this.__isDelimiter(j,re,me);if(Be!==0){this.info.bytes=this.state.bufBytesStart+re;let ve=this.__onField();if(ve!==void 0)return ve;re+=Be-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new er("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ae=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(j,re),ne=y===!1||this.state.wasQuoting===!1;if(Ae===!0&&ne===!0)this.state.field.append(me);else{if(y===!0&&!this.__isCharTrimable(j,re))return this.__error(new er("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Ae===!1&&(r Line truncated
`+i(s)+n(s),c=(0,sNe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(ft.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===ft.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function i(s){let a=[];for(let[u,l]of s.headers)u.toLowerCase().startsWith(ft.PREFIX_FOR_STORAGE)&&a.push({name:u,value:l});a.sort((u,l)=>Hk(u.name.toLowerCase(),l.name.toLowerCase())),a=a.filter((u,l,f)=>!(l>0&&u.name.toLowerCase()===f[l-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}o(i,"getCanonicalizedHeadersString");function n(s){let a=Uk(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=qk(s.url),l={};if(u){let f=[];for(let h in u)if(Object.prototype.hasOwnProperty.call(u,h)){let d=h.toLowerCase();l[d]=u[h],f.push(d)}f.sort();for(let h of f)c+=`
${h}:${decodeURIComponent(l[h])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:wTt,async sendRequest(s,a){return e(s),a(s)}}}o(PW,"storageSharedKeyCredentialPolicy");var CTt="storageRequestFailureDetailsParserPolicy";function oNe(){return{name:CTt,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(oNe,"storageRequestFailureDetailsParserPolicy");var aNe=require("node:crypto");var zk=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,aNe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var Vk="12.31.0",jk="2026-02-06";var $k="https://storage.azure.com/.default",Jd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Tl="",kW="*",ITt=1*1024*1024;var STt=4*ITt;var cNe="AES256",uNe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",lNe=["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"],fNe=["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"],hNe="BlobUsesCustomerSpecifiedEncryption",dNe="BlobDoesNotUseCustomerSpecifiedEncryption",pNe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Yd(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(Yd,"isPipelineLike");var cx=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 Gi(t,e={}){t||(t=new ei);let r=new cx([],e);return r._credential=t,r}o(Gi,"newPipeline");function BTt(t){let e=[vTt,mNe,_Tt,xTt,RTt,TTt,DTt];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>NTt(n));return{wrappedPolicies:lW(r),afterRetry:i}}}}o(BTt,"processDownlevelPipeline");function QW(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?fW(e):OW(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${Vk}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=z_({...r,loggingOptions:{additionalAllowedHeaderNames:lNe,additionalAllowedQueryParameters:fNe,logger:Pk.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:Ok,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:NW,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:U$}),n.addPolicy(iNe()),n.addPolicy(nNe(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new kl(t.version,s,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}o(B2t,"generateBlobSASQueryParameters20150405");function v2t(t,e){if(t=$y(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",jy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new kl(t.version,a,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(v2t,"generateBlobSASQueryParameters20181109");function _2t(t,e){if(t=$y(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",jy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Pl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new kl(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(_2t,"generateBlobSASQueryParameters20201206");function x2t(t,e){if(t=$y(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Pl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new kl(t.version,a,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,e.userDelegationKey),stringToSign:s}}o(x2t,"generateBlobSASQueryParametersUDK20181109");function R2t(t,e){if(t=$y(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new kl(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(R2t,"generateBlobSASQueryParametersUDK20200210");function T2t(t,e){if(t=$y(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Pl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new kl(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(T2t,"generateBlobSASQueryParametersUDK20201206");function N2t(t,e){if(t=$y(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=rh.parse(t.permissions.toString()).toString():n=ih.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?fr(t.startsOn,!1):"",t.expiresOn?fr(t.expiresOn,!1):"",jy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?fr(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?fr(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Pl(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new kl(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(N2t,"generateBlobSASQueryParametersUDK20250705");function jy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}o(jy,"getCanonicalName");function $y(t){let e=t.version?t.version:jk;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($y,"SASSignatureValuesSanityCheckAndAutofill");var bx=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=Dw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Tl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Tl||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 Fe.withSpan("BlobLeaseClient-acquireLease",r,async i=>We(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Tl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Tl||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 Fe.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=We(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Tl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Tl||e.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 Fe.withSpan("BlobLeaseClient-releaseLease",e,async r=>We(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Tl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Tl||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
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"}};Xw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ky=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"}};Ky.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Tx=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var q1t=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},vK=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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Y(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 y1e(t,e,r){return q1t(this,void 0,void 0,function*(){var i;let n=new Ql(t),s=n.getBlockBlobClient(),a=new vK((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),z(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new KQ(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw wr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(y1e,"uploadCacheArchiveSDK");var b1e=U(require("buffer"),1),nh=U(require("fs"),1),w1e=U(require("stream"),1),C1e=U(require("util"),1);var XQ=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function ZQ(t){return t?t>=200&&t<300:!1}o(ZQ,"isSuccessStatusCode");function G1t(t){return t?t>=500:!0}o(G1t,"isServerErrorStatusCode");function H1t(t){return t?[yi.BadGateway,yi.ServiceUnavailable,yi.GatewayTimeout].includes(t):!1}o(H1t,"isRetryableStatusCode");function z1t(t){return XQ(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(z1t,"sleep");function E1e(t,e,r){return XQ(this,arguments,void 0,function*(i,n,s,a=SP,c=BP,u=void 0){let l="",f=1;for(;f<=a;){let h,d,p=!1;try{h=yield n()}catch(A){u&&(h=u(A)),p=!0,l=A.message}if(h&&(d=s(h),!G1t(d)))return h;if(d&&(p=H1t(d),l=`Cache service responded with ${d}`),z(`${i} - Attempt ${f} of ${a} failed with error: ${l}`),!p){z(`${i} - Error is not retryable`);break}yield z1t(c),f++}throw Error(`${i} failed: ${l}`)})}o(E1e,"retry");function Nx(t,e){return XQ(this,arguments,void 0,function*(r,i,n=SP,s=BP){return yield E1e(r,i,a=>a.statusCode,n,s,a=>{if(a instanceof Tf)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Nx,"retryTypedResponse");function Zw(t,e){return XQ(this,arguments,void 0,function*(r,i,n=SP,s=BP){return yield E1e(r,i,a=>a.message.statusCode,n,s)})}o(Zw,"retryHttpClientResponse");var wu=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function V1t(t,e){return wu(this,void 0,void 0,function*(){yield C1e.promisify(w1e.pipeline)(t.message,e)})}o(V1t,"pipeResponseToStream");var eL=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,z(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])z(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(X1t,"printCachesListForDiagnostics");function TK(t,e,r){return xa(this,void 0,void 0,function*(){let i=new D1e.URL(t),n=v1e(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield S1e(t,e,n):n.concurrentBlobDownloads?yield I1e(t,e,n):yield tL(t,e):yield tL(t,e)})}o(TK,"downloadCache");function P1e(t,e,r){return xa(this,void 0,void 0,function*(){let i=RK(),n=Iw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield Nx("reserveCache",()=>xa(this,void 0,void 0,function*(){return i.postJson(Ox("caches"),s)}))})}o(P1e,"reserveCache");function N1e(t,e){return`bytes ${t}-${e}/*`}o(N1e,"getContentRange");function Z1t(t,e,r,i,n){return xa(this,void 0,void 0,function*(){z(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${N1e(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":N1e(i,n)},a=yield Zw(`uploadChunk (start: ${i}, end: ${n})`,()=>xa(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!ZQ(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Z1t,"uploadChunk");function eDt(t,e,r,i){return xa(this,void 0,void 0,function*(){let n=Rf(r),s=Ox(`caches/${e.toString()}`),a=eC.openSync(r,"r"),c=_K(i),u=X9("uploadConcurrency",c.uploadConcurrency),l=X9("uploadChunkSize",c.uploadChunkSize),f=[...new Array(u).keys()];z("Awaiting all uploads");let h=0;try{yield Promise.all(f.map(()=>xa(this,void 0,void 0,function*(){for(;h<n;){let d=Math.min(n-h,l),p=h,A=h+d-1;h+=l,yield Z1t(t,s,()=>eC.createReadStream(r,{fd:a,start:p,end:A,autoClose:!1}).on("error",y=>{throw new Error(`Cache upload failed because file read failed with ${y.message}`)}),p,A)}})))}finally{eC.closeSync(a)}})}o(eDt,"uploadFile");function tDt(t,e,r){return xa(this,void 0,void 0,function*(){let i={size:r};return yield Nx("commitCache",()=>xa(this,void 0,void 0,function*(){return t.postJson(Ox(`caches/${e.toString()}`),i)}))})}o(tDt,"commitCache");function NK(t,e,r,i){return xa(this,void 0,void 0,function*(){if(_K(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield y1e(r,e,i)}else{let s=RK();z("Upload cache"),yield eDt(s,t,e,i),z("Commiting cache");let a=Rf(e);Y(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield tDt(s,t,a);if(!ZQ(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);Y("Cache saved successfully")}})}o(NK,"saveCache");var xDe=U(wDe(),1),Vi=U(zi(),1),bc=U(zi(),1),rE=U(zi(),1),iE=U(zi(),1),nE=U(zi(),1);var BX=U(zi(),1),vX=U(zi(),1),BDe=U(zi(),1),vDe=U(zi(),1),_De=U(zi(),1);var CX=U(zi(),1),IX=U(zi(),1),CDe=U(zi(),1),IDe=U(zi(),1),SDe=U(zi(),1);var SX=class extends SDe.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,IDe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,CDe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let f=e.skip(u);l!==!1&&(l===!0?IX.UnknownFieldHandler.onRead:l)(this.typeName,s,c,u,f)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,CX.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,CX.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?IX.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},GL=new SX;var _X=class extends _De.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>GL,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,vDe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,BDe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(GL.internalBinaryRead(e,e.uint32(),i));break;default:let l=i.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let f=e.skip(u);l!==!1&&(l===!0?vX.UnknownFieldHandler.onRead:l)(this.typeName,s,c,u,f)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!== Line truncated
`));let i=yield GX(r,"create");yield HX(i,t)})}o(VX,"createTar");var gC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Fl=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},AC=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},jL=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function DDe(t){if(!t||t.length===0)throw new Fl("Path Validation Error: At least one directory or file path is required")}o(DDe,"checkPaths");function jX(t){if(t.length>512)throw new Fl(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Fl(`Key Validation Error: ${t} cannot contain commas.`)}o(jX,"checkKey");function $X(){return Dx()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o($X,"isFeatureAvailable");function ODe(t,e,r,i){return gC(this,arguments,void 0,function*(n,s,a,c,u=!1){let l=Dx();return z(`Cache service version: ${l}`),DDe(n),l==="v2"?yield APt(n,s,a,c,u):yield mPt(n,s,a,c,u)})}o(ODe,"restoreCache");function mPt(t,e,r,i){return gC(this,arguments,void 0,function*(n,s,a,c,u=!1){a=a||[];let l=[s,...a];if(z("Resolved Keys:"),z(JSON.stringify(l)),l.length>10)throw new Fl("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)jX(d);let f=yield T_(),h="";try{let d=yield O1e(l,n,{compressionMethod:f,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return Y("Lookup only - skipping download"),d.cacheKey;h=Jx.join(yield x_(),Zm(f)),z(`Archive Path: ${h}`),yield TK(d.archiveLocation,h,c),by()&&(yield Wx(h,f));let p=Rf(h);return Y(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield zX(h,f),Y("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===Fl.name)throw d;p instanceof Tf&&typeof p.statusCode=="number"&&p.statusCode>=500?fw(`Failed to restore: ${d.message}`):wr(`Failed to restore: ${d.message}`)}finally{try{yield R_(h)}catch(d){z(`Failed to delete archive: ${d}`)}}})}o(mPt,"restoreCacheV1");function APt(t,e,r,i){return gC(this,arguments,void 0,function*(n,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let l=[s,...a];if(z("Resolved Keys:"),z(JSON.stringify(l)),l.length>10)throw new Fl("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)jX(h);let f="";try{let h=qX(),d=yield T_(),p={key:s,restoreKeys:a,version:Iw(n,d,u)},A=yield h.GetCacheEntryDownloadURL(p);if(!A.ok){z(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==A.matchedKey?Y(`Cache hit for restore-key: ${A.matchedKey}`):Y(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return Y("Lookup only - skipping download"),A.matchedKey;f=Jx.join(yield x_(),Zm(d)),z(`Archive path: ${f}`),z(`Starting download of archive to: ${f}`),yield TK(A.signedDownloadUrl,f,c);let b=Rf(f);return Y(`Cache Size: ~${Math.round(b/(1024*1024))} MB (${b} B)`),by()&&(yield Wx(f,d)),yield zX(f,d),Y("Cache restored successfully"),A.matchedKey}catch(h){let d=h;if(d.name===Fl.name)throw h;d instanceof Tf&&typeof d.statusCode=="number"&&d.statusCode>=500?fw(`Failed to restore: ${h.message}`):wr(`Failed to restore: ${h.message}`)}finally{try{f&&(yield R_(f))}catch(h){z(`Failed to delete archive: ${h}`)}}})}o(APt,"restoreCacheV2");function WX(t,e,r){return gC(this,arguments,void 0,function*(i,n,s,a=!1){let c=Dx();return z(`Cache service version: ${c}`),DDe(i),jX(n),c==="v2"?yield yPt(i,n,s,a):yield gPt(i,n,s,a)})}o(WX,"saveCache");function gPt(t,e,r){return gC(this,arguments,void 0,function*(i,n,s,a=!1){var c,u,l,f,h;let d=yield T_(),p=-1,A=yield K9(i);if(z("Cache Paths:"),z(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let y=yield x_(),b=Jx.join(y,Zm(d));z(`Archive Path: ${b}`);try{yield VX(y,A,d),by()&&(yield Wx(b,d));let E=10*1024*1024*1024,w=Rf(b);if(z(`File Size: ${w}`),w>E&&!xK())throw new Error(`Cache size of ~${Math.round(w/(1024*1024))} MB (${w} B) is over the 10GB limit, not saving cache.`);z("Reserving Cache");let B=yield P1e(n,i,{compressionMethod:d,enableCrossOsArchive:a,cacheSize:w});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)p=(u=B?.result)===null||u===void 0?void 0:u.cacheId;else throw B?.statusCode===400?new Error((f=(l=B?.error)===null||l===void 0?void 0:l.message)!==null&&f!==void 0?f:`Cache size of ~${Math.round(w/(1024*Line truncated
`,a).length:h,l?(c===null?0:c.length)+u.length:0,l?u.length+h:0);return d<p},"__needMoreData"),parse:o(function(i,n,s,a){let{bom:c,comment_no_infix:u,encoding:l,from_line:f,ltrim:h,max_record_size:d,raw:p,relax_quotes:A,rtrim:y,skip_empty_lines:b,to:E,to_line:w}=this.options,{comment:B,escape:R,quote:M,record_delimiter:V}=this.options,{bomSkipped:Q,previousBuf:X,rawBuffer:F,escapeIsQuote:ee}=this.state,j;if(X===void 0)if(i===void 0){a();return}else j=i;else X!==void 0&&i===void 0?j=X:j=Buffer.concat([X,i]);if(Q===!1)if(c===!1)this.state.bomSkipped=!0;else if(j.length<3){if(n===!1){this.state.previousBuf=j;return}}else{for(let me in DC)if(DC[me].compare(j,0,DC[me].length)===0){let Ae=DC[me].length;this.state.bufBytesStart+=Ae,j=j.slice(Ae);let ne=yee({...this.original_options,encoding:me});for(let se in ne)this.options[se]=ne[se];({comment:B,escape:R,quote:M}=this.options);break}this.state.bomSkipped=!0}let ce=j.length,ie;for(ie=0;ie<ce&&!this.__needMoreData(ie,ce,n);ie++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),w!==-1&&this.info.lines>w){this.state.stop=!0,a();return}this.state.quoting===!1&&V.length===0&&this.__autoDiscoverRecordDelimiter(j,ie)&&(V=this.options.record_delimiter);let me=j[ie];if(p===!0&&F.append(me),(me===GUt||me===HUt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(j,ie,me)&&ie+R.length<ce)if(ee){if(this.__isQuote(j,ie+R.length)){this.state.escaping=!0,ie+=R.length-1;continue}}else{this.state.escaping=!0,ie+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(j,ie))if(this.state.quoting===!0){let se=j[ie+M.length],Be=y&&this.__isCharTrimable(j,ie+M.length),ve=B!==null&&this.__compareBytes(B,j,ie+M.length,se),ht=this.__isDelimiter(j,ie+M.length,se),Nt=V.length===0?this.__autoDiscoverRecordDelimiter(j,ie+M.length):this.__isRecordDelimiter(se,j,ie+M.length);if(R!==null&&this.__isEscape(j,ie,me)&&this.__isQuote(j,ie+R.length))ie+=R.length-1;else if(!se||ht||Nt||ve||Be){this.state.quoting=!1,this.state.wasQuoting=!0,ie+=M.length-1;continue}else if(A===!1){let Qr=this.__error(new er("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(se)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Qr!==void 0)return Qr}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(M),ie+=M.length-1}else if(this.state.field.length!==0){if(A===!1){let se=this.__infoField(),Be=Object.keys(DC).map(ht=>DC[ht].equals(this.state.field.toString())?ht:!1).filter(Boolean)[0],ve=this.__error(new er("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(se.column)} at line ${se.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Be?`(${Be} bom)`:void 0],this.options,se,{field:this.state.field}));if(ve!==void 0)return ve}}else{this.state.quoting=!0,ie+=M.length-1;continue}if(this.state.quoting===!1){let se=this.__isRecordDelimiter(me,j,ie);if(se!==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)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),ie+=se-1;continue}if(b===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,ie+=se-1;continue}this.info.bytes=this.state.bufBytesStart+ie;let ht=this.__onField();if(ht!==void 0)return ht;this.info.bytes=this.state.bufBytesStart+ie+se;let Nt=this.__onRecord(s);if(Nt!==void 0)return Nt;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,ie+=se-1;continue}if(this.state.commenting)continue;if(B!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,j,ie,me)!==0){this.state.commenting=!0;continue}let Be=this.__isDelimiter(j,ie,me);if(Be!==0){this.info.bytes=this.state.bufBytesStart+ie;let ve=this.__onField();if(ve!==void 0)return ve;ie+=Be-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new er("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ae=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(j,ie),ne=y===!1||this.state.wasQuoting===!1;if(Ae===!0&&ne===!0)this.state.field.append(me);else{if(y===!0&&!this.__isCharTrimable(j,ie))return this.__error(new er("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Ae===!1&&(i Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let l=0;l<u;l++)if(a[c][l]!==i[n+l])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(i){let{encoding:n,raw:s,skip_records_with_error:a}=this.options,c=typeof i=="string"?new Error(i):i;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(n):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:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Ic=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=RQe(e),n=o(c=>{i.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=i.parse(t,!0,n,s);if(a!==void 0)throw a;return r},"parse");var st=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(ru(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let i=[];if(e=="")return i;let n=Ic(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=ru(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,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 i=await ws("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return TQe.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 i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return hee.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,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+i[n]}static generateRandomString(e=10){return hee.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,i){return NQe.default.compile(e,r)(i)}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 i=fR.default.resolve(e);return fR.default.resolve(r).startsWith(i.endsWith(fR.default.sep)?i:`${i}${fR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,a=[];return i&&a.push(`${i}h`),n&&a.push(`${n}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Vi=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||hR.default.join(DQe.default.homedir(),".docker")}static configFile(){let e=hR.default.join(t.configDir,"config.json");if(dee.default.existsSync(e))return JSON.parse(dee.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ws("docker",!0).then(e=>(z(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(z(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1 Line truncated
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let l=0;l<u;l++)if(a[c][l]!==i[n+l])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(i){let{encoding:n,raw:s,skip_records_with_error:a}=this.options,c=typeof i=="string"?new Error(i):i;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(n):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:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var Bc=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=qQe(e),n=o(c=>{i.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=i.parse(t,!0,n,s);if(a!==void 0)throw a;return r},"parse");var ot=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(iu(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let i=[];if(e=="")return i;let n=Bc(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=iu(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,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 i=await Cs("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return GQe.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 i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return Eee.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,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+i[n]}static generateRandomString(e=10){return Eee.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,i){return HQe.default.compile(e,r)(i)}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 i=mR.default.resolve(e);return mR.default.resolve(r).startsWith(i.endsWith(mR.default.sep)?i:`${i}${mR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,a=[];return i&&a.push(`${i}h`),n&&a.push(`${n}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var ji=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||AR.default.join(zQe.default.homedir(),".docker")}static configFile(){let e=AR.default.join(t.configDir,"config.json");if(bee.default.existsSync(e))return JSON.parse(bee.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Cs("docker",!0).then(e=>(z(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(z(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1 Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(xqt,"_buildMessageForResponseErrors");var Rqt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(xqt(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},Tqt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Nqt=["query","method","url"],ALe=/\/api\/v3\/?$/;function Dqt(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(Nqt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((a,c)=>Tqt.includes(c)?(a[c]=i[c],a):(a.variables||(a.variables={}),a.variables[c]=i[c],a),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return ALe.test(s)&&(n.url=s.replace(ALe,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new Rqt(n,c,a.data)}return a.data.data})}o(Dqt,"graphql");function See(t,e){let r=t.defaults(e);return Object.assign(o((n,s)=>Dqt(r,n,s),"newApi"),{defaults:See.bind(null,r),endpoint:r.endpoint})}o(See,"withDefaults");var iZr=See(AR,{headers:{"user-agent":`octokit-graphql.js/${_qt} ${bA()}`},method:"POST",url:"/graphql"});function gLe(t){return See(t,{method:"POST",url:"/graphql"})}o(gLe,"withCustomRequest");var Bee="(?:[a-zA-Z0-9_-]+)",yLe="\\.",ELe=new RegExp(`^${Bee}${yLe}${Bee}${yLe}${Bee}$`),Oqt=ELe.test.bind(ELe);async function Pqt(t){let e=Oqt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}o(Pqt,"auth");function kqt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(kqt,"withAuthorizationPrefix");async function Qqt(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=kqt(t),e(n)}o(Qqt,"hook");var bLe=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(Pqt.bind(null,e),{hook:Qqt.bind(null,e)})},"createTokenAuth2");var vee="7.0.6";var wLe=o(()=>{},"noop"),Lqt=console.warn.bind(console),Mqt=console.error.bind(console);function Fqt(t={}){return typeof t.debug!="function"&&(t.debug=wLe),typeof t.info!="function"&&(t.info=wLe),typeof t.warn!="function"&&(t.warn=Lqt),typeof t.error!="function"&&(t.error=Mqt),t}o(Fqt,"createLogger");var CLe=`octokit-core.js/${vee} ${bA()}`,OC=class{static{o(this,"Octokit")}static VERSION=vee;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...i){let n=i[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.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(n=>!r.includes(n)))}}constructor(e={}){let r=new JQe.Collection,i={baseUrl:AR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${CLe}`:CLe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=AR.defaults(i),this.graphql=gLe(this.request).defaults(i),this.log=Fqt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=bLe(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var _ee="17.0.0";var Uqt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_nam Line truncated
More info: ${u.url}`);let p=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,A=!1;for(let y of a)if(y.remote||y.path.endsWith(l)&&y.content===f){c.push({title:h,message:d,file:y.path,startLine:p}),A=!0;break}A||z(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}return c}};var Qee=U(require("fs"),1),Lee=U(require("path"),1);var nF=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new or}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await Je.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let h of e.refs){let d=h.split("/");if(d.length!=3)throw new Error(`Invalid build ref: ${h}`);n.push(d[2]),r||(r=d[0]),i||(i=d[1])}if(n.length===0)throw new Error("No build refs provided");let s=Lee.default.join(Gt.tmpDir(),"export");Y(`exporting build record to ${s}`),Qee.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await st.sleep(3);let a={};if(!e.noSummaries)for(let h of n)await this.inspect({ref:h,builder:r}).then(d=>{let p="";d.Error&&d.Status!=="canceled"&&(d.Error.Message?p=d.Error.Message:d.Error.Name&&d.Error.Logs&&(p=`=> ${d.Error.Name}
${d.Error.Logs}`)),a[h]={name:d.Name,status:d.Status,duration:st.formatDuration(d.Duration),numCachedSteps:d.NumCachedSteps,numTotalSteps:d.NumTotalSteps,numCompletedSteps:d.NumCompletedSteps,defaultPlatform:d.Platform?.[0],error:p}});let c=Lee.default.join(s,`${t.exportFilename(n)}.dockerbuild`),u=["--builder",r,"--output",c,...n];await this.buildx.versionSatisfies(">=0.24.0")&&u.push("--finalize");let l=await this.getExportCommand(u);await Je.getExecOutput(l.command,l.args);let f=Qee.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:f.size,builderName:r,nodeName:i,refs:n,summaries:a}}static exportFilename(e){let r=`${vt.context.repo.owner}~${vt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var wje=U(require("fs"),1),Eoe=U(require("path"),1);var DLe=U(require("os"),1);function wR(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(wR,"toCommandValue");function Mee(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Mee,"toCommandProperties");function CR(t,e,r){let i=new Fee(t,e,r);process.stdout.write(i.toString()+DLe.EOL)}o(CR,"issueCommand");var NLe="::",Fee=class{static{o(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=NLe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${n3t(n)}`)}}return e+=`${NLe}${i3t(this.message)}`,e}};function i3t(t){return wR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(i3t,"escapeData");function n3t(t){return wR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(n3t,"escapeProperty");var QLe=U(require("os"),1);var PLe=require("os"),IR=require("fs");var Uee=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},{access:s3t,appendFile:o3t,writeFile:a3t}=IR.promises,OLe="GITHUB_STEP_SUMMARY";var qee=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Uee(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[OLe];if(!e)throw new Error(`Unable to find environment variable for $${OLe}. Check if your runtime environment supports job summaries.`);try{yield s3t(e,IR.constants.R_OK|IR.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,i={}){let n=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return Uee(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?a3t:o3t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Uee(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(PLe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:f}=a,h=c?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),f&&{rowspan:f});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},a=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},wei=new qee;var Gee=U(require("os"),1);var vei=Gee.default.plaLine truncated
`," Line feed \\n"]]),kMe=new Map([...pre,["\\"," Backslash \\"],["/"," Forward slash /"]]);function QMe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of kMe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`)}o(kqt,"_buildMessageForResponseErrors");var Qqt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(kqt(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},Lqt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Mqt=["query","method","url"],xLe=/\/api\/v3\/?$/;function Fqt(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(Mqt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((a,c)=>Lqt.includes(c)?(a[c]=i[c],a):(a.variables||(a.variables={}),a.variables[c]=i[c],a),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return xLe.test(s)&&(n.url=s.replace(xLe,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new Qqt(n,c,a.data)}return a.data.data})}o(Fqt,"graphql");function Nee(t,e){let r=t.defaults(e);return Object.assign(o((n,s)=>Fqt(r,n,s),"newApi"),{defaults:Nee.bind(null,r),endpoint:r.endpoint})}o(Nee,"withDefaults");var lZr=Nee(bR,{headers:{"user-agent":`octokit-graphql.js/${Pqt} ${bA()}`},method:"POST",url:"/graphql"});function RLe(t){return Nee(t,{method:"POST",url:"/graphql"})}o(RLe,"withCustomRequest");var Dee="(?:[a-zA-Z0-9_-]+)",TLe="\\.",NLe=new RegExp(`^${Dee}${TLe}${Dee}${TLe}${Dee}$`),Uqt=NLe.test.bind(NLe);async function qqt(t){let e=Uqt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}o(qqt,"auth");function Gqt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Gqt,"withAuthorizationPrefix");async function Hqt(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=Gqt(t),e(n)}o(Hqt,"hook");var DLe=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(qqt.bind(null,e),{hook:Hqt.bind(null,e)})},"createTokenAuth2");var Oee="7.0.6";var OLe=o(()=>{},"noop"),zqt=console.warn.bind(console),Vqt=console.error.bind(console);function jqt(t={}){return typeof t.debug!="function"&&(t.debug=OLe),typeof t.info!="function"&&(t.info=OLe),typeof t.warn!="function"&&(t.warn=zqt),typeof t.error!="function"&&(t.error=Vqt),t}o(jqt,"createLogger");var PLe=`octokit-core.js/${Oee} ${bA()}`,QC=class{static{o(this,"Octokit")}static VERSION=Oee;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...i){let n=i[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.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(n=>!r.includes(n)))}}constructor(e={}){let r=new aLe.Collection,i={baseUrl:bR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${PLe}`:PLe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=bR.defaults(i),this.graphql=RLe(this.request).defaults(i),this.log=jqt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=DLe(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var Pee="17.0.0";var $qt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_nam Line truncated
More info: ${u.url}`);let p=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,A=!1;for(let y of a)if(y.remote||y.path.endsWith(l)&&y.content===f){c.push({title:h,message:d,file:y.path,startLine:p}),A=!0;break}A||z(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}return c}};var Hee=U(require("fs"),1),zee=U(require("path"),1);var cF=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new or}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await Je.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let h of e.refs){let d=h.split("/");if(d.length!=3)throw new Error(`Invalid build ref: ${h}`);n.push(d[2]),r||(r=d[0]),i||(i=d[1])}if(n.length===0)throw new Error("No build refs provided");let s=zee.default.join(Gt.tmpDir(),"export");Y(`exporting build record to ${s}`),Hee.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await ot.sleep(3);let a={};if(!e.noSummaries)for(let h of n)await this.inspect({ref:h,builder:r}).then(d=>{let p="";d.Error&&d.Status!=="canceled"&&(d.Error.Message?p=d.Error.Message:d.Error.Name&&d.Error.Logs&&(p=`=> ${d.Error.Name}
${d.Error.Logs}`)),a[h]={name:d.Name,status:d.Status,duration:ot.formatDuration(d.Duration),numCachedSteps:d.NumCachedSteps,numTotalSteps:d.NumTotalSteps,numCompletedSteps:d.NumCompletedSteps,defaultPlatform:d.Platform?.[0],error:p}});let c=zee.default.join(s,`${t.exportFilename(n)}.dockerbuild`),u=["--builder",r,"--output",c,...n];await this.buildx.versionSatisfies(">=0.24.0")&&u.push("--finalize");let l=await this.getExportCommand(u);await Je.getExecOutput(l.command,l.args);let f=Hee.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:f.size,builderName:r,nodeName:i,refs:n,summaries:a}}static exportFilename(e){let r=`${vt.context.repo.owner}~${vt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var Oje=U(require("fs"),1),voe=U(require("path"),1);var zLe=U(require("os"),1);function BR(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(BR,"toCommandValue");function Vee(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Vee,"toCommandProperties");function vR(t,e,r){let i=new jee(t,e,r);process.stdout.write(i.toString()+zLe.EOL)}o(vR,"issueCommand");var HLe="::",jee=class{static{o(this,"Command")}constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=HLe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${f3t(n)}`)}}return e+=`${HLe}${l3t(this.message)}`,e}};function l3t(t){return BR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(l3t,"escapeData");function f3t(t){return BR(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(f3t,"escapeProperty");var WLe=U(require("os"),1);var jLe=require("os"),_R=require("fs");var $ee=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},{access:h3t,appendFile:d3t,writeFile:p3t}=_R.promises,VLe="GITHUB_STEP_SUMMARY";var Wee=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return $ee(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[VLe];if(!e)throw new Error(`Unable to find environment variable for $${VLe}. Check if your runtime environment supports job summaries.`);try{yield h3t(e,_R.constants.R_OK|_R.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,i={}){let n=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return $ee(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?p3t:d3t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return $ee(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(jLe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:f}=a,h=c?"th":"td",d=Object.assign(Object.assign({},l&&{colspan:l}),f&&{rowspan:f});return this.wrap(h,u,d)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},a=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},xei=new Wee;var Jee=U(require("os"),1);var Oei=Jee.default.plaLine truncated
`," Line feed \\n"]]),$Me=new Map([...wre,["\\"," Backslash \\"],["/"," Forward slash /"]]);function WMe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of $Me)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(kMe.values()).toString()}
Invalid characters include: ${Array.from($Me.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Ot("Artifact name is valid!")}o(QMe,"validateArtifactName");function mre(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of pre)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Ot("Artifact name is valid!")}o(WMe,"validateArtifactName");function Cre(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of wre)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(pre.values()).toString()}
Invalid characters include: ${Array.from(wre.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}o(mre,"validateFilePath");var UMe=U(FMe(),1);function Ch(){return`@actions/artifact-${UMe.version}`}o(Ch,"getUserAgentString");var XC=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Hl=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},dp=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},BA=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},pp=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
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"}};pp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var AE=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};AE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var jF=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Ih(){let t=oF(),e=iF(t);if(!e.scp)throw jF;let r=e.scp.split(" ");if(r.length===0)throw jF;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw jF;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return bt(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),bt(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw jF}o(Ih,"getBackendIdsFromToken");function qMe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(sF(r),sF(encodeURIComponent(r)))}catch(e){bt(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(qMe,"maskSigUrl");function GMe(t){if(typeof t!="object"||t===null){bt("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&qMe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&qMe(t.signed_url)}o(GMe,"maskSecretUrls");var $F=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Are=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=oF();this.baseUrl=MLe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new tu(e,[new Vm(s)])}request(e,r,i,n){return $F(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;bt(`[Request] ${r} ${s}`);let a={"Content-Type":i};try{let{body:c}=yield this.retryableRequest(()=>$F(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return $F(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),u=c.message.statusCode;n=yield c.readBody(),bt(`[Response] - ${c.message.statusCode}`),bt(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let l=JSON.parse(n);if(GMe(l),bt(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(u))return{response:c,body:l};if(s=this.isRetryableHttpStatusCode(u),i=`Failed request: (${u}) ${c.message.statusMessage}`,l.msg){if(AE.isUsageErrorMessage(l.msg))throw new AE;i=`${i}: ${l.msg}`}}catch(c){if(c instanceof SyntaxError&&bt(`Raw Body: ${n}`),c instanceof AE)throw c;if(pp.isNetworkErrorCode(c?.code))throw new pp(c?.code);s=!0,i=c.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let a=this.getExponentialRetryTimeMilliseconds(r);Ot(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Ln.BadGateway,Ln.GatewayTimeout,Ln.InternalServerError,Ln.ServiceUnavailable,Ln.TooManyRequests].includes(e):!1}sleep(e){return $F(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function Sh(t){let e=new Are(Ch(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new VF(e)}o(Sh,"internalArtifactTwirpClient");var eI=U(require("fs"),1);var ZC=require("path");function HMe(t){if(!eI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!eI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ot("Root directory input is valid!")}o(HMe,"validateRootDirectory");function zMe(t,e){let r=[];e=(0,ZC.normalize)(e),e=(0,ZC.resolve)(e);for(let i of t){let n=eI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");mre(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,ZC.normalize)(i),i=(0,ZC.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");mre(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}re Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);u.length>1&&Rs("Multiple artifacts found, defaulting to first.");let l={workflowRunBackendId:u[0].workflowRunBackendId,workflowJobRunBackendId:u[0].workflowJobRunBackendId,name:u[0].name},{signedUrl:f}=yield i.GetSignedArtifactURL(l);Ot(`Redirecting to blob download url: ${ije(f)}`);try{Ot(`Starting download of artifact to: ${r}`);let h=yield nje(f,r,e?.skipDecompress);Ot("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==h.sha256Digest&&(n=!0,bt(`Computed digest: ${h.sha256Digest}`),bt(`Expected digest: ${e.expectedHash}`))}catch(h){throw new Error(`Unable to download and extract artifact: ${h.message}`)}return{downloadPath:r,digestMismatch:n}})}o(oje,"downloadArtifactInternal");function aje(){return KI(this,arguments,void 0,function*(t=FLe()){return(yield Ntr(t))?bt(`Artifact destination folder already exists: ${t}`):(bt(`Artifact destination folder does not exist, creating: ${t}`),yield Aoe.default.mkdir(t,{recursive:!0})),t})}o(aje,"resolveOrCreateDirectory");var Otr=5,Ptr=[400,401,403,404,422];function XI(t,e=Otr,r=Ptr){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return bt(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}o(XI,"getRetryOptions");var cje="6.0.0";function $E(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${a.status} with id ${c} in ${Date.now()-i}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${a.status} with id ${c} in ${Date.now()-i}ms`),a})})}o($E,"requestLog");$E.VERSION=cje;var fje=U(uje(),1);var ktr="0.0.0-development";function Qtr(t){return t.request!==void 0}o(Qtr,"isRequestError");async function lje(t,e,r,i){if(!Qtr(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}o(lje,"errorRequest");async function Ltr(t,e,r,i){let n=new fje.default;return n.on("failed",function(s,a){let c=~~s.request.request?.retries,u=~~s.request.request?.retryAfter;if(i.request.retryCount=a.retryCount+1,c>a.retryCount)return u*t.retryAfterBaseValue}),n.schedule(Mtr.bind(null,t,e,r),i)}o(Ltr,"wrapRequest");async function Mtr(t,e,r,i){let n=await r(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let s=new up(n.data.errors[0].message,500,{request:i,response:n});return lje(t,e,s,i)}return n}o(Mtr,"requestWithGraphqlErrorHandling");function WE(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:o((n,s,a)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:a}),n),"retryRequest")}};return r.enabled&&(t.hook.error("request",lje.bind(null,r,i)),t.hook.wrap("request",Ltr.bind(null,r,i))),i}o(WE,"retry");WE.VERSION=ktr;var hje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function h3(t,e,r,i,n){return hje(this,void 0,void 0,function*(){var s;let[a,c]=XI(zE),u={log:void 0,userAgent:Ch(),previews:void 0,retry:a,request:c},f=yield jA(n,u,WE,$E).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(f.status!==200)throw new Hl(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(f.data.artifacts.length===0)throw new dp(`Artifact not found for name: ${t}
`)}o(Cre,"validateFilePath");var XMe=U(KMe(),1);function Ch(){return`@actions/artifact-${XMe.version}`}o(Ch,"getUserAgentString");var tI=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},zl=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},pp=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},BA=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},mp=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
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"}};mp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var EE=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};EE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var YF=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Ih(){let t=lF(),e=aF(t);if(!e.scp)throw YF;let r=e.scp.split(" ");if(r.length===0)throw YF;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw YF;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return bt(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),bt(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw YF}o(Ih,"getBackendIdsFromToken");function ZMe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(uF(r),uF(encodeURIComponent(r)))}catch(e){bt(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(ZMe,"maskSigUrl");function eFe(t){if(typeof t!="object"||t===null){bt("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ZMe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ZMe(t.signed_url)}o(eFe,"maskSecretUrls");var KF=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Ire=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=lF();this.baseUrl=YLe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new ru(e,[new Vm(s)])}request(e,r,i,n){return KF(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;bt(`[Request] ${r} ${s}`);let a={"Content-Type":i};try{let{body:c}=yield this.retryableRequest(()=>KF(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return KF(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),u=c.message.statusCode;n=yield c.readBody(),bt(`[Response] - ${c.message.statusCode}`),bt(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let l=JSON.parse(n);if(eFe(l),bt(`Body: ${JSON.stringify(l,null,2)}`),this.isSuccessStatusCode(u))return{response:c,body:l};if(s=this.isRetryableHttpStatusCode(u),i=`Failed request: (${u}) ${c.message.statusMessage}`,l.msg){if(EE.isUsageErrorMessage(l.msg))throw new EE;i=`${i}: ${l.msg}`}}catch(c){if(c instanceof SyntaxError&&bt(`Raw Body: ${n}`),c instanceof EE)throw c;if(mp.isNetworkErrorCode(c?.code))throw new mp(c?.code);s=!0,i=c.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let a=this.getExponentialRetryTimeMilliseconds(r);Ot(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Mn.BadGateway,Mn.GatewayTimeout,Mn.InternalServerError,Mn.ServiceUnavailable,Mn.TooManyRequests].includes(e):!1}sleep(e){return KF(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function Sh(t){let e=new Ire(Ch(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new JF(e)}o(Sh,"internalArtifactTwirpClient");var iI=U(require("fs"),1);var rI=require("path");function tFe(t){if(!iI.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!iI.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ot("Root directory input is valid!")}o(tFe,"validateRootDirectory");function rFe(t,e){let r=[];e=(0,rI.normalize)(e),e=(0,rI.resolve)(e);for(let i of t){let n=iI.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");Cre(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,rI.normalize)(i),i=(0,rI.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");Cre(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}re Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);u.length>1&&Ts("Multiple artifacts found, defaulting to first.");let l={workflowRunBackendId:u[0].workflowRunBackendId,workflowJobRunBackendId:u[0].workflowJobRunBackendId,name:u[0].name},{signedUrl:f}=yield i.GetSignedArtifactURL(l);Ot(`Redirecting to blob download url: ${mje(f)}`);try{Ot(`Starting download of artifact to: ${r}`);let h=yield Aje(f,r,e?.skipDecompress);Ot("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==h.sha256Digest&&(n=!0,bt(`Computed digest: ${h.sha256Digest}`),bt(`Expected digest: ${e.expectedHash}`))}catch(h){throw new Error(`Unable to download and extract artifact: ${h.message}`)}return{downloadPath:r,digestMismatch:n}})}o(yje,"downloadArtifactInternal");function Eje(){return eS(this,arguments,void 0,function*(t=KLe()){return(yield Mtr(t))?bt(`Artifact destination folder already exists: ${t}`):(bt(`Artifact destination folder does not exist, creating: ${t}`),yield Ioe.default.mkdir(t,{recursive:!0})),t})}o(Eje,"resolveOrCreateDirectory");var Utr=5,qtr=[400,401,403,404,422];function tS(t,e=Utr,r=qtr){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return bt(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}o(tS,"getRetryOptions");var bje="6.0.0";function YE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${a.status} with id ${c} in ${Date.now()-i}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${a.status} with id ${c} in ${Date.now()-i}ms`),a})})}o(YE,"requestLog");YE.VERSION=bje;var Ije=U(wje(),1);var Gtr="0.0.0-development";function Htr(t){return t.request!==void 0}o(Htr,"isRequestError");async function Cje(t,e,r,i){if(!Htr(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}o(Cje,"errorRequest");async function ztr(t,e,r,i){let n=new Ije.default;return n.on("failed",function(s,a){let c=~~s.request.request?.retries,u=~~s.request.request?.retryAfter;if(i.request.retryCount=a.retryCount+1,c>a.retryCount)return u*t.retryAfterBaseValue}),n.schedule(Vtr.bind(null,t,e,r),i)}o(ztr,"wrapRequest");async function Vtr(t,e,r,i){let n=await r(i);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let s=new lp(n.data.errors[0].message,500,{request:i,response:n});return Cje(t,e,s,i)}return n}o(Vtr,"requestWithGraphqlErrorHandling");function KE(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:o((n,s,a)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:a}),n),"retryRequest")}};return r.enabled&&(t.hook.error("request",Cje.bind(null,r,i)),t.hook.wrap("request",ztr.bind(null,r,i))),i}o(KE,"retry");KE.VERSION=Gtr;var Sje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function A3(t,e,r,i,n){return Sje(this,void 0,void 0,function*(){var s;let[a,c]=tS($E),u={log:void 0,userAgent:Ch(),previews:void 0,retry:a,request:c},f=yield jA(n,u,KE,YE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(f.status!==200)throw new zl(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(f.data.artifacts.length===0)throw new pp(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let h=f.data.artifacts[0];return f.data.artifacts.length>1&&(h=f.data.artifacts.sort((d,p)=>p.id-d.id)[0],bt(`More than one artifact found for a single name, returning newest (id: ${h.id})`)),{artifact:{name:h.name,id:h.id,size:h.size_in_bytes,createdAt:h.created_at?new Date(h.created_at):void 0,digest:h.digest}}})}o(h3,"getArtifactPublic");function dje(t){return hje(this,void 0,void 0,function*(){var e;let r=Sh(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=Ih(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:un.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new dp(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let h=f.data.artifacts[0];return f.data.artifacts.length>1&&(h=f.data.artifacts.sort((d,p)=>p.id-d.id)[0],bt(`More than one artifact found for a single name, returning newest (id: ${h.id})`)),{artifact:{name:h.name,id:h.id,size:h.size_in_bytes,createdAt:h.created_at?new Date(h.created_at):void 0,digest:h.digest}}})}o(A3,"getArtifactPublic");function Bje(t){return Sje(this,void 0,void 0,function*(){var e;let r=Sh(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=Ih(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:fn.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new pp(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],bt(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Bc.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(dje,"getArtifactInternal");var pje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function mje(t,e,r,i,n){return pje(this,void 0,void 0,function*(){var s;let[a,c]=XI(zE),u={log:void 0,userAgent:Ch(),previews:void 0,retry:a,request:c},l=jA(n,u,WE,$E),f=yield h3(t,e,r,i,n),h=yield l.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:f.artifact.id});if(h.status!==204)throw new Hl(`Invalid response from GitHub API: ${h.status} (${(s=h?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:f.artifact.id}})}o(mje,"deleteArtifactPublic");function Aje(t){return pje(this,void 0,void 0,function*(){let e=Sh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Ih(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:un.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new dp(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((l,f)=>Number(f.databaseId)-Number(l.databaseId))[0],bt(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},u=yield e.DeleteArtifact(c);return Ot(`Artifact '${t}' (ID: ${u.artifactId}) deleted`),{id:Number(u.artifactId)}})}o(Aje,"deleteArtifactInternal");var gje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},d3=GLe(),p3=100,Ftr=Math.ceil(d3/p3);function yje(t,e,r,i){return gje(this,arguments,void 0,function*(n,s,a,c,u=!1){Ot(`Fetching artifact list for workflow run ${n} in repository ${s}/${a}`);let l=[],[f,h]=XI(zE),d={log:void 0,userAgent:Ch(),previews:void 0,retry:f,request:h},p=jA(c,d,WE,$E),A=1,{data:y}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:n,per_page:p3,page:A}),b=Math.ceil(y.total_count/p3),E=y.total_count;E>d3&&(Rs(`Workflow run ${n} has ${E} artifacts, exceeding the limit of ${d3}. Results will be incomplete as only the first ${d3} artifacts will be returned`),b=Ftr);for(let w of y.artifacts)l.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest});for(A++,A;A<=b;A++){bt(`Fetching page ${A} of artifact list`);let{data:w}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:n,per_page:p3,page:A});for(let B of w.artifacts)l.push({name:B.name,id:B.id,size:B.size_in_bytes,createdAt:B.created_at?new Date(B.created_at):void 0,digest:B.digest})}return u&&(l=bje(l)),Ot(`Found ${l.length} artifact(s)`),{artifacts:l}})}o(yje,"listArtifactsPublic");function Eje(){return gje(this,arguments,void 0,function*(t=!1){let e=Sh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Ih(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},a=(yield e.ListArtifacts(n)).artifacts.map(c=>{var u;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Bc.toDate(c.createdAt):void 0,digest:(u=c.digest)===null||u===void 0?void 0:u.value}});return t&&(a=bje(a)),Ot(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(Eje,"listArtifactsInternal");function bje(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}o(bje,"filterLatest");var uN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},Utr=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n Line truncated
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],bt(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?_c.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(Bje,"getArtifactInternal");var vje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})};function _je(t,e,r,i,n){return vje(this,void 0,void 0,function*(){var s;let[a,c]=tS($E),u={log:void 0,userAgent:Ch(),previews:void 0,retry:a,request:c},l=jA(n,u,KE,YE),f=yield A3(t,e,r,i,n),h=yield l.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:f.artifact.id});if(h.status!==204)throw new zl(`Invalid response from GitHub API: ${h.status} (${(s=h?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:f.artifact.id}})}o(_je,"deleteArtifactPublic");function xje(t){return vje(this,void 0,void 0,function*(){let e=Sh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Ih(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:fn.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new pp(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((l,f)=>Number(f.databaseId)-Number(l.databaseId))[0],bt(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},u=yield e.DeleteArtifact(c);return Ot(`Artifact '${t}' (ID: ${u.artifactId}) deleted`),{id:Number(u.artifactId)}})}o(xje,"deleteArtifactInternal");var Rje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},g3=eMe(),y3=100,jtr=Math.ceil(g3/y3);function Tje(t,e,r,i){return Rje(this,arguments,void 0,function*(n,s,a,c,u=!1){Ot(`Fetching artifact list for workflow run ${n} in repository ${s}/${a}`);let l=[],[f,h]=tS($E),d={log:void 0,userAgent:Ch(),previews:void 0,retry:f,request:h},p=jA(c,d,KE,YE),A=1,{data:y}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:n,per_page:y3,page:A}),b=Math.ceil(y.total_count/y3),E=y.total_count;E>g3&&(Ts(`Workflow run ${n} has ${E} artifacts, exceeding the limit of ${g3}. Results will be incomplete as only the first ${g3} artifacts will be returned`),b=jtr);for(let w of y.artifacts)l.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest});for(A++,A;A<=b;A++){bt(`Fetching page ${A} of artifact list`);let{data:w}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:n,per_page:y3,page:A});for(let B of w.artifacts)l.push({name:B.name,id:B.id,size:B.size_in_bytes,createdAt:B.created_at?new Date(B.created_at):void 0,digest:B.digest})}return u&&(l=Dje(l)),Ot(`Found ${l.length} artifact(s)`),{artifacts:l}})}o(Tje,"listArtifactsPublic");function Nje(){return Rje(this,arguments,void 0,function*(t=!1){let e=Sh(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Ih(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},a=(yield e.ListArtifacts(n)).artifacts.map(c=>{var u;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?_c.toDate(c.createdAt):void 0,digest:(u=c.digest)===null||u===void 0?void 0:u.value}});return t&&(a=Dje(a)),Ot(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(Nje,"listArtifactsInternal");function Dje(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}o(Dje,"filterLatest");var dN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return o(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(f){try{l(i.next(f))}catch(h){a(h)}}o(c,"fulfilled");function u(f){try{l(i.throw(f))}catch(h){a(h)}}o(u,"rejected");function l(f){f.done?s(f.value):n(f.value).then(c,u)}o(l,"step"),l((i=i.apply(t,e||[])).next())})},$tr=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n Line truncated
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return uN(this,void 0,void 0,function*(){try{if(PC())throw new BA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,a=Utr(r,["findBy"]);return sje(e,i,n,s,a)}return oje(e,r)}catch(i){throw Rs(`Download Artifact failed with error: ${i}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return dN(this,void 0,void 0,function*(){try{if(LC())throw new BA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,a=$tr(r,["findBy"]);return gje(e,i,n,s,a)}return yje(e,r)}catch(i){throw Ts(`Download Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return uN(this,void 0,void 0,function*(){try{if(PC())throw new BA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return yje(r,i,n,s,e?.latest)}return Eje(e?.latest)}catch(r){throw Rs(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return dN(this,void 0,void 0,function*(){try{if(LC())throw new BA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return Tje(r,i,n,s,e?.latest)}return Nje(e?.latest)}catch(r){throw Ts(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return uN(this,void 0,void 0,function*(){try{if(PC())throw new BA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:a}}=r;return h3(e,i,n,s,a)}return dje(e)}catch(i){throw Rs(`Get Artifact failed with error: ${i}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return dN(this,void 0,void 0,function*(){try{if(LC())throw new BA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:a}}=r;return A3(e,i,n,s,a)}return Bje(e)}catch(i){throw Ts(`Get Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return uN(this,void 0,void 0,function*(){try{if(PC())throw new BA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:a}}=r;return mje(e,s,i,n,a)}return Aje(e)}catch(i){throw Rs(`Delete Artifact failed with error: ${i}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return dN(this,void 0,void 0,function*(){try{if(LC())throw new BA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:a}}=r;return _je(e,s,i,n,a)}return xje(e)}catch(i){throw Ts(`Delete Artifact failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var Whi=new ZI;var m3=class{static{o(this,"GitHubArtifact")}static async upload(e){if(vt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=Eoe.default.basename(e.filename),i=new ZI;Y(`Uploading ${r} as an artifact`);let n=Eoe.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new Hl("Cannot upload artifact");let a=s.size??wje.default.statSync(e.filename).size,c=`${vt.workflowRunURL()}/artifacts/${s.id}`;return Y(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var Hoe=U(Cje(),1);function qtr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(qtr,"getDefaultExportFromCjs");var to={},g3={},YA={},Ije;function fN(){if(Ije)return YA;Ije=1;function t(a){return typeof a>"u"||a===null}o(t,"isNothing");function e(a){return typeof a=="object"&&a!==null}o(e,"isObject");function r(a){return Array.isArray(a)?a:t(a)?[]:[a]}o(r,"toArray");function i(a,c){if(c){let u=Object.keys(c);for(let l=0,f=u.length;l<f;l+=1){let h=u[l];a[h]=c[h]}}return a}o(i,"extend");function n(a,c){let u="";for(let l=0;l<c;l+=1)u+=a;return u}o(n,"repeat");function s(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return o(s,"isNegativeZero"),YA.isNothing=t,YA.isObject=e,YA.toArray=r,YA.repeat=n,YA.isNegativeZero=s,YA.extend=i,YA}o(fN,"requireCommon");var boe,Sje;function hN(){if(Sje)return boe;Sje=1;function t(r,i){let n="",s=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(n+='in "'+r.mark.name+'" '),n+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(n+=`
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var tdi=new rS;var E3=class{static{o(this,"GitHubArtifact")}static async upload(e){if(vt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=voe.default.basename(e.filename),i=new rS;Y(`Uploading ${r} as an artifact`);let n=voe.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new zl("Cannot upload artifact");let a=s.size??Oje.default.statSync(e.filename).size,c=`${vt.workflowRunURL()}/artifacts/${s.id}`;return Y(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var Yoe=U(Pje(),1);function Wtr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}o(Wtr,"getDefaultExportFromCjs");var to={},w3={},YA={},kje;function mN(){if(kje)return YA;kje=1;function t(a){return typeof a>"u"||a===null}o(t,"isNothing");function e(a){return typeof a=="object"&&a!==null}o(e,"isObject");function r(a){return Array.isArray(a)?a:t(a)?[]:[a]}o(r,"toArray");function i(a,c){if(c){let u=Object.keys(c);for(let l=0,f=u.length;l<f;l+=1){let h=u[l];a[h]=c[h]}}return a}o(i,"extend");function n(a,c){let u="";for(let l=0;l<c;l+=1)u+=a;return u}o(n,"repeat");function s(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return o(s,"isNegativeZero"),YA.isNothing=t,YA.isObject=e,YA.toArray=r,YA.repeat=n,YA.isNegativeZero=s,YA.extend=i,YA}o(mN,"requireCommon");var _oe,Qje;function AN(){if(Qje)return _oe;Qje=1;function t(r,i){let n="",s=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(n+='in "'+r.mark.name+'" '),n+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(n+=`
`+r.mark.snippet),s+" "+n):s}o(t,"formatError");function e(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return o(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=o(function(i){return this.name+": "+t(this,i)},"toString"),boe=e,boe}o(hN,"requireException");var woe,Bje;function Gtr(){if(Bje)return woe;Bje=1;let t=fN();function e(n,s,a,c,u){let l="",f="",h=Math.floor(u/2)-1;return c-s>h&&(l=" ... ",s=c-h+l.length),a-c>h&&(f=" ...",a=c+h-f.length),{str:l+n.slice(s,a).replace(/\t/g,"\u2192")+f,pos:c-s+l.length}}o(e,"getLine");function r(n,s){return t.repeat(" ",s-n.length)+n}o(r,"padStart");function i(n,s){if(s=Object.create(s||null),!n.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);let a=/\r?\n|\r|\0/g,c=[0],u=[],l,f=-1;for(;l=a.exec(n.buffer);)u.push(l.index),c.push(l.index+l[0].length),n.position<=l.index&&f<0&&(f=c.length-2);f<0&&(f=c.length-1);let h="",d=Math.min(n.line+s.linesAfter,u.length).toString().length,p=s.maxLength-(s.indent+d+3);for(let y=1;y<=s.linesBefore&&!(f-y<0);y++){let b=e(n.buffer,c[f-y],u[f-y],n.position-(c[f]-c[f-y]),p);h=t.repeat(" ",s.indent)+r((n.line-y+1).toString(),d)+" | "+b.str+`
`+r.mark.snippet),s+" "+n):s}o(t,"formatError");function e(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return o(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=o(function(i){return this.name+": "+t(this,i)},"toString"),_oe=e,_oe}o(AN,"requireException");var xoe,Lje;function Jtr(){if(Lje)return xoe;Lje=1;let t=mN();function e(n,s,a,c,u){let l="",f="",h=Math.floor(u/2)-1;return c-s>h&&(l=" ... ",s=c-h+l.length),a-c>h&&(f=" ...",a=c+h-f.length),{str:l+n.slice(s,a).replace(/\t/g,"\u2192")+f,pos:c-s+l.length}}o(e,"getLine");function r(n,s){return t.repeat(" ",s-n.length)+n}o(r,"padStart");function i(n,s){if(s=Object.create(s||null),!n.buffer)return null;s.maxLength||(s.maxLength=79),typeof s.indent!="number"&&(s.indent=1),typeof s.linesBefore!="number"&&(s.linesBefore=3),typeof s.linesAfter!="number"&&(s.linesAfter=2);let a=/\r?\n|\r|\0/g,c=[0],u=[],l,f=-1;for(;l=a.exec(n.buffer);)u.push(l.index),c.push(l.index+l[0].length),n.position<=l.index&&f<0&&(f=c.length-2);f<0&&(f=c.length-1);let h="",d=Math.min(n.line+s.linesAfter,u.length).toString().length,p=s.maxLength-(s.indent+d+3);for(let y=1;y<=s.linesBefore&&!(f-y<0);y++){let b=e(n.buffer,c[f-y],u[f-y],n.position-(c[f]-c[f-y]),p);h=t.repeat(" ",s.indent)+r((n.line-y+1).toString(),d)+" | "+b.str+`
`+h}let A=e(n.buffer,c[f],u[f],n.position,p);h+=t.repeat(" ",s.indent)+r((n.line+1).toString(),d)+" | "+A.str+`
`,h+=t.repeat("-",s.indent+d+3+A.pos)+`^
`;for(let y=1;y<=s.linesAfter&&!(f+y>=u.length);y++){let b=e(n.buffer,c[f+y],u[f+y],n.position-(c[f]-c[f+y]),p);h+=t.repeat(" ",s.indent)+r((n.line+y+1).toString(),d)+" | "+b.str+`
`}return h.replace(/\n$/,"")}return o(i,"makeSnippet"),woe=i,woe}o(Gtr,"requireSnippet");var Coe,vje;function Jo(){if(vje)return Coe;vje=1;let t=hN(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(s){let a={};return s!==null&&Object.keys(s).forEach(function(c){s[c].forEach(function(u){a[String(u)]=c})}),a}o(i,"compileStyleAliases");function n(s,a){if(a=a||{},Object.keys(a).forEach(function(c){if(e.indexOf(c)===-1)throw new t('Unknown option "'+c+'" is met in definition of "'+s+'" YAML type.')}),this.options=a,this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(c){return c},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return o(n,"Type2"),Coe=n,Coe}o(Jo,"requireType");var Ioe,_je;function Wje(){if(_je)return Ioe;_je=1;let t=hN(),e=Jo();function r(s,a){let c=[];return s[a].forEach(function(u){let l=c.length;c.forEach(function(f,h){f.tag===u.tag&&f.kind===u.kind&&f.multi===u.multi&&(l=h)}),c[l]=u}),c}o(r,"compileList");function i(){let s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(c){c.multi?(s.multi[c.kind].push(c),s.multi.fallback.push(c)):s[c.kind][c.tag]=s.fallback[c.tag]=c}o(a,"collectType");for(let c=0,u=arguments.length;c<u;c+=1)arguments[c].forEach(a);return s}o(i,"compileMap");function n(s){return this.extend(s)}return o(n,"Schema2"),n.prototype.extend=o(function(a){let c=[],u=[];if(a instanceof e)u.push(a);else if(Array.isArray(a))u=u.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(c=c.concat(a.implicit)),a.explicit&&(u=u.concat(a.explicit));else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");c.forEach(function(f){if(!(f instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(f){if(!(f instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(n.prototype);return l.implicit=(this.implicit||[]).concat(c),l.explicit=(this.explicit||[]).concat(u),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=i(l.compiledImplicit,l.compiledExplicit),l},"extend"),Ioe=n,Ioe}o(Wje,"requireSchema");var Soe,xje;function Jje(){if(xje)return Soe;xje=1;let t=Jo();return Soe=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")}),Soe}o(Jje,"requireStr");var Boe,Rje;function Yje(){if(Rje)return Boe;Rje=1;let t=Jo();return Boe=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")}),Boe}o(Yje,"requireSeq");var voe,Tje;function Kje(){if(Tje)return voe;Tje=1;let t=Jo();return voe=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")}),voe}o(Kje,"requireMap");var _oe,Nje;function Xje(){if(Nje)return _oe;Nje=1;let t=Wje();return _oe=new t({explicit:[Jje(),Yje(),Kje()]}),_oe}o(Xje,"requireFailsafe");var xoe,Dje;function Zje(){if(Dje)return xoe;Dje=1;let t=Jo();function e(n){if(n===null)return!0;let s=n.length;return s===1&&n==="~"||s===4&&(n==="null"||n==="Null"||n==="NULL")}o(e,"resolveYamlNull");function r(){return null}o(r,"constructYamlNull");function i(n){return n===null}return o(i,"isNull"),xoe=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:i,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"}),xoe}o(Zje,"require_null");var Roe,Oje;function e9e(){if(Oje)return Roe;Oje=1;let t=Jo();function e(n){if(n===null)return!1;let s=n.length;return s===4&&(n==="true"||n==="True"||n==="TRUE")||s===5&&(n==="false"||n==="False"||n==="FALSE")}o(e,"resolveYamlBoolean");function r(n){return n==="true"||n==="True"||n==="TRUE"}o(r,"constructYamlBoolean");function i(n){return Object.prototype.toString.call(n)==="[object Boolean]"}return o(i,"isBoolean"),Roe=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e, Line truncated
\r`;function r(a){if(a===null)return!1;let c=0,u=a.length,l=e;for(let f=0;f<u;f++){let h=l.indexOf(a.charAt(f));if(!(h>64)){if(h<0)return!1;c+=6}}return c%8===0}o(r,"resolveYamlBinary");function i(a){let c=a.replace(/[\r\n=]/g,""),u=c.length,l=e,f=0,h=[];for(let p=0;p<u;p++)p%4===0&&p&&(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)),f=f<<6|l.indexOf(c.charAt(p));let d=u%4*6;return d===0?(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)):d===18?(h.push(f>>10&255),h.push(f>>2&255)):d===12&&h.push(f>>4&255),new Uint8Array(h)}o(i,"constructYamlBinary");function n(a){let c="",u=0,l=a.length,f=e;for(let d=0;d<l;d++)d%3===0&&d&&(c+=f[u>>18&63],c+=f[u>>12&63],c+=f[u>>6&63],c+=f[u&63]),u=(u<<8)+a[d];let h=l%3;return h===0?(c+=f[u>>18&63],c+=f[u>>12&63],c+=f[u>>6&63],c+=f[u&63]):h===2?(c+=f[u>>10&63],c+=f[u>>4&63],c+=f[u<<2&63],c+=f[64]):h===1&&(c+=f[u>>2&63],c+=f[u<<4&63],c+=f[64],c+=f[64]),c}o(n,"representYamlBinary");function s(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return o(s,"isBinary"),Qoe=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:n}),Qoe}o(a9e,"requireBinary");var Loe,qje;function c9e(){if(qje)return Loe;qje=1;let t=Jo(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(s){if(s===null)return!0;let a=[],c=s;for(let u=0,l=c.length;u<l;u+=1){let f=c[u],h=!1;if(r.call(f)!=="[object Object]")return!1;let d;for(d in f)if(e.call(f,d))if(!h)h=!0;else return!1;if(!h)return!1;if(a.indexOf(d)===-1)a.push(d);else return!1}return!0}o(i,"resolveYamlOmap");function n(s){return s!==null?s:[]}return o(n,"constructYamlOmap"),Loe=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:n}),Loe}o(c9e,"requireOmap");var Moe,Gje;function u9e(){if(Gje)return Moe;Gje=1;let t=Jo(),e=Object.prototype.toString;function r(n){if(n===null)return!0;let s=n,a=new Array(s.length);for(let c=0,u=s.length;c<u;c+=1){let l=s[c];if(e.call(l)!=="[object Object]")return!1;let f=Object.keys(l);if(f.length!==1)return!1;a[c]=[f[0],l[f[0]]]}return!0}o(r,"resolveYamlPairs");function i(n){if(n===null)return[];let s=n,a=new Array(s.length);for(let c=0,u=s.length;c<u;c+=1){let l=s[c],f=Object.keys(l);a[c]=[f[0],l[f[0]]]}return a}return o(i,"constructYamlPairs"),Moe=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),Moe}o(u9e,"requirePairs");var Foe,Hje;function l9e(){if(Hje)return Foe;Hje=1;let t=Jo(),e=Object.prototype.hasOwnProperty;function r(n){if(n===null)return!0;let s=n;for(let a in s)if(e.call(s,a)&&s[a]!==null)return!1;return!0}o(r,"resolveYamlSet");function i(n){return n!==null?n:{}}return o(i,"constructYamlSet"),Foe=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),Foe}o(l9e,"requireSet");var Uoe,zje;function Goe(){return zje||(zje=1,Uoe=n9e().extend({implicit:[s9e(),o9e()],explicit:[a9e(),c9e(),u9e(),l9e()]})),Uoe}o(Goe,"require_default");var Vje;function Htr(){if(Vje)return g3;Vje=1;let t=fN(),e=hN(),r=Gtr(),i=Goe(),n=Object.prototype.hasOwnProperty,s=1,a=2,c=3,u=4,l=1,f=2,h=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,A=/[,\[\]{}]/,y=/^(?:!|!!|![0-9A-Za-z-]+!)$/,b=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function E(g){return Object.prototype.toString.call(g)}o(E,"_class");function w(g){return g===10||g===13}o(w,"isEol");function B(g){return g===9||g===32}o(B,"isWhiteSpace");function R(g){return g===9||g===32||g===10||g===13}o(R,"isWsOrEol");function M(g){return g===44||g===91||g===93||g===123||g===125}o(M,"isFlowIndicator");function V(g){if(g>=48&&g<=57)return g-48;let T=g|32;return T>=97&&T<=102?T-97+10:-1}o(V,"fromHexCode");function Q(g){return g===120?2:g===117?4:g===85?8:0}o(Q,"escapedHexLen");function X(g){return g>=48&&g<=57?g-48:-1}o(X,"fromDecimalCode");function F(g){switch(g){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(F,"simpleEscapeSequence");function ee(g){return g<=65535?String.fromCharCode(g):String.fromCharCode((g-65536>>10)+55296,(g-65536&1023)+56320)}o(ee,"charFromCodepoint");function j(g,T,S){T==="__proto__"?Object.defineProperty(g,T,{configurable:!0,enumerable:!0,writable:!0,value:S}):g[T]=S}o(j,"setProperty");let ce=new Array(256),re=new Array(256);for(let g=0;g<256;g++)ce[g]=F(g)?1:0,re[g]=F(g);function me(g,T){this.input=g,this.filename=T.filename||null,this.schema=T.schema||i,this.onWarning=T.onWarning||null,this.legacy=T.legacy||!1,this.json=T.json||!1,this.listener=T.listener||null,this.maxDepth=typeof T.maxDepth=="number"?T.maxDepth:100,this.maxTotalMergeKeys=typeof T.maxTotalMergeKeys=="number"?T.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=g.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}o(me,"State");function Ae(g,T){let S={name:g.filename,buffer:g.input.slice(0,-1),position:g.position,line:g.line,column:g.position-g.lineStart};return S.snippet=r(S),new e(T,S)}o(Ae,"generateError");function ne(g,T){throw Ae(g,T)}o(ne,"throwError");function se(g,T){g.onWarning&&g.onWarning.call(null,Ae(g,T))}o(se,"throwWarning");function Be(g,T,S){let k=g.anchorMapTransactions;if(k.length!==0){let P=k[k.length-1];n.call(P,T)||(P[T]={existed:n.call(g.anchorMap,T),value:g.anchorMap[T]})}g.anchorMap[T]=S}o(Be,"storeAnchor");function ve(g){g.anchorMapTransactions.push(Object.create(null))}o(ve,"beginAnchorTransaction");function ht(g){let T=g.anchorMapTransactions.pop(),S=g.anchorMapTransactions;if(S.length===0)return;let k=S[S.length-1],P=Object.keys(T);for(let q=0,C=P.length;q<C;q+=1){let L=P[q];n.call(k,L)||(k[L]=T[L])}}o(ht,"commitAnchorTransaction");function Nt(g){let T=g.anchorMapTransactions.pop(),S=Object.keys(T);for(let k=S.length-1;k>=0;k-=1){let P=T[S[k]];P.existed?g.anchorMap[S[k]]=P.value:delete g.anchorMap[S[k]]}}o(Nt,"rollbackAnchorTransaction");function Qr(g){return{position:g.position,line:g.line,lineStart:g.lineStart,lineIndent:g.lineIndent,firstTabInLine:g.firstTabInLine,tag:g.tag,anchor:g.anchor,kind:g.kind,result:g.result}}o(Qr,"snapshotState");function Pi(g,T){g.position=T.position,g.line=T.line,g.lineStart=T.lineStart,g.lineIndent=T.lineIndent,g.firstTabInLine=T.firstTabInLine,g.tag=T.tag,g.anchor=T.anchor,g.kind=T.kind,g.result=T.result}o(Pi,"restoreState");let mn={YAML:o(function(T,S,k){T.version!==null&&ne(T,"duplication of %YAML directive"),k.length!==1&&ne(T,"YAML directive accepts exactly one argument");let P=/^([0-9]+)\.([0-9]+)$/.exec(k[0]);P===null&&ne(T,"ill-formed argument of the YAML directive");let q=parseInt(P[1],10),C=parseInt(P[2],10);q!==1&&ne(T,"unacceptable YAML version of the document"),T.version=k[0],T.checkLineBreaks=C<2,C!==1&&C!==2&&se(T,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(T,S,k){let P;k.length!==2&&ne(T,"TAG directive accepts exactly two arguments");let q=k[0];P=k[1],y.test(q)||ne(T,"ill-formed tag handle (first argument) of the TAG directive"),n.call(T.tagMap,q)&&ne(T,'there is a previously declared suffix for "'+q+'" tag handle'),b.test(P)||ne(T,"ill-formed tag prefix (second argument) of the TAG directive");try{P=decodeURIComponent(P)}catch{ne(T,"tag prefix is malformed: "+P)}T.tagMap[q]=P},"handleTagDirective")};function Qt(g,T,S,k){if(T<S){let P=g.input.slice(T,S);if(k)for(let q=0,C=P.length;q<C;q+=1){let L=P.charCodeAt(q);L===9||L>=32&&L<=1114111||ne(g,"expected valid JSON character")}else d.test(P)&&ne(g,"the stream contains non-printable characters");g.result+=P}}o(Qt,"captureSegment");function rr(g,T,S,k){t.isObject(S)||ne(g,"cannot merge mappings; the provided source object is unacceptable");let P=Object.keys(S);for(let q=0,C=P.length;q<C;q+=1){let L=P[q];g.maxTotalMergeKeys!==-1&&++g.totalMergeKeys>g.maxTotalMergeKeys&&ne(g,"merge keys exceeded maxTotalMergeKeys ("+g.maxTotalMergeKeys+")"),n.call(T,L)||(j(T,L,S[L]),k[L]=!0)}}o(rr,"mergeMappings");function Lr(g,T,S,k,P,q,C,L,Z){if(Array.isArray(P)){P=Array.prototype.slice.call(P);for(let K=0,J=P.length;K<J;K+=1)Array.isArray(P[K])&&ne(g,"nested arrays are not supported inside keys"),typeof P=="object"&&E(P[K])==="[object Object]"&&(P[K]="[object Object]")}if(typeof P=="object"&&E(P)==="[object Object]"&&(P="[object Object]"),P=String(P),T===null&&(T={}),k==="tag:yaml.org,2002:merge")if(Array.isArray(q))for(let K=0,J=q.length;K<J;K+=1)rr(g,T,q[K],S);else rr(g,T,q,S);else!g.json&&!n.call(S,P)&&n.call(T,P)&&(g.line=C||g.line,g.lineStart=L||g.lineStart,g.position=Z||g.position,ne(g,"duplicated mapping key")),j(T Line truncated
`,T-1))}o(ci,"writeFoldedLines");function yo(g,T,S){let k,P,q,C,L,Z,K=g.kind,J=g.result,ue=g.input.charCodeAt(g.position);if(R(ue)||M(ue)||ue===35||ue===38||ue===42||ue===33||ue===124||ue===62||ue===39||ue===34||ue===37||ue===64||ue===96)return!1;if(ue===63||ue===45){let ae=g.input.charCodeAt(g.position+1);if(R(ae)||S&&M(ae))return!1}for(g.kind="scalar",g.result="",k=P=g.position,q=!1;ue!==0;){if(ue===58){let ae=g.input.charCodeAt(g.position+1);if(R(ae)||S&&M(ae))break}else if(ue===35){let ae=g.input.charCodeAt(g.position-1);if(R(ae))break}else{if(g.position===g.lineStart&&ai(g)||S&&M(ue))break;if(w(ue))if(C=g.line,L=g.lineStart,Z=g.lineIndent,jt(g,!1,-1),g.lineIndent>=T){q=!0,ue=g.input.charCodeAt(g.position);continue}else{g.position=P,g.line=C,g.lineStart=L,g.lineIndent=Z;break}}q&&(Qt(g,k,P,!1),ci(g,g.line-C),k=P=g.position,q=!1),B(ue)||(P=g.position+1),ue=g.input.charCodeAt(++g.position)}return Qt(g,k,P,!1),g.result?!0:(g.kind=K,g.result=J,!1)}o(yo,"readPlainScalar");function Eo(g,T){let S,k,P=g.input.charCodeAt(g.position);if(P!==39)return!1;for(g.kind="scalar",g.result="",g.position++,S=k=g.position;(P=g.input.charCodeAt(g.position))!==0;)if(P===39)if(Qt(g,S,g.position,!0),P=g.input.charCodeAt(++g.position),P===39)S=g.position,g.position++,k=g.position;else return!0;else w(P)?(Qt(g,S,k,!0),ci(g,jt(g,!1,T)),S=k=g.position):g.position===g.lineStart&&ai(g)?ne(g,"unexpected end of the document within a single quoted scalar"):(g.position++,B(P)||(k=g.position));ne(g,"unexpected end of the stream within a single quoted scalar")}o(Eo,"readSingleQuotedScalar");function ys(g,T){let S,k,P,q=g.input.charCodeAt(g.position);if(q!==34)return!1;for(g.kind="scalar",g.result="",g.position++,S=k=g.position;(q=g.input.charCodeAt(g.position))!==0;){if(q===34)return Qt(g,S,g.position,!0),g.position++,!0;if(q===92){if(Qt(g,S,g.position,!0),q=g.input.charCodeAt(++g.position),w(q))jt(g,!1,T);else if(q<256&&ce[q])g.result+=re[q],g.position++;else if((P=Q(q))>0){let C=P,L=0;for(;C>0;C--)q=g.input.charCodeAt(++g.position),(P=V(q))>=0?L=(L<<4)+P:ne(g,"expected hexadecimal character");g.result+=ee(L),g.position++}else ne(g,"unknown escape sequence");S=k=g.position}else w(q)?(Qt(g,S,k,!0),ci(g,jt(g,!1,T)),S=k=g.position):g.position===g.lineStart&&ai(g)?ne(g,"unexpected end of the document within a double quoted scalar"):(g.position++,B(q)||(k=g.position))}ne(g,"unexpected end of the stream within a double quoted scalar")}o(ys,"readDoubleQuotedScalar");function ul(g,T){let S=!0,k,P,q,C=g.tag,L,Z=g.anchor,K,J,ue,ae,Se=Object.create(null),ge,Ue,Ve,xt=g.input.charCodeAt(g.position);if(xt===91)K=93,ae=!1,L=[];else if(xt===123)K=125,ae=!0,L={};else return!1;for(g.anchor!==null&&Be(g,g.anchor,L),xt=g.input.charCodeAt(++g.position);xt!==0;){if(jt(g,!0,T),xt=g.input.charCodeAt(g.position),xt===K)return g.position++,g.tag=C,g.anchor=Z,g.kind=ae?"mapping":"sequence",g.result=L,!0;if(S?xt===44&&ne(g,"expected the node content, but found ','"):ne(g,"missed comma between flow collection entries"),Ue=ge=Ve=null,J=ue=!1,xt===63){let dr=g.input.charCodeAt(g.position+1);R(dr)&&(J=ue=!0,g.position++,jt(g,!0,T))}k=g.line,P=g.lineStart,q=g.position,Nn(g,T,s,!1,!0),Ue=g.tag,ge=g.result,jt(g,!0,T),xt=g.input.charCodeAt(g.position),(ue||g.line===k)&&xt===58&&(J=!0,xt=g.input.charCodeAt(++g.position),jt(g,!0,T),Nn(g,T,s,!1,!0),Ve=g.result),ae?Lr(g,L,Se,Ue,ge,Ve,k,P,q):J?L.push(Lr(g,null,Se,Ue,ge,Ve,k,P,q)):L.push(ge),jt(g,!0,T),xt=g.input.charCodeAt(g.position),xt===44?(S=!0,xt=g.input.charCodeAt(++g.position)):S=!1}ne(g,"unexpected end of the stream within a flow collection")}o(ul,"readFlowCollection");function Gc(g,T){let S,k=l,P=!1,q=!1,C=T,L=0,Z=!1,K,J=g.input.charCodeAt(g.position);if(J===124)S=!1;else if(J===62)S=!0;else return!1;for(g.kind="scalar",g.result="";J!==0;)if(J=g.input.charCodeAt(++g.position),J===43||J===45)l===k?k=J===43?h:f:ne(g,"repeat of a chomping mode identifier");else if((K=X(J))>=0)K===0?ne(g,"bad explicit indentation width of a block scalar; it cannot be less than one"):q?ne(g,"repeat of an indentation width identifier"):(C=T+K-1,q=!0);else break;if(B(J)){do J=g.input.charCodeAt(++g.position);while(B(J));if(J===35)do J=g.input.charCodeAt(++g.position);while(!w(J)&&J!==0)}for(;J!==0;){for(Tn(g),g.lineIndent=0,J=g.input.charCodeAt(g.position);(!q||g.lineIndent<C)&&J===32;)g.lineIndent++,J=g.input.charCodeAt(++g.position);if(!q&&g.lineIndent>C&&(C=g.lineIndent),w(J)){L++;continue}if(!q&&C===0&&ne(g,"missing indentation for block scalar"),g.lineIndent<C){k===h?g.result+=t.repeat(`
`}return h.replace(/\n$/,"")}return o(i,"makeSnippet"),xoe=i,xoe}o(Jtr,"requireSnippet");var Roe,Mje;function Yo(){if(Mje)return Roe;Mje=1;let t=AN(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(s){let a={};return s!==null&&Object.keys(s).forEach(function(c){s[c].forEach(function(u){a[String(u)]=c})}),a}o(i,"compileStyleAliases");function n(s,a){if(a=a||{},Object.keys(a).forEach(function(c){if(e.indexOf(c)===-1)throw new t('Unknown option "'+c+'" is met in definition of "'+s+'" YAML type.')}),this.options=a,this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(c){return c},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new t('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return o(n,"Type2"),Roe=n,Roe}o(Yo,"requireType");var Toe,Fje;function o9e(){if(Fje)return Toe;Fje=1;let t=AN(),e=Yo();function r(s,a){let c=[];return s[a].forEach(function(u){let l=c.length;c.forEach(function(f,h){f.tag===u.tag&&f.kind===u.kind&&f.multi===u.multi&&(l=h)}),c[l]=u}),c}o(r,"compileList");function i(){let s={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(c){c.multi?(s.multi[c.kind].push(c),s.multi.fallback.push(c)):s[c.kind][c.tag]=s.fallback[c.tag]=c}o(a,"collectType");for(let c=0,u=arguments.length;c<u;c+=1)arguments[c].forEach(a);return s}o(i,"compileMap");function n(s){return this.extend(s)}return o(n,"Schema2"),n.prototype.extend=o(function(a){let c=[],u=[];if(a instanceof e)u.push(a);else if(Array.isArray(a))u=u.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(c=c.concat(a.implicit)),a.explicit&&(u=u.concat(a.explicit));else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");c.forEach(function(f){if(!(f instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),u.forEach(function(f){if(!(f instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(n.prototype);return l.implicit=(this.implicit||[]).concat(c),l.explicit=(this.explicit||[]).concat(u),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=i(l.compiledImplicit,l.compiledExplicit),l},"extend"),Toe=n,Toe}o(o9e,"requireSchema");var Noe,Uje;function a9e(){if(Uje)return Noe;Uje=1;let t=Yo();return Noe=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")}),Noe}o(a9e,"requireStr");var Doe,qje;function c9e(){if(qje)return Doe;qje=1;let t=Yo();return Doe=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")}),Doe}o(c9e,"requireSeq");var Ooe,Gje;function u9e(){if(Gje)return Ooe;Gje=1;let t=Yo();return Ooe=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")}),Ooe}o(u9e,"requireMap");var Poe,Hje;function l9e(){if(Hje)return Poe;Hje=1;let t=o9e();return Poe=new t({explicit:[a9e(),c9e(),u9e()]}),Poe}o(l9e,"requireFailsafe");var koe,zje;function f9e(){if(zje)return koe;zje=1;let t=Yo();function e(n){if(n===null)return!0;let s=n.length;return s===1&&n==="~"||s===4&&(n==="null"||n==="Null"||n==="NULL")}o(e,"resolveYamlNull");function r(){return null}o(r,"constructYamlNull");function i(n){return n===null}return o(i,"isNull"),koe=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:i,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"}),koe}o(f9e,"require_null");var Qoe,Vje;function h9e(){if(Vje)return Qoe;Vje=1;let t=Yo();function e(n){if(n===null)return!1;let s=n.length;return s===4&&(n==="true"||n==="True"||n==="TRUE")||s===5&&(n==="false"||n==="False"||n==="FALSE")}o(e,"resolveYamlBoolean");function r(n){return n==="true"||n==="True"||n==="TRUE"}o(r,"constructYamlBoolean");function i(n){return Object.prototype.toString.call(n)==="[object Boolean]"}return o(i,"isBoolean"),Qoe=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e, Line truncated
\r`;function r(a){if(a===null)return!1;let c=0,u=a.length,l=e;for(let f=0;f<u;f++){let h=l.indexOf(a.charAt(f));if(!(h>64)){if(h<0)return!1;c+=6}}return c%8===0}o(r,"resolveYamlBinary");function i(a){let c=a.replace(/[\r\n=]/g,""),u=c.length,l=e,f=0,h=[];for(let p=0;p<u;p++)p%4===0&&p&&(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)),f=f<<6|l.indexOf(c.charAt(p));let d=u%4*6;return d===0?(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)):d===18?(h.push(f>>10&255),h.push(f>>2&255)):d===12&&h.push(f>>4&255),new Uint8Array(h)}o(i,"constructYamlBinary");function n(a){let c="",u=0,l=a.length,f=e;for(let d=0;d<l;d++)d%3===0&&d&&(c+=f[u>>18&63],c+=f[u>>12&63],c+=f[u>>6&63],c+=f[u&63]),u=(u<<8)+a[d];let h=l%3;return h===0?(c+=f[u>>18&63],c+=f[u>>12&63],c+=f[u>>6&63],c+=f[u&63]):h===2?(c+=f[u>>10&63],c+=f[u>>4&63],c+=f[u<<2&63],c+=f[64]):h===1&&(c+=f[u>>2&63],c+=f[u<<4&63],c+=f[64],c+=f[64]),c}o(n,"representYamlBinary");function s(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return o(s,"isBinary"),Hoe=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:s,represent:n}),Hoe}o(E9e,"requireBinary");var zoe,Zje;function b9e(){if(Zje)return zoe;Zje=1;let t=Yo(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(s){if(s===null)return!0;let a=[],c=s;for(let u=0,l=c.length;u<l;u+=1){let f=c[u],h=!1;if(r.call(f)!=="[object Object]")return!1;let d;for(d in f)if(e.call(f,d))if(!h)h=!0;else return!1;if(!h)return!1;if(a.indexOf(d)===-1)a.push(d);else return!1}return!0}o(i,"resolveYamlOmap");function n(s){return s!==null?s:[]}return o(n,"constructYamlOmap"),zoe=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:n}),zoe}o(b9e,"requireOmap");var Voe,e9e;function w9e(){if(e9e)return Voe;e9e=1;let t=Yo(),e=Object.prototype.toString;function r(n){if(n===null)return!0;let s=n,a=new Array(s.length);for(let c=0,u=s.length;c<u;c+=1){let l=s[c];if(e.call(l)!=="[object Object]")return!1;let f=Object.keys(l);if(f.length!==1)return!1;a[c]=[f[0],l[f[0]]]}return!0}o(r,"resolveYamlPairs");function i(n){if(n===null)return[];let s=n,a=new Array(s.length);for(let c=0,u=s.length;c<u;c+=1){let l=s[c],f=Object.keys(l);a[c]=[f[0],l[f[0]]]}return a}return o(i,"constructYamlPairs"),Voe=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),Voe}o(w9e,"requirePairs");var joe,t9e;function C9e(){if(t9e)return joe;t9e=1;let t=Yo(),e=Object.prototype.hasOwnProperty;function r(n){if(n===null)return!0;let s=n;for(let a in s)if(e.call(s,a)&&s[a]!==null)return!1;return!0}o(r,"resolveYamlSet");function i(n){return n!==null?n:{}}return o(i,"constructYamlSet"),joe=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),joe}o(C9e,"requireSet");var $oe,r9e;function Joe(){return r9e||(r9e=1,$oe=A9e().extend({implicit:[g9e(),y9e()],explicit:[E9e(),b9e(),w9e(),C9e()]})),$oe}o(Joe,"require_default");var i9e;function Ytr(){if(i9e)return w3;i9e=1;let t=mN(),e=AN(),r=Jtr(),i=Joe(),n=Object.prototype.hasOwnProperty,s=1,a=2,c=3,u=4,l=1,f=2,h=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/[\x85\u2028\u2029]/,A=/[,\[\]{}]/,y=/^(?:!|!!|![0-9A-Za-z-]+!)$/,b=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function E(g){return Object.prototype.toString.call(g)}o(E,"_class");function w(g){return g===10||g===13}o(w,"isEol");function B(g){return g===9||g===32}o(B,"isWhiteSpace");function R(g){return g===9||g===32||g===10||g===13}o(R,"isWsOrEol");function M(g){return g===44||g===91||g===93||g===123||g===125}o(M,"isFlowIndicator");function V(g){if(g>=48&&g<=57)return g-48;let T=g|32;return T>=97&&T<=102?T-97+10:-1}o(V,"fromHexCode");function Q(g){return g===120?2:g===117?4:g===85?8:0}o(Q,"escapedHexLen");function X(g){return g>=48&&g<=57?g-48:-1}o(X,"fromDecimalCode");function F(g){switch(g){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(F,"simpleEscapeSequence");function ee(g){return g<=65535?String.fromCharCode(g):String.fromCharCode((g-65536>>10)+55296,(g-65536&1023)+56320)}o(ee,"charFromCodepoint");function j(g,T,S){T==="__proto__"?Object.defineProperty(g,T,{configurable:!0,enumerable:!0,writable:!0,value:S}):g[T]=S}o(j,"setProperty");let ce=new Array(256),ie=new Array(256);for(let g=0;g<256;g++)ce[g]=F(g)?1:0,ie[g]=F(g);function me(g,T){this.input=g,this.filename=T.filename||null,this.schema=T.schema||i,this.onWarning=T.onWarning||null,this.legacy=T.legacy||!1,this.json=T.json||!1,this.listener=T.listener||null,this.maxDepth=typeof T.maxDepth=="number"?T.maxDepth:100,this.maxTotalMergeKeys=typeof T.maxTotalMergeKeys=="number"?T.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=g.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}o(me,"State");function Ae(g,T){let S={name:g.filename,buffer:g.input.slice(0,-1),position:g.position,line:g.line,column:g.position-g.lineStart};return S.snippet=r(S),new e(T,S)}o(Ae,"generateError");function ne(g,T){throw Ae(g,T)}o(ne,"throwError");function se(g,T){g.onWarning&&g.onWarning.call(null,Ae(g,T))}o(se,"throwWarning");function Be(g,T,S){let k=g.anchorMapTransactions;if(k.length!==0){let P=k[k.length-1];n.call(P,T)||(P[T]={existed:n.call(g.anchorMap,T),value:g.anchorMap[T]})}g.anchorMap[T]=S}o(Be,"storeAnchor");function ve(g){g.anchorMapTransactions.push(Object.create(null))}o(ve,"beginAnchorTransaction");function ht(g){let T=g.anchorMapTransactions.pop(),S=g.anchorMapTransactions;if(S.length===0)return;let k=S[S.length-1],P=Object.keys(T);for(let q=0,C=P.length;q<C;q+=1){let L=P[q];n.call(k,L)||(k[L]=T[L])}}o(ht,"commitAnchorTransaction");function Nt(g){let T=g.anchorMapTransactions.pop(),S=Object.keys(T);for(let k=S.length-1;k>=0;k-=1){let P=T[S[k]];P.existed?g.anchorMap[S[k]]=P.value:delete g.anchorMap[S[k]]}}o(Nt,"rollbackAnchorTransaction");function Qr(g){return{position:g.position,line:g.line,lineStart:g.lineStart,lineIndent:g.lineIndent,firstTabInLine:g.firstTabInLine,tag:g.tag,anchor:g.anchor,kind:g.kind,result:g.result}}o(Qr,"snapshotState");function ki(g,T){g.position=T.position,g.line=T.line,g.lineStart=T.lineStart,g.lineIndent=T.lineIndent,g.firstTabInLine=T.firstTabInLine,g.tag=T.tag,g.anchor=T.anchor,g.kind=T.kind,g.result=T.result}o(ki,"restoreState");let gn={YAML:o(function(T,S,k){T.version!==null&&ne(T,"duplication of %YAML directive"),k.length!==1&&ne(T,"YAML directive accepts exactly one argument");let P=/^([0-9]+)\.([0-9]+)$/.exec(k[0]);P===null&&ne(T,"ill-formed argument of the YAML directive");let q=parseInt(P[1],10),C=parseInt(P[2],10);q!==1&&ne(T,"unacceptable YAML version of the document"),T.version=k[0],T.checkLineBreaks=C<2,C!==1&&C!==2&&se(T,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(T,S,k){let P;k.length!==2&&ne(T,"TAG directive accepts exactly two arguments");let q=k[0];P=k[1],y.test(q)||ne(T,"ill-formed tag handle (first argument) of the TAG directive"),n.call(T.tagMap,q)&&ne(T,'there is a previously declared suffix for "'+q+'" tag handle'),b.test(P)||ne(T,"ill-formed tag prefix (second argument) of the TAG directive");try{P=decodeURIComponent(P)}catch{ne(T,"tag prefix is malformed: "+P)}T.tagMap[q]=P},"handleTagDirective")};function Qt(g,T,S,k){if(T<S){let P=g.input.slice(T,S);if(k)for(let q=0,C=P.length;q<C;q+=1){let L=P.charCodeAt(q);L===9||L>=32&&L<=1114111||ne(g,"expected valid JSON character")}else d.test(P)&&ne(g,"the stream contains non-printable characters");g.result+=P}}o(Qt,"captureSegment");function ir(g,T,S,k){t.isObject(S)||ne(g,"cannot merge mappings; the provided source object is unacceptable");let P=Object.keys(S);for(let q=0,C=P.length;q<C;q+=1){let L=P[q];g.maxTotalMergeKeys!==-1&&++g.totalMergeKeys>g.maxTotalMergeKeys&&ne(g,"merge keys exceeded maxTotalMergeKeys ("+g.maxTotalMergeKeys+")"),n.call(T,L)||(j(T,L,S[L]),k[L]=!0)}}o(ir,"mergeMappings");function Lr(g,T,S,k,P,q,C,L,Z){if(Array.isArray(P)){P=Array.prototype.slice.call(P);for(let K=0,J=P.length;K<J;K+=1)Array.isArray(P[K])&&ne(g,"nested arrays are not supported inside keys"),typeof P=="object"&&E(P[K])==="[object Object]"&&(P[K]="[object Object]")}if(typeof P=="object"&&E(P)==="[object Object]"&&(P="[object Object]"),P=String(P),T===null&&(T={}),k==="tag:yaml.org,2002:merge")if(Array.isArray(q))for(let K=0,J=q.length;K<J;K+=1)ir(g,T,q[K],S);else ir(g,T,q,S);else!g.json&&!n.call(S,P)&&n.call(T,P)&&(g.line=C||g.line,g.lineStart=L||g.lineStart,g.position=Z||g.position,ne(g,"duplicated mapping key")),j(T Line truncated
`,T-1))}o(ui,"writeFoldedLines");function yo(g,T,S){let k,P,q,C,L,Z,K=g.kind,J=g.result,ue=g.input.charCodeAt(g.position);if(R(ue)||M(ue)||ue===35||ue===38||ue===42||ue===33||ue===124||ue===62||ue===39||ue===34||ue===37||ue===64||ue===96)return!1;if(ue===63||ue===45){let ae=g.input.charCodeAt(g.position+1);if(R(ae)||S&&M(ae))return!1}for(g.kind="scalar",g.result="",k=P=g.position,q=!1;ue!==0;){if(ue===58){let ae=g.input.charCodeAt(g.position+1);if(R(ae)||S&&M(ae))break}else if(ue===35){let ae=g.input.charCodeAt(g.position-1);if(R(ae))break}else{if(g.position===g.lineStart&&ci(g)||S&&M(ue))break;if(w(ue))if(C=g.line,L=g.lineStart,Z=g.lineIndent,jt(g,!1,-1),g.lineIndent>=T){q=!0,ue=g.input.charCodeAt(g.position);continue}else{g.position=P,g.line=C,g.lineStart=L,g.lineIndent=Z;break}}q&&(Qt(g,k,P,!1),ui(g,g.line-C),k=P=g.position,q=!1),B(ue)||(P=g.position+1),ue=g.input.charCodeAt(++g.position)}return Qt(g,k,P,!1),g.result?!0:(g.kind=K,g.result=J,!1)}o(yo,"readPlainScalar");function Eo(g,T){let S,k,P=g.input.charCodeAt(g.position);if(P!==39)return!1;for(g.kind="scalar",g.result="",g.position++,S=k=g.position;(P=g.input.charCodeAt(g.position))!==0;)if(P===39)if(Qt(g,S,g.position,!0),P=g.input.charCodeAt(++g.position),P===39)S=g.position,g.position++,k=g.position;else return!0;else w(P)?(Qt(g,S,k,!0),ui(g,jt(g,!1,T)),S=k=g.position):g.position===g.lineStart&&ci(g)?ne(g,"unexpected end of the document within a single quoted scalar"):(g.position++,B(P)||(k=g.position));ne(g,"unexpected end of the stream within a single quoted scalar")}o(Eo,"readSingleQuotedScalar");function Es(g,T){let S,k,P,q=g.input.charCodeAt(g.position);if(q!==34)return!1;for(g.kind="scalar",g.result="",g.position++,S=k=g.position;(q=g.input.charCodeAt(g.position))!==0;){if(q===34)return Qt(g,S,g.position,!0),g.position++,!0;if(q===92){if(Qt(g,S,g.position,!0),q=g.input.charCodeAt(++g.position),w(q))jt(g,!1,T);else if(q<256&&ce[q])g.result+=ie[q],g.position++;else if((P=Q(q))>0){let C=P,L=0;for(;C>0;C--)q=g.input.charCodeAt(++g.position),(P=V(q))>=0?L=(L<<4)+P:ne(g,"expected hexadecimal character");g.result+=ee(L),g.position++}else ne(g,"unknown escape sequence");S=k=g.position}else w(q)?(Qt(g,S,k,!0),ui(g,jt(g,!1,T)),S=k=g.position):g.position===g.lineStart&&ci(g)?ne(g,"unexpected end of the document within a double quoted scalar"):(g.position++,B(q)||(k=g.position))}ne(g,"unexpected end of the stream within a double quoted scalar")}o(Es,"readDoubleQuotedScalar");function ll(g,T){let S=!0,k,P,q,C=g.tag,L,Z=g.anchor,K,J,ue,ae,Se=Object.create(null),ge,Ue,Ve,xt=g.input.charCodeAt(g.position);if(xt===91)K=93,ae=!1,L=[];else if(xt===123)K=125,ae=!0,L={};else return!1;for(g.anchor!==null&&Be(g,g.anchor,L),xt=g.input.charCodeAt(++g.position);xt!==0;){if(jt(g,!0,T),xt=g.input.charCodeAt(g.position),xt===K)return g.position++,g.tag=C,g.anchor=Z,g.kind=ae?"mapping":"sequence",g.result=L,!0;if(S?xt===44&&ne(g,"expected the node content, but found ','"):ne(g,"missed comma between flow collection entries"),Ue=ge=Ve=null,J=ue=!1,xt===63){let dr=g.input.charCodeAt(g.position+1);R(dr)&&(J=ue=!0,g.position++,jt(g,!0,T))}k=g.line,P=g.lineStart,q=g.position,Dn(g,T,s,!1,!0),Ue=g.tag,ge=g.result,jt(g,!0,T),xt=g.input.charCodeAt(g.position),(ue||g.line===k)&&xt===58&&(J=!0,xt=g.input.charCodeAt(++g.position),jt(g,!0,T),Dn(g,T,s,!1,!0),Ve=g.result),ae?Lr(g,L,Se,Ue,ge,Ve,k,P,q):J?L.push(Lr(g,null,Se,Ue,ge,Ve,k,P,q)):L.push(ge),jt(g,!0,T),xt=g.input.charCodeAt(g.position),xt===44?(S=!0,xt=g.input.charCodeAt(++g.position)):S=!1}ne(g,"unexpected end of the stream within a flow collection")}o(ll,"readFlowCollection");function zc(g,T){let S,k=l,P=!1,q=!1,C=T,L=0,Z=!1,K,J=g.input.charCodeAt(g.position);if(J===124)S=!1;else if(J===62)S=!0;else return!1;for(g.kind="scalar",g.result="";J!==0;)if(J=g.input.charCodeAt(++g.position),J===43||J===45)l===k?k=J===43?h:f:ne(g,"repeat of a chomping mode identifier");else if((K=X(J))>=0)K===0?ne(g,"bad explicit indentation width of a block scalar; it cannot be less than one"):q?ne(g,"repeat of an indentation width identifier"):(C=T+K-1,q=!0);else break;if(B(J)){do J=g.input.charCodeAt(++g.position);while(B(J));if(J===35)do J=g.input.charCodeAt(++g.position);while(!w(J)&&J!==0)}for(;J!==0;){for(Nn(g),g.lineIndent=0,J=g.input.charCodeAt(g.position);(!q||g.lineIndent<C)&&J===32;)g.lineIndent++,J=g.input.charCodeAt(++g.position);if(!q&&g.lineIndent>C&&(C=g.lineIndent),w(J)){L++;continue}if(!q&&C===0&&ne(g,"missing indentation for block scalar"),g.lineIndent<C){k===h?g.result+=t.repeat(`
`,P?1+L:L):k===l&&P&&(g.result+=`
`);break}S?B(J)?(Z=!0,g.result+=t.repeat(`
`,P?1+L:L)):Z?(Z=!1,g.result+=t.repeat(`
`,L+1)):L===0?P&&(g.result+=" "):g.result+=t.repeat(`
`,L):g.result+=t.repeat(`
`,P?1+L:L),P=!0,q=!0,L=0;let ue=g.position;for(;!w(J)&&J!==0;)J=g.input.charCodeAt(++g.position);Qt(g,ue,g.position,!1)}return!0}o(Gc,"readBlockScalar");function Es(g,T){let S=g.tag,k=g.anchor,P=[],q=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&Be(g,g.anchor,P);let C=g.input.charCodeAt(g.position);for(;C!==0&&(g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,ne(g,"tab characters must not be used in indentation")),C===45);){let L=g.input.charCodeAt(g.position+1);if(!R(L))break;if(q=!0,g.position++,jt(g,!0,-1)&&g.lineIndent<=T){P.push(null),C=g.input.charCodeAt(g.position);continue}let Z=g.line;if(Nn(g,T,c,!1,!0),P.push(g.result),jt(g,!0,-1),C=g.input.charCodeAt(g.position),(g.line===Z||g.lineIndent>T)&&C!==0)ne(g,"bad indentation of a sequence entry");else if(g.lineIndent<T)break}return q?(g.tag=S,g.anchor=k,g.kind="sequence",g.result=P,!0):!1}o(Es,"readBlockSequence");function ll(g,T,S){let k,P,q,C,L=g.tag,Z=g.anchor,K={},J=Object.create(null),ue=null,ae=null,Se=null,ge=!1,Ue=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&Be(g,g.anchor,K);let Ve=g.input.charCodeAt(g.position);for(;Ve!==0;){!ge&&g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,ne(g,"tab characters must not be used in indentation"));let xt=g.input.charCodeAt(g.position+1),dr=g.line;if((Ve===63||Ve===58)&&R(xt))Ve===63?(ge&&(Lr(g,K,J,ue,ae,null,P,q,C),ue=ae=Se=null),Ue=!0,ge=!0,k=!0):ge?(ge=!1,k=!0):ne(g,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),g.position+=1,Ve=xt;else{if(P=g.line,q=g.lineStart,C=g.position,!Nn(g,S,a,!1,!0))break;if(g.line===dr){for(Ve=g.input.charCodeAt(g.position);B(Ve);)Ve=g.input.charCodeAt(++g.position);if(Ve===58)Ve=g.input.charCodeAt(++g.position),R(Ve)||ne(g,"a whitespace character is expected after the key-value separator within a block mapping"),ge&&(Lr(g,K,J,ue,ae,null,P,q,C),ue=ae=Se=null),Ue=!0,ge=!1,k=!1,ue=g.tag,ae=g.result;else if(Ue)ne(g,"can not read an implicit mapping pair; a colon is missed");else return g.tag=L,g.anchor=Z,!0}else if(Ue)ne(g,"can not read a block mapping entry; a multiline key may not be an implicit key");else return g.tag=L,g.anchor=Z,!0}if((g.line===dr||g.lineIndent>T)&&(ge&&(P=g.line,q=g.lineStart,C=g.position),Nn(g,T,u,!0,k)&&(ge?ae=g.result:Se=g.result),ge||(Lr(g,K,J,ue,ae,Se,P,q,C),ue=ae=Se=null),jt(g,!0,-1),Ve=g.input.charCodeAt(g.position)),(g.line===dr||g.lineIndent>T)&&Ve!==0)ne(g,"bad indentation of a mapping entry");else if(g.lineIndent<T)break}return ge&&Lr(g,K,J,ue,ae,null,P,q,C),Ue&&(g.tag=L,g.anchor=Z,g.kind="mapping",g.result=K),Ue}o(ll,"readBlockMapping");function Hc(g){let T=!1,S=!1,k,P,q=g.input.charCodeAt(g.position);if(q!==33)return!1;g.tag!==null&&ne(g,"duplication of a tag property"),q=g.input.charCodeAt(++g.position),q===60?(T=!0,q=g.input.charCodeAt(++g.position)):q===33?(S=!0,k="!!",q=g.input.charCodeAt(++g.position)):k="!";let C=g.position;if(T){do q=g.input.charCodeAt(++g.position);while(q!==0&&q!==62);g.position<g.length?(P=g.input.slice(C,g.position),q=g.input.charCodeAt(++g.position)):ne(g,"unexpected end of the stream within a verbatim tag")}else{for(;q!==0&&!R(q);)q===33&&(S?ne(g,"tag suffix cannot contain exclamation marks"):(k=g.input.slice(C-1,g.position+1),y.test(k)||ne(g,"named tag handle cannot contain such characters"),S=!0,C=g.position+1)),q=g.input.charCodeAt(++g.position);P=g.input.slice(C,g.position),A.test(P)&&ne(g,"tag suffix cannot contain flow indicator characters")}P&&!b.test(P)&&ne(g,"tag name cannot contain such characters: "+P);try{P=decodeURIComponent(P)}catch{ne(g,"tag name is malformed: "+P)}return T?g.tag=P:n.call(g.tagMap,k)?g.tag=g.tagMap[k]+P:k==="!"?g.tag="!"+P:k==="!!"?g.tag="tag:yaml.org,2002:"+P:ne(g,'undeclared tag handle "'+k+'"'),!0}o(Hc,"readTagProperty");function fl(g){let T=g.input.charCodeAt(g.position);if(T!==38)return!1;g.anchor!==null&&ne(g,"duplication of an anchor property"),T=g.input.charCodeAt(++g.position);let S=g.position;for(;T!==0&&!R(T)&&!M(T);)T=g.input.charCodeAt(++g.position);return g.position===S&&ne(g,"name of an anchor node must contain at least one character"),g.anchor=g.input.slice(S,g.position),!0}o(fl,"readAnchorProperty");function zc(g){let T=g.input.charCodeAt(g.position);if(T!==42)return!1;T=g.input.charCodeAt(++g.position);let S=g.position;for(;T!==0&&!R(T)&&!M(T);)T=g.input.charCodeAt(++g.position);g.position===S&&ne(g,"name of an alias node must contain at least one character");let k=g.input.slice(S,g.position);return n.call(g.anchorMap,k)||ne(g,'unidentified alias "'+k+'"'),g.result=g.anchorMap[k],jt(g,!0,-1),!0}o(zc,"readAlias");function Vc(g,T,S,k){let P=Qr(g);return ve(g),Pi(g,T),g.tag=null,g.anchor=null,g.kind=null,g.result=null,ll(g,S,k)&&g.kind==="mapping"?(ht(g),!0):(Nt(g),Pi(g,P),!1)}o(Vc,"tryReadBlockMappingFromProperty");function Nn(g,T,S,k,P){let q,C,L=1,Z=!1,K=!1,J=null,ue,ae,Se;g.depth>=g.maxDepth&&ne(g,"nesting exceeded maxDepth ("+g.maxDepth+")"),g.depth+=1,g.listener!==null&&g.listener("open",g Line truncated
`),g.charCodeAt(0)===65279&&(g=g.slice(1)));let S=new me(g,T),k=g.indexOf("\0");for(k!==-1&&(S.position=k,ne(S,"null byte is not allowed in input")),S.input+="\0";S.input.charCodeAt(S.position)===32;)S.lineIndent+=1,S.position+=1;for(;S.position<S.length-1;)An(S);return S.documents}o(hl,"loadDocuments");function Dn(g,T,S){T!==null&&typeof T=="object"&&typeof S>"u"&&(S=T,T=null);let k=hl(g,S);if(typeof T!="function")return k;for(let P=0,q=k.length;P<q;P+=1)T(k[P])}o(Dn,"loadAll2");function dl(g,T){let S=hl(g,T);if(S.length!==0){if(S.length===1)return S[0];throw new e("expected a single document in the stream, but found more")}}return o(dl,"load2"),g3.loadAll=Dn,g3.load=dl,g3}o(Htr,"requireLoader");var qoe={},jje;function ztr(){if(jje)return qoe;jje=1;let t=fN(),e=hN(),r=Goe(),i=Object.prototype.toString,n=Object.prototype.hasOwnProperty,s=65279,a=9,c=10,u=13,l=32,f=33,h=34,d=35,p=37,A=38,y=39,b=42,E=44,w=45,B=58,R=61,M=62,V=63,Q=64,X=91,F=93,ee=96,j=123,ce=124,re=125,me={};me[0]="\\0",me[7]="\\a",me[8]="\\b",me[9]="\\t",me[10]="\\n",me[11]="\\v",me[12]="\\f",me[13]="\\r",me[27]="\\e",me[34]='\\"',me[92]="\\\\",me[133]="\\N",me[160]="\\_",me[8232]="\\L",me[8233]="\\P";let Ae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ne=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function se(C,L){if(L===null)return{};let Z={},K=Object.keys(L);for(let J=0,ue=K.length;J<ue;J+=1){let ae=K[J],Se=String(L[ae]);ae.slice(0,2)==="!!"&&(ae="tag:yaml.org,2002:"+ae.slice(2));let ge=C.compiledTypeMap.fallback[ae];ge&&n.call(ge.styleAliases,Se)&&(Se=ge.styleAliases[Se]),Z[ae]=Se}return Z}o(se,"compileStyleMap");function Be(C){let L,Z,K=C.toString(16).toUpperCase();if(C<=255)L="x",Z=2;else if(C<=65535)L="u",Z=4;else if(C<=4294967295)L="U",Z=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+L+t.repeat("0",Z-K.length)+K}o(Be,"encodeHex");let ve=1,ht=2;function Nt(C){this.schema=C.schema||r,this.indent=Math.max(1,C.indent||2),this.noArrayIndent=C.noArrayIndent||!1,this.skipInvalid=C.skipInvalid||!1,this.flowLevel=t.isNothing(C.flowLevel)?-1:C.flowLevel,this.styleMap=se(this.schema,C.styles||null),this.sortKeys=C.sortKeys||!1,this.lineWidth=C.lineWidth||80,this.noRefs=C.noRefs||!1,this.noCompatMode=C.noCompatMode||!1,this.condenseFlow=C.condenseFlow||!1,this.quotingType=C.quotingType==='"'?ht:ve,this.forceQuotes=C.forceQuotes||!1,this.replacer=typeof C.replacer=="function"?C.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(Nt,"State");function Qr(C,L){let Z=t.repeat(" ",L),K=0,J="",ue=C.length;for(;K<ue;){let ae,Se=C.indexOf(`
`,P?1+L:L),P=!0,q=!0,L=0;let ue=g.position;for(;!w(J)&&J!==0;)J=g.input.charCodeAt(++g.position);Qt(g,ue,g.position,!1)}return!0}o(zc,"readBlockScalar");function bs(g,T){let S=g.tag,k=g.anchor,P=[],q=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&Be(g,g.anchor,P);let C=g.input.charCodeAt(g.position);for(;C!==0&&(g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,ne(g,"tab characters must not be used in indentation")),C===45);){let L=g.input.charCodeAt(g.position+1);if(!R(L))break;if(q=!0,g.position++,jt(g,!0,-1)&&g.lineIndent<=T){P.push(null),C=g.input.charCodeAt(g.position);continue}let Z=g.line;if(Dn(g,T,c,!1,!0),P.push(g.result),jt(g,!0,-1),C=g.input.charCodeAt(g.position),(g.line===Z||g.lineIndent>T)&&C!==0)ne(g,"bad indentation of a sequence entry");else if(g.lineIndent<T)break}return q?(g.tag=S,g.anchor=k,g.kind="sequence",g.result=P,!0):!1}o(bs,"readBlockSequence");function fl(g,T,S){let k,P,q,C,L=g.tag,Z=g.anchor,K={},J=Object.create(null),ue=null,ae=null,Se=null,ge=!1,Ue=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&Be(g,g.anchor,K);let Ve=g.input.charCodeAt(g.position);for(;Ve!==0;){!ge&&g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,ne(g,"tab characters must not be used in indentation"));let xt=g.input.charCodeAt(g.position+1),dr=g.line;if((Ve===63||Ve===58)&&R(xt))Ve===63?(ge&&(Lr(g,K,J,ue,ae,null,P,q,C),ue=ae=Se=null),Ue=!0,ge=!0,k=!0):ge?(ge=!1,k=!0):ne(g,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),g.position+=1,Ve=xt;else{if(P=g.line,q=g.lineStart,C=g.position,!Dn(g,S,a,!1,!0))break;if(g.line===dr){for(Ve=g.input.charCodeAt(g.position);B(Ve);)Ve=g.input.charCodeAt(++g.position);if(Ve===58)Ve=g.input.charCodeAt(++g.position),R(Ve)||ne(g,"a whitespace character is expected after the key-value separator within a block mapping"),ge&&(Lr(g,K,J,ue,ae,null,P,q,C),ue=ae=Se=null),Ue=!0,ge=!1,k=!1,ue=g.tag,ae=g.result;else if(Ue)ne(g,"can not read an implicit mapping pair; a colon is missed");else return g.tag=L,g.anchor=Z,!0}else if(Ue)ne(g,"can not read a block mapping entry; a multiline key may not be an implicit key");else return g.tag=L,g.anchor=Z,!0}if((g.line===dr||g.lineIndent>T)&&(ge&&(P=g.line,q=g.lineStart,C=g.position),Dn(g,T,u,!0,k)&&(ge?ae=g.result:Se=g.result),ge||(Lr(g,K,J,ue,ae,Se,P,q,C),ue=ae=Se=null),jt(g,!0,-1),Ve=g.input.charCodeAt(g.position)),(g.line===dr||g.lineIndent>T)&&Ve!==0)ne(g,"bad indentation of a mapping entry");else if(g.lineIndent<T)break}return ge&&Lr(g,K,J,ue,ae,null,P,q,C),Ue&&(g.tag=L,g.anchor=Z,g.kind="mapping",g.result=K),Ue}o(fl,"readBlockMapping");function Vc(g){let T=!1,S=!1,k,P,q=g.input.charCodeAt(g.position);if(q!==33)return!1;g.tag!==null&&ne(g,"duplication of a tag property"),q=g.input.charCodeAt(++g.position),q===60?(T=!0,q=g.input.charCodeAt(++g.position)):q===33?(S=!0,k="!!",q=g.input.charCodeAt(++g.position)):k="!";let C=g.position;if(T){do q=g.input.charCodeAt(++g.position);while(q!==0&&q!==62);g.position<g.length?(P=g.input.slice(C,g.position),q=g.input.charCodeAt(++g.position)):ne(g,"unexpected end of the stream within a verbatim tag")}else{for(;q!==0&&!R(q);)q===33&&(S?ne(g,"tag suffix cannot contain exclamation marks"):(k=g.input.slice(C-1,g.position+1),y.test(k)||ne(g,"named tag handle cannot contain such characters"),S=!0,C=g.position+1)),q=g.input.charCodeAt(++g.position);P=g.input.slice(C,g.position),A.test(P)&&ne(g,"tag suffix cannot contain flow indicator characters")}P&&!b.test(P)&&ne(g,"tag name cannot contain such characters: "+P);try{P=decodeURIComponent(P)}catch{ne(g,"tag name is malformed: "+P)}return T?g.tag=P:n.call(g.tagMap,k)?g.tag=g.tagMap[k]+P:k==="!"?g.tag="!"+P:k==="!!"?g.tag="tag:yaml.org,2002:"+P:ne(g,'undeclared tag handle "'+k+'"'),!0}o(Vc,"readTagProperty");function hl(g){let T=g.input.charCodeAt(g.position);if(T!==38)return!1;g.anchor!==null&&ne(g,"duplication of an anchor property"),T=g.input.charCodeAt(++g.position);let S=g.position;for(;T!==0&&!R(T)&&!M(T);)T=g.input.charCodeAt(++g.position);return g.position===S&&ne(g,"name of an anchor node must contain at least one character"),g.anchor=g.input.slice(S,g.position),!0}o(hl,"readAnchorProperty");function jc(g){let T=g.input.charCodeAt(g.position);if(T!==42)return!1;T=g.input.charCodeAt(++g.position);let S=g.position;for(;T!==0&&!R(T)&&!M(T);)T=g.input.charCodeAt(++g.position);g.position===S&&ne(g,"name of an alias node must contain at least one character");let k=g.input.slice(S,g.position);return n.call(g.anchorMap,k)||ne(g,'unidentified alias "'+k+'"'),g.result=g.anchorMap[k],jt(g,!0,-1),!0}o(jc,"readAlias");function $c(g,T,S,k){let P=Qr(g);return ve(g),ki(g,T),g.tag=null,g.anchor=null,g.kind=null,g.result=null,fl(g,S,k)&&g.kind==="mapping"?(ht(g),!0):(Nt(g),ki(g,P),!1)}o($c,"tryReadBlockMappingFromProperty");function Dn(g,T,S,k,P){let q,C,L=1,Z=!1,K=!1,J=null,ue,ae,Se;g.depth>=g.maxDepth&&ne(g,"nesting exceeded maxDepth ("+g.maxDepth+")"),g.depth+=1,g.listener!==null&&g.listener("open",g Line truncated
`),g.charCodeAt(0)===65279&&(g=g.slice(1)));let S=new me(g,T),k=g.indexOf("\0");for(k!==-1&&(S.position=k,ne(S,"null byte is not allowed in input")),S.input+="\0";S.input.charCodeAt(S.position)===32;)S.lineIndent+=1,S.position+=1;for(;S.position<S.length-1;)yn(S);return S.documents}o(dl,"loadDocuments");function On(g,T,S){T!==null&&typeof T=="object"&&typeof S>"u"&&(S=T,T=null);let k=dl(g,S);if(typeof T!="function")return k;for(let P=0,q=k.length;P<q;P+=1)T(k[P])}o(On,"loadAll2");function pl(g,T){let S=dl(g,T);if(S.length!==0){if(S.length===1)return S[0];throw new e("expected a single document in the stream, but found more")}}return o(pl,"load2"),w3.loadAll=On,w3.load=pl,w3}o(Ytr,"requireLoader");var Woe={},n9e;function Ktr(){if(n9e)return Woe;n9e=1;let t=mN(),e=AN(),r=Joe(),i=Object.prototype.toString,n=Object.prototype.hasOwnProperty,s=65279,a=9,c=10,u=13,l=32,f=33,h=34,d=35,p=37,A=38,y=39,b=42,E=44,w=45,B=58,R=61,M=62,V=63,Q=64,X=91,F=93,ee=96,j=123,ce=124,ie=125,me={};me[0]="\\0",me[7]="\\a",me[8]="\\b",me[9]="\\t",me[10]="\\n",me[11]="\\v",me[12]="\\f",me[13]="\\r",me[27]="\\e",me[34]='\\"',me[92]="\\\\",me[133]="\\N",me[160]="\\_",me[8232]="\\L",me[8233]="\\P";let Ae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ne=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function se(C,L){if(L===null)return{};let Z={},K=Object.keys(L);for(let J=0,ue=K.length;J<ue;J+=1){let ae=K[J],Se=String(L[ae]);ae.slice(0,2)==="!!"&&(ae="tag:yaml.org,2002:"+ae.slice(2));let ge=C.compiledTypeMap.fallback[ae];ge&&n.call(ge.styleAliases,Se)&&(Se=ge.styleAliases[Se]),Z[ae]=Se}return Z}o(se,"compileStyleMap");function Be(C){let L,Z,K=C.toString(16).toUpperCase();if(C<=255)L="x",Z=2;else if(C<=65535)L="u",Z=4;else if(C<=4294967295)L="U",Z=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+L+t.repeat("0",Z-K.length)+K}o(Be,"encodeHex");let ve=1,ht=2;function Nt(C){this.schema=C.schema||r,this.indent=Math.max(1,C.indent||2),this.noArrayIndent=C.noArrayIndent||!1,this.skipInvalid=C.skipInvalid||!1,this.flowLevel=t.isNothing(C.flowLevel)?-1:C.flowLevel,this.styleMap=se(this.schema,C.styles||null),this.sortKeys=C.sortKeys||!1,this.lineWidth=C.lineWidth||80,this.noRefs=C.noRefs||!1,this.noCompatMode=C.noCompatMode||!1,this.condenseFlow=C.condenseFlow||!1,this.quotingType=C.quotingType==='"'?ht:ve,this.forceQuotes=C.forceQuotes||!1,this.replacer=typeof C.replacer=="function"?C.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}o(Nt,"State");function Qr(C,L){let Z=t.repeat(" ",L),K=0,J="",ue=C.length;for(;K<ue;){let ae,Se=C.indexOf(`
`,K);Se===-1?(ae=C.slice(K),K=ue):(ae=C.slice(K,Se+1),K=Se+1),ae.length&&ae!==`
`&&(J+=Z),J+=ae}return J}o(Qr,"indentString");function Pi(C,L){return`
`+t.repeat(" ",C.indent*L)}o(Pi,"generateNextLine");function mn(C,L){for(let Z=0,K=C.implicitTypes.length;Z<K;Z+=1)if(C.implicitTypes[Z].resolve(L))return!0;return!1}o(mn,"testImplicitResolving");function Qt(C){return C===l||C===a}o(Qt,"isWhitespace");function rr(C){return C>=32&&C<=126||C>=161&&C<=55295&&C!==8232&&C!==8233||C>=57344&&C<=65533&&C!==s||C>=65536&&C<=1114111}o(rr,"isPrintable");function Lr(C){return rr(C)&&C!==s&&C!==u&&C!==c}o(Lr,"isNsCharOrWhitespace");function Tn(C,L,Z){let K=Lr(C),J=K&&!Qt(C);return(Z?K:K&&C!==E&&C!==X&&C!==F&&C!==j&&C!==re)&&C!==d&&!(L===B&&!J)||Lr(L)&&!Qt(L)&&C===d||L===B&&J}o(Tn,"isPlainSafe");function jt(C){return rr(C)&&C!==s&&!Qt(C)&&C!==w&&C!==V&&C!==B&&C!==E&&C!==X&&C!==F&&C!==j&&C!==re&&C!==d&&C!==A&&C!==b&&C!==f&&C!==ce&&C!==R&&C!==M&&C!==y&&C!==h&&C!==p&&C!==Q&&C!==ee}o(jt,"isPlainSafeFirst");function ai(C){return!Qt(C)&&C!==B}o(ai,"isPlainSafeLast");function ci(C,L){let Z=C.charCodeAt(L),K;return Z>=55296&&Z<=56319&&L+1<C.length&&(K=C.charCodeAt(L+1),K>=56320&&K<=57343)?(Z-55296)*1024+K-56320+65536:Z}o(ci,"codePointAt");function yo(C){return/^\n* /.test(C)}o(yo,"needIndentIndicator");let Eo=1,ys=2,ul=3,Gc=4,Es=5;function ll(C,L,Z,K,J,ue,ae,Se){let ge,Ue=0,Ve=null,xt=!1,dr=!1,J0=K!==-1,ja=-1,ff=jt(ci(C,0))&&ai(ci(C,C.length-1));if(L||ae)for(ge=0;ge<C.length;Ue>=65536?ge+=2:ge++){if(Ue=ci(C,ge),!rr(Ue))return Es;ff=ff&&Tn(Ue,Ve,Se),Ve=Ue}else{for(ge=0;ge<C.length;Ue>=65536?ge+=2:ge++){if(Ue=ci(C,ge),Ue===c)xt=!0,J0&&(dr=dr||ge-ja-1>K&&C[ja+1]!==" ",ja=ge);else if(!rr(Ue))return Es;ff=ff&&Tn(Ue,Ve,Se),Ve=Ue}dr=dr||J0&&ge-ja-1>K&&C[ja+1]!==" "}return!xt&&!dr?ff&&!ae&&!J(C)?Eo:ue===ht?Es:ys:Z>9&&yo(C)?Es:ae?ue===ht?Es:ys:dr?Gc:ul}o(ll,"chooseScalarStyle");function Hc(C,L,Z,K,J){C.dump=(function(){if(L.length===0)return C.quotingType===ht?'""':"''";if(!C.noCompatMode&&(Ae.indexOf(L)!==-1||ne.test(L)))return C.quotingType===ht?'"'+L+'"':"'"+L+"'";let ue=C.indent*Math.max(1,Z),ae=C.lineWidth===-1?-1:Math.max(Math.min(C.lineWidth,40),C.lineWidth-ue),Se=K||C.flowLevel>-1&&Z>=C.flowLevel;function ge(Ue){return mn(C,Ue)}switch(o(ge,"testAmbiguity"),ll(L,Se,C.indent,ae,ge,C.quotingType,C.forceQuotes&&!K,J)){case Eo:return L;case ys:return"'"+L.replace(/'/g,"''")+"'";case ul:return"|"+fl(L,C.indent)+zc(Qr(L,ue));case Gc:return">"+fl(L,C.indent)+zc(Qr(Vc(L,ae),ue));case Es:return'"'+An(L)+'"';default:throw new e("impossible error: invalid scalar style")}})()}o(Hc,"writeScalar");function fl(C,L){let Z=yo(C)?String(L):"",K=C[C.length-1]===`
`&&(J+=Z),J+=ae}return J}o(Qr,"indentString");function ki(C,L){return`
`+t.repeat(" ",C.indent*L)}o(ki,"generateNextLine");function gn(C,L){for(let Z=0,K=C.implicitTypes.length;Z<K;Z+=1)if(C.implicitTypes[Z].resolve(L))return!0;return!1}o(gn,"testImplicitResolving");function Qt(C){return C===l||C===a}o(Qt,"isWhitespace");function ir(C){return C>=32&&C<=126||C>=161&&C<=55295&&C!==8232&&C!==8233||C>=57344&&C<=65533&&C!==s||C>=65536&&C<=1114111}o(ir,"isPrintable");function Lr(C){return ir(C)&&C!==s&&C!==u&&C!==c}o(Lr,"isNsCharOrWhitespace");function Nn(C,L,Z){let K=Lr(C),J=K&&!Qt(C);return(Z?K:K&&C!==E&&C!==X&&C!==F&&C!==j&&C!==ie)&&C!==d&&!(L===B&&!J)||Lr(L)&&!Qt(L)&&C===d||L===B&&J}o(Nn,"isPlainSafe");function jt(C){return ir(C)&&C!==s&&!Qt(C)&&C!==w&&C!==V&&C!==B&&C!==E&&C!==X&&C!==F&&C!==j&&C!==ie&&C!==d&&C!==A&&C!==b&&C!==f&&C!==ce&&C!==R&&C!==M&&C!==y&&C!==h&&C!==p&&C!==Q&&C!==ee}o(jt,"isPlainSafeFirst");function ci(C){return!Qt(C)&&C!==B}o(ci,"isPlainSafeLast");function ui(C,L){let Z=C.charCodeAt(L),K;return Z>=55296&&Z<=56319&&L+1<C.length&&(K=C.charCodeAt(L+1),K>=56320&&K<=57343)?(Z-55296)*1024+K-56320+65536:Z}o(ui,"codePointAt");function yo(C){return/^\n* /.test(C)}o(yo,"needIndentIndicator");let Eo=1,Es=2,ll=3,zc=4,bs=5;function fl(C,L,Z,K,J,ue,ae,Se){let ge,Ue=0,Ve=null,xt=!1,dr=!1,X0=K!==-1,$a=-1,hf=jt(ui(C,0))&&ci(ui(C,C.length-1));if(L||ae)for(ge=0;ge<C.length;Ue>=65536?ge+=2:ge++){if(Ue=ui(C,ge),!ir(Ue))return bs;hf=hf&&Nn(Ue,Ve,Se),Ve=Ue}else{for(ge=0;ge<C.length;Ue>=65536?ge+=2:ge++){if(Ue=ui(C,ge),Ue===c)xt=!0,X0&&(dr=dr||ge-$a-1>K&&C[$a+1]!==" ",$a=ge);else if(!ir(Ue))return bs;hf=hf&&Nn(Ue,Ve,Se),Ve=Ue}dr=dr||X0&&ge-$a-1>K&&C[$a+1]!==" "}return!xt&&!dr?hf&&!ae&&!J(C)?Eo:ue===ht?bs:Es:Z>9&&yo(C)?bs:ae?ue===ht?bs:Es:dr?zc:ll}o(fl,"chooseScalarStyle");function Vc(C,L,Z,K,J){C.dump=(function(){if(L.length===0)return C.quotingType===ht?'""':"''";if(!C.noCompatMode&&(Ae.indexOf(L)!==-1||ne.test(L)))return C.quotingType===ht?'"'+L+'"':"'"+L+"'";let ue=C.indent*Math.max(1,Z),ae=C.lineWidth===-1?-1:Math.max(Math.min(C.lineWidth,40),C.lineWidth-ue),Se=K||C.flowLevel>-1&&Z>=C.flowLevel;function ge(Ue){return gn(C,Ue)}switch(o(ge,"testAmbiguity"),fl(L,Se,C.indent,ae,ge,C.quotingType,C.forceQuotes&&!K,J)){case Eo:return L;case Es:return"'"+L.replace(/'/g,"''")+"'";case ll:return"|"+hl(L,C.indent)+jc(Qr(L,ue));case zc:return">"+hl(L,C.indent)+jc(Qr($c(L,ae),ue));case bs:return'"'+yn(L)+'"';default:throw new e("impossible error: invalid scalar style")}})()}o(Vc,"writeScalar");function hl(C,L){let Z=yo(C)?String(L):"",K=C[C.length-1]===`
`,ue=K&&(C[C.length-2]===`
`||C===`
`)?"+":K?"":"-";return Z+ue+`
`}o(fl,"blockHeader");function zc(C){return C[C.length-1]===`
`?C.slice(0,-1):C}o(zc,"dropEndingNewline");function Vc(C,L){let Z=/(\n+)([^\n]*)/g,K=(function(){let Se=C.indexOf(`
`);return Se=Se!==-1?Se:C.length,Z.lastIndex=Se,Nn(C.slice(0,Se),L)})(),J=C[0]===`
`}o(hl,"blockHeader");function jc(C){return C[C.length-1]===`
`?C.slice(0,-1):C}o(jc,"dropEndingNewline");function $c(C,L){let Z=/(\n+)([^\n]*)/g,K=(function(){let Se=C.indexOf(`
`);return Se=Se!==-1?Se:C.length,Z.lastIndex=Se,Dn(C.slice(0,Se),L)})(),J=C[0]===`
`||C[0]===" ",ue,ae;for(;ae=Z.exec(C);){let Se=ae[1],ge=ae[2];ue=ge[0]===" ",K+=Se+(!J&&!ue&&ge!==""?`
`:"")+Nn(ge,L),J=ue}return K}o(Vc,"foldString");function Nn(C,L){if(C===""||C[0]===" ")return C;let Z=/ [^ ]/g,K,J=0,ue,ae=0,Se=0,ge="";for(;K=Z.exec(C);)Se=K.index,Se-J>L&&(ue=ae>J?ae:Se,ge+=`
`:"")+Dn(ge,L),J=ue}return K}o($c,"foldString");function Dn(C,L){if(C===""||C[0]===" ")return C;let Z=/ [^ ]/g,K,J=0,ue,ae=0,Se=0,ge="";for(;K=Z.exec(C);)Se=K.index,Se-J>L&&(ue=ae>J?ae:Se,ge+=`
`+C.slice(J,ue),J=ue+1),ae=Se;return ge+=`
`,C.length-J>L&&ae>J?ge+=C.slice(J,ae)+`
`+C.slice(ae+1):ge+=C.slice(J),ge.slice(1)}o(Nn,"foldLine");function An(C){let L="",Z=0;for(let K=0;K<C.length;Z>=65536?K+=2:K++){Z=ci(C,K);let J=me[Z];!J&&rr(Z)?(L+=C[K],Z>=65536&&(L+=C[K+1])):L+=J||Be(Z)}return L}o(An,"escapeString");function hl(C,L,Z){let K="",J=C.tag;for(let ue=0,ae=Z.length;ue<ae;ue+=1){let Se=Z[ue];C.replacer&&(Se=C.replacer.call(Z,String(ue),Se)),(S(C,L,Se,!1,!1)||typeof Se>"u"&&S(C,L,null,!1,!1))&&(K!==""&&(K+=","+(C.condenseFlow?"":" ")),K+=C.dump)}C.tag=J,C.dump="["+K+"]"}o(hl,"writeFlowSequence");function Dn(C,L,Z,K){let J="",ue=C.tag;for(let ae=0,Se=Z.length;ae<Se;ae+=1){let ge=Z[ae];C.replacer&&(ge=C.replacer.call(Z,String(ae),ge)),(S(C,L+1,ge,!0,!0,!1,!0)||typeof ge>"u"&&S(C,L+1,null,!0,!0,!1,!0))&&((!K||J!=="")&&(J+=Pi(C,L)),C.dump&&c===C.dump.charCodeAt(0)?J+="-":J+="- ",J+=C.dump)}C.tag=ue,C.dump=J||"[]"}o(Dn,"writeBlockSequence");function dl(C,L,Z){let K="",J=C.tag,ue=Object.keys(Z);for(let ae=0,Se=ue.length;ae<Se;ae+=1){let ge="";K!==""&&(ge+=", "),C.condenseFlow&&(ge+='"');let Ue=ue[ae],Ve=Z[Ue];C.replacer&&(Ve=C.replacer.call(Z,Ue,Ve)),S(C,L,Ue,!1,!1)&&(C.dump.length>1024&&(ge+="? "),ge+=C.dump+(C.condenseFlow?'"':"")+":"+(C.condenseFlow?"":" "),S(C,L,Ve,!1,!1)&&(ge+=C.dump,K+=ge))}C.tag=J,C.dump="{"+K+"}"}o(dl,"writeFlowMapping");function g(C,L,Z,K){let J="",ue=C.tag,ae=Object.keys(Z);if(C.sortKeys===!0)ae.sort();else if(typeof C.sortKeys=="function")ae.sort(C.sortKeys);else if(C.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let Se=0,ge=ae.length;Se<ge;Se+=1){let Ue="";(!K||J!=="")&&(Ue+=Pi(C,L));let Ve=ae[Se],xt=Z[Ve];if(C.replacer&&(xt=C.replacer.call(Z,Ve,xt)),!S(C,L+1,Ve,!0,!0,!0))continue;let dr=C.tag!==null&&C.tag!=="?"||C.dump&&C.dump.length>1024;dr&&(C.dump&&c===C.dump.charCodeAt(0)?Ue+="?":Ue+="? "),Ue+=C.dump,dr&&(Ue+=Pi(C,L)),S(C,L+1,xt,!0,dr)&&(C.dump&&c===C.dump.charCodeAt(0)?Ue+=":":Ue+=": ",Ue+=C.dump,J+=Ue)}C.tag=ue,C.dump=J||"{}"}o(g,"writeBlockMapping");function T(C,L,Z){let K=Z?C.explicitTypes:C.implicitTypes;for(let J=0,ue=K.length;J<ue;J+=1){let ae=K[J];if((ae.instanceOf||ae.predicate)&&(!ae.instanceOf||typeof L=="object"&&L instanceof ae.instanceOf)&&(!ae.predicate||ae.predicate(L))){if(Z?ae.multi&&ae.representName?C.tag=ae.representName(L):C.tag=ae.tag:C.tag="?",ae.represent){let Se=C.styleMap[ae.tag]||ae.defaultStyle,ge;if(i.call(ae.represent)==="[object Function]")ge=ae.represent(L,Se);else if(n.call(ae.represent,Se))ge=ae.represent[Se](L,Se);else throw new e("!<"+ae.tag+'> tag resolver accepts not "'+Se+'" style');C.dump=ge}return!0}}return!1}o(T,"detectType");function S(C,L,Z,K,J,ue,ae){C.tag=null,C.dump=Z,T(C,Z,!1)||T(C,Z,!0);let Se=i.call(C.dump),ge=K;K&&(K=C.flowLevel<0||C.flowLevel>L);let Ue=Se==="[object Object]"||Se==="[object Array]",Ve,xt;if(Ue&&(Ve=C.duplicates.indexOf(Z),xt=Ve!==-1),(C.tag!==null&&C.tag!=="?"||xt||C.indent!==2&&L>0)&&(J=!1),xt&&C.usedDuplicates[Ve])C.dump="*ref_"+Ve;else{if(Ue&&xt&&!C.usedDuplicates[Ve]&&(C.usedDuplicates[Ve]=!0),Se==="[object Object]")K&&Object.keys(C.dump).length!==0?(g(C,L,C.dump,J),xt&&(C.dump="&ref_"+Ve+C.dump)):(dl(C,L,C.dump),xt&&(C.dump="&ref_"+Ve+" "+C.dump));else if(Se==="[object Array]")K&&C.dump.length!==0?(C.noArrayIndent&&!ae&&L>0?Dn(C,L-1,C.dump,J):Dn(C,L,C.dump,J),xt&&(C.dump="&ref_"+Ve+C.dump)):(hl(C,L,C.dump),xt&&(C.dump="&ref_"+Ve+" "+C.dump));else if(Se==="[object String]")C.tag!=="?"&&Hc(C,C.dump,L,ue,ge);else{if(Se==="[object Undefined]")return!1;if(C.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+Se)}if(C.tag!==null&&C.tag!=="?"){let dr=encodeURI(C.tag[0]==="!"?C.tag.slice(1):C.tag).replace(/!/g,"%21");C.tag[0]==="!"?dr="!"+dr:dr.slice(0,18)==="tag:yaml.org,2002:"?dr="!!"+dr.slice(18):dr="!<"+dr+">",C.dump=dr+" "+C.dump}}return!0}o(S,"writeNode");function k(C,L){let Z=[],K=[];P(C,Z,K);let J=K.length;for(let ue=0;ue<J;ue+=1)L.duplicates.push(Z[K[ue]]);L.usedDuplicates=new Array(J)}o(k,"getDuplicateReferences");function P(C,L,Z){if(C!==null&&typeof C=="object"){let K=L.indexOf(C);if(K!==-1)Z.indexOf(K)===-1&&Z.push(K);else if(L.push(C),Array.isArray(C))for(let J=0,ue=C.length;J<ue;J+=1)P(C[J],L,Z);else{let J=Object.keys(C);for(let ue=0,ae=J.length;ue<ae;ue+=1)P(C[J[ue]],L,Z)}}}o(P,"inspectNode");function q(C,L){L=L||{};let Z=new Nt(L);Z.noRefs||k(C,Z);let K=C;return Z.replacer&&(K=Z.replacer.call({"":K},"",K)),S(Z,0,K,!0,!0)?Z.dump+`
`:""}return o(q,"dump2"),qoe.dump=q,qoe}o(ztr,"requireDumper");var $je;function Vtr(){if($je)return to;$je=1;let t=Htr(),e=ztr();function r(i,n){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}return o(r,"renamed"),to.Type=Jo(),to.Schema=Wje(),to.FAILSAFE_SCHEMA=Xje(),to.JSON_SCHEMA=i9e(),to.CORE_SCHEMA=n9e(),to.DEFAULT_SCHEMA=Goe(),to.load=t.load,to.loadAll=t.loadAll,to.dump=e.dump,to.YAMLException=hN(),to.types={binary:a9e(),float:r9e(),map:Kje(),null:Zje(),pairs:u9e(),set:l9e(),timestamp:s9e(),bool:e9e(),int:t9e(),merge:o9e(),omap:c9e(),seq:Yje(),str:Jje()},to.safeLoad=r("safeLoad","load"),to.safeLoadAll=r("safeLoadAll","loadAll"),to.safeDump=r("safeDump","dump"),to}o(Vtr,"requireJsYaml");var jtr=Vtr(),$tr=qtr(jtr),{Type:ndi,Schema:sdi,FAILSAFE_SCHEMA:odi,JSON_SCHEMA:adi,CORE_SCHEMA:cdi,DEFAULT_SCHEMA:udi,load:ldi,loadAll:fdi,dump:f9e,YAMLException:hdi,types:ddi,safeLoad:pdi,safeLoadAll:mdi,safeDump:Adi}=$tr;var h9e=U(require("os"),1);var y3=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(u,l,f=!1){return`<a href="${l}">${u}</a>`+(f?h9e.default.EOL:"")},"addLink"),i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=yj.addHeading("Docker Build summary",2);if(a&&i===1&&n&&s){let u=t.formatDBCBuildURL(a,n,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${u}</strong>`,u)}`).addRaw("</p>")}if(e.uploadRes){let u=`./${vt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&i===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${st.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,u)} (${st.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let u=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&i>1?[{header:!0,data:"Build result URL"}]:[]]],l;for(let f in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,f)){let h=e.exportRes.summaries[f];u.push([{data:`<code>${f.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${st.stringToUnicodeEntities(h.name)}</strong>`},{data:`${h.status==="completed"?":white_check_mark:":h.status==="canceled"?":no_entry_sign:":":x:"} ${h.status}`},{data:`${h.numCachedSteps>0?Math.round(h.numCachedSteps/h.numTotalSteps*100):0}%`},{data:h.duration},...a&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,f,h.defaultPlatform))}]:[]]),h.error&&(l=h.error)}c.addTable([...u]),c.addRaw("</p>"),l&&(c.addRaw("<blockquote>"),st.countLines(l)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Hoe.default.encode(l),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Hoe.default.encode(l),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(f9e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefiniti Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let i=Ic(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Ic(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let a=st.parseBool(s);i.push(`disabled=${!a}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&If(s),[n,s]}};var Voe=U(require("fs"),1),d9e=U(require("path"),1);var eS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new or,this.metadataFilename=`bake-metadata-${st.generateRandomString()}.json`}getMetadataFilePath(){return d9e.default.join(Gt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Voe.default.existsSync(e))return;let r=Voe.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 i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["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 i=["bake"],n,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(l=>l?l.trim():""))if(u.length!=0){if(!st.isValidRef(u)){s.push(u);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=u}}n&&i.push(n);for(let u of s)i.push("--file",u);if(e.overrides)for(let u of e.overrides)i.push("--set",u);if(e.vars)for(let u of e.vars)i.push("--var",u);if(e.allow)for(let u of e.allow)i.push("--allow",u);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await Je.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 i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ic(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=st.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ic(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ic(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=Ic(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":n=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id Line truncated
`+C.slice(ae+1):ge+=C.slice(J),ge.slice(1)}o(Dn,"foldLine");function yn(C){let L="",Z=0;for(let K=0;K<C.length;Z>=65536?K+=2:K++){Z=ui(C,K);let J=me[Z];!J&&ir(Z)?(L+=C[K],Z>=65536&&(L+=C[K+1])):L+=J||Be(Z)}return L}o(yn,"escapeString");function dl(C,L,Z){let K="",J=C.tag;for(let ue=0,ae=Z.length;ue<ae;ue+=1){let Se=Z[ue];C.replacer&&(Se=C.replacer.call(Z,String(ue),Se)),(S(C,L,Se,!1,!1)||typeof Se>"u"&&S(C,L,null,!1,!1))&&(K!==""&&(K+=","+(C.condenseFlow?"":" ")),K+=C.dump)}C.tag=J,C.dump="["+K+"]"}o(dl,"writeFlowSequence");function On(C,L,Z,K){let J="",ue=C.tag;for(let ae=0,Se=Z.length;ae<Se;ae+=1){let ge=Z[ae];C.replacer&&(ge=C.replacer.call(Z,String(ae),ge)),(S(C,L+1,ge,!0,!0,!1,!0)||typeof ge>"u"&&S(C,L+1,null,!0,!0,!1,!0))&&((!K||J!=="")&&(J+=ki(C,L)),C.dump&&c===C.dump.charCodeAt(0)?J+="-":J+="- ",J+=C.dump)}C.tag=ue,C.dump=J||"[]"}o(On,"writeBlockSequence");function pl(C,L,Z){let K="",J=C.tag,ue=Object.keys(Z);for(let ae=0,Se=ue.length;ae<Se;ae+=1){let ge="";K!==""&&(ge+=", "),C.condenseFlow&&(ge+='"');let Ue=ue[ae],Ve=Z[Ue];C.replacer&&(Ve=C.replacer.call(Z,Ue,Ve)),S(C,L,Ue,!1,!1)&&(C.dump.length>1024&&(ge+="? "),ge+=C.dump+(C.condenseFlow?'"':"")+":"+(C.condenseFlow?"":" "),S(C,L,Ve,!1,!1)&&(ge+=C.dump,K+=ge))}C.tag=J,C.dump="{"+K+"}"}o(pl,"writeFlowMapping");function g(C,L,Z,K){let J="",ue=C.tag,ae=Object.keys(Z);if(C.sortKeys===!0)ae.sort();else if(typeof C.sortKeys=="function")ae.sort(C.sortKeys);else if(C.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let Se=0,ge=ae.length;Se<ge;Se+=1){let Ue="";(!K||J!=="")&&(Ue+=ki(C,L));let Ve=ae[Se],xt=Z[Ve];if(C.replacer&&(xt=C.replacer.call(Z,Ve,xt)),!S(C,L+1,Ve,!0,!0,!0))continue;let dr=C.tag!==null&&C.tag!=="?"||C.dump&&C.dump.length>1024;dr&&(C.dump&&c===C.dump.charCodeAt(0)?Ue+="?":Ue+="? "),Ue+=C.dump,dr&&(Ue+=ki(C,L)),S(C,L+1,xt,!0,dr)&&(C.dump&&c===C.dump.charCodeAt(0)?Ue+=":":Ue+=": ",Ue+=C.dump,J+=Ue)}C.tag=ue,C.dump=J||"{}"}o(g,"writeBlockMapping");function T(C,L,Z){let K=Z?C.explicitTypes:C.implicitTypes;for(let J=0,ue=K.length;J<ue;J+=1){let ae=K[J];if((ae.instanceOf||ae.predicate)&&(!ae.instanceOf||typeof L=="object"&&L instanceof ae.instanceOf)&&(!ae.predicate||ae.predicate(L))){if(Z?ae.multi&&ae.representName?C.tag=ae.representName(L):C.tag=ae.tag:C.tag="?",ae.represent){let Se=C.styleMap[ae.tag]||ae.defaultStyle,ge;if(i.call(ae.represent)==="[object Function]")ge=ae.represent(L,Se);else if(n.call(ae.represent,Se))ge=ae.represent[Se](L,Se);else throw new e("!<"+ae.tag+'> tag resolver accepts not "'+Se+'" style');C.dump=ge}return!0}}return!1}o(T,"detectType");function S(C,L,Z,K,J,ue,ae){C.tag=null,C.dump=Z,T(C,Z,!1)||T(C,Z,!0);let Se=i.call(C.dump),ge=K;K&&(K=C.flowLevel<0||C.flowLevel>L);let Ue=Se==="[object Object]"||Se==="[object Array]",Ve,xt;if(Ue&&(Ve=C.duplicates.indexOf(Z),xt=Ve!==-1),(C.tag!==null&&C.tag!=="?"||xt||C.indent!==2&&L>0)&&(J=!1),xt&&C.usedDuplicates[Ve])C.dump="*ref_"+Ve;else{if(Ue&&xt&&!C.usedDuplicates[Ve]&&(C.usedDuplicates[Ve]=!0),Se==="[object Object]")K&&Object.keys(C.dump).length!==0?(g(C,L,C.dump,J),xt&&(C.dump="&ref_"+Ve+C.dump)):(pl(C,L,C.dump),xt&&(C.dump="&ref_"+Ve+" "+C.dump));else if(Se==="[object Array]")K&&C.dump.length!==0?(C.noArrayIndent&&!ae&&L>0?On(C,L-1,C.dump,J):On(C,L,C.dump,J),xt&&(C.dump="&ref_"+Ve+C.dump)):(dl(C,L,C.dump),xt&&(C.dump="&ref_"+Ve+" "+C.dump));else if(Se==="[object String]")C.tag!=="?"&&Vc(C,C.dump,L,ue,ge);else{if(Se==="[object Undefined]")return!1;if(C.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+Se)}if(C.tag!==null&&C.tag!=="?"){let dr=encodeURI(C.tag[0]==="!"?C.tag.slice(1):C.tag).replace(/!/g,"%21");C.tag[0]==="!"?dr="!"+dr:dr.slice(0,18)==="tag:yaml.org,2002:"?dr="!!"+dr.slice(18):dr="!<"+dr+">",C.dump=dr+" "+C.dump}}return!0}o(S,"writeNode");function k(C,L){let Z=[],K=[];P(C,Z,K);let J=K.length;for(let ue=0;ue<J;ue+=1)L.duplicates.push(Z[K[ue]]);L.usedDuplicates=new Array(J)}o(k,"getDuplicateReferences");function P(C,L,Z){if(C!==null&&typeof C=="object"){let K=L.indexOf(C);if(K!==-1)Z.indexOf(K)===-1&&Z.push(K);else if(L.push(C),Array.isArray(C))for(let J=0,ue=C.length;J<ue;J+=1)P(C[J],L,Z);else{let J=Object.keys(C);for(let ue=0,ae=J.length;ue<ae;ue+=1)P(C[J[ue]],L,Z)}}}o(P,"inspectNode");function q(C,L){L=L||{};let Z=new Nt(L);Z.noRefs||k(C,Z);let K=C;return Z.replacer&&(K=Z.replacer.call({"":K},"",K)),S(Z,0,K,!0,!0)?Z.dump+`
`:""}return o(q,"dump2"),Woe.dump=q,Woe}o(Ktr,"requireDumper");var s9e;function Xtr(){if(s9e)return to;s9e=1;let t=Ytr(),e=Ktr();function r(i,n){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}return o(r,"renamed"),to.Type=Yo(),to.Schema=o9e(),to.FAILSAFE_SCHEMA=l9e(),to.JSON_SCHEMA=m9e(),to.CORE_SCHEMA=A9e(),to.DEFAULT_SCHEMA=Joe(),to.load=t.load,to.loadAll=t.loadAll,to.dump=e.dump,to.YAMLException=AN(),to.types={binary:E9e(),float:p9e(),map:u9e(),null:f9e(),pairs:w9e(),set:C9e(),timestamp:g9e(),bool:h9e(),int:d9e(),merge:y9e(),omap:b9e(),seq:c9e(),str:a9e()},to.safeLoad=r("safeLoad","load"),to.safeLoadAll=r("safeLoadAll","loadAll"),to.safeDump=r("safeDump","dump"),to}o(Xtr,"requireJsYaml");var Ztr=Xtr(),err=Wtr(Ztr),{Type:fdi,Schema:hdi,FAILSAFE_SCHEMA:ddi,JSON_SCHEMA:pdi,CORE_SCHEMA:mdi,DEFAULT_SCHEMA:Adi,load:gdi,loadAll:ydi,dump:I9e,YAMLException:Edi,types:bdi,safeLoad:wdi,safeLoadAll:Cdi,safeDump:Idi}=err;var S9e=U(require("os"),1);var C3=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(u,l,f=!1){return`<a href="${l}">${u}</a>`+(f?S9e.default.EOL:"")},"addLink"),i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=Bj.addHeading("Docker Build summary",2);if(a&&i===1&&n&&s){let u=t.formatDBCBuildURL(a,n,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${u}</strong>`,u)}`).addRaw("</p>")}if(e.uploadRes){let u=`./${vt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&i===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${ot.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,u)} (${ot.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let u=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&i>1?[{header:!0,data:"Build result URL"}]:[]]],l;for(let f in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,f)){let h=e.exportRes.summaries[f];u.push([{data:`<code>${f.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${ot.stringToUnicodeEntities(h.name)}</strong>`},{data:`${h.status==="completed"?":white_check_mark:":h.status==="canceled"?":no_entry_sign:":":x:"} ${h.status}`},{data:`${h.numCachedSteps>0?Math.round(h.numCachedSteps/h.numTotalSteps*100):0}%`},{data:h.duration},...a&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,f,h.defaultPlatform))}]:[]]),h.error&&(l=h.error)}c.addTable([...u]),c.addRaw("</p>"),l&&(c.addRaw("<blockquote>"),ot.countLines(l)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Yoe.default.encode(l),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Yoe.default.encode(l),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(I9e(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefiniti Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let i=Bc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Bc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let a=ot.parseBool(s);i.push(`disabled=${!a}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&If(s),[n,s]}};var Xoe=U(require("fs"),1),B9e=U(require("path"),1);var iS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new or,this.metadataFilename=`bake-metadata-${ot.generateRandomString()}.json`}getMetadataFilePath(){return B9e.default.join(Gt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Xoe.default.existsSync(e))return;let r=Xoe.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 i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["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 i=["bake"],n,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(l=>l?l.trim():""))if(u.length!=0){if(!ot.isValidRef(u)){s.push(u);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=u}}n&&i.push(n);for(let u of s)i.push("--file",u);if(e.overrides)for(let u of e.overrides)i.push("--set",u);if(e.vars)for(let u of e.vars)i.push("--var",u);if(e.allow)for(let u of e.allow)i.push("--allow",u);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await Je.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 i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Bc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=ot.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Bc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=Bc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=Bc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":n=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id Line truncated
`)[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"]);z(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let a=n.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=n.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Je.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 s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[n]=i.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(n)return`refs/tags/${n}`;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]),[i]=r.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var jnt=require("crypto"),md=U(require("fs"),1),Og=U(require("path"),1);var E1=U(pN(),1),Ad=U(yrt(),1),$nt=U(Spe(),1),PB=U(Fnt(),1);var Xpe=U(pN(),1);var qnt=U(Fl(),1);var Unt="application/vnd.oci.empty.v1+json";var bm=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 Je.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(z(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(z(`Cosign.isAvailable error: ${r}`),!1));return z(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Je.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 Je.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return z("Cosign.versionSatisfies false: undefined version"),!1;let n=qnt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return z(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let l=u.manifests[0];l?.artifactType===Xpe.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===Unt&&typeof l.digest=="string"&&(i=l.digest)}if(!n&&u&&u.mediaType===Xpe.BUNDLE_V03_MEDIA_TYPE&&(n=u),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var Zpe=U(require("fs"),1);var lH=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new or}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 i=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return i.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===n.os&&u.platform?.architecture===n.architecture&&(u.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Gt.tmpName({tmpdir:Gt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&n.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let c of n)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){Y(`[command]${a.command} ${a.args.join(" ")}`),Y("Skipped create command");return}return await Je.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!Zpe.default.existsSync(i))return;let u=Zpe.default.readFileSync(i,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let l=JSON.parse(u),f=l["containerimage.descriptor"];return f?{digest:l["containerimage.digest"]||f.digest,descriptor:f,imageNames:l["image.name"]?l["image.name"].split(",").map(h=>h.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,a;for(let c=0;c<s;c++)try{return await this.execInspe Line truncated
${a.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await Je.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var Gnt="application/vnd.in-toto+json";var Hnt="https://fulcio.sigstore.dev",znt="https://rekor.sigstore.dev",Vnt="https://timestamp.sigstore.dev",W0="https://search.sigstore.dev";var XIr="slsaprovenance1",Pg=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new bm,this.imageTools=e?.imageTools||new lH}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 i=this.signingEndpoints(e.noTransparencyLog);Y(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await Ai("Creating Sigstore protobuf signing config",async()=>{let a=Gt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Gt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];n&&c.push("--no-default-rekor=true"),await Je.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),Y(JSON.stringify(JSON.parse(md.default.readFileSync(a,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${a}`)}):(s.push("--use-signing-config"),n&&s.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 l=`${a}@${u}`;await Ai(`Signing attestation manifest ${l}`,async()=>{let f=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];Y(`[command]${this.cosign.binPath} ${[...f,l].join(" ")}`);let h=await Je.getExecOutput(this.cosign.binPath,["--verbose",...f,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=bm.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let A=d.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var nst=require("crypto"),md=U(require("fs"),1),Og=U(require("path"),1);var I1=U(yN(),1),Ad=U(Trt(),1),sst=U(Npe(),1),LB=U(Knt(),1);var sme=U(yN(),1);var Znt=U(Ul(),1);var Xnt="application/vnd.oci.empty.v1+json";var wm=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 Je.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(z(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(z(`Cosign.isAvailable error: ${r}`),!1));return z(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Je.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 Je.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return z("Cosign.versionSatisfies false: undefined version"),!1;let n=Znt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return z(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let l=u.manifests[0];l?.artifactType===sme.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===Xnt&&typeof l.digest=="string"&&(i=l.digest)}if(!n&&u&&u.mediaType===sme.BUNDLE_V03_MEDIA_TYPE&&(n=u),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var ome=U(require("fs"),1);var pH=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new or}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 i=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return i.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===n.os&&u.platform?.architecture===n.architecture&&(u.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Gt.tmpName({tmpdir:Gt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&n.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let c of n)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){Y(`[command]${a.command} ${a.args.join(" ")}`),Y("Skipped create command");return}return await Je.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!ome.default.existsSync(i))return;let u=ome.default.readFileSync(i,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let l=JSON.parse(u),f=l["containerimage.descriptor"];return f?{digest:l["containerimage.digest"]||f.digest,descriptor:f,imageNames:l["image.name"]?l["image.name"].split(",").map(h=>h.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,a;for(let c=0;c<s;c++)try{return await this.execInspe Line truncated
${a.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await Je.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var est="application/vnd.in-toto+json";var tst="https://fulcio.sigstore.dev",rst="https://rekor.sigstore.dev",ist="https://timestamp.sigstore.dev",K0="https://search.sigstore.dev";var sSr="slsaprovenance1",Pg=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new wm,this.imageTools=e?.imageTools||new pH}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 i=this.signingEndpoints(e.noTransparencyLog);Y(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await gi("Creating Sigstore protobuf signing config",async()=>{let a=Gt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Gt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];n&&c.push("--no-default-rekor=true"),await Je.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),Y(JSON.stringify(JSON.parse(md.default.readFileSync(a,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${a}`)}):(s.push("--use-signing-config"),n&&s.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 l=`${a}@${u}`;await gi(`Signing attestation manifest ${l}`,async()=>{let f=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];Y(`[command]${this.cosign.binPath} ${[...f,l].join(" ")}`);let h=await Je.getExecOutput(this.cosign.binPath,["--verbose",...f,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=wm.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let A=d.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${A}`)}else throw new Error(`Cosign sign command failed with: ${h.stderr.trim().split(/\r?\n/).filter(A=>A.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,E1.bundleFromJSON)(d.bundle));p.tlogID&&Y(`Uploaded to Rekor transparency log: ${W0}?logIndex=${p.tlogID}`),Y(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:a}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await Ai(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});Y(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),i[n]=a});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of n){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);Y(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),i[c]=u}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){Y(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let a=await Je.getExecOutput(this.cosign.binPath,["--verbose",...i,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=bm.parseCommandOutput(a.stderr.trim());return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,s;Y(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let a=0;a<n;a++){let c=await Je.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=bm.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:i,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let l=u.errors.map(f=>`- [${f.code}] ${f.message} : ${f.detail}`).join(`
${A}`)}else throw new Error(`Cosign sign command failed with: ${h.stderr.trim().split(/\r?\n/).filter(A=>A.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,I1.bundleFromJSON)(d.bundle));p.tlogID&&Y(`Uploaded to Rekor transparency log: ${K0}?logIndex=${p.tlogID}`),Y(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:a}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await gi(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});Y(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),i[n]=a});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of n){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);Y(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),i[c]=u}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){Y(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let a=await Je.getExecOutput(this.cosign.binPath,["--verbose",...i,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=wm.parseCommandOutput(a.stderr.trim());return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,s;Y(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let a=0;a<n;a++){let c=await Je.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=wm.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:i,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let l=u.errors.map(f=>`- [${f.code}] ${f.message} : ${f.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${l}`),u.errors.some(f=>f.code==="MANIFEST_UNKNOWN"))Y(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
${l}`),await new Promise(f=>setTimeout(f,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw s}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 i=this.signingEndpoints(e.noTransparencyLog);Y(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await Ai(`Signing ${s}`,async()=>{let a=n[s],c=Og.default.join(Og.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){wr(`No subjects found in provenance ${s}, skip signing.`);return}let l=await t.signPayload({data:a,type:Gnt},i),f=t.parseBundle(l);Y("Provenance blob signed for:");for(let h of u){let[d,p]=Object.entries(h.digest)[0]||[];Y(` - ${h.name} (${d}:${p})`)}f.tlogID&&Y(`Attestation signature uploaded to Rekor transparency log: ${W0}?logIndex=${f.tlogID}`),Y(`Writing Sigstore bundle to: ${c}`),md.default.writeFileSync(c,JSON.stringify(f.payload,null,2),{encoding:"utf-8"}),r[s]={...f,bundlePath:c,subjects:u}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let a=Og.default.dirname(n);await Ai(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=Og.default.join(a,c.name);Y(`Verifying signed artifact ${u}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??XIr];(r.noTransparencyLog||!s.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let f=await Je.getExecOutput(this.cosign.binPath,[...l,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(f.stderr.length>0&&f.exitCode!=0)throw new Error(f.stderr);i[u]={bundlePath:s.bundlePath,cosignArgs:l}}})}return i}async verifyArtifact(e,r,i){Y("Verifying keyless verification bundle signature");let n=JSON.parse(md.default.readFileSync(r,"utf-8")),s=(0,E1.bundleFromJSON)(n);Y("Fetching Sigstore TUF trusted root metadata");let a=await $nt.getTrustedRoot(),c=(0,PB.toTrustMaterial)(a);try{Y("Verifying artifact signature");let u=(0,PB.toSignedEntity)(s,md.default.readFileSync(e)),l=t.parseCertificate(s),f=s.verificationMaterial.tlogEntries,h=f.length>0?f[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let A=l.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${A}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let p=new PB.Verifier(c).verify(u,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return z(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:n,certificate:l.toString(),tlogID:h}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),Y(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:Hnt,rekorURL:e?void 0:znt,tsaServerURL:Vnt}}static noTransparencyLog(e){return e??vt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Og.default.join(e.localExportDir,"provenance.json");if(md.default.existsSync(r))return{[r]:md.default.readFileSync(r)};let i=md.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>md.default.existsSync(Og.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of n){let c=Og.default.join(e.localExportDir,a.name,"provenance.json");s[c]=md.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],a=new Ad.FulcioSigner({identityProvider:new Ad.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new Ad.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new Ad.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new Ad.DSSEBundleBuilder({signer:a,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,E1.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
${l}`),await new Promise(f=>setTimeout(f,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw s}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 i=this.signingEndpoints(e.noTransparencyLog);Y(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await gi(`Signing ${s}`,async()=>{let a=n[s],c=Og.default.join(Og.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){wr(`No subjects found in provenance ${s}, skip signing.`);return}let l=await t.signPayload({data:a,type:est},i),f=t.parseBundle(l);Y("Provenance blob signed for:");for(let h of u){let[d,p]=Object.entries(h.digest)[0]||[];Y(` - ${h.name} (${d}:${p})`)}f.tlogID&&Y(`Attestation signature uploaded to Rekor transparency log: ${K0}?logIndex=${f.tlogID}`),Y(`Writing Sigstore bundle to: ${c}`),md.default.writeFileSync(c,JSON.stringify(f.payload,null,2),{encoding:"utf-8"}),r[s]={...f,bundlePath:c,subjects:u}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let a=Og.default.dirname(n);await gi(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=Og.default.join(a,c.name);Y(`Verifying signed artifact ${u}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??sSr];(r.noTransparencyLog||!s.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let f=await Je.getExecOutput(this.cosign.binPath,[...l,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(f.stderr.length>0&&f.exitCode!=0)throw new Error(f.stderr);i[u]={bundlePath:s.bundlePath,cosignArgs:l}}})}return i}async verifyArtifact(e,r,i){Y("Verifying keyless verification bundle signature");let n=JSON.parse(md.default.readFileSync(r,"utf-8")),s=(0,I1.bundleFromJSON)(n);Y("Fetching Sigstore TUF trusted root metadata");let a=await sst.getTrustedRoot(),c=(0,LB.toTrustMaterial)(a);try{Y("Verifying artifact signature");let u=(0,LB.toSignedEntity)(s,md.default.readFileSync(e)),l=t.parseCertificate(s),f=s.verificationMaterial.tlogEntries,h=f.length>0?f[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let A=l.subjectAltName?.replace(/^uri:/i,"");if(A){if(!A.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${A}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let p=new LB.Verifier(c).verify(u,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return z(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:n,certificate:l.toString(),tlogID:h}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),Y(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:tst,rekorURL:e?void 0:rst,tsaServerURL:ist}}static noTransparencyLog(e){return e??vt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Og.default.join(e.localExportDir,"provenance.json");if(md.default.existsSync(r))return{[r]:md.default.readFileSync(r)};let i=md.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>md.default.existsSync(Og.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of n){let c=Og.default.join(e.localExportDir,a.name,"provenance.json");s[c]=md.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],a=new Ad.FulcioSigner({identityProvider:new Ad.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new Ad.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new Ad.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new Ad.DSSEBundleBuilder({signer:a,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,I1.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
`)){let[l,...f]=u.split(":"),h=l.toLowerCase(),d=f.map(p=>p.trim()).join(":");if(l.length!=0)switch(!0){case h=="name":i=void 0,r.name==null?r.name=d:(s&&n.gcPolicy&&(n.gcPolicy.push(s),s=void 0),n.name&&r.nodes.push(n),n={name:d});break;case h=="driver":i=void 0,r.driver=d;break;case h=="last activity":i=void 0,r.lastActivity=new Date(d);break;case h=="endpoint":i=void 0,n.endpoint=d;break;case h=="driver options":i=void 0,n["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case h=="status":i=void 0,n.status=d;break;case h=="buildkit daemon flags":case h=="flags":i=void 0,n["buildkitd-flags"]=d;break;case h=="buildkit version":case h=="buildkit":i=void 0,n.buildkit=d;break;case h=="platforms":{if(i=void 0,!d)break;let p=[];if(d.includes("*"))for(let A of d.split(", "))A.includes("*")&&p.push(A.replace(/\*/g,""));else p=d.split(", ");n.platforms=p.join(",");break}case h=="features":i="features",n.features={};break;case h=="labels":i="label",n.labels={};break;case h=="devices":i="devices",n.devices=n.devices||[];break;case h.startsWith("gc policy rule#"):i="gcpolicy",n.gcPolicy&&s&&(n.gcPolicy.push(s),s=void 0);break;case h.startsWith("file#"):i="file",c=l.split("#")[1],n.files=n.files||{},n.files[c]="";break;default:switch(i&&i!=="devices"&&n.devices&&a&&(n.devices.push(a),a=void 0),i||""){case"features":{n.features=n.features||{},n.features[l.trim()]=!!d;break}case"label":{n.labels=n.labels||{},n.labels[l.trim()]=d;break}case"devices":{switch(h.trim()){case"name":{n.devices&&a&&n.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[l.trim()]=d)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],s=s||{},h.trim()){case"all":{s.all=d=="true";break}case"filters":{d&&(s.filter=d.split(","));break}case"keep duration":{s.keepDuration=d;break}case"keep bytes":{s.keepBytes=d;break}case"reserved space":{s.reservedSpace=d;break}case"max used space":{s.maxUsedSpace=d;break}case"min free space":{s.minFreeSpace=d;break}}break}case"file":{c&&n.files&&(n.files[c].length>0&&(n.files[c]+=`
`),n.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var Wnt=U(Fl(),1);var hH=U(require("fs"),1);var dH=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(!hH.default.existsSync(e))throw new Error(`config file ${e} not found`);e=hH.default.readFileSync(e,{encoding:"utf-8"})}let i=Gt.tmpName({tmpdir:Gt.tmpDir()});return hH.default.writeFileSync(i,e),i}};var pH=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new dH,this.buildx=e?.buildx||new or}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){wr(r)}return e.buildkit}async getVersionWithinImage(e){return z(`BuildKit.getVersionWithinImage nodeName: ${e}`),Vi.getExecOutput(["inspect","--format","{{.Config.Image}}",`${or.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return z(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Vi.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new QB({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(z(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return z(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(z(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!Wnt.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var mH=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 Vi.isAvailable();return z(`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 Je.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(z(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(z(`Compose.isAvailable error: ${i}`),!1));return z(`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 Je.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 Je.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 Cm=U(require("fs"),1),yd=U(require("os"),1),LB=U(require("path"),1);var gH=U(Fl(),1),tme=U(require("util"),1);var AH=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 i=await t.getDownloadVersion(e);z(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);z(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);z(`Install.download vspec: ${s}`);let a=gH.clean(s)||"";if(!gH.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new zn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:LB.default.join(yd.default.homedir(),".bin","docker-compose"),cacheFile:yd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return Y(`Compose binary found in ${u}`),u;let l=tme.format(i.downloadURL,s,this.filename());Y(`Downloading ${l}`);let f=await au(l,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${f}`);let h=await c.save(f);return Y(`Cached to ${h}`),h}async installStandalone(e,r){Y("Standalone mode"),r=r||Gt.tmpDir();let i=LB.default.join(r,"compose-bin-standalone");Cm.default.existsSync(i)||Cm.default.mkdirSync(i,{recursive:!0});let n=yd.default.platform()=="win32"?"compose.exe":"compose",s=LB.default.join(i,n);return Cm.default.copyFileSync(e,s),Y("Fixing perms"),Cm.default.chmodSync(s,"0755"),Bf(i),Y("Added Compose to PATH"),Y(`Binary path: ${s}`),s}async installPlugin(e,r){Y("Docker plugin mode"),r=r||Vi.configDir;let i=LB.default.join(r,"cli-plugins");Cm.default.existsSync(i)||Cm.default.mkdirSync(i,{recursive:!0});let n=yd.defau Line truncated
`),n.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var ost=U(Ul(),1);var AH=U(require("fs"),1);var gH=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(!AH.default.existsSync(e))throw new Error(`config file ${e} not found`);e=AH.default.readFileSync(e,{encoding:"utf-8"})}let i=Gt.tmpName({tmpdir:Gt.tmpDir()});return AH.default.writeFileSync(i,e),i}};var yH=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new gH,this.buildx=e?.buildx||new or}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){wr(r)}return e.buildkit}async getVersionWithinImage(e){return z(`BuildKit.getVersionWithinImage nodeName: ${e}`),ji.getExecOutput(["inspect","--format","{{.Config.Image}}",`${or.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return z(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),ji.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new FB({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(z(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return z(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(z(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!ost.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var EH=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 ji.isAvailable();return z(`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 Je.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(z(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(z(`Compose.isAvailable error: ${i}`),!1));return z(`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 Je.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 Je.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 Im=U(require("fs"),1),yd=U(require("os"),1),UB=U(require("path"),1);var wH=U(Ul(),1),cme=U(require("util"),1);var bH=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 i=await t.getDownloadVersion(e);z(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);z(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);z(`Install.download vspec: ${s}`);let a=wH.clean(s)||"";if(!wH.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Vn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:UB.default.join(yd.default.homedir(),".bin","docker-compose"),cacheFile:yd.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return Y(`Compose binary found in ${u}`),u;let l=cme.format(i.downloadURL,s,this.filename());Y(`Downloading ${l}`);let f=await cu(l,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${f}`);let h=await c.save(f);return Y(`Cached to ${h}`),h}async installStandalone(e,r){Y("Standalone mode"),r=r||Gt.tmpDir();let i=UB.default.join(r,"compose-bin-standalone");Im.default.existsSync(i)||Im.default.mkdirSync(i,{recursive:!0});let n=yd.default.platform()=="win32"?"compose.exe":"compose",s=UB.default.join(i,n);return Im.default.copyFileSync(e,s),Y("Fixing perms"),Im.default.chmodSync(s,"0755"),Bf(i),Y("Added Compose to PATH"),Y(`Binary path: ${s}`),s}async installPlugin(e,r){Y("Docker plugin mode"),r=r||ji.configDir;let i=UB.default.join(r,"cli-plugins");Im.default.existsSync(i)||Im.default.mkdirSync(i,{recursive:!0});let n=yd.defau Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -305,8 +305,8 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var yH=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new or,this.sigstore=e?.sigstore||new Pg}async download(e){let r=await t.getDownloadVersion(e.version);z(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);z(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);z(`Install.download vspec: ${n}`);let s=FB.clean(n)||"";if(!FB.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let a=new zn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:MB.default.join(uf.default.homedir(),".bin"),cacheFile:uf.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return Y(`Cosign binary found in ${c}`),c;let u=rme.format(r.downloadURL,n,this.filename());Y(`Downloading ${u}`);let l=await au(u,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&FB.satisfies(n,">=3.0.1")&&await this.verifySignature(l,u);let f=await a.save(l,e.skipState);return Y(`Cached to ${f}`),f}async build(e,r,i){let n=await this.vspec(e);z(`Install.build vspec: ${n}`);let s=new zn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:MB.default.join(uf.default.homedir(),".bin"),cacheFile:uf.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return Y(`Cosign binary found in ${a}`),a;let c=MB.default.join(Gt.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),l=await Je.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(Jnt)}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw new Error(`build failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),f=await s.save(l,i);return Y(`Cached to ${f}`),f}async install(e,r){r=r||Gt.tmpDir();let i=MB.default.join(r,"cosign-bin");b1.default.existsSync(i)||b1.default.mkdirSync(i,{recursive:!0});let n=uf.default.platform()=="win32"?"cosign.exe":"cosign",s=MB.default.join(i,n);return b1.default.copyFileSync(e,s),Y("Fixing perms"),b1.default.chmodSync(s,"0755"),Bf(i),Y("Added Cosign to PATH"),Y(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new or({standalone:!0}).isAvailable(),n=await new or({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)z("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)z("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)z("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)z("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!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 or({standalone:s}).getCommand(a)}async verifySignature(e,r){let i=`${r}.sigstore.json`;Y(`Downloading keyless verification bundle at ${i}`);let n=await au(i,void 0,this.githubToken);z(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});Y(`Cosign binary signature verified! ${s.tlogID?`${W0}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(uf.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=uf.default.arch();break}}let r=uf.default.platform()=="win32"?"windows":uf.default.platform(),i=uf.default.platform()=="win32"?".exe":"";return rme.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!st.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return Y(`Use ${l} version spec cache key for ${e}`),l}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await tS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${st.trimSuffix(a,".git")}/${n}`,u=st.hash(c);return Y(`Use ${u} version spec cache key for ${c}`),u}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new vt({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var Ynt=U(Fl(),1);var EH=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Je.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,s Line truncated
`)[0]?.trim())}else d.stderr.length>0&&(l=Error(`buildx bake failed with: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let f=r.buildxBake.resolveMetadata();f&&await Ai("Metadata",async()=>{let d=JSON.stringify(f,null,2);Y(d),hIe("metadata",d)});let h=[];if(await Ai("Build references",async()=>{if(h=await sSr(r,t,e.builder),h.length>0){for(let d of h)Y(d);hst(h)}else Y("No build references found")}),oSr()){let d=r.buildxBake.resolveWarnings(f);if(h.length>0&&d&&d.length>0){let p=await or.convertWarningsToGitHubAnnotations(d,h);z(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Ai(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let A of p)wr(A.message,A)})}}if(await Ai("Check build summary support",async()=>{aSr()?e.call&&e.call!=="build"?Y(`Build summary skipped for ${e.call} subrequest`):vt.isGHES?Y("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?h.length==0?Y("Build summary requires at least one build reference"):(Y("Build summary supported!"),dst()):Y("Build summary requires Buildx >= 0.23.0"):Y("Build summary disabled")}),l)throw l},async()=>{ast&&await Ai("Generating build summary",async()=>{try{let t=cSr(),e;t&&(e=uSr());let i=await new nF().export({refs:ost});Y(`Build records written to ${i.dockerbuildFilename} (${st.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await m3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await y3.writeBuildSummary({exportRes:i,uploadRes:n,inputs:nst,bakeDefinition:sst,driver:rst,endpoint:ist})}catch(t){wr(t.message)}}),_H.length>0&&await Ai(`Removing temp folder ${_H}`,async()=>{mst.rmSync(_H,{recursive:!0})})});async function sSr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=or.refs({dir:or.refsDir,builderName:r,since:e}),s=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.push(a);return s}o(sSr,"buildRefs");function oSr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?st.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(oSr,"buildChecksAnnotationsEnabled");function aSr(){return process.env.DOCKER_BUILD_SUMMARY?st.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(aSr,"buildSummaryEnabled");function cSr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?st.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(cSr,"buildRecordUploadEnabled");function uSr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(uSr,"buildRecordRetentionDays");
`;var CH=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new or,this.sigstore=e?.sigstore||new Pg}async download(e){let r=await t.getDownloadVersion(e.version);z(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);z(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);z(`Install.download vspec: ${n}`);let s=GB.clean(n)||"";if(!GB.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let a=new Vn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:qB.default.join(lf.default.homedir(),".bin"),cacheFile:lf.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return Y(`Cosign binary found in ${c}`),c;let u=ume.format(r.downloadURL,n,this.filename());Y(`Downloading ${u}`);let l=await cu(u,void 0,this.githubToken);z(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&GB.satisfies(n,">=3.0.1")&&await this.verifySignature(l,u);let f=await a.save(l,e.skipState);return Y(`Cached to ${f}`),f}async build(e,r,i){let n=await this.vspec(e);z(`Install.build vspec: ${n}`);let s=new Vn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:qB.default.join(lf.default.homedir(),".bin"),cacheFile:lf.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return Y(`Cosign binary found in ${a}`),a;let c=qB.default.join(Gt.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),l=await Je.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(ast)}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw new Error(`build failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),f=await s.save(l,i);return Y(`Cached to ${f}`),f}async install(e,r){r=r||Gt.tmpDir();let i=qB.default.join(r,"cosign-bin");S1.default.existsSync(i)||S1.default.mkdirSync(i,{recursive:!0});let n=lf.default.platform()=="win32"?"cosign.exe":"cosign",s=qB.default.join(i,n);return S1.default.copyFileSync(e,s),Y("Fixing perms"),S1.default.chmodSync(s,"0755"),Bf(i),Y("Added Cosign to PATH"),Y(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new or({standalone:!0}).isAvailable(),n=await new or({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)z("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)z("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)z("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)z("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!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 or({standalone:s}).getCommand(a)}async verifySignature(e,r){let i=`${r}.sigstore.json`;Y(`Downloading keyless verification bundle at ${i}`);let n=await cu(i,void 0,this.githubToken);z(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});Y(`Cosign binary signature verified! ${s.tlogID?`${K0}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(lf.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=lf.default.arch();break}}let r=lf.default.platform()=="win32"?"windows":lf.default.platform(),i=lf.default.platform()=="win32"?".exe":"";return ume.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!ot.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return Y(`Use ${l} version spec cache key for ${e}`),l}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await nS.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${ot.trimSuffix(a,".git")}/${n}`,u=ot.hash(c);return Y(`Use ${u} version spec cache key for ${c}`),u}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new vt({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var cst=U(Ul(),1);var IH=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Je.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,s Line truncated
`)[0]?.trim())}else d.stderr.length>0&&(l=Error(`buildx bake failed with: ${d.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let f=r.buildxBake.resolveMetadata();f&&await gi("Metadata",async()=>{let d=JSON.stringify(f,null,2);Y(d),SIe("metadata",d)});let h=[];if(await gi("Build references",async()=>{if(h=await hSr(r,t,e.builder),h.length>0){for(let d of h)Y(d);Sst(h)}else Y("No build references found")}),dSr()){let d=r.buildxBake.resolveWarnings(f);if(h.length>0&&d&&d.length>0){let p=await or.convertWarningsToGitHubAnnotations(d,h);z(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await gi(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let A of p)wr(A.message,A)})}}if(await gi("Check build summary support",async()=>{pSr()?e.call&&e.call!=="build"?Y(`Build summary skipped for ${e.call} subrequest`):vt.isGHES?Y("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?h.length==0?Y("Build summary requires at least one build reference"):(Y("Build summary supported!"),Bst()):Y("Build summary requires Buildx >= 0.23.0"):Y("Build summary disabled")}),l)throw l},async()=>{Est&&await gi("Generating build summary",async()=>{try{let t=mSr(),e;t&&(e=ASr());let i=await new cF().export({refs:yst});Y(`Build records written to ${i.dockerbuildFilename} (${ot.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await E3.upload({filename:i.dockerbuildFilename,retentionDays:e})),await C3.writeBuildSummary({exportRes:i,uploadRes:n,inputs:Ast,bakeDefinition:gst,driver:pst,endpoint:mst})}catch(t){wr(t.message)}}),NH.length>0&&await gi(`Removing temp folder ${NH}`,async()=>{_st.rmSync(NH,{recursive:!0})})});async function hSr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=or.refs({dir:or.refsDir,builderName:r,since:e}),s=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.push(a);return s}o(hSr,"buildRefs");function dSr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?ot.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(dSr,"buildChecksAnnotationsEnabled");function pSr(){return process.env.DOCKER_BUILD_SUMMARY?ot.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(pSr,"buildSummaryEnabled");function mSr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?ot.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(mSr,"buildRecordUploadEnabled");function ASr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(ASr,"buildRecordRetentionDays");
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "srBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,IAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,IAAA,sBAiBT,SAASM,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,IAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "srBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeG,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,IAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,IAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,IAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,IAAA,sBAiBT,SAASM,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,IAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+1 -1
View File
@@ -4146,7 +4146,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm package may be included in this product:
- undici@6.24.1
- undici@6.27.0
This package contains the following license:
+4 -11
View File
@@ -5803,17 +5803,10 @@ __metadata:
languageName: node
linkType: hard
"undici@npm:^6.23.0":
version: 6.24.1
resolution: "undici@npm:6.24.1"
checksum: 10/4f84e6045520eef9ba8eabb96360b50c759f59905c1703b12187c2dbcc6d1584c5d7ecddeb45b0ed6cac84ca2d132b21bfd8a38f77fa30378b1ac5d2ae390fd9
languageName: node
linkType: hard
"undici@npm:^6.25.0":
version: 6.25.0
resolution: "undici@npm:6.25.0"
checksum: 10/a475e45da3e1d1073283bb70531666f09a432eabff2b857bd7063d469a1ee1486192ff61dc0dadbb526673ce1120fee14d66a59b6b17d1e0bd3a4d5f0a52d0a6
"undici@npm:^6.23.0, undici@npm:^6.25.0":
version: 6.27.0
resolution: "undici@npm:6.27.0"
checksum: 10/30c18cdb235edf4dd36f8aa3ace1ffaf44060289a7d62ad44c33180d2d74a224015d25574812f62ce9c625b5beb1b0b766495b650fedf356aca11eed7ce2c816
languageName: node
linkType: hard