[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-09-01 11:31:38 +00:00
1 parent 38f63b05d6
commit c41f88734b
3 files changed
+108 -108

No files matched your search

Generated Vendored
+100 -99
View File
@@ -1,81 +1,81 @@
var Ide=Object.create;var OE=Object.defineProperty;var Bde=Object.getOwnPropertyDescriptor;var bde=Object.getOwnPropertyNames;var wde=Object.getPrototypeOf,Sde=Object.prototype.hasOwnProperty;var o=(t,e)=>OE(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nde=(t,e)=>{for(var r in e)OE(t,r,{get:e[r],enumerable:!0})},xde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bde(e))!Sde.call(t,s)&&s!==r&&OE(t,s,{get:()=>e[s],enumerable:!(n=Bde(e,s))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Ide(wde(t)):{},xde(e||!t||!t.__esModule?OE(r,"default",{value:t,enumerable:!0}):r,t));var cH=m(Cd=>{"use strict";var VKe=require("net"),Ype=require("tls"),Ux=require("http"),iH=require("https"),Wpe=require("events"),zKe=require("assert"),jpe=require("util");Cd.httpOverHttp=Kpe;Cd.httpsOverHttp=Xpe;Cd.httpOverHttps=Zpe;Cd.httpsOverHttps=efe;function Kpe(t){var e=new na(t);return e.request=Ux.request,e}o(Kpe,"httpOverHttp");function Xpe(t){var e=new na(t);return e.request=Ux.request,e.createSocket=oH,e.defaultPort=443,e}o(Xpe,"httpsOverHttp");function Zpe(t){var e=new na(t);return e.request=iH.request,e}o(Zpe,"httpOverHttps");function efe(t){var e=new na(t);return e.request=iH.request,e.createSocket=oH,e.defaultPort=443,e}o(efe,"httpsOverHttps");function na(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Ux.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=aH(s,i,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(na,"TunnelingAgent");jpe.inherits(na,Wpe.EventEmitter);na.prototype.addRequest=o(function(e,r,n,s){var i=this,a=qx({request:e},i.options,aH(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");na.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=qx({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),sc("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){sc("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){sc("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return sc("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),sc(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s)}o(d,"onError")},"createSocket");na.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function oH(t,e){var r=this;na.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=qx({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=Ype.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(oH,"createSecureSocket");function aH(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(aH,"toOptions");function qx(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(qx,"mergeOptions");var sc;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sc=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"):sc=o(function(){},"debug");Cd.debug=sc});var vf=m((YKe,lH)=>{lH.exports=cH()});var At=m((WKe,uH)=>{uH.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 ve=m((jKe,DH)=>{"use strict";var dH=Symbol.for("undici.error.UND_ERR"),pt=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[dH]===!0}[dH]=!0},AH=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Gx=class extends pt{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[AH]===!0}[AH]=!0},pH=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Hx=class extends pt{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[pH]===!0}[pH]=!0},fH=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Vx=class extends pt{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[fH]===!0}[fH]=!0},hH=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),zx=class extends pt{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(YV,"isValidHeaderValue");function mme(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(eme.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(mme,"setRequestReferrerPolicyOnRedirect");function gme(){return"allowed"}o(gme,"crossOriginResourcePolicyCheck");function Eme(){return"success"}o(Eme,"corsCheck");function yme(){return"success"}o(yme,"TAOCheck");function Cme(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Cme,"appendFetchMetadata");function Ime(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&&MQ(t.origin)&&!MQ(qf(t))&&(e=null);break;case"same-origin":hy(t,qf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Ime,"appendRequestOriginHeader");function Td(t,e){return t}o(Td,"coarsenTime");function Bme(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Td(t.domainLookupStartTime,r),domainLookupEndTime:Td(t.domainLookupEndTime,r),connectionStartTime:Td(t.connectionStartTime,r),connectionEndTime:Td(t.connectionEndTime,r),secureConnectionStartTime:Td(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Bme,"clampAndCoarsenConnectionTimingInfo");function bme(t){return Td(ime.now(),t)}o(bme,"coarsenedSharedCurrentTime");function wme(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(wme,"createOpaqueTimingInfo");function WV(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(WV,"makePolicyContainer");function Sme(t){return{referrerPolicy:t.referrerPolicy}}o(Sme,"clonePolicyContainer");function Nme(t){let e=t.referrerPolicy;Nl(e);let r=null;if(t.referrer==="client"){let c=HV();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=OQ(r),s=OQ(r,!0);n.toString().length>4096&&(n=s);let i=hy(t,n),a=Uf(n)&&!Uf(t.url);switch(e){case"origin":return s??OQ(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=qf(t);return hy(n,c)?n:Uf(n)&&!Uf(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Nme,"determineRequestsReferrer");function OQ(t,e){return Nl(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(OQ,"stripURLForReferrer");function Uf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Uf,"isURLPotentiallyTrustworthy");function xme(t,e){if(fy===void 0)return!0;let r=jV(e);if(r==="no metadata"||r.length===0)return!0;let n=Rme(r),s=Tme(r,n);for(let i of s){let a=i.algo,c=i.hash,l=fy.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),vme(l,c))return!0}return!1}o(xme,"bytesMatch");var Qme=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function jV(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Qme.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();zV.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(jV,"parseMetadata");function Rme(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(Rme,"getStrongestMetadata");function Tme(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(Tme,"filterMetadataListByAlgorithm");function vme(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(vme,"compareBase64Mixed");function _me(t){}o(_me,"tryUpgradeReque Line truncated
`);function fge(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(fge,"isAsciiString");function hge(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(hge,"validateBoundary");function mge(t,e){gy(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Ey(t,Age,i)||i.position===t.length-4&&Ey(t,pge,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=gge(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",fge(d)||(d=""),f=new uge([p],u,{type:d})):f=ige(Buffer.from(p)),gy(lz(l)),gy(typeof f=="string"&&lz(f)||age(f)),s.push(cge(l,f,u))}}o(mge,"multipartFormDataParser");function gge(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=_d(c=>c!==10&&c!==13&&c!==58,t,e);if(a=VQ(a,!0,!0,c=>c===9||c===32),!oge.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,_d(c=>c===32||c===9,t,e),sge(a)){case"content-disposition":{if(r=n=null,!Ey(t,dge,e)||(e.position+=17,r=Az(t,e),r===null))return"failure";if(Ey(t,dz,e)){let c=e.position+dz.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=Az(t,e),n===null))return"failure"}break}case"content-type":{let c=_d(l=>l!==10&&l!==13,t,e);c=VQ(c,!1,!0,l=>l===9||l===32),s=uz(c);break}case"content-transfer-encoding":{let c=_d(l=>l!==10&&l!==13,t,e);c=VQ(c,!1,!0,l=>l===9||l===32),i=uz(c);break}default:_d(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(gge,"parseMultipartFormDataHeaders");function Az(t,e){gy(t[e.position-1]===34);let r=_d(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(Az,"parseMultipartFormDataName");function _d(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(_d,"collectASequenceOfBytes");function VQ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(VQ,"removeChars");function Ey(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Ey,"bufferStartsWith");pz.exports={multipartFormDataParser:mge,validateBoundary:hge}});var Dd=m((OXe,wz)=>{"use strict";var Vf=Ie(),{ReadableStreamFrom:Ege,isBlobLike:hz,isReadableStreamLike:yge,readableStreamClose:Cge,createDeferredPromise:Ige,fullyReadBody:Bge,extractMimeType:bge,utf8DecodeBytes:Ez}=Un(),{FormData:mz}=Hf(),{kState:kd}=ic(),{webidl:wge}=Ir(),{Blob:Sge}=require("node:buffer"),zQ=require("node:assert"),{isErrored:yz,isDisturbed:Nge}=require("node:stream"),{isArrayBuffer:xge}=require("node:util/types"),{serializeAMimeType:Qge}=An(),{multipartFormDataParser:Rge}=fz(),$Q;try{let t=require("node:crypto");$Q=o(e=>t.randomInt(0,e),"random")}catch{$Q=o(t=>Math.floor(Math.random(t)),"random")}var yy=new TextEncoder;function Tge(){}o(Tge,"noop");var Cz=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Iz;Cz&&(Iz=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Nge(e)&&!yz(e)&&e.cancel("Response object has been garbage collected").catch(Tge)}));function Bz(t,e=!1){let r=null;t instanceof ReadableStream?r=t:hz(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?yy.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Cge(l))},start(){},type:"bytes"}),zQ(yge(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(xge(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Vf.isFormDataLike(t)){let l=`----formdata-undici-0${`${$Q(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
var vde=Object.create;var FE=Object.defineProperty;var _de=Object.getOwnPropertyDescriptor;var Pde=Object.getOwnPropertyNames;var kde=Object.getPrototypeOf,Dde=Object.prototype.hasOwnProperty;var o=(t,e)=>FE(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ode=(t,e)=>{for(var r in e)FE(t,r,{get:e[r],enumerable:!0})},Mde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pde(e))!Dde.call(t,s)&&s!==r&&FE(t,s,{get:()=>e[s],enumerable:!(n=_de(e,s))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?vde(kde(t)):{},Mde(e||!t||!t.__esModule?FE(r,"default",{value:t,enumerable:!0}):r,t));var lH=m(Bd=>{"use strict";var nXe=require("net"),sfe=require("tls"),Gx=require("http"),oH=require("https"),ife=require("events"),sXe=require("assert"),ofe=require("util");Bd.httpOverHttp=afe;Bd.httpsOverHttp=cfe;Bd.httpOverHttps=lfe;Bd.httpsOverHttps=ufe;function afe(t){var e=new sa(t);return e.request=Gx.request,e}o(afe,"httpOverHttp");function cfe(t){var e=new sa(t);return e.request=Gx.request,e.createSocket=aH,e.defaultPort=443,e}o(cfe,"httpsOverHttp");function lfe(t){var e=new sa(t);return e.request=oH.request,e}o(lfe,"httpOverHttps");function ufe(t){var e=new sa(t);return e.request=oH.request,e.createSocket=aH,e.defaultPort=443,e}o(ufe,"httpsOverHttps");function sa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Gx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=cH(s,i,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(sa,"TunnelingAgent");ofe.inherits(sa,ife.EventEmitter);sa.prototype.addRequest=o(function(e,r,n,s){var i=this,a=Hx({request:e},i.options,cH(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");sa.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=Hx({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),ic("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){ic("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){ic("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return ic("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),ic(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s)}o(d,"onError")},"createSocket");sa.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function aH(t,e){var r=this;sa.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=Hx({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=sfe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(aH,"createSecureSocket");function cH(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(cH,"toOptions");function Hx(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(Hx,"mergeOptions");var ic;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ic=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"):ic=o(function(){},"debug");Bd.debug=ic});var Pf=m((aXe,uH)=>{uH.exports=lH()});var At=m((cXe,dH)=>{dH.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 ve=m((lXe,OH)=>{"use strict";var AH=Symbol.for("undici.error.UND_ERR"),pt=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[AH]===!0}[AH]=!0},pH=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Vx=class extends pt{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[pH]===!0}[pH]=!0},fH=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),zx=class extends pt{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[fH]===!0}[fH]=!0},hH=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),$x=class extends pt{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[hH]===!0}[hH]=!0},mH=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Jx=class extends pt{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(WV,"isValidHeaderValue");function Nme(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(ume.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(Nme,"setRequestReferrerPolicyOnRedirect");function xme(){return"allowed"}o(xme,"crossOriginResourcePolicyCheck");function Qme(){return"success"}o(Qme,"corsCheck");function Rme(){return"success"}o(Rme,"TAOCheck");function Tme(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Tme,"appendFetchMetadata");function vme(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&&FQ(t.origin)&&!FQ(Hf(t))&&(e=null);break;case"same-origin":Ey(t,Hf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(vme,"appendRequestOriginHeader");function _d(t,e){return t}o(_d,"coarsenTime");function _me(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:_d(t.domainLookupStartTime,r),domainLookupEndTime:_d(t.domainLookupEndTime,r),connectionStartTime:_d(t.connectionStartTime,r),connectionEndTime:_d(t.connectionEndTime,r),secureConnectionStartTime:_d(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(_me,"clampAndCoarsenConnectionTimingInfo");function Pme(t){return _d(hme.now(),t)}o(Pme,"coarsenedSharedCurrentTime");function kme(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(kme,"createOpaqueTimingInfo");function jV(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(jV,"makePolicyContainer");function Dme(t){return{referrerPolicy:t.referrerPolicy}}o(Dme,"clonePolicyContainer");function Ome(t){let e=t.referrerPolicy;xl(e);let r=null;if(t.referrer==="client"){let c=VV();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=LQ(r),s=LQ(r,!0);n.toString().length>4096&&(n=s);let i=Ey(t,n),a=Gf(n)&&!Gf(t.url);switch(e){case"origin":return s??LQ(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=Hf(t);return Ey(n,c)?n:Gf(n)&&!Gf(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Ome,"determineRequestsReferrer");function LQ(t,e){return xl(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(LQ,"stripURLForReferrer");function Gf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Gf,"isURLPotentiallyTrustworthy");function Mme(t,e){if(gy===void 0)return!0;let r=KV(e);if(r==="no metadata"||r.length===0)return!0;let n=Fme(r),s=Ume(r,n);for(let i of s){let a=i.algo,c=i.hash,l=gy.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),qme(l,c))return!0}return!1}o(Mme,"bytesMatch");var Lme=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KV(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Lme.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();$V.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(KV,"parseMetadata");function Fme(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(Fme,"getStrongestMetadata");function Ume(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(Ume,"filterMetadataListByAlgorithm");function qme(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(qme,"compareBase64Mixed");function Gme(t){}o(Gme,"tryUpgradeReque Line truncated
`);function wge(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(wge,"isAsciiString");function Sge(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(Sge,"validateBoundary");function Nge(t,e){Cy(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Iy(t,Bge,i)||i.position===t.length-4&&Iy(t,bge,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=xge(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",wge(d)||(d=""),f=new Cge([p],u,{type:d})):f=hge(Buffer.from(p)),Cy(uz(l)),Cy(typeof f=="string"&&uz(f)||gge(f)),s.push(Ege(l,f,u))}}o(Nge,"multipartFormDataParser");function xge(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=kd(c=>c!==10&&c!==13&&c!==58,t,e);if(a=$Q(a,!0,!0,c=>c===9||c===32),!mge.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,kd(c=>c===32||c===9,t,e),fge(a)){case"content-disposition":{if(r=n=null,!Iy(t,Ige,e)||(e.position+=17,r=pz(t,e),r===null))return"failure";if(Iy(t,Az,e)){let c=e.position+Az.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=pz(t,e),n===null))return"failure"}break}case"content-type":{let c=kd(l=>l!==10&&l!==13,t,e);c=$Q(c,!1,!0,l=>l===9||l===32),s=dz(c);break}case"content-transfer-encoding":{let c=kd(l=>l!==10&&l!==13,t,e);c=$Q(c,!1,!0,l=>l===9||l===32),i=dz(c);break}default:kd(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(xge,"parseMultipartFormDataHeaders");function pz(t,e){Cy(t[e.position-1]===34);let r=kd(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(pz,"parseMultipartFormDataName");function kd(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(kd,"collectASequenceOfBytes");function $Q(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o($Q,"removeChars");function Iy(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Iy,"bufferStartsWith");fz.exports={multipartFormDataParser:Nge,validateBoundary:Sge}});var Md=m((WXe,Sz)=>{"use strict";var $f=Ie(),{ReadableStreamFrom:Qge,isBlobLike:mz,isReadableStreamLike:Rge,readableStreamClose:Tge,createDeferredPromise:vge,fullyReadBody:_ge,extractMimeType:Pge,utf8DecodeBytes:yz}=Un(),{FormData:gz}=zf(),{kState:Od}=oc(),{webidl:kge}=Ir(),{Blob:Dge}=require("node:buffer"),JQ=require("node:assert"),{isErrored:Cz,isDisturbed:Oge}=require("node:stream"),{isArrayBuffer:Mge}=require("node:util/types"),{serializeAMimeType:Lge}=An(),{multipartFormDataParser:Fge}=hz(),YQ;try{let t=require("node:crypto");YQ=o(e=>t.randomInt(0,e),"random")}catch{YQ=o(t=>Math.floor(Math.random(t)),"random")}var By=new TextEncoder;function Uge(){}o(Uge,"noop");var Iz=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Bz;Iz&&(Bz=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Oge(e)&&!Cz(e)&&e.cancel("Response object has been garbage collected").catch(Uge)}));function bz(t,e=!1){let r=null;t instanceof ReadableStream?r=t:mz(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?By.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Tge(l))},start(){},type:"bytes"}),JQ(Rge(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Mge(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if($f.isFormDataLike(t)){let l=`----formdata-undici-0${`${YQ(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=yy.encode(u+`; name="${d(A(y))}"\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=By.encode(u+`; name="${d(A(y))}"\r
\r
${A(E)}\r
`);p.push(C),i+=C.byteLength}else{let C=yy.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
`);p.push(C),i+=C.byteLength}else{let C=By.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:h=!0}let g=yy.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(hz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Vf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Ege(t)}if((typeof s=="string"||Vf.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!yz(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(Bz,"extractBody");function vge(t,e=!1){return t instanceof ReadableStream&&(zQ(!Vf.isDisturbed(t),"The body has already been consumed."),zQ(!t.locked,"The stream is locked.")),Bz(t,e)}o(vge,"safelyExtractBody");function _ge(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(_ge,"cloneBody");function Pge(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Pge,"throwIfAborted");function kge(t){return{blob(){return Pd(this,r=>{let n=gz(this);return n===null?n="":n&&(n=Qge(n)),new Sge([r],{type:n})},t)},arrayBuffer(){return Pd(this,r=>new Uint8Array(r).buffer,t)},text(){return Pd(this,Ez,t)},json(){return Pd(this,Oge,t)},formData(){return Pd(this,r=>{let n=gz(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Rge(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new mz;return i[kd]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new mz;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Pd(this,r=>new Uint8Array(r),t)}}}o(kge,"bodyMixinMethods");function Dge(t){Object.assign(t.prototype,kge(t))}o(Dge,"mixinBody");async function Pd(t,e,r){if(wge.brandCheck(t,r),bz(t))throw new TypeError("Body is unusable: Body has already been read");Pge(t[kd]);let n=Ige(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[kd].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Bge(t[kd].body,i,s),n.promise)}o(Pd,"consumeBody");function bz(t){let e=t[kd].body;return e!=null&&(e.stream.locked||Vf.isDisturbed(e.stream))}o(bz,"bodyUnusable");function Oge(t){return JSON.parse(Ez(t))}o(Oge,"parseJSONFromBytes");function gz(t){let e=t[kd].headersList,r=bge(e);return r==="failure"?null:r}o(gz,"bodyMimeType");wz.exports={extractBody:Bz,safelyExtractBody:vge,cloneBody:_ge,mixinBody:Dge,streamRegistry:Iz,hasFinalizationRegistry:Cz,bodyUnusable:bz}});var Uz=m((LXe,Fz)=>{"use strict";var X=require("node:assert"),te=Ie(),{channels:Sz}=Bd(),JQ=QQ(),{RequestContentLengthMismatchError:xl,ResponseContentLengthMismatchError:Nz,RequestAbortedError:kz,InvalidArgumentError:Mge,HeadersTimeoutError:Lge,HeadersOverflowError:Fge,SocketError:Od,InformationalError:Md,BodyTimeoutError:Uge,HTTPParserError:qge,ResponseExceededMaxSizeError:Gge}=ve(),{kUrl:Dz,kReset:pn,kClient:by,kParser:st,kBlocking:Jf,kRunning:$t,kPending:Oz,kSize:xz,kWriting:oc,kQueue:ii,kNoRef:zf,kKeepAliveDefaultTimeout:Hge,kHostHeader:Vge,kPendingIdx:zge,kRunningIdx:Es,kError:zr,kPipelining:wy,kSocket:Rl,kKeepAliveTimeoutValue:Ny,kMaxHeadersSize:YQ,kKeepAliveMaxTimeout:$ge,kKeepAliveTimeoutThreshold:Jge,kHeadersTimeout:Yge,kBodyTimeout:Wge,kStrictContentLength:KQ,kMaxRequests:Qz,kCounter:jge,kMaxResponseSize:Kge,kOnError:Rz,kResume:la,kHTTPContext:Mz}=At(),qn=IV(),Tz=Buffer.alloc(0),Cy=Buffer[Symbol.species],Iy=te.addListener,Xge=te.removeAllListeners,Tl=Symbol("kIdleSocketValidation"),Ql=Symbol("kIdleSocketValidationTimeout"),tR=Symbol("kSocketUsed"),WQ;async function Zge(){let t=process.env.JEST_WORKER_ID?vQ():void 0,e;try{e=await WebAssembly.compile(wV())}catch{e=await WebAssembly.compile(t||vQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{X(St.ptr===r);let i=n-Ui+Fi.byteOffset;return St.onStatus(new Cy(Fi.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(St.ptr===r),St.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{X(St.ptr===r);let i=n-Ui+Fi.byteOffset;return St.onHeaderField(new Cy(Fi.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{X(St.ptr===r);let i=n-Ui+Fi.byteOffset;return St.onHeaderValue(new Cy(Fi.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(X(St.ptr===r),St.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{X(St.ptr===r);let i=n-Ui+Fi.byteOffset;return St.o Line truncated
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:h=!0}let g=By.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(mz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if($f.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Qge(t)}if((typeof s=="string"||$f.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Cz(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(bz,"extractBody");function qge(t,e=!1){return t instanceof ReadableStream&&(JQ(!$f.isDisturbed(t),"The body has already been consumed."),JQ(!t.locked,"The stream is locked.")),bz(t,e)}o(qge,"safelyExtractBody");function Gge(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(Gge,"cloneBody");function Hge(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Hge,"throwIfAborted");function Vge(t){return{blob(){return Dd(this,r=>{let n=Ez(this);return n===null?n="":n&&(n=Lge(n)),new Dge([r],{type:n})},t)},arrayBuffer(){return Dd(this,r=>new Uint8Array(r).buffer,t)},text(){return Dd(this,yz,t)},json(){return Dd(this,$ge,t)},formData(){return Dd(this,r=>{let n=Ez(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Fge(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gz;return i[Od]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new gz;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Dd(this,r=>new Uint8Array(r),t)}}}o(Vge,"bodyMixinMethods");function zge(t){Object.assign(t.prototype,Vge(t))}o(zge,"mixinBody");async function Dd(t,e,r){if(kge.brandCheck(t,r),wz(t))throw new TypeError("Body is unusable: Body has already been read");Hge(t[Od]);let n=vge(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Od].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await _ge(t[Od].body,i,s),n.promise)}o(Dd,"consumeBody");function wz(t){let e=t[Od].body;return e!=null&&(e.stream.locked||$f.isDisturbed(e.stream))}o(wz,"bodyUnusable");function $ge(t){return JSON.parse(yz(t))}o($ge,"parseJSONFromBytes");function Ez(t){let e=t[Od].headersList,r=Pge(e);return r==="failure"?null:r}o(Ez,"bodyMimeType");Sz.exports={extractBody:bz,safelyExtractBody:qge,cloneBody:Gge,mixinBody:zge,streamRegistry:Bz,hasFinalizationRegistry:Iz,bodyUnusable:wz}});var qz=m((KXe,Uz)=>{"use strict";var X=require("node:assert"),te=Ie(),{channels:Nz}=wd(),WQ=TQ(),{RequestContentLengthMismatchError:Ql,ResponseContentLengthMismatchError:xz,RequestAbortedError:Dz,InvalidArgumentError:Jge,HeadersTimeoutError:Yge,HeadersOverflowError:Wge,SocketError:Ld,InformationalError:Fd,BodyTimeoutError:jge,HTTPParserError:Kge,ResponseExceededMaxSizeError:Xge}=ve(),{kUrl:Oz,kReset:pn,kClient:Ny,kParser:st,kBlocking:Wf,kRunning:$t,kPending:Mz,kSize:Qz,kWriting:ac,kQueue:oi,kNoRef:Jf,kKeepAliveDefaultTimeout:Zge,kHostHeader:eEe,kPendingIdx:tEe,kRunningIdx:Es,kError:zr,kPipelining:xy,kSocket:Tl,kKeepAliveTimeoutValue:Ry,kMaxHeadersSize:jQ,kKeepAliveMaxTimeout:rEe,kKeepAliveTimeoutThreshold:nEe,kHeadersTimeout:sEe,kBodyTimeout:iEe,kStrictContentLength:ZQ,kMaxRequests:Rz,kCounter:oEe,kMaxResponseSize:aEe,kOnError:Tz,kResume:ua,kHTTPContext:Lz}=At(),qn=BV(),vz=Buffer.alloc(0),by=Buffer[Symbol.species],wy=te.addListener,cEe=te.removeAllListeners,vl=Symbol("kIdleSocketValidation"),Rl=Symbol("kIdleSocketValidationTimeout"),nR=Symbol("kSocketUsed"),KQ;async function lEe(){let t=process.env.JEST_WORKER_ID?PQ():void 0,e;try{e=await WebAssembly.compile(SV())}catch{e=await WebAssembly.compile(t||PQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{X(St.ptr===r);let i=n-qi+Ui.byteOffset;return St.onStatus(new by(Ui.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(St.ptr===r),St.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{X(St.ptr===r);let i=n-qi+Ui.byteOffset;return St.onHeaderField(new by(Ui.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{X(St.ptr===r);let i=n-qi+Ui.byteOffset;return St.onHeaderValue(new by(Ui.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(X(St.ptr===r),St.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{X(St.ptr===r);let i=n-qi+Ui.byteOffset;return St.o Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[Vge],i?g+=`connection: upgrade\r
`:g+=t[eEe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[wy]&&!f[pn]?g+=`connection: keep-alive\r
`:t[xy]&&!f[pn]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${E}: ${C[I]}\r
`;else g+=`${E}: ${C}\r
`}return Sz.sendHeaders.hasSubscribers&&Sz.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?_z(h,null,t,e,f,d,g,A):te.isBuffer(l)?_z(h,l,t,e,f,d,g,A):te.isBlobLike(l)?typeof l.stream=="function"?Pz(h,l.stream(),t,e,f,d,g,A):aEe(h,l,t,e,f,d,g,A):te.isStream(l)?oEe(h,l,t,e,f,d,g,A):te.isIterable(l)?Pz(h,l,t,e,f,d,g,A):X(!1),!0}o(iEe,"writeH1");function oEe(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"stream body cannot be pipelined");let l=!1,u=new xy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){te.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new kz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[oc]&&r[$t]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(oEe,"writeStream");function _z(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
`}return Nz.sendHeaders.hasSubscribers&&Nz.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?Pz(h,null,t,e,f,d,g,A):te.isBuffer(l)?Pz(h,l,t,e,f,d,g,A):te.isBlobLike(l)?typeof l.stream=="function"?kz(h,l.stream(),t,e,f,d,g,A):gEe(h,l,t,e,f,d,g,A):te.isStream(l)?mEe(h,l,t,e,f,d,g,A):te.isIterable(l)?kz(h,l,t,e,f,d,g,A):X(!1),!0}o(hEe,"writeH1");function mEe(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"stream body cannot be pipelined");let l=!1,u=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){te.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new Dz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[ac]&&r[$t]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(mEe,"writeStream");function Pz(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[pn]=!0)):i===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(X(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[la]()}catch(l){t(l)}}o(_z,"writeBuffer");async function aEe(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xl;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[ua]()}catch(l){t(l)}}o(Pz,"writeBuffer");async function gEe(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ql;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[pn]=!0),r[la]()}catch(l){t(l)}}o(aEe,"writeBlob");async function Pz(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{X(l===null),s[zr]?f(s[zr]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new xy({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[zr])throw s[zr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(Pz,"writeIterable");var xy=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[oc]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[zr])throw r[zr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[KQ])throw new xl;process.emitWarning(new xl)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[pn]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[pn]=!0),r[ua]()}catch(l){t(l)}}o(gEe,"writeBlob");async function kz(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{X(l===null),s[zr]?f(s[zr]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[zr])throw s[zr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(kz,"writeIterable");var Ty=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ac]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[zr])throw r[zr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[ZQ])throw new Ql;process.emitWarning(new Ql)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[pn]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[st].timeout&&r[st].timeoutType===Ld&&r[st].timeout.refresh&&r[st].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[oc]=!1,e[zr])throw e[zr];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[st].timeout&&r[st].timeoutType===Ud&&r[st].timeout.refresh&&r[st].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[ac]=!1,e[zr])throw e[zr];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[KQ])throw new xl;process.emitWarning(new xl)}e[st].timeout&&e[st].timeoutType===Ld&&e[st].timeout.refresh&&e[st].timeout.refresh(),n[la]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[oc]=!1,e&&(X(n[$t]<=1,"pipeline should only contain this request"),s(e))}};Fz.exports=tEe});var Yz=m((UXe,Jz)=>{"use strict";var ys=require("node:assert"),{pipeline:cEe}=require("node:stream"),Se=Ie(),{RequestContentLengthMismatchError:rR,RequestAbortedError:qz,SocketError:Yf,InformationalError:nR}=ve(),{kUrl:Qy,kReset:Ty,kClient:Fd,kRunning:vy,kPending:lEe,kQueue:ac,kPendingIdx:sR,kRunningIdx:oi,kError:ci,kSocket:dr,kStrictContentLength:uEe,kOnError:iR,kMaxConcurrentStreams:$z,kHTTP2Session:ai,kResume:cc,kSize:dEe,kHTTPContext:AEe}=At(),ua=Symbol("open streams"),Gz,Hz=!1,Ry;try{Ry=require("node:http2")}catch{Ry={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:pEe,HTTP2_HEADER_METHOD:fEe,HTTP2_HEADER_PATH:hEe,HTTP2_HEADER_SCHEME:mEe,HTTP2_HEADER_CONTENT_LENGTH:gEe,HTTP2_HEADER_EXPECT:EEe,HTTP2_HEADER_STATUS:yEe}}=Ry;function CEe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(CEe,"parseH2Headers");async function IEe(t,e){t[dr]=e,Hz||(Hz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Ry.connect(t[Qy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[$z]});r[ua]=0,r[Fd]=t,r[dr]=e,Se.addListener(r,"error",bEe),Se.addListener(r,"frameError",wEe),Se.addListener(r,"end",SEe),Se.addListener(r,"goaway",NEe),Se.addListener(r,"close",function(){let{[Fd]:s}=this,{[dr]:i}=s,a=this[dr][ci]||this[ci]||new Yf("closed",Se.getSocketInfo(i));if(s[ai]=null,s.destroyed){ys(s[lEe]===0);let c=s[ac].splice(s[oi]);for(let l=0;l<c.length;l++){let u=c[l];Se.errorRequest(s,u,a)}}}),r.unref(),t[ai]=r,e[ai]=r,Se.addListener(e,"error",function(s){ys(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ci]=s,this[Fd][iR](s)}),Se.addListener(e,"end",function(){Se.destroy(this,new Yf("other side closed",Se.getSocketInfo(this)))}),Se.addListener(e,"close",function(){let s=this[ci]||new Yf("closed",Se.getSocketInfo(this));t[dr]=null,this[ai]!=null&&this[ai].destroy(s),t[sR]=t[oi],ys(t[vy]===0),t.emit("disconnect",t[Qy],[t],s),t[cc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return QEe(t,...s)},resume(){BEe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(IEe,"connectH2");function BEe(t){let e=t[dr];e?.destroyed===!1&&(t[dEe]===0&&t[$z]===0?(e.unref(),t[ai].unref()):(e.ref(),t[ai].ref()))}o(BEe,"resumeH2");function bEe(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][ci]=t,this[Fd][iR](t)}o(bEe,"onHttp2SessionError");function wEe(t,e,r){if(r===0){let n=new nR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][ci]=n,this[Fd][iR](n)}}o(wEe,"onHttp2FrameError");function SEe(){let t=new Yf("other side closed",Se.getSocketInfo(this[dr]));this.destroy(t),Se.destroy(this[dr],t)}o(SEe,"onHttp2SessionEnd");function NEe(t){let e=this[ci]||new Yf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Se.getSocketInfo(this)),r=this[Fd];if(r[dr]=null,r[AEe]=null,this[ai]!=null&&(this[ai].destroy(e),this[ai]=null),Se.destroy(this[dr],e),r[oi]<r[ac].length){let n=r[ac][r[oi]];r[ac][r[oi]++]=null,Se.errorRequest(r,n,e),r[sR]=r[oi]}ys(r[vy]===0),r.emit("disconnect",r[Qy],[r],e),r[cc]()}o(NEe,"onHTTP2GoAway");function xEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(xEe,"shouldSendContentLength");function QEe(t,e){let r=t[ai],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Se.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let b=0;b<u.length;b+=2){let N=u[b+0],Q=u[b+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:h}=t[Qy];A[pEe]=i||`${f}${h?`:${h}`:""}`,A[fEe]=n;let g=o(b=>{e.aborted||e.completed||(b=b||new qz,Se.errorRequest(t,e,b),p!=null&&Se.destroy(p,b),Se.destroy(d,b),t[ac][t[oi]++]=null,t[cc]())},"abort");try{e.onConnect(g)}catch(b){Se.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[ua],t[ac][t[oi]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[ua],t[ac][t[oi]++]=null}),p.once("close",()=>{r[ua]-=1,r[ua]===0&&r.unref()}),!0;A[hEe]=s,A[mEe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Se.bodyLength(d);if(Se.isFormDataLike(d)){Gz??=Dd().extractBody;let[b,N]=Gz(d);A["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),xEe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[uEe])return Se.errorRequest(t,e,n Line truncated
`,this[eye]=l??3e5,this[ZEe]=s??3e5,this[tye]=C??!0,this[rye]=b,this[lR]=Q,this[uc]=null,this[aye]=ce>-1?ce:-1,this[lye]=$e??100,this[Ot]=null,this[li]=[],this[Aa]=0,this[ui]=0,this[Xf]=de=>dR(this,de),this[cye]=de=>o$(this,de)}get pipelining(){return this[Dy]}set pipelining(e){this[Dy]=e,this[Xf](!0)}get[th](){return this[li].length-this[ui]}get[eh](){return this[ui]-this[Aa]}get[Zf](){return this[li].length-this[Aa]}get[$Ee](){return!!this[Ot]&&!this[qd]&&!this[Ot].destroyed}get[cR](){return!!(this[Ot]?.busy(null)||this[Zf]>=(i$(this)||1)||this[th]>0)}[zEe](e){a$(this),this.once("connect",e)}[oye](e,r){let n=e.origin||this[Gi].origin,s=new FEe(n,e,r);return this[li].push(s),this[_l]||(vl.bodyLength(s.body)==null&&vl.isIterable(s.body)?(this[_l]=1,queueMicrotask(()=>dR(this))):this[Xf](!0)),this[_l]&&this[dc]!==2&&this[cR]&&(this[dc]=2),this[dc]<2}async[sye](){return new Promise(e=>{this[Zf]?this[uc]=e:e(null)})}async[iye](e){return new Promise(r=>{let n=this[li].splice(this[ui]);for(let i=0;i<n.length;i++){let a=n[i];vl.errorRequest(this,a,e)}let s=o(()=>{this[uc]&&(this[uc](),this[uc]=null),r(null)},"callback");this[Ot]?(this[Ot].destroy(e,s),this[Ot]=null):queueMicrotask(s),this[Xf]()})}},Aye=ky();function o$(t,e){if(t[eh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){da(t[ui]===t[Aa]);let r=t[li].splice(t[Aa]);for(let n=0;n<r.length;n++){let s=r[n];vl.errorRequest(t,s,e)}da(t[Zf]===0)}}o(o$,"onError");async function a$(t){da(!t[qd]),da(!t[Ot]);let{host:e,hostname:r,protocol:n,port:s}=t[Gi];if(r[0]==="["){let i=r.indexOf("]");da(i!==-1);let a=r.substring(1,i);da(s$.isIP(a)),r=a}t[qd]=!0,Ud.beforeConnect.hasSubscribers&&Ud.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[lc],localAddress:t[Kf]},connector:t[jf]});try{let i=await new Promise((a,c)=>{t[jf]({host:e,hostname:r,protocol:n,port:s,servername:t[lc],localAddress:t[Kf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){vl.destroy(i.on("error",r$),new GEe);return}da(i);try{t[Ot]=i.alpnProtocol==="h2"?await dye(t,i):await uye(t,i)}catch(a){throw i.destroy().on("error",r$),a}t[qd]=!1,i[nye]=0,i[lR]=t[lR],i[VEe]=t,i[YEe]=null,Ud.connected.hasSubscribers&&Ud.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[lc],localAddress:t[Kf]},connector:t[jf],socket:i}),t.emit("connect",t[Gi],[t])}catch(i){if(t.destroyed)return;if(t[qd]=!1,Ud.connectError.hasSubscribers&&Ud.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[lc],localAddress:t[Kf]},connector:t[jf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(da(t[eh]===0);t[th]>0&&t[li][t[ui]].servername===t[lc];){let a=t[li][t[ui]++];vl.errorRequest(t,a,i)}else o$(t,i);t.emit("connectionError",t[Gi],[t],i)}t[Xf]()}o(a$,"connect");function n$(t){t[dc]=0,t.emit("drain",t[Gi],[t])}o(n$,"emitDrain");function dR(t,e){t[_l]!==2&&(t[_l]=2,pye(t,e),t[_l]=0,t[Aa]>256&&(t[li].splice(0,t[Aa]),t[ui]-=t[Aa],t[Aa]=0))}o(dR,"resume");function pye(t,e){for(;;){if(t.destroyed){da(t[th]===0);return}if(t[uc]&&!t[Zf]){t[uc](),t[uc]=null;return}if(t[Ot]&&t[Ot].resume(),t[cR])t[dc]=2;else if(t[dc]===2){e?(t[dc]=1,queueMicrotask(()=>n$(t))):n$(t);continue}if(t[th]===0||t[eh]>=(i$(t)||1))return;let r=t[li][t[ui]];if(t[Gi].protocol==="https:"&&t[lc]!==r.servername){if(t[eh]>0)return;t[lc]=r.servername,t[Ot]?.destroy(new qEe("servername changed"),()=>{t[Ot]=null,dR(t)})}if(t[qd])return;if(!t[Ot]){a$(t);return}if(t[Ot].destroyed||t[Ot].busy(r))return;!r.aborted&&t[Ot].write(r)?t[ui]++:t[li].splice(t[ui],1)}}o(pye,"_resume");c$.exports=uR});var AR=m((WXe,l$)=>{"use strict";var Oy=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)}};l$.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Oy}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Oy),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var d$=m((KXe,u$)=>{var{kFree:fye,kConnected:hye,kPending:mye,kQueued:gye,kRunning:Eye,kSize:yye}=At(),Pl=Symbol("pool"),pR=class{static{o(this,"PoolStats")}constructor(e){this[Pl]=e}get connected(){return this[Pl][hye]}get free(){return this[Pl][fye]}get pending(){return this[Pl][mye]}get queued(){return this[Pl][gye]}get running(){return this[Pl][Eye]}get size(){return this[Pl][yye]}};u$.exports=pR});var yR=m((ZXe,I$)=>{"use strict";var Cye=Nd(),Iye=AR(),{kConnected:fR,kSize:A$,kRunning:p$,kPending:f$,kQueued:rh,kBusy:Bye,kFree:bye,kUrl:wye,kClose:Sye,kDestroy:Nye,kDispatch:xye}=At(),Qye=d$(),fn=Symbol("cl Line truncated
`,"latin1"),r!==null&&s!==r){if(n[ZQ])throw new Ql;process.emitWarning(new Ql)}e[st].timeout&&e[st].timeoutType===Ud&&e[st].timeout.refresh&&e[st].timeout.refresh(),n[ua]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[ac]=!1,e&&(X(n[$t]<=1,"pipeline should only contain this request"),s(e))}};Uz.exports=dEe});var Wz=m((ZXe,Yz)=>{"use strict";var ys=require("node:assert"),{pipeline:EEe}=require("node:stream"),Se=Ie(),{RequestContentLengthMismatchError:sR,RequestAbortedError:Gz,SocketError:jf,InformationalError:iR}=ve(),{kUrl:vy,kReset:Py,kClient:qd,kRunning:ky,kPending:yEe,kQueue:cc,kPendingIdx:oR,kRunningIdx:ai,kError:li,kSocket:dr,kStrictContentLength:CEe,kOnError:aR,kMaxConcurrentStreams:Jz,kHTTP2Session:ci,kResume:lc,kSize:IEe,kHTTPContext:BEe}=At(),da=Symbol("open streams"),Hz,Vz=!1,_y;try{_y=require("node:http2")}catch{_y={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bEe,HTTP2_HEADER_METHOD:wEe,HTTP2_HEADER_PATH:SEe,HTTP2_HEADER_SCHEME:NEe,HTTP2_HEADER_CONTENT_LENGTH:xEe,HTTP2_HEADER_EXPECT:QEe,HTTP2_HEADER_STATUS:REe}}=_y;function TEe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(TEe,"parseH2Headers");async function vEe(t,e){t[dr]=e,Vz||(Vz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_y.connect(t[vy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Jz]});r[da]=0,r[qd]=t,r[dr]=e,Se.addListener(r,"error",PEe),Se.addListener(r,"frameError",kEe),Se.addListener(r,"end",DEe),Se.addListener(r,"goaway",OEe),Se.addListener(r,"close",function(){let{[qd]:s}=this,{[dr]:i}=s,a=this[dr][li]||this[li]||new jf("closed",Se.getSocketInfo(i));if(s[ci]=null,s.destroyed){ys(s[yEe]===0);let c=s[cc].splice(s[ai]);for(let l=0;l<c.length;l++){let u=c[l];Se.errorRequest(s,u,a)}}}),r.unref(),t[ci]=r,e[ci]=r,Se.addListener(e,"error",function(s){ys(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[li]=s,this[qd][aR](s)}),Se.addListener(e,"end",function(){Se.destroy(this,new jf("other side closed",Se.getSocketInfo(this)))}),Se.addListener(e,"close",function(){let s=this[li]||new jf("closed",Se.getSocketInfo(this));t[dr]=null,this[ci]!=null&&this[ci].destroy(s),t[oR]=t[ai],ys(t[ky]===0),t.emit("disconnect",t[vy],[t],s),t[lc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return LEe(t,...s)},resume(){_Ee(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(vEe,"connectH2");function _Ee(t){let e=t[dr];e?.destroyed===!1&&(t[IEe]===0&&t[Jz]===0?(e.unref(),t[ci].unref()):(e.ref(),t[ci].ref()))}o(_Ee,"resumeH2");function PEe(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][li]=t,this[qd][aR](t)}o(PEe,"onHttp2SessionError");function kEe(t,e,r){if(r===0){let n=new iR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][li]=n,this[qd][aR](n)}}o(kEe,"onHttp2FrameError");function DEe(){let t=new jf("other side closed",Se.getSocketInfo(this[dr]));this.destroy(t),Se.destroy(this[dr],t)}o(DEe,"onHttp2SessionEnd");function OEe(t){let e=this[li]||new jf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Se.getSocketInfo(this)),r=this[qd];if(r[dr]=null,r[BEe]=null,this[ci]!=null&&(this[ci].destroy(e),this[ci]=null),Se.destroy(this[dr],e),r[ai]<r[cc].length){let n=r[cc][r[ai]];r[cc][r[ai]++]=null,Se.errorRequest(r,n,e),r[oR]=r[ai]}ys(r[ky]===0),r.emit("disconnect",r[vy],[r],e),r[lc]()}o(OEe,"onHTTP2GoAway");function MEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(MEe,"shouldSendContentLength");function LEe(t,e){let r=t[ci],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Se.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let b=0;b<u.length;b+=2){let N=u[b+0],Q=u[b+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:h}=t[vy];A[bEe]=i||`${f}${h?`:${h}`:""}`,A[wEe]=n;let g=o(b=>{e.aborted||e.completed||(b=b||new Gz,Se.errorRequest(t,e,b),p!=null&&Se.destroy(p,b),Se.destroy(d,b),t[cc][t[ai]++]=null,t[lc]())},"abort");try{e.onConnect(g)}catch(b){Se.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[da],t[cc][t[ai]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[da],t[cc][t[ai]++]=null}),p.once("close",()=>{r[da]-=1,r[da]===0&&r.unref()}),!0;A[SEe]=s,A[NEe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Se.bodyLength(d);if(Se.isFormDataLike(d)){Hz??=Md().extractBody;let[b,N]=Hz(d);A["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),MEe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[CEe])return Se.errorRequest(t,e,n Line truncated
`,this[uye]=l??3e5,this[lye]=s??3e5,this[dye]=C??!0,this[Aye]=b,this[dR]=Q,this[dc]=null,this[gye]=ce>-1?ce:-1,this[yye]=Je??100,this[Ot]=null,this[ui]=[],this[pa]=0,this[di]=0,this[eh]=de=>pR(this,de),this[Eye]=de=>a$(this,de)}get pipelining(){return this[Ly]}set pipelining(e){this[Ly]=e,this[eh](!0)}get[nh](){return this[ui].length-this[di]}get[rh](){return this[di]-this[pa]}get[th](){return this[ui].length-this[pa]}get[rye](){return!!this[Ot]&&!this[Hd]&&!this[Ot].destroyed}get[uR](){return!!(this[Ot]?.busy(null)||this[th]>=(o$(this)||1)||this[nh]>0)}[tye](e){c$(this),this.once("connect",e)}[mye](e,r){let n=e.origin||this[Hi].origin,s=new WEe(n,e,r);return this[ui].push(s),this[Pl]||(_l.bodyLength(s.body)==null&&_l.isIterable(s.body)?(this[Pl]=1,queueMicrotask(()=>pR(this))):this[eh](!0)),this[Pl]&&this[Ac]!==2&&this[uR]&&(this[Ac]=2),this[Ac]<2}async[fye](){return new Promise(e=>{this[th]?this[dc]=e:e(null)})}async[hye](e){return new Promise(r=>{let n=this[ui].splice(this[di]);for(let i=0;i<n.length;i++){let a=n[i];_l.errorRequest(this,a,e)}let s=o(()=>{this[dc]&&(this[dc](),this[dc]=null),r(null)},"callback");this[Ot]?(this[Ot].destroy(e,s),this[Ot]=null):queueMicrotask(s),this[eh]()})}},Bye=My();function a$(t,e){if(t[rh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Aa(t[di]===t[pa]);let r=t[ui].splice(t[pa]);for(let n=0;n<r.length;n++){let s=r[n];_l.errorRequest(t,s,e)}Aa(t[th]===0)}}o(a$,"onError");async function c$(t){Aa(!t[Hd]),Aa(!t[Ot]);let{host:e,hostname:r,protocol:n,port:s}=t[Hi];if(r[0]==="["){let i=r.indexOf("]");Aa(i!==-1);let a=r.substring(1,i);Aa(i$.isIP(a)),r=a}t[Hd]=!0,Gd.beforeConnect.hasSubscribers&&Gd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[Zf]},connector:t[Xf]});try{let i=await new Promise((a,c)=>{t[Xf]({host:e,hostname:r,protocol:n,port:s,servername:t[uc],localAddress:t[Zf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){_l.destroy(i.on("error",n$),new XEe);return}Aa(i);try{t[Ot]=i.alpnProtocol==="h2"?await Iye(t,i):await Cye(t,i)}catch(a){throw i.destroy().on("error",n$),a}t[Hd]=!1,i[pye]=0,i[dR]=t[dR],i[eye]=t,i[sye]=null,Gd.connected.hasSubscribers&&Gd.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[Zf]},connector:t[Xf],socket:i}),t.emit("connect",t[Hi],[t])}catch(i){if(t.destroyed)return;if(t[Hd]=!1,Gd.connectError.hasSubscribers&&Gd.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[Zf]},connector:t[Xf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Aa(t[rh]===0);t[nh]>0&&t[ui][t[di]].servername===t[uc];){let a=t[ui][t[di]++];_l.errorRequest(t,a,i)}else a$(t,i);t.emit("connectionError",t[Hi],[t],i)}t[eh]()}o(c$,"connect");function s$(t){t[Ac]=0,t.emit("drain",t[Hi],[t])}o(s$,"emitDrain");function pR(t,e){t[Pl]!==2&&(t[Pl]=2,bye(t,e),t[Pl]=0,t[pa]>256&&(t[ui].splice(0,t[pa]),t[di]-=t[pa],t[pa]=0))}o(pR,"resume");function bye(t,e){for(;;){if(t.destroyed){Aa(t[nh]===0);return}if(t[dc]&&!t[th]){t[dc](),t[dc]=null;return}if(t[Ot]&&t[Ot].resume(),t[uR])t[Ac]=2;else if(t[Ac]===2){e?(t[Ac]=1,queueMicrotask(()=>s$(t))):s$(t);continue}if(t[nh]===0||t[rh]>=(o$(t)||1))return;let r=t[ui][t[di]];if(t[Hi].protocol==="https:"&&t[uc]!==r.servername){if(t[rh]>0)return;t[uc]=r.servername,t[Ot]?.destroy(new KEe("servername changed"),()=>{t[Ot]=null,pR(t)})}if(t[Hd])return;if(!t[Ot]){c$(t);return}if(t[Ot].destroyed||t[Ot].busy(r))return;!r.aborted&&t[Ot].write(r)?t[di]++:t[ui].splice(t[di],1)}}o(bye,"_resume");l$.exports=AR});var fR=m((cZe,u$)=>{"use strict";var Fy=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)}};u$.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Fy}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Fy),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var A$=m((uZe,d$)=>{var{kFree:wye,kConnected:Sye,kPending:Nye,kQueued:xye,kRunning:Qye,kSize:Rye}=At(),kl=Symbol("pool"),hR=class{static{o(this,"PoolStats")}constructor(e){this[kl]=e}get connected(){return this[kl][Sye]}get free(){return this[kl][wye]}get pending(){return this[kl][Nye]}get queued(){return this[kl][xye]}get running(){return this[kl][Qye]}get size(){return this[kl][Rye]}};d$.exports=hR});var IR=m((AZe,B$)=>{"use strict";var Tye=Qd(),vye=fR(),{kConnected:mR,kSize:p$,kRunning:f$,kPending:h$,kQueued:sh,kBusy:_ye,kFree:Pye,kUrl:kye,kClose:Dye,kDestroy:Oye,kDispatch:Mye}=At(),Lye=A$(),fn=Symbol("cl Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};QY.exports=yT});var eC=m((KZe,PY)=>{"use strict";var TY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:eBe}=ve(),tBe=Vd();_Y()===void 0&&vY(new tBe);function vY(t){if(!t||typeof t.dispatch!="function")throw new eBe("Argument agent must implement Agent");Object.defineProperty(globalThis,TY,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(vY,"setGlobalDispatcher");function _Y(){return globalThis[TY]}o(_Y,"getGlobalDispatcher");PY.exports={setGlobalDispatcher:vY,getGlobalDispatcher:_Y}});var tC=m((e7e,kY)=>{"use strict";kY.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 OY=m((r7e,DY)=>{"use strict";var rBe=Py();DY.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new rBe(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var LY=m((s7e,MY)=>{"use strict";var nBe=Vy();MY.exports=t=>e=>o(function(n,s){return e(n,new nBe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var UY=m((o7e,FY)=>{"use strict";var sBe=Ie(),{InvalidArgumentError:iBe,RequestAbortedError:oBe}=ve(),aBe=tC(),CT=class extends aBe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new iBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let a=sBe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new oBe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function cBe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new CT({maxSize:i},s);return e(n,a)},"Intercept")}o(cBe,"createDumpInterceptor");FY.exports=cBe});var HY=m((c7e,GY)=>{"use strict";var{isIP:lBe}=require("node:net"),{lookup:uBe}=require("node:dns"),dBe=tC(),{InvalidArgumentError:tA,InformationalError:ABe}=ve(),qY=Math.pow(2,31)-1,IT=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new ABe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){uBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===qY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===qY?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new BT(this,e,r)}},BT=class extends dBe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${i}`;break;case"retry":Ij(i)&&(r[s]=i);break;case"id":Bj(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Ij(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Bj(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}}};bj.exports={EventSourceStream:dv}});var _j=m((Aet,vj)=>{"use strict";var{pipeline:CSe}=require("node:stream"),{fetching:ISe}=hh(),{makeRequest:BSe}=sA(),{webidl:ga}=Ir(),{EventSourceStream:bSe}=wj(),{parseMIMEType:wSe}=An(),{createFastMessageEvent:SSe}=uA(),{isNetworkError:Sj}=ph(),{delay:NSe}=lv(),{kEnumerableProperty:Yl}=Ie(),{environmentSettingsObject:Nj}=Un(),xj=!1,Qj=3e3,Rh=0,Rj=1,Th=2,xSe="anonymous",QSe="use-credentials",hA=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Rh;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),ga.util.markAsUncloneable(this);let n="EventSource constructor";ga.argumentLengthCheck(arguments,1,n),xj||(xj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ga.converters.USVString(e,n,"url"),r=ga.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Qj};let s=Nj,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=xSe;r.withCredentials&&(a=QSe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Nj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=BSe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===Th)return;this.#r=Rh;let e={request:this.#s,dispatcher:this.#a},r=o(n=>{Sj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Sj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?wSe(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Rj,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new bSe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(SSe(l.type,l.options))},"push")});CSe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=ISe(e)}async#c(){this.#r!==Th&&(this.#r=Rh,this.dispatchEvent(new Event("error")),await NSe(this.#o.reconnectionTime),this.#r===Rh&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){ga.brandCheck(this,t),this.#r!==Th&&(this.#r=Th,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Tj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Rh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Rj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Th,writable:!1}};Object.defineProperties(hA,Tj);Object.defineProperties(hA.prototype,Tj);Object.defineProperties(hA.prototype,{close:Yl,onerror:Yl,onmessage:Yl,onopen:Yl,readyState:Yl,url:Yl,withCredentials:Yl});ga.converters.EventSourceInitDict=ga.dictionaryConverter([{key:"withCredentials",converter:ga.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:ga.converters.any}]);vj.exports={EventSource:hA,defaultReconnectionTime:Qj}});var gA=m((fet,ne)=>{"use strict";var RSe=Gd(),Pj=kf(),TSe=Hd(),vSe=T$(),_Se=Vd(),PSe=_R(),kSe=eJ(),DSe=aJ(),kj=ve(),GC=Ie(),{InvalidArgumentError:qC}=kj,mA=JJ(),OSe=Of(),MSe=pT(),LSe=RY(),FSe=mT(),USe=eT(),qSe=Vy(),{getGlobalDispatcher:Dj,setGlobalDispatcher:GSe}=eC(),HSe=tC(),VSe=Py(),zSe=ky();Object.assign(Pj.prototype,mA);ne.exports.Dispatcher=Pj;ne.exports.Client=RSe;ne.exports.Pool=TSe;ne.exports.BalancedPool=vSe;ne.exports.Agent=_Se;ne.exports. Line truncated
%s`,N,N,C,n);var Q=C.type==="*"?m_:C.type==="?"?h_:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Q+"\\("+N}h(),i&&(n+="\\\\");var D=!1;switch(n.charAt(0)){case"[":case".":case"(":D=!0}for(var ce=c.length-1;ce>-1;ce--){var Me=c[ce],qe=n.slice(0,Me.reStart),$e=n.slice(Me.reStart,Me.reEnd-8),Ce=n.slice(Me.reEnd-8,Me.reEnd),et=n.slice(Me.reEnd);Ce+=et;var de=qe.split("(").length-1,Gr=et;for(g=0;g<de;g++)Gr=Gr.replace(/\)[+*?]?/,"");et=Gr;var $="";et===""&&e!==dI&&($="$");var Ge=qe+$e+et+$+Ce;n=Ge}if(n!==""&&s&&(n="(?=.)"+n),D&&(n=p+n),e===dI)return[n,s];if(!s)return dTe(t);var ki=r.nocase?"i":"";try{var rc=new RegExp("^"+n+"$",ki)}catch{return new RegExp("$.")}return rc._glob=t,rc._src=n,rc}o(lTe,"parse");Xn.makeRe=function(t,e){return new Wt(t,e||{}).makeRe()};Wt.prototype.makeRe=uTe;function uTe(){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?m_:e.dot?rTe:nTe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===eu?r:typeof a=="string"?ATe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(uTe,"makeRe");Xn.match=function(t,e,r){r=r||{};var n=new Wt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Wt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;em.sep!=="/"&&(e=e.split(em.sep).join("/")),e=e.split(L8),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Wt.prototype.matchOne=function(t,e,r){return e.indexOf(eu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Wt.prototype._matchGlobstar=function(t,e,r,n,s){var i,a=-1;for(i=s;i<e.length;i++)if(e[i]===eu){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===eu){c=i;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(n,n+l.length);if(!this._matchOne(A,l,r,0,0))return!1;n+=l.length}var p=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(i=n;i<t.length-p;i++){var g=String(t[i]);if(h=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||h}for(var y=[[[],0]],E=y[0],C=0,I=[0],b=0;b<u.length;b++){var N=u[b];N===eu?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,ce=0;ce<y.length;ce++)y[ce][1]=D-(I[Q--]+y[ce][0].length);return!!this._matchGlobStarBodySections(t,y,n,0,r,0,!!p)};Wt.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,a){var c=e[n];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,s,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return s||null};Wt.prototype._matchOne=function(t,e,r,n,s){var i,a,c,l;for(i=n,a=s,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===eu)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function dTe(t){return t.replace(/\\(.)/g,"$1")}o(dTe,"globUnescape");function ATe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(ATe,"regExpEscape")});var xA=m(($st,z8)=>{"use strict";var CTe="2.0.0",ITe=Number.MAX_SAFE_INTEGER||9007199254740991,BTe=16,bTe=250,wTe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];z8.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:BTe,MAX_SAFE_BUILD_LENGTH:bTe,MAX_SAFE_INTEGER:ITe,RELEASE_TYPES:wTe,SEMVER_SPEC_VERSION:CTe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var nm=m((Jst,$8)=>{"use strict";var STe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};$8.exports=STe});var QA=m((Ki,J8)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:E_,MAX_SAFE_BUILD_LENGTH:NTe,MAX_LENGTH:xTe}=xA(),QTe=nm();Ki=J8.exports={};var RTe=Ki.re=[],TTe=Ki.safeRe=[],L=Ki.src=[],vTe=Ki.safeSrc=[],F=Ki.t={},_Te=0,y_="[a-zA-Z0-9-]",PTe=[["\\s",1],["\\d", Line truncated
`.trim())}};RY.exports=IT});var nC=m((u7e,kY)=>{"use strict";var vY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:uBe}=ve(),dBe=$d();PY()===void 0&&_Y(new dBe);function _Y(t){if(!t||typeof t.dispatch!="function")throw new uBe("Argument agent must implement Agent");Object.defineProperty(globalThis,vY,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(_Y,"setGlobalDispatcher");function PY(){return globalThis[vY]}o(PY,"getGlobalDispatcher");kY.exports={setGlobalDispatcher:_Y,getGlobalDispatcher:PY}});var sC=m((p7e,DY)=>{"use strict";DY.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 MY=m((h7e,OY)=>{"use strict";var ABe=Oy();OY.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new ABe(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var FY=m((g7e,LY)=>{"use strict";var pBe=Jy();LY.exports=t=>e=>o(function(n,s){return e(n,new pBe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var qY=m((y7e,UY)=>{"use strict";var fBe=Ie(),{InvalidArgumentError:hBe,RequestAbortedError:mBe}=ve(),gBe=sC(),BT=class extends gBe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new hBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let a=fBe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new mBe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function EBe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new BT({maxSize:i},s);return e(n,a)},"Intercept")}o(EBe,"createDumpInterceptor");UY.exports=EBe});var VY=m((I7e,HY)=>{"use strict";var{isIP:yBe}=require("node:net"),{lookup:CBe}=require("node:dns"),IBe=sC(),{InvalidArgumentError:nA,InformationalError:BBe}=ve(),GY=Math.pow(2,31)-1,bT=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new BBe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){CBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===GY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===GY?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new wT(this,e,r)}},wT=class extends IBe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${i}`;break;case"retry":Bj(i)&&(r[s]=i);break;case"id":bj(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Bj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&bj(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}}};wj.exports={EventSourceStream:pv}});var Pj=m((Net,_j)=>{"use strict";var{pipeline:TSe}=require("node:stream"),{fetching:vSe}=gh(),{makeRequest:_Se}=oA(),{webidl:Ea}=Ir(),{EventSourceStream:PSe}=Sj(),{parseMIMEType:kSe}=An(),{createFastMessageEvent:DSe}=AA(),{isNetworkError:Nj}=hh(),{delay:OSe}=dv(),{kEnumerableProperty:Wl}=Ie(),{environmentSettingsObject:xj}=Un(),Qj=!1,Rj=3e3,vh=0,Tj=1,_h=2,MSe="anonymous",LSe="use-credentials",gA=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=vh;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ea.util.markAsUncloneable(this);let n="EventSource constructor";Ea.argumentLengthCheck(arguments,1,n),Qj||(Qj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ea.converters.USVString(e,n,"url"),r=Ea.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Rj};let s=xj,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=MSe;r.withCredentials&&(a=LSe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=xj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=_Se(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===_h)return;this.#r=vh;let e={request:this.#s,dispatcher:this.#a},r=o(n=>{Nj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Nj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?kSe(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Tj,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new PSe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(DSe(l.type,l.options))},"push")});TSe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=vSe(e)}async#c(){this.#r!==_h&&(this.#r=vh,this.dispatchEvent(new Event("error")),await OSe(this.#o.reconnectionTime),this.#r===vh&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){Ea.brandCheck(this,t),this.#r!==_h&&(this.#r=_h,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},vj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:vh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Tj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:_h,writable:!1}};Object.defineProperties(gA,vj);Object.defineProperties(gA.prototype,vj);Object.defineProperties(gA.prototype,{close:Wl,onerror:Wl,onmessage:Wl,onopen:Wl,readyState:Wl,url:Wl,withCredentials:Wl});Ea.converters.EventSourceInitDict=Ea.dictionaryConverter([{key:"withCredentials",converter:Ea.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ea.converters.any}]);_j.exports={EventSource:gA,defaultReconnectionTime:Rj}});var yA=m((Qet,ne)=>{"use strict";var FSe=Vd(),kj=Of(),USe=zd(),qSe=v$(),GSe=$d(),HSe=kR(),VSe=tJ(),zSe=cJ(),Dj=ve(),zC=Ie(),{InvalidArgumentError:VC}=Dj,EA=YJ(),$Se=Lf(),JSe=hT(),YSe=TY(),WSe=ET(),jSe=rT(),KSe=Jy(),{getGlobalDispatcher:Oj,setGlobalDispatcher:XSe}=nC(),ZSe=sC(),eNe=Oy(),tNe=My();Object.assign(kj.prototype,EA);ne.exports.Dispatcher=kj;ne.exports.Client=FSe;ne.exports.Pool=USe;ne.exports.BalancedPool=qSe;ne.exports.Agent=GSe;ne.exports. Line truncated
%s`,N,N,C,n);var Q=C.type==="*"?g_:C.type==="?"?m_:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Q+"\\("+N}h(),i&&(n+="\\\\");var D=!1;switch(n.charAt(0)){case"[":case".":case"(":D=!0}for(var ce=c.length-1;ce>-1;ce--){var Me=c[ce],qe=n.slice(0,Me.reStart),Je=n.slice(Me.reStart,Me.reEnd-8),Ce=n.slice(Me.reEnd-8,Me.reEnd),et=n.slice(Me.reEnd);Ce+=et;var de=qe.split("(").length-1,Gr=et;for(g=0;g<de;g++)Gr=Gr.replace(/\)[+*?]?/,"");et=Gr;var $="";et===""&&e!==fI&&($="$");var Ge=qe+Je+et+$+Ce;n=Ge}if(n!==""&&s&&(n="(?=.)"+n),D&&(n=p+n),e===fI)return[n,s];if(!s)return ITe(t);var Di=r.nocase?"i":"";try{var nc=new RegExp("^"+n+"$",Di)}catch{return new RegExp("$.")}return nc._glob=t,nc._src=n,nc}o(yTe,"parse");Xn.makeRe=function(t,e){return new Wt(t,e||{}).makeRe()};Wt.prototype.makeRe=CTe;function CTe(){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?g_:e.dot?ATe:pTe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===tu?r:typeof a=="string"?BTe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(CTe,"makeRe");Xn.match=function(t,e,r){r=r||{};var n=new Wt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Wt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;rm.sep!=="/"&&(e=e.split(rm.sep).join("/")),e=e.split(U8),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Wt.prototype.matchOne=function(t,e,r){return e.indexOf(tu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Wt.prototype._matchGlobstar=function(t,e,r,n,s){var i,a=-1;for(i=s;i<e.length;i++)if(e[i]===tu){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===tu){c=i;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(n,n+l.length);if(!this._matchOne(A,l,r,0,0))return!1;n+=l.length}var p=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(i=n;i<t.length-p;i++){var g=String(t[i]);if(h=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||h}for(var y=[[[],0]],E=y[0],C=0,I=[0],b=0;b<u.length;b++){var N=u[b];N===tu?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,ce=0;ce<y.length;ce++)y[ce][1]=D-(I[Q--]+y[ce][0].length);return!!this._matchGlobStarBodySections(t,y,n,0,r,0,!!p)};Wt.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,a){var c=e[n];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,s,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return s||null};Wt.prototype._matchOne=function(t,e,r,n,s){var i,a,c,l;for(i=n,a=s,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===tu)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function ITe(t){return t.replace(/\\(.)/g,"$1")}o(ITe,"globUnescape");function BTe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(BTe,"regExpEscape")});var RA=m((iit,J8)=>{"use strict";var TTe="2.0.0",vTe=Number.MAX_SAFE_INTEGER||9007199254740991,_Te=16,PTe=250,kTe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];J8.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:_Te,MAX_SAFE_BUILD_LENGTH:PTe,MAX_SAFE_INTEGER:vTe,RELEASE_TYPES:kTe,SEMVER_SPEC_VERSION:TTe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var im=m((oit,Y8)=>{"use strict";var DTe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Y8.exports=DTe});var TA=m((Xi,W8)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:y_,MAX_SAFE_BUILD_LENGTH:OTe,MAX_LENGTH:MTe}=RA(),LTe=im();Xi=W8.exports={};var FTe=Xi.re=[],UTe=Xi.safeRe=[],L=Xi.src=[],qTe=Xi.safeSrc=[],F=Xi.t={},GTe=0,C_="[a-zA-Z0-9-]",HTe=[["\\s",1],["\\d", Line truncated
`).join(`
`+i),t.push(s+"m+"+tB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=bke()+e+" "+t[0]}o(Bke,"formatArgs");function bke(){return Sr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(bke,"getDate");function wke(...t){return process.stderr.write(eB.format(...t)+`
`)}o(wke,"log");function Ske(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Ske,"save");function Nke(){return process.env.DEBUG}o(Nke,"load");function xke(t){t.inspectOpts={};let e=Object.keys(Sr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Sr.inspectOpts[e[r]]}o(xke,"init");tB.exports=cP()(Sr);var{formatters:TK}=tB.exports;TK.o=function(t){return this.inspectOpts.colors=this.useColors,eB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};TK.O=function(t){return this.inspectOpts.colors=this.useColors,eB.inspect(t,this.inspectOpts)}});var rB=m((Lct,AP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AP.exports=SK():AP.exports=vK()});var kK=m(Cn=>{"use strict";var Qke=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Rke=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_K=Cn&&Cn.__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)&&Qke(e,t,r);return Rke(e,t),e};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.req=Cn.json=Cn.toBuffer=void 0;var Tke=_K(require("http")),vke=_K(require("https"));async function PK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(PK,"toBuffer");Cn.toBuffer=PK;async function _ke(t){let r=(await PK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(_ke,"json");Cn.json=_ke;function Pke(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?vke:Tke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Pke,"req");Cn.req=Pke});var LK=m(rs=>{"use strict";var OK=rs&&rs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),kke=rs&&rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MK=rs&&rs.__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)&&OK(e,t,r);return kke(e,t),e},Dke=rs&&rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&OK(e,t,r)};Object.defineProperty(rs,"__esModule",{value:!0});rs.Agent=void 0;var Oke=MK(require("net")),DK=MK(require("http")),Mke=require("https");Dke(kK(),rs);var to=Symbol("AgentBaseInternalState"),pP=class extends DK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[to]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Oke.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Mke.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof DK.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[to].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[to].currentSocket;if(this[to].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[to].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[to]&&(this[to].defaultPort=e)}get protocol(){return this[to].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[to]&&(this[to].protocol=e)}};rs.Agent=pP});var FK=m(LA=>{"use strict";var Lke=LA&&LA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(LA,"__esModule",{value:!0});LA.parseProxyResponse=void 0;var Fke=Lke(rB()),nB=(0,Fke.default)("https-proxy-agent:parse-proxy-response");function Uke(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let d=t.read();d?u(d):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),nB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),nB("onerror %o",d),r(d)}o(l,"onerror");function u(d){s.push(d),n+=d.length;let A=Buffer.concat(s,n),p=A.indexOf(`\r
`+i),t.push(s+"m+"+sB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Pke()+e+" "+t[0]}o(_ke,"formatArgs");function Pke(){return Sr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Pke,"getDate");function kke(...t){return process.stderr.write(nB.format(...t)+`
`)}o(kke,"log");function Dke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Dke,"save");function Oke(){return process.env.DEBUG}o(Oke,"load");function Mke(t){t.inspectOpts={};let e=Object.keys(Sr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Sr.inspectOpts[e[r]]}o(Mke,"init");sB.exports=lP()(Sr);var{formatters:_K}=sB.exports;_K.o=function(t){return this.inspectOpts.colors=this.useColors,nB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};_K.O=function(t){return this.inspectOpts.colors=this.useColors,nB.inspect(t,this.inspectOpts)}});var iB=m((Kct,pP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?pP.exports=xK():pP.exports=PK()});var OK=m(Cn=>{"use strict";var Lke=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Fke=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kK=Cn&&Cn.__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)&&Lke(e,t,r);return Fke(e,t),e};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.req=Cn.json=Cn.toBuffer=void 0;var Uke=kK(require("http")),qke=kK(require("https"));async function DK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(DK,"toBuffer");Cn.toBuffer=DK;async function Gke(t){let r=(await DK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Gke,"json");Cn.json=Gke;function Hke(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?qke:Uke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Hke,"req");Cn.req=Hke});var UK=m(rs=>{"use strict";var LK=rs&&rs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Vke=rs&&rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FK=rs&&rs.__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)&&LK(e,t,r);return Vke(e,t),e},zke=rs&&rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&LK(e,t,r)};Object.defineProperty(rs,"__esModule",{value:!0});rs.Agent=void 0;var $ke=FK(require("net")),MK=FK(require("http")),Jke=require("https");zke(OK(),rs);var ro=Symbol("AgentBaseInternalState"),fP=class extends MK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[ro]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new $ke.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Jke.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof MK.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[ro].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[ro].currentSocket;if(this[ro].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ro].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ro]&&(this[ro].defaultPort=e)}get protocol(){return this[ro].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ro]&&(this[ro].protocol=e)}};rs.Agent=fP});var qK=m(UA=>{"use strict";var Yke=UA&&UA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(UA,"__esModule",{value:!0});UA.parseProxyResponse=void 0;var Wke=Yke(iB()),oB=(0,Wke.default)("https-proxy-agent:parse-proxy-response");function jke(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let d=t.read();d?u(d):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),oB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),oB("onerror %o",d),r(d)}o(l,"onerror");function u(d){s.push(d),n+=d.length;let A=Buffer.concat(s,n),p=A.indexOf(`\r
\r
`);if(p===-1){nB("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),h=f.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let b=I.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,b).toLowerCase(),Q=I.slice(b+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}nB("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Uke,"parseProxyResponse");LA.parseProxyResponse=Uke});var zK=m(Ps=>{"use strict";var qke=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Gke=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HK=Ps&&Ps.__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)&&qke(e,t,r);return Gke(e,t),e},VK=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpsProxyAgent=void 0;var sB=HK(require("net")),UK=HK(require("tls")),Hke=VK(require("assert")),Vke=VK(rB()),zke=LK(),$ke=require("url"),Jke=FK(),Em=(0,Vke.default)("https-proxy-agent"),qK=o(t=>t.servername===void 0&&t.host&&!sB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),iB=class extends zke.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new $ke.URL(e):e,this.proxyHeaders=r?.headers??{},Em("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?GK(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Em("Creating `tls.Socket`: %o",this.connectOpts),s=UK.connect(qK(this.connectOpts))):(Em("Creating `net.Socket`: %o",this.connectOpts),s=sB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=sB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(p===-1){oB("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),h=f.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let b=I.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,b).toLowerCase(),Q=I.slice(b+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}oB("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(jke,"parseProxyResponse");UA.parseProxyResponse=jke});var JK=m(Ps=>{"use strict";var Kke=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xke=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zK=Ps&&Ps.__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)&&Kke(e,t,r);return Xke(e,t),e},$K=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpsProxyAgent=void 0;var aB=zK(require("net")),GK=zK(require("tls")),Zke=$K(require("assert")),eDe=$K(iB()),tDe=UK(),rDe=require("url"),nDe=qK(),Cm=(0,eDe.default)("https-proxy-agent"),HK=o(t=>t.servername===void 0&&t.host&&!aB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),cB=class extends tDe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new rDe.URL(e):e,this.proxyHeaders=r?.headers??{},Cm("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?VK(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Cm("Creating `tls.Socket`: %o",this.connectOpts),s=GK.connect(HK(this.connectOpts))):(Cm("Creating `net.Socket`: %o",this.connectOpts),s=aB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=aB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,Jke.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Yke),r.secureEndpoint?(Em("Upgrading socket connection to TLS"),UK.connect({...GK(qK(r),"host","path","port"),socket:s})):s;s.destroy();let A=new sB.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Em("Replaying proxy buffer for failed request"),(0,Hke.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};iB.protocols=["http","https"];Ps.HttpsProxyAgent=iB;function Yke(t){t.resume()}o(Yke,"resume");function GK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(GK,"omit")});var YK=m(In=>{"use strict";var Wke=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jke=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$K=In&&In.__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)&&Wke(e,t,r);return jke(e,t),e};Object.defineProperty(In,"__esModule",{value:!0});In.req=In.json=In.toBuffer=void 0;var Kke=$K(require("http")),Xke=$K(require("https"));async function JK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(JK,"toBuffer");In.toBuffer=JK;async function Zke(t){let r=(await JK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Zke,"json");In.json=Zke;function eDe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Xke:Kke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(eDe,"req");In.req=eDe});var XK=m(ns=>{"use strict";var jK=ns&&ns.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),tDe=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KK=ns&&ns.__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)&&jK(e,t,r);return tDe(e,t),e},rDe=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jK(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var nDe=KK(require("net")),WK=KK(require("http")),sDe=require("https");rDe(YK(),ns);var ro=Symbol("AgentBaseInternalState"),fP=class extends WK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[ro]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new nDe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?sDe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof WK.Agent)return c.addRequest(e,s);this[ro].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[ro].currentSocket;if(this[ro].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ro].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ro]&&(this[ro].defaultPort=e)}get protocol(){return this[ro].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ro]&&(this[ro].protocol=e)}};ns.Agent=fP});var tX=m(ks=>{"use strict";var iDe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oDe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eX=ks&&ks.__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)&&iDe(e,t,r);return oDe(e,t),e},aDe=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var cDe=eX(require("net")),lDe=eX(require("tls")),uDe=aDe(rB()),dDe=require("events"),ADe=XK(),ZK=require("url"),FA=(0,uDe.default)("http-proxy-agent"),oB=class extends ADe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new ZK.URL(e):e,this.proxyHeaders=r?.headers??{},FA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?pDe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new ZK.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;FA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(FA("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let l=(0,nDe.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",sDe),r.secureEndpoint?(Cm("Upgrading socket connection to TLS"),GK.connect({...VK(HK(r),"host","path","port"),socket:s})):s;s.destroy();let A=new aB.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Cm("Replaying proxy buffer for failed request"),(0,Zke.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};cB.protocols=["http","https"];Ps.HttpsProxyAgent=cB;function sDe(t){t.resume()}o(sDe,"resume");function VK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(VK,"omit")});var jK=m(In=>{"use strict";var iDe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),oDe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YK=In&&In.__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)&&iDe(e,t,r);return oDe(e,t),e};Object.defineProperty(In,"__esModule",{value:!0});In.req=In.json=In.toBuffer=void 0;var aDe=YK(require("http")),cDe=YK(require("https"));async function WK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(WK,"toBuffer");In.toBuffer=WK;async function lDe(t){let r=(await WK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(lDe,"json");In.json=lDe;function uDe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?cDe:aDe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(uDe,"req");In.req=uDe});var eX=m(ns=>{"use strict";var XK=ns&&ns.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dDe=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZK=ns&&ns.__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)&&XK(e,t,r);return dDe(e,t),e},ADe=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&XK(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var pDe=ZK(require("net")),KK=ZK(require("http")),fDe=require("https");ADe(jK(),ns);var no=Symbol("AgentBaseInternalState"),hP=class extends KK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[no]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new pDe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?fDe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof KK.Agent)return c.addRequest(e,s);this[no].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[no].currentSocket;if(this[no].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[no].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[no]&&(this[no].defaultPort=e)}get protocol(){return this[no].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[no]&&(this[no].protocol=e)}};ns.Agent=hP});var nX=m(ks=>{"use strict";var hDe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mDe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rX=ks&&ks.__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)&&hDe(e,t,r);return mDe(e,t),e},gDe=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpProxyAgent=void 0;var EDe=rX(require("net")),yDe=rX(require("tls")),CDe=gDe(iB()),IDe=require("events"),BDe=eX(),tX=require("url"),qA=(0,CDe.default)("http-proxy-agent"),lB=class extends BDe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new tX.URL(e):e,this.proxyHeaders=r?.headers??{},qA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?bDe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new tX.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;qA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(qA("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),FA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(FA("Creating `tls.Socket`: %o",this.connectOpts),i=lDe.connect(this.connectOpts)):(FA("Creating `net.Socket`: %o",this.connectOpts),i=cDe.connect(this.connectOpts)),await(0,dDe.once)(i,"connect"),i}};oB.protocols=["http","https"];ks.HttpProxyAgent=oB;function pDe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(pDe,"omit")});var bX=m(CB=>{"use strict";Object.defineProperty(CB,"__esModule",{value:!0});CB.state=void 0;CB.state={instrumenterImplementation:void 0}});var UX=m(SB=>{"use strict";Object.defineProperty(SB,"__esModule",{value:!0});SB.state=void 0;SB.state={operationRequestMap:new WeakMap}});var Eee=m(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});var PFe=require("os"),kFe=require("util");function DFe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(DFe,"_interopDefaultLegacy");var OFe=DFe(kFe);function MFe(t,...e){process.stderr.write(`${OFe.default.format(t,...e)}${PFe.EOL}`)}o(MFe,"log");var cee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,uee,$M=[],JM=[],Vb=[];cee&&YM(cee);var dee=Object.assign(t=>Aee(t),{enable:YM,enabled:WM,disable:LFe,log:MFe});function YM(t){uee=t,$M=[],JM=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?JM.push(new RegExp(`^${n.substr(1)}$`)):$M.push(new RegExp(`^${n}$`));for(let n of Vb)n.enabled=WM(n.namespace)}o(YM,"enable");function WM(t){if(t.endsWith("*"))return!0;for(let e of JM)if(e.test(t))return!1;for(let e of $M)if(e.test(t))return!0;return!1}o(WM,"enabled");function LFe(){let t=uee||"";return YM(""),t}o(LFe,"disable");function Aee(t){let e=Object.assign(r,{enabled:WM(t),destroy:FFe,log:dee.log,namespace:t,extend:UFe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Vb.push(e),e}o(Aee,"createDebugger");function FFe(){let t=Vb.indexOf(this);return t>=0?(Vb.splice(t,1),!0):!1}o(FFe,"destroy");function UFe(t){let e=Aee(`${this.namespace}:${t}`);return e.log=this.log,e}o(UFe,"extend");var ig=dee,pee=new Set,Gb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,zb,$b=ig("azure");$b.log=(...t)=>{ig.log(...t)};var jM=["verbose","info","warning","error"];Gb&&(gee(Gb)?fee(Gb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Gb}'; logging is not enabled. Acceptable values: ${jM.join(", ")}.`));function fee(t){if(t&&!gee(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${jM.join(",")}`);zb=t;let e=[];for(let r of pee)mee(r)&&e.push(r.namespace);ig.enable(e.join(","))}o(fee,"setLogLevel");function qFe(){return zb}o(qFe,"getLogLevel");var lee={verbose:400,info:300,warning:200,error:100};function GFe(t){let e=$b.extend(t);return hee($b,e),{error:Hb(e,"error"),warning:Hb(e,"warning"),info:Hb(e,"info"),verbose:Hb(e,"verbose")}}o(GFe,"createClientLogger");function hee(t,e){e.log=(...r)=>{t.log(...r)}}o(hee,"patchLogMethod");function Hb(t,e){let r=Object.assign(t.extend(e),{level:e});if(hee(t,r),mee(r)){let n=ig.disable();ig.enable(n+","+r.namespace)}return pee.add(r),r}o(Hb,"createLogger");function mee(t){return!!(zb&&lee[t.level]<=lee[zb])}o(mee,"shouldEnable");function gee(t){return jM.includes(t)}o(gee,"isAzureLogLevel");np.AzureLogger=$b;np.createClientLogger=GFe;np.getLogLevel=qFe;np.setLogLevel=fee});var ZM=m(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});var sp=new WeakMap,Jb=new WeakMap,og=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,sp.set(this,[]),Jb.set(this,!1)}get aborted(){if(!Jb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Jb.get(this)}static get none(){return new t}addEventListener(e,r){if(!sp.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");sp.get(this).push(r)}removeEventListener(e,r){if(!sp.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=sp.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 yee(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=sp.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Jb.set(t,!0)}o(yee,"abortSignal");var KM=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},XM=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new og,!!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(){yee(this._signal)}static timeout(e){let r=new og,n=setTimeout(yee,e,r);return typeof n.unref=="function"&&n.unref(),r}};ag.AbortController=XM;ag.AbortError=KM;ag.AbortSignal=og});var wee=m(nn=>{"use strict";Object.definePro Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),qA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(qA("Creating `tls.Socket`: %o",this.connectOpts),i=yDe.connect(this.connectOpts)):(qA("Creating `net.Socket`: %o",this.connectOpts),i=EDe.connect(this.connectOpts)),await(0,IDe.once)(i,"connect"),i}};lB.protocols=["http","https"];ks.HttpProxyAgent=lB;function bDe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(bDe,"omit")});var SX=m(bB=>{"use strict";Object.defineProperty(bB,"__esModule",{value:!0});bB.state=void 0;bB.state={instrumenterImplementation:void 0}});var GX=m(QB=>{"use strict";Object.defineProperty(QB,"__esModule",{value:!0});QB.state=void 0;QB.state={operationRequestMap:new WeakMap}});var Cee=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var HFe=require("os"),VFe=require("util");function zFe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(zFe,"_interopDefaultLegacy");var $Fe=zFe(VFe);function JFe(t,...e){process.stderr.write(`${$Fe.default.format(t,...e)}${HFe.EOL}`)}o(JFe,"log");var uee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Aee,JM=[],YM=[],Jb=[];uee&&WM(uee);var pee=Object.assign(t=>fee(t),{enable:WM,enabled:jM,disable:YFe,log:JFe});function WM(t){Aee=t,JM=[],YM=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?YM.push(new RegExp(`^${n.substr(1)}$`)):JM.push(new RegExp(`^${n}$`));for(let n of Jb)n.enabled=jM(n.namespace)}o(WM,"enable");function jM(t){if(t.endsWith("*"))return!0;for(let e of YM)if(e.test(t))return!1;for(let e of JM)if(e.test(t))return!0;return!1}o(jM,"enabled");function YFe(){let t=Aee||"";return WM(""),t}o(YFe,"disable");function fee(t){let e=Object.assign(r,{enabled:jM(t),destroy:WFe,log:pee.log,namespace:t,extend:jFe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Jb.push(e),e}o(fee,"createDebugger");function WFe(){let t=Jb.indexOf(this);return t>=0?(Jb.splice(t,1),!0):!1}o(WFe,"destroy");function jFe(t){let e=fee(`${this.namespace}:${t}`);return e.log=this.log,e}o(jFe,"extend");var ag=pee,hee=new Set,zb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Yb,Wb=ag("azure");Wb.log=(...t)=>{ag.log(...t)};var KM=["verbose","info","warning","error"];zb&&(yee(zb)?mee(zb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${zb}'; logging is not enabled. Acceptable values: ${KM.join(", ")}.`));function mee(t){if(t&&!yee(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${KM.join(",")}`);Yb=t;let e=[];for(let r of hee)Eee(r)&&e.push(r.namespace);ag.enable(e.join(","))}o(mee,"setLogLevel");function KFe(){return Yb}o(KFe,"getLogLevel");var dee={verbose:400,info:300,warning:200,error:100};function XFe(t){let e=Wb.extend(t);return gee(Wb,e),{error:$b(e,"error"),warning:$b(e,"warning"),info:$b(e,"info"),verbose:$b(e,"verbose")}}o(XFe,"createClientLogger");function gee(t,e){e.log=(...r)=>{t.log(...r)}}o(gee,"patchLogMethod");function $b(t,e){let r=Object.assign(t.extend(e),{level:e});if(gee(t,r),Eee(r)){let n=ag.disable();ag.enable(n+","+r.namespace)}return hee.add(r),r}o($b,"createLogger");function Eee(t){return!!(Yb&&dee[t.level]<=dee[Yb])}o(Eee,"shouldEnable");function yee(t){return KM.includes(t)}o(yee,"isAzureLogLevel");ip.AzureLogger=Wb;ip.createClientLogger=XFe;ip.getLogLevel=KFe;ip.setLogLevel=mee});var eL=m(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var op=new WeakMap,jb=new WeakMap,cg=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,op.set(this,[]),jb.set(this,!1)}get aborted(){if(!jb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return jb.get(this)}static get none(){return new t}addEventListener(e,r){if(!op.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");op.get(this).push(r)}removeEventListener(e,r){if(!op.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=op.get(this),s=n.indexOf(r);s>-1&&n.splice(s,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 Iee(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=op.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),jb.set(t,!0)}o(Iee,"abortSignal");var XM=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},ZM=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new cg,!!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(){Iee(this._signal)}static timeout(e){let r=new cg,n=setTimeout(Iee,e,r);return typeof n.unref=="function"&&n.unref(),r}};lg.AbortController=ZM;lg.AbortError=XM;lg.AbortSignal=cg});var Nee=m(nn=>{"use strict";Object.definePro Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${Qee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(Nee({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(iUe,"pollOperationHelper");async function _ee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await iUe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(Tee({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!Qee.includes(I)){let b=d?.(C);b&&h(b);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(_ee,"pollOperation");function Pee(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Pee,"getOperationLocationPollingUrl");function kee(t){return t.headers.location}o(kee,"getLocationHeader");function Dee(t){return t.headers["operation-location"]}o(Dee,"getOperationLocationHeader");function Oee(t){return t.headers["azure-asyncoperation"]}o(Oee,"getAzureAsyncOperationHeader");function oUe(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}o(oUe,"findResourceLocation");function Mee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=Dee(e),a=Oee(e),c=Pee({operationLocation:i,azureAsyncOperation:a}),l=kee(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:oUe({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(Mee,"inferLroMode");function Lee(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 aL(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 xu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Lee,"transformStatus");function aUe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Lee({status:r,statusCode:t.statusCode})}o(aUe,"getStatus");function cUe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Lee({status:i,statusCode:t.statusCode})}o(cUe,"getProvisioningState");function aL(t){return t===202?"running":t<300?"succeeded":"failed"}o(aL,"toOperationStatus");function Fee({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?lUe(new Date(e)):r*1e3}}o(Fee,"parseRetryAfter");function Uee(t){let e=t.flatResponse.error;if(!e){xu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xu.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(Uee,"getErrorFromResponse");function lUe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(lUe,"calculatePollingIntervalFromDate");function qee(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return aL(e.rawResponse.statusCode);case"Body":return cL(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(qee,"getStatusFromInitialResponse");async function uUe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return vee({init:o(async()=>{let a=await s.sendInitialRequest(),c=Mee({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:qee,setErrorAsResult:i})}o(uUe,"initHttpOperation");function Gee({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Pee({opeLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(JUe,"base64decode");up.base64decode=JUe;function YUe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Fa[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Fa[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Fa[s|n>>6],e+=Fa[n&63],r=0;break}return r&&(e+=Fa[s],e+="=",r==1&&(e+="=")),e}o(YUe,"base64encode");up.base64encode=YUe});var Ite=m(Aw=>{"use strict";Object.defineProperty(Aw,"__esModule",{value:!0});Aw.utf8read=void 0;var yL=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function WUe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(yL(n)),s=0);return r.length?(s&&r.push(yL(n.slice(0,s))),r.join("")):yL(n.slice(0,s))}o(WUe,"utf8read");Aw.utf8read=WUe});var hg=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.WireType=Ro.mergeBinaryOptions=Ro.UnknownFieldHandler=void 0;var jUe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(jUe=Ro.UnknownFieldHandler||(Ro.UnknownFieldHandler={}));function KUe(t,e){return Object.assign(Object.assign({},t),e)}o(KUe,"mergeBinaryOptions");Ro.mergeBinaryOptions=KUe;var XUe;(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"})(XUe=Ro.WireType||(Ro.WireType={}))});var fw=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.varint32read=Qn.varint32write=Qn.int64toString=Qn.int64fromString=Qn.varint64write=Qn.varint64read=void 0;function ZUe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(ZUe,"varint64read");Qn.varint64read=ZUe;function e2e(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(e2e,"varint64write");Qn.varint64write=e2e;var pw=65536*65536;function t2e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=pw&&(s=s+(n/pw|0),n=n%pw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(t2e,"int64fromString");Qn.int64fromString=t2e;function r2e(t,e){if(e>>>0<=2097151)return""+(pw*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(r2e,"int64toString");Qn.int64toString=r2e;function n2e(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(n2e,"varint32write");Qn.varint32write=n2e;function s2e(){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(s2e,"varint32read");Qn.varint32read=s2e});var zc=m(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.PbLong=Vc.PbULong=Vc.detectBi=void 0;var mg=fw(),Xe;function Bte(){let t=new DataView(new ArrayBuffer(8));Xe=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
`)}};qw.RpcError=$L});var YL=m(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});Hw.mergeRpcOptions=void 0;var ere=Gt();function Nqe(t,e){if(!e)return t;let r={};Gw(t,r),Gw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=ere.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=ere.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Gw(t.meta,r.meta),Gw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(Nqe,"mergeRpcOptions");Hw.mergeRpcOptions=Nqe;function Gw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(Gw,"copy")});var jL=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.Deferred=_u.DeferredState=void 0;var _o;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(_o=_u.DeferredState||(_u.DeferredState={}));var WL=class{static{o(this,"Deferred")}constructor(e=!0){this._state=_o.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==_o.PENDING)throw new Error(`cannot resolve ${_o[this.state].toLowerCase()}`);this._resolve(e),this._state=_o.RESOLVED}reject(e){if(this.state!==_o.PENDING)throw new Error(`cannot reject ${_o[this.state].toLowerCase()}`);this._reject(e),this._state=_o.REJECTED}resolvePending(e){this._state===_o.PENDING&&this.resolve(e)}rejectPending(e){this._state===_o.PENDING&&this.reject(e)}};_u.Deferred=WL});var XL=m(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});Vw.RpcOutputStreamController=void 0;var tre=jL(),Pu=Gt(),KL=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Pu.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Pu.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){Pu.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(){Pu.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;Pu.assert(e,"bad state"),Pu.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 tre.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Pu.assert(n.state==tre.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Vw.RpcOutputStreamController=KL});var e1=m(gp=>{"use strict";var xqe=gp&&gp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(gp,"__esModule",{value:!0});gp.UnaryCall=void 0;var ZL=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return xqe(this,void 0,void 0,function*(){let[e,r,n,s]=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:n,trailers:s}})}};gp.UnaryCall=ZL});var r1=m(Ep=>{"use strict";var Qqe=Ep&&Ep.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function Line truncated
Polling status: ${Tee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(Qee({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(hUe,"pollOperationHelper");async function kee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await hUe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(_ee({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!Tee.includes(I)){let b=d?.(C);b&&h(b);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(kee,"pollOperation");function Dee(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Dee,"getOperationLocationPollingUrl");function Oee(t){return t.headers.location}o(Oee,"getLocationHeader");function Mee(t){return t.headers["operation-location"]}o(Mee,"getOperationLocationHeader");function Lee(t){return t.headers["azure-asyncoperation"]}o(Lee,"getAzureAsyncOperationHeader");function mUe(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}o(mUe,"findResourceLocation");function Fee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=Mee(e),a=Lee(e),c=Dee({operationLocation:i,azureAsyncOperation:a}),l=Oee(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:mUe({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(Fee,"inferLroMode");function Uee(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 cL(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 Qu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Uee,"transformStatus");function gUe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Uee({status:r,statusCode:t.statusCode})}o(gUe,"getStatus");function EUe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Uee({status:i,statusCode:t.statusCode})}o(EUe,"getProvisioningState");function cL(t){return t===202?"running":t<300?"succeeded":"failed"}o(cL,"toOperationStatus");function qee({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?yUe(new Date(e)):r*1e3}}o(qee,"parseRetryAfter");function Gee(t){let e=t.flatResponse.error;if(!e){Qu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Qu.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(Gee,"getErrorFromResponse");function yUe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(yUe,"calculatePollingIntervalFromDate");function Hee(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return cL(e.rawResponse.statusCode);case"Body":return lL(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(Hee,"getStatusFromInitialResponse");async function CUe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return Pee({init:o(async()=>{let a=await s.sendInitialRequest(),c=Fee({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Hee,setErrorAsResult:i})}o(CUe,"initHttpOperation");function Vee({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Dee({opeLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(n2e,"base64decode");Ap.base64decode=n2e;function s2e(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ua[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ua[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ua[s|n>>6],e+=Ua[n&63],r=0;break}return r&&(e+=Ua[s],e+="=",r==1&&(e+="=")),e}o(s2e,"base64encode");Ap.base64encode=s2e});var bte=m(hw=>{"use strict";Object.defineProperty(hw,"__esModule",{value:!0});hw.utf8read=void 0;var CL=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function i2e(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(CL(n)),s=0);return r.length?(s&&r.push(CL(n.slice(0,s))),r.join("")):CL(n.slice(0,s))}o(i2e,"utf8read");hw.utf8read=i2e});var gg=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.WireType=To.mergeBinaryOptions=To.UnknownFieldHandler=void 0;var o2e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(o2e=To.UnknownFieldHandler||(To.UnknownFieldHandler={}));function a2e(t,e){return Object.assign(Object.assign({},t),e)}o(a2e,"mergeBinaryOptions");To.mergeBinaryOptions=a2e;var c2e;(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"})(c2e=To.WireType||(To.WireType={}))});var gw=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.varint32read=Qn.varint32write=Qn.int64toString=Qn.int64fromString=Qn.varint64write=Qn.varint64read=void 0;function l2e(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(l2e,"varint64read");Qn.varint64read=l2e;function u2e(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(u2e,"varint64write");Qn.varint64write=u2e;var mw=65536*65536;function d2e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=mw&&(s=s+(n/mw|0),n=n%mw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(d2e,"int64fromString");Qn.int64fromString=d2e;function A2e(t,e){if(e>>>0<=2097151)return""+(mw*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(A2e,"int64toString");Qn.int64toString=A2e;function p2e(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(p2e,"varint32write");Qn.varint32write=p2e;function f2e(){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(f2e,"varint32read");Qn.varint32read=f2e});var $c=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.PbLong=zc.PbULong=zc.detectBi=void 0;var Eg=gw(),Xe;function wte(){let t=new DataView(new ArrayBuffer(8));Xe=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
`)}};Vw.RpcError=JL});var WL=m($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.mergeRpcOptions=void 0;var rre=Gt();function Oqe(t,e){if(!e)return t;let r={};zw(t,r),zw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=rre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=rre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zw(t.meta,r.meta),zw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(Oqe,"mergeRpcOptions");$w.mergeRpcOptions=Oqe;function zw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(zw,"copy")});var KL=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.Deferred=Pu.DeferredState=void 0;var Po;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Po=Pu.DeferredState||(Pu.DeferredState={}));var jL=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Po.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Po.PENDING)throw new Error(`cannot resolve ${Po[this.state].toLowerCase()}`);this._resolve(e),this._state=Po.RESOLVED}reject(e){if(this.state!==Po.PENDING)throw new Error(`cannot reject ${Po[this.state].toLowerCase()}`);this._reject(e),this._state=Po.REJECTED}resolvePending(e){this._state===Po.PENDING&&this.resolve(e)}rejectPending(e){this._state===Po.PENDING&&this.reject(e)}};Pu.Deferred=jL});var ZL=m(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});Jw.RpcOutputStreamController=void 0;var nre=KL(),ku=Gt(),XL=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){ku.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){ku.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){ku.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(){ku.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;ku.assert(e,"bad state"),ku.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 nre.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;ku.assert(n.state==nre.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Jw.RpcOutputStreamController=XL});var t1=m(yp=>{"use strict";var Mqe=yp&&yp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(yp,"__esModule",{value:!0});yp.UnaryCall=void 0;var e1=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Mqe(this,void 0,void 0,function*(){let[e,r,n,s]=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:n,trailers:s}})}};yp.UnaryCall=e1});var n1=m(Cp=>{"use strict";var Lqe=Cp&&Cp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}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(T$e,"logUnexpecedPropertyAccessOnce");function v$e(){Object.keys(x0).forEach(function(t){delete x0[t]})}o(v$e,"resetLoggedProperties")});var R0=m(Oo=>{"use strict";Oo.__esModule=!0;Oo.HandlebarsEnvironment=BF;function oie(t){return t&&t.__esModule?t:{default:t}}o(oie,"_interopRequireDefault");var Fu=an(),_$e=ps(),CF=oie(_$e),P$e=mF(),k$e=rie(),D$e=EF(),Q0=oie(D$e),O$e=yF(),M$e="4.7.9";Oo.VERSION=M$e;var L$e=8;Oo.COMPILER_REVISION=L$e;var F$e=7;Oo.LAST_COMPATIBLE_COMPILER_REVISION=F$e;var U$e={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"};Oo.REVISION_CHANGES=U$e;var IF="[object Object]";function BF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},P$e.registerDefaultHelpers(this),k$e.registerDefaultDecorators(this)}o(BF,"HandlebarsEnvironment");BF.prototype={constructor:BF,logger:Q0.default,log:Q0.default.log,registerHelper:o(function(e,r){if(Fu.toString.call(e)===IF){if(r)throw new CF.default("Arg not supported with multiple helpers");Fu.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(Fu.toString.call(e)===IF)Fu.extend(this.partials,e);else{if(typeof r>"u")throw new CF.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(Fu.toString.call(e)===IF){if(r)throw new CF.default("Arg not supported with multiple decorators");Fu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){O$e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var q$e=Q0.default.log;Oo.log=q$e;Oo.createFrame=Fu.createFrame;Oo.logger=Q0.default});var cie=m((T0,aie)=>{"use strict";T0.__esModule=!0;function bF(t){this.string=t}o(bF,"SafeString");bF.prototype.toString=bF.prototype.toHTML=function(){return""+this.string};T0.default=bF;aie.exports=T0.default});var lie=m(wF=>{"use strict";wF.__esModule=!0;wF.wrapHelper=G$e;function G$e(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(G$e,"wrapHelper")});var hie=m(Wc=>{"use strict";Wc.__esModule=!0;Wc.checkRevision=Y$e;Wc.template=W$e;Wc.wrapProgram=v0;Wc.resolvePartial=j$e;Wc.invokePartial=K$e;Wc.noop=pie;function H$e(t){return t&&t.__esModule?t:{default:t}}o(H$e,"_interopRequireDefault");function V$e(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(V$e,"_interopRequireWildcard");var z$e=an(),Tp=V$e(z$e),$$e=ps(),Ga=H$e($$e),Ha=R0(),uie=mF(),J$e=lie(),die=yF();function Y$e(t){var e=t&&t[0]||1,r=Ha.COMPILER_REVISION;if(!(e>=Ha.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ha.COMPILER_REVISION))if(e<Ha.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ha.REVISION_CHANGES[r],s=Ha.REVISION_CHANGES[e];throw new Ga.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ga.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(Y$e,"checkRevision");function W$e(t,e){if(!e)throw new Ga.default("No environment passed to template");if(!t||!t.main)throw new Ga.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Tp.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(H$e,"logUnexpecedPropertyAccessOnce");function V$e(){Object.keys(R0).forEach(function(t){delete R0[t]})}o(V$e,"resetLoggedProperties")});var v0=m(Mo=>{"use strict";Mo.__esModule=!0;Mo.HandlebarsEnvironment=bF;function hie(t){return t&&t.__esModule?t:{default:t}}o(hie,"_interopRequireDefault");var qu=an(),z$e=ps(),IF=hie(z$e),$$e=gF(),J$e=die(),Y$e=yF(),T0=hie(Y$e),W$e=CF(),j$e="4.7.9";Mo.VERSION=j$e;var K$e=8;Mo.COMPILER_REVISION=K$e;var X$e=7;Mo.LAST_COMPATIBLE_COMPILER_REVISION=X$e;var Z$e={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"};Mo.REVISION_CHANGES=Z$e;var BF="[object Object]";function bF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},$$e.registerDefaultHelpers(this),J$e.registerDefaultDecorators(this)}o(bF,"HandlebarsEnvironment");bF.prototype={constructor:bF,logger:T0.default,log:T0.default.log,registerHelper:o(function(e,r){if(qu.toString.call(e)===BF){if(r)throw new IF.default("Arg not supported with multiple helpers");qu.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(qu.toString.call(e)===BF)qu.extend(this.partials,e);else{if(typeof r>"u")throw new IF.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(qu.toString.call(e)===BF){if(r)throw new IF.default("Arg not supported with multiple decorators");qu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){W$e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var eJe=T0.default.log;Mo.log=eJe;Mo.createFrame=qu.createFrame;Mo.logger=T0.default});var gie=m((_0,mie)=>{"use strict";_0.__esModule=!0;function wF(t){this.string=t}o(wF,"SafeString");wF.prototype.toString=wF.prototype.toHTML=function(){return""+this.string};_0.default=wF;mie.exports=_0.default});var Eie=m(SF=>{"use strict";SF.__esModule=!0;SF.wrapHelper=tJe;function tJe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(tJe,"wrapHelper")});var wie=m(jc=>{"use strict";jc.__esModule=!0;jc.checkRevision=aJe;jc.template=cJe;jc.wrapProgram=P0;jc.resolvePartial=lJe;jc.invokePartial=uJe;jc.noop=Bie;function rJe(t){return t&&t.__esModule?t:{default:t}}o(rJe,"_interopRequireDefault");function nJe(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(nJe,"_interopRequireWildcard");var sJe=an(),_p=nJe(sJe),iJe=ps(),Ha=rJe(iJe),Va=v0(),yie=gF(),oJe=Eie(),Cie=CF();function aJe(t){var e=t&&t[0]||1,r=Va.COMPILER_REVISION;if(!(e>=Va.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Va.COMPILER_REVISION))if(e<Va.LAST_COMPATIBLE_COMPILER_REVISION){var n=Va.REVISION_CHANGES[r],s=Va.REVISION_CHANGES[e];throw new Ha.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ha.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(aJe,"checkRevision");function cJe(t,e){if(!e)throw new Ha.default("No environment passed to template");if(!t||!t.main)throw new Ha.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=_p.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
`),A=0,p=d.length;A<p&&!(!d[A]&&A+1===p);A++)d[A]=l.indent+d[A];u=d.join(`
`)}return u}else throw new Ga.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ga.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||die.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&s.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Tp.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=v0(this,c,f,l,u,d,A):p||(p=this.programs[c]=v0(this,c,f)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Tp.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=X$e(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function A(p){return""+t.main(s,p,s.helpers,s.partials,l,d,u)}return o(A,"main"),A=fie(t.main,A,s,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};Aie(c,e.helpers,s),Aie(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=Tp.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=die.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;uie.moveHelperToHooks(s,"helperMissing",l),uie.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ga.default("must pass block params");if(t.useDepths&&!u)throw new Ga.default("must pass parent depths");return v0(s,a,t[a],c,0,l,u)},i}o(W$e,"template");function v0(t,e,r,n,s,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=fie(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(v0,"wrapProgram");function j$e(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=_0(r.partials,t)):r.name==="@partial-block"?t=_0(r.data,"partial-block"):t=_0(r.partials,r.name),t}o(j$e,"resolvePartial");function K$e(t,e,r){var n=_0(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==pie&&(function(){r.data=Ha.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Ha.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Tp.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ga.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(K$e,"invokePartial");function pie(){return""}o(pie,"noop");function _0(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(_0,"lookupOwnProperty");function X$e(t,e){return(!e||!("root"in e))&&(e=e?Ha.createFrame(e):{},e.root=t),e}o(X$e,"initData");function fie(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),Tp.extend(e,a)}return e}o(fie,"executeDecorators");function Aie(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=Z$e(s,r)})}o(Aie,"addHelpers");function Z$e(t,e){var r=e.lookupProperty;return J$e.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(Z$e,"passLookupPropertyOption")});var SF=m((P0,mie)=>{"use strict";P0.__esModule=!0;P0.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}};mie.exports=P0.default});var Iie=m((k0,Cie)=>{"use strict";k0.__esModule=!0;function xF(t){return t&&t.__esModule?t:{default:t}}o(xF,"_interopRequireDefault");function QF(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(QF,"_interopRequireWildcard");var eJe=R0(),gie=QF(eJe),tJe=cie(),rJe=xF(tJe),nJe=ps(),sJe=xF(nJe),iJe=an(),NF=QF(iJe),oJe=hie Line truncated
`)}return u}else throw new Ha.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ha.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Cie.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&s.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:_p.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=P0(this,c,f,l,u,d,A):p||(p=this.programs[c]=P0(this,c,f)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=_p.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=dJe(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function A(p){return""+t.main(s,p,s.helpers,s.partials,l,d,u)}return o(A,"main"),A=bie(t.main,A,s,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};Iie(c,e.helpers,s),Iie(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=_p.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=Cie.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;yie.moveHelperToHooks(s,"helperMissing",l),yie.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ha.default("must pass block params");if(t.useDepths&&!u)throw new Ha.default("must pass parent depths");return P0(s,a,t[a],c,0,l,u)},i}o(cJe,"template");function P0(t,e,r,n,s,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=bie(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(P0,"wrapProgram");function lJe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=k0(r.partials,t)):r.name==="@partial-block"?t=k0(r.data,"partial-block"):t=k0(r.partials,r.name),t}o(lJe,"resolvePartial");function uJe(t,e,r){var n=k0(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Bie&&(function(){r.data=Va.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Va.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=_p.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ha.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(uJe,"invokePartial");function Bie(){return""}o(Bie,"noop");function k0(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(k0,"lookupOwnProperty");function dJe(t,e){return(!e||!("root"in e))&&(e=e?Va.createFrame(e):{},e.root=t),e}o(dJe,"initData");function bie(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),_p.extend(e,a)}return e}o(bie,"executeDecorators");function Iie(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=AJe(s,r)})}o(Iie,"addHelpers");function AJe(t,e){var r=e.lookupProperty;return oJe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(AJe,"passLookupPropertyOption")});var NF=m((D0,Sie)=>{"use strict";D0.__esModule=!0;D0.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}};Sie.exports=D0.default});var Tie=m((O0,Rie)=>{"use strict";O0.__esModule=!0;function QF(t){return t&&t.__esModule?t:{default:t}}o(QF,"_interopRequireDefault");function RF(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(RF,"_interopRequireWildcard");var pJe=v0(),Nie=RF(pJe),fJe=gie(),hJe=QF(fJe),mJe=ps(),gJe=QF(mJe),EJe=an(),xF=RF(EJe),yJe=wie Line truncated
`+this.lexer.showPosition()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Gr="Parse error on line "+(A+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Gr,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:de})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+b);switch(D[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),b=null,N?(b=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(Ce=this.productions_[D[1]][1],qe.$=c[c.length-Ce],qe._$={first_line:l[l.length-(Ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(qe._$.range=[l[l.length-(Ce||1)].range[0],l[l.length-1].range[1]]),Me=this.performAction.call(qe,d,p,A,this.yy,D[1],c,l),typeof Me<"u")return Me;Ce&&(a=a.slice(0,-1*Ce*2),c=c.slice(0,-1*Ce),l=l.slice(0,-1*Ce)),a.push(this.productions_[D[1]][0]),c.push(qe.$),l.push(qe._$),et=u[a[a.length-2]][a[a.length-1]],a.push(et);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function u(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();O0.default=lJe;wie.exports=O0.default});var U0=m((F0,Qie)=>{"use strict";F0.__esModule=!0;function uJe(t){return t&&t.__esModule?t:{default:t}}o(uJe,"_interopRequireDefault");var dJe=ps(),TF=uJe(dJe);function M0(){this.parents=[]}o(M0,"Visitor");M0.prototype={constructor:M0,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!M0.prototype[n.type])throw new TF.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new TF.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new TF.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:L0,Decorator:L0,BlockStatement:Nie,DecoratorBlock:Nie,PartialStatement:xie,PartialBlockStatement:o(function(e){xie.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:L0,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new Hu(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 Hu?e:(e=XF(e,this,r),new Hu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=XF(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(XF(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};Y0.default=loe;uoe.exports=Y0.default});var moe=m((W0,hoe)=>{"use strict";W0.__esModule=!0;function foe(t){return t&&t.__esModule?t:{default:t}}o(foe,"_interopRequireDefault");var Aoe=R0(),cYe=ps(),eU=foe(cYe),lYe=an(),uYe=doe(),poe=foe(uYe);function Op(t){this.value=t}o(Op,"Literal");function Mp(){}o(Mp,"JavaScriptCompiler");Mp.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=Aoe.COMPILER_REVISION,r=Aoe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return lYe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new eU.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 i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function u(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();L0.default=BJe;Pie.exports=L0.default});var G0=m((q0,Mie)=>{"use strict";q0.__esModule=!0;function bJe(t){return t&&t.__esModule?t:{default:t}}o(bJe,"_interopRequireDefault");var wJe=ps(),vF=bJe(wJe);function F0(){this.parents=[]}o(F0,"Visitor");F0.prototype={constructor:F0,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!F0.prototype[n.type])throw new vF.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new vF.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new vF.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:U0,Decorator:U0,BlockStatement:Die,DecoratorBlock:Die,PartialStatement:Oie,PartialBlockStatement:o(function(e){Oie.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:U0,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new zu(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 zu?e:(e=ZF(e,this,r),new zu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=ZF(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(ZF(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};j0.default=Eoe;yoe.exports=j0.default});var Soe=m((K0,woe)=>{"use strict";K0.__esModule=!0;function boe(t){return t&&t.__esModule?t:{default:t}}o(boe,"_interopRequireDefault");var Ioe=v0(),IYe=ps(),tU=boe(IYe),BYe=an(),bYe=Coe(),Boe=boe(bYe);function Lp(t){this.value=t}o(Lp,"Literal");function Fp(){}o(Fp,"JavaScriptCompiler");Fp.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=Ioe.COMPILER_REVISION,r=Ioe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return BYe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new tU.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,h=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],h[l]&&(A[l+"_d"]=h[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),s?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new poe.default(this.options.srcName),this.decorators=new poe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,h=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],h[l]&&(A[l+"_d"]=h[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),s?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new Boe.default(this.options.srcName),this.decorators=new Boe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -84,26 +84,26 @@ Expecting `+de.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Gr="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(dYe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Pt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};Pt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Pt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Pt.prototype.BlockStatement=Pt.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};Pt.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+" }}")};Pt.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+" }}")};Pt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Pt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Pt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Pt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Pt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Pt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Pt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Pt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Pt.prototype.NullLiteral=function(){return"NULL"};Pt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Pt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var woe=m((A_t,boe)=>{var X0=yoe().default,Boe=Coe();X0.PrintVisitor=Boe.PrintVisitor;X0.print=Boe.print;boe.exports=X0;function Ioe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=X0.compile(n)}o(Ioe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Ioe,require.extensions[".hbs"]=Ioe)});var Doe=m(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.getProxyUrl=TYe;nS.checkBypass=koe;function TYe(t){let e=t.protocol==="https:";if(koe(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 rS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new rS(`http://${r}`)}else return}o(TYe,"getProxyUrl");function koe(t){if(!t.hostname)return!1;let e=t.hostname;if(vYe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(koe,"checkBypass");function vYe(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(vYe,"isLoopbackAddress");var rS=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 Moe=m(Et=>{"use strict";var _Ye=Et&&Et.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),PYe=Et&&Et.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aS=Et&&Et.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&_Ye(r,e,n[s]);return PYe(r,e), Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(wYe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Pt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};Pt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Pt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Pt.prototype.BlockStatement=Pt.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};Pt.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+" }}")};Pt.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+" }}")};Pt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Pt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Pt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Pt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Pt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Pt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Pt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Pt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Pt.prototype.NullLiteral=function(){return"NULL"};Pt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Pt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Poe=m((__t,_oe)=>{var eS=Qoe().default,voe=Roe();eS.PrintVisitor=voe.PrintVisitor;eS.print=voe.print;_oe.exports=eS;function Toe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=eS.compile(n)}o(Toe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Toe,require.extensions[".hbs"]=Toe)});var zoe=m(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.getProxyUrl=HYe;iS.checkBypass=Voe;function HYe(t){let e=t.protocol==="https:";if(Voe(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 sS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new sS(`http://${r}`)}else return}o(HYe,"getProxyUrl");function Voe(t){if(!t.hostname)return!1;let e=t.hostname;if(VYe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Voe,"checkBypass");function VYe(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(VYe,"isLoopbackAddress");var sS=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 Joe=m(Et=>{"use strict";var zYe=Et&&Et.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),$Ye=Et&&Et.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lS=Et&&Et.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&zYe(r,e,n[s]);return $Ye(r,e), Line truncated
`).join(`
`+i),t.push(s+"m+"+oN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=w5e()+e+" "+t[0]}o(b5e,"formatArgs");function w5e(){return yr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(w5e,"getDate");function S5e(...t){return process.stderr.write(iN.formatWithOptions(yr.inspectOpts,...t)+`
`)}o(S5e,"log");function N5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(N5e,"save");function x5e(){return process.env.DEBUG}o(x5e,"load");function Q5e(t){t.inspectOpts={};let e=Object.keys(yr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=yr.inspectOpts[e[r]]}o(Q5e,"init");oN.exports=T2()(yr);var{formatters:lle}=oN.exports;lle.o=function(t){return this.inspectOpts.colors=this.useColors,iN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};lle.O=function(t){return this.inspectOpts.colors=this.useColors,iN.inspect(t,this.inspectOpts)}});var _2=m((zOt,v2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?v2.exports=cle():v2.exports=ule()});var cN=m(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.DownloadHTTPError=kt.DownloadLengthMismatchError=kt.DownloadError=kt.ExpiredMetadataError=kt.EqualVersionError=kt.BadVersionError=kt.RepositoryError=kt.PersistError=kt.RuntimeError=kt.ValueError=void 0;var P2=class extends Error{static{o(this,"ValueError")}};kt.ValueError=P2;var k2=class extends Error{static{o(this,"RuntimeError")}};kt.RuntimeError=k2;var D2=class extends Error{static{o(this,"PersistError")}};kt.PersistError=D2;var gE=class extends Error{static{o(this,"RepositoryError")}};kt.RepositoryError=gE;var aN=class extends gE{static{o(this,"BadVersionError")}};kt.BadVersionError=aN;var O2=class extends aN{static{o(this,"EqualVersionError")}};kt.EqualVersionError=O2;var M2=class extends gE{static{o(this,"ExpiredMetadataError")}};kt.ExpiredMetadataError=M2;var EE=class extends Error{static{o(this,"DownloadError")}};kt.DownloadError=EE;var L2=class extends EE{static{o(this,"DownloadLengthMismatchError")}};kt.DownloadLengthMismatchError=L2;var F2=class extends EE{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};kt.DownloadHTTPError=F2});var Ale=m(cf=>{"use strict";var q2=cf&&cf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cf,"__esModule",{value:!0});cf.withTempFile=void 0;var U2=q2(require("fs/promises")),R5e=q2(require("os")),dle=q2(require("path")),T5e=o(async t=>v5e(async e=>t(dle.default.join(e,"tempfile"))),"withTempFile");cf.withTempFile=T5e;var v5e=o(async t=>{let e=await U2.default.realpath(R5e.default.tmpdir()),r=await U2.default.mkdtemp(e+dle.default.sep);try{return await t(r)}finally{await U2.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var fle=m((jOt,ple)=>{var G2=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#s;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#s=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let s=0;s<this.#n.length;s++){let i=this.#n[s],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#i>=this.#s)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};ple.exports={RetryOperation:G2}});var gle=m((XOt,mle)=>{var{RetryOperation:_5e}=fle(),hle=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),P5e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),k5e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(s.retries){for(let i=0;i<s.retries;i++)r.push(hle(i,s));r.sort((i,a)=>i-a)}else e.forever&&r.push(hle(0,s))}let n=new _5e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(s,i){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return s(c)}catch(c){if(!P5e(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");mle.exports={promiseRetry:k5e}});var z2=m(al=>{"use strict";var V2=al&&al.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(al,"__esModule",{value:!0});al.DefaultFetcher=al.BaseFetcher=void 0;var D5e=V2(_2()),Ele=V2(require("fs")),O5e=V2(require("util")),yle=cN(),M5e=Ale(),L5e=gle(),F5e=(0,D5e.default)("tuf:fetch"),U5e="User-Agent",lN=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,M5e.withTempFile)(async s=>{let i=await this.fetch(e),a=0,c=Ele.default.createWriteStream(s),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new yle.DownloadLengthMismatchError("Max length reached");await q5e(c,Buffer.from(d))}}finally{l.releaseLock(),await O5e.default.promisify(c.close).bind(c)()}return n(s)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let s=Ele.defau Line truncated
`).forEach(r=>{r.match($8e)||r.match(J8e)||(e+=r)}),Buffer.from(e,"base64")}o(Y8e,"toDER");function W8e(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`+i),t.push(s+"m+"+cN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=M5e()+e+" "+t[0]}o(O5e,"formatArgs");function M5e(){return yr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(M5e,"getDate");function L5e(...t){return process.stderr.write(aN.formatWithOptions(yr.inspectOpts,...t)+`
`)}o(L5e,"log");function F5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(F5e,"save");function U5e(){return process.env.DEBUG}o(U5e,"load");function q5e(t){t.inspectOpts={};let e=Object.keys(yr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=yr.inspectOpts[e[r]]}o(q5e,"init");cN.exports=v2()(yr);var{formatters:yle}=cN.exports;yle.o=function(t){return this.inspectOpts.colors=this.useColors,aN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};yle.O=function(t){return this.inspectOpts.colors=this.useColors,aN.inspect(t,this.inspectOpts)}});var P2=m((dMt,_2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_2.exports=Ele():_2.exports=Cle()});var uN=m(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.DownloadHTTPError=kt.DownloadLengthMismatchError=kt.DownloadError=kt.ExpiredMetadataError=kt.EqualVersionError=kt.BadVersionError=kt.RepositoryError=kt.PersistError=kt.RuntimeError=kt.ValueError=void 0;var k2=class extends Error{static{o(this,"ValueError")}};kt.ValueError=k2;var D2=class extends Error{static{o(this,"RuntimeError")}};kt.RuntimeError=D2;var O2=class extends Error{static{o(this,"PersistError")}};kt.PersistError=O2;var CE=class extends Error{static{o(this,"RepositoryError")}};kt.RepositoryError=CE;var lN=class extends CE{static{o(this,"BadVersionError")}};kt.BadVersionError=lN;var M2=class extends lN{static{o(this,"EqualVersionError")}};kt.EqualVersionError=M2;var L2=class extends CE{static{o(this,"ExpiredMetadataError")}};kt.ExpiredMetadataError=L2;var IE=class extends Error{static{o(this,"DownloadError")}};kt.DownloadError=IE;var F2=class extends IE{static{o(this,"DownloadLengthMismatchError")}};kt.DownloadLengthMismatchError=F2;var U2=class extends IE{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};kt.DownloadHTTPError=U2});var Ble=m(uf=>{"use strict";var G2=uf&&uf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uf,"__esModule",{value:!0});uf.withTempFile=void 0;var q2=G2(require("fs/promises")),G5e=G2(require("os")),Ile=G2(require("path")),H5e=o(async t=>V5e(async e=>t(Ile.default.join(e,"tempfile"))),"withTempFile");uf.withTempFile=H5e;var V5e=o(async t=>{let e=await q2.default.realpath(G5e.default.tmpdir()),r=await q2.default.mkdtemp(e+Ile.default.sep);try{return await t(r)}finally{await q2.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var wle=m((mMt,ble)=>{var H2=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#s;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#s=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let s=0;s<this.#n.length;s++){let i=this.#n[s],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#i>=this.#s)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};ble.exports={RetryOperation:H2}});var xle=m((EMt,Nle)=>{var{RetryOperation:z5e}=wle(),Sle=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),$5e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),J5e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(s.retries){for(let i=0;i<s.retries;i++)r.push(Sle(i,s));r.sort((i,a)=>i-a)}else e.forever&&r.push(Sle(0,s))}let n=new z5e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(s,i){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return s(c)}catch(c){if(!$5e(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");Nle.exports={promiseRetry:J5e}});var $2=m(cl=>{"use strict";var z2=cl&&cl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cl,"__esModule",{value:!0});cl.DefaultFetcher=cl.BaseFetcher=void 0;var Y5e=z2(P2()),Qle=z2(require("fs")),W5e=z2(require("util")),Rle=uN(),j5e=Ble(),K5e=xle(),X5e=(0,Y5e.default)("tuf:fetch"),Z5e="User-Agent",dN=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,j5e.withTempFile)(async s=>{let i=await this.fetch(e),a=0,c=Qle.default.createWriteStream(s),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new Rle.DownloadLengthMismatchError("Max length reached");await e8e(c,Buffer.from(d))}}finally{l.releaseLock(),await W5e.default.promisify(c.close).bind(c)()}return n(s)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let s=Qle.defau Line truncated
`).forEach(r=>{r.match(i9e)||r.match(o9e)||(e+=r)}),Buffer.from(e,"base64")}o(a9e,"toDER");function c9e(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}o(W8e,"fromDER")});var SN=m(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.SHA2_HASH_ALGOS=Al.RSA_SIGNATURE_ALGOS=Al.ECDSA_SIGNATURE_ALGOS=void 0;Al.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"};Al.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"};Al.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 hq=m(NN=>{"use strict";Object.defineProperty(NN,"__esModule",{value:!0});NN.RFC3161TimestampVerificationError=void 0;var fq=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};NN.RFC3161TimestampVerificationError=fq});var Wle=m(Vo=>{"use strict";var j8e=Vo&&Vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),K8e=Vo&&Vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),X8e=Vo&&Vo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&j8e(r,e,n[s]);return K8e(r,e),r}})();Object.defineProperty(Vo,"__esModule",{value:!0});Vo.TSTInfo=void 0;var Yle=X8e(ff()),Z8e=SN(),e9e=hq(),mq=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 Z8e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Yle.digest(this.messageImprintHashAlgorithm,e);if(!Yle.bufferEqual(r,this.messageImprintHashedMessage))throw new e9e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Vo.TSTInfo=mq});var Kle=m(zo=>{"use strict";var t9e=zo&&zo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),r9e=zo&&zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n9e=zo&&zo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&t9e(r,e,n[s]);return r9e(r,e),r}})();Object.defineProperty(zo,"__esModule",{value:!0});zo.RFC3161Timestamp=void 0;var s9e=BN(),gq=n9e(ff()),jle=SN(),wE=hq(),i9e=Wle(),o9e="1.2.840.113549.1.7.2",a9e="1.2.840.113549.1.9.16.1.4",c9e="1.2.840.113549.1.9.4",Eq=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=s9e.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 jle.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return jle.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new i9e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new wE.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==o9e)throw new wE.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==a9e)throw new wE.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=gq.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`)}o(c9e,"fromDER")});var xN=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.SHA2_HASH_ALGOS=pl.RSA_SIGNATURE_ALGOS=pl.ECDSA_SIGNATURE_ALGOS=void 0;pl.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"};pl.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"};pl.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 mq=m(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.RFC3161TimestampVerificationError=void 0;var hq=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};QN.RFC3161TimestampVerificationError=hq});var iue=m(zo=>{"use strict";var l9e=zo&&zo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),u9e=zo&&zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),d9e=zo&&zo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&l9e(r,e,n[s]);return u9e(r,e),r}})();Object.defineProperty(zo,"__esModule",{value:!0});zo.TSTInfo=void 0;var sue=d9e(mf()),A9e=xN(),p9e=mq(),gq=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 A9e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=sue.digest(this.messageImprintHashAlgorithm,e);if(!sue.bufferEqual(r,this.messageImprintHashedMessage))throw new p9e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};zo.TSTInfo=gq});var aue=m($o=>{"use strict";var f9e=$o&&$o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),h9e=$o&&$o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),m9e=$o&&$o.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&f9e(r,e,n[s]);return h9e(r,e),r}})();Object.defineProperty($o,"__esModule",{value:!0});$o.RFC3161Timestamp=void 0;var g9e=wN(),Eq=m9e(mf()),oue=xN(),xE=mq(),E9e=iue(),y9e="1.2.840.113549.1.7.2",C9e="1.2.840.113549.1.9.16.1.4",I9e="1.2.840.113549.1.9.4",yq=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=g9e.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 oue.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return oue.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new E9e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new xE.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==y9e)throw new xE.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==C9e)throw new xE.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Eq.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,Q6e=/\u2014 (\S+) (\S+)\n/g;function R6e(t,e){let r=t.inclusionProof,n=Yq.fromString(r.checkpoint.envelope),s=$N.fromString(n.note);if(!T6e(n,e))throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(R6e,"verifyCheckpoint");function T6e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>vue.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?vue.crypto.verify(r,s.publicKey,n.signature):!1})}o(T6e,"verifySignedNote");var Yq=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Jq))throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Jq),n=e.slice(0,r+1),i=e.slice(r+Jq.length).matchAll(Q6e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},$N=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new If.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};RE.LogCheckpoint=$N});var Pue=m(Kq=>{"use strict";Object.defineProperty(Kq,"__esModule",{value:!0});Kq.verifyMerkleInclusion=P6e;var jq=vi(),JN=qr(),v6e=Buffer.from([0]),_6e=Buffer.from([1]);function P6e(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=k6e(n,s);if(r.hashes.length!==i+a)throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=U6e(t.canonicalizedBody),d=O6e(D6e(u,c,n),l);if(!jq.crypto.bufferEqual(d,e.logHash))throw new JN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(P6e,"verifyMerkleInclusion");function k6e(t,e){let r=M6e(t,e),n=L6e(t>>BigInt(r));return{inner:r,border:n}}o(k6e,"decompInclProof");function D6e(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?Wq(s,n):Wq(n,s),t)}o(D6e,"chainInner");function O6e(t,e){return e.reduce((r,n)=>Wq(n,r),t)}o(O6e,"chainBorderRight");function M6e(t,e){return F6e(t^e-BigInt(1))}o(M6e,"innerProofSize");function L6e(t){return t.toString(2).split("1").length-1}o(L6e,"onesCount");function F6e(t){return t===0n?0:t.toString(2).length}o(F6e,"bitLength");function Wq(t,e){return jq.crypto.digest("sha256",_6e,t,e)}o(Wq,"hashChildren");function U6e(t){return jq.crypto.digest("sha256",v6e,t)}o(U6e,"hashLeaf")});var Due=m(Xq=>{"use strict";Object.defineProperty(Xq,"__esModule",{value:!0});Xq.verifyTLogSET=H6e;var kue=vi(),q6e=qr(),G6e=gf();function H6e(t,e){if(!(0,G6e.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=V6e(t),a=Buffer.from(kue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return kue.crypto.verify(a,s.publicKey,c)}))throw new q6e.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(H6e,"verifyTLogSET");function V6e(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(V6e,"toVerificationPayload")});var Mue=m(WN=>{"use strict";Object.defineProperty(WN,"__esModule",{value:!0});WN.verifyTLogBody=W6e;WN.verifyTLogInclusion=j6e;var Oue=xue(),YN=qr(),Zq=Que(),eG=Rue(),z6e=Tue(),$6e=_ue(),J6e=Pue(),Y6e=Due();function W6e(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new YN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new YN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==Zq.DSSE_API_VERSION_V1)return(0,Zq.verifyDSSETLogBody)(s,e);{let i=Oue.Entry.fromJSON(s);return(0,Zq.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,z6e.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==eG.HASHEDREKORD_API_VERSION_V1)return(0,eG.verifyHashedRekordTLogBody)(s,e);{let i=Oue.Entry.fromJSON(s);return(0,eG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new YN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(W6e,"verifyTLogBody");function j6e(t,e){let r=!1;if(K6e(t)&&((0,Y6e.verifyTLogSET)(t,e),r=!0),X6e(t)){let n=(0,$6e.verifyCheckpoint)(t,e);(0,J6e.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new YN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(j6e,"verifyTLogInclusion");function K6e(t){return t.inclusionPromise!==void 0}o(K6e,"isTLogEntryWithInclusionPromise");function X6e(t){return t.inclusionProof!==void 0}o(X6e,"isTLogEntryWithInclusionProof")});var que=m(jN=>{"use strict";Object.defineProperty(jN,"__esModule",{value:!0});jN.Verifier=void 0;var Z6e=require("util"),Ad=qr(),Lue=hue(),tG=mue(),Fue=yue(),Uue=Mue(),nG=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 n=this.verifyTimestamps(e),s=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
${l}`}let A=hx(t.buffer,s[c],i[c],t.position,d);l+=`${" ".repeat(r.indent)}${mx((t.line+1).toString(),u)} | ${A.str}
`,q6e=/\u2014 (\S+) (\S+)\n/g;function G6e(t,e){let r=t.inclusionProof,n=Wq.fromString(r.checkpoint.envelope),s=YN.fromString(n.note);if(!H6e(n,e))throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o(G6e,"verifyCheckpoint");function H6e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>que.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?que.crypto.verify(r,s.publicKey,n.signature):!1})}o(H6e,"verifySignedNote");var Wq=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Yq))throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Yq),n=e.slice(0,r+1),i=e.slice(r+Yq.length).matchAll(q6e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},YN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};_E.LogCheckpoint=YN});var Hue=m(Xq=>{"use strict";Object.defineProperty(Xq,"__esModule",{value:!0});Xq.verifyMerkleInclusion=$6e;var Kq=_i(),WN=qr(),V6e=Buffer.from([0]),z6e=Buffer.from([1]);function $6e(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=J6e(n,s);if(r.hashes.length!==i+a)throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=Z6e(t.canonicalizedBody),d=W6e(Y6e(u,c,n),l);if(!Kq.crypto.bufferEqual(d,e.logHash))throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o($6e,"verifyMerkleInclusion");function J6e(t,e){let r=j6e(t,e),n=K6e(t>>BigInt(r));return{inner:r,border:n}}o(J6e,"decompInclProof");function Y6e(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?jq(s,n):jq(n,s),t)}o(Y6e,"chainInner");function W6e(t,e){return e.reduce((r,n)=>jq(n,r),t)}o(W6e,"chainBorderRight");function j6e(t,e){return X6e(t^e-BigInt(1))}o(j6e,"innerProofSize");function K6e(t){return t.toString(2).split("1").length-1}o(K6e,"onesCount");function X6e(t){return t===0n?0:t.toString(2).length}o(X6e,"bitLength");function jq(t,e){return Kq.crypto.digest("sha256",z6e,t,e)}o(jq,"hashChildren");function Z6e(t){return Kq.crypto.digest("sha256",V6e,t)}o(Z6e,"hashLeaf")});var zue=m(Zq=>{"use strict";Object.defineProperty(Zq,"__esModule",{value:!0});Zq.verifyTLogSET=rKe;var Vue=_i(),eKe=qr(),tKe=yf();function rKe(t,e){if(!(0,tKe.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=nKe(t),a=Buffer.from(Vue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Vue.crypto.verify(a,s.publicKey,c)}))throw new eKe.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(rKe,"verifyTLogSET");function nKe(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(nKe,"toVerificationPayload")});var Jue=m(KN=>{"use strict";Object.defineProperty(KN,"__esModule",{value:!0});KN.verifyTLogBody=cKe;KN.verifyTLogInclusion=lKe;var $ue=Mue(),jN=qr(),eG=Lue(),tG=Fue(),sKe=Uue(),iKe=Gue(),oKe=Hue(),aKe=zue();function cKe(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==eG.DSSE_API_VERSION_V1)return(0,eG.verifyDSSETLogBody)(s,e);{let i=$ue.Entry.fromJSON(s);return(0,eG.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,sKe.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==tG.HASHEDREKORD_API_VERSION_V1)return(0,tG.verifyHashedRekordTLogBody)(s,e);{let i=$ue.Entry.fromJSON(s);return(0,tG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(cKe,"verifyTLogBody");function lKe(t,e){let r=!1;if(uKe(t)&&((0,aKe.verifyTLogSET)(t,e),r=!0),dKe(t)){let n=(0,iKe.verifyCheckpoint)(t,e);(0,oKe.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new jN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(lKe,"verifyTLogInclusion");function uKe(t){return t.inclusionPromise!==void 0}o(uKe,"isTLogEntryWithInclusionPromise");function dKe(t){return t.inclusionProof!==void 0}o(dKe,"isTLogEntryWithInclusionProof")});var Kue=m(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.Verifier=void 0;var AKe=require("util"),fd=qr(),Yue=Sue(),rG=Nue(),Wue=Rue(),jue=Jue(),sG=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 n=this.verifyTimestamps(e),s=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
${l}`}let A=gx(t.buffer,s[c],i[c],t.position,d);l+=`${" ".repeat(r.indent)}${Ex((t.line+1).toString(),u)} | ${A.str}
`,l+=`${"-".repeat(r.indent+u+3+A.pos)}^
`;for(let p=1;p<=r.linesAfter&&!(c+p>=i.length);p++){let f=hx(t.buffer,s[c+p],i[c+p],t.position-(s[c]-s[c+p]),d);l+=`${" ".repeat(r.indent)}${mx((t.line+p+1).toString(),u)} | ${f.str}
`}return l.replace(/\n$/,"")}o(DAe,"makeSnippet");function EG(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
`;for(let p=1;p<=r.linesAfter&&!(c+p>=i.length);p++){let f=gx(t.buffer,s[c+p],i[c+p],t.position-(s[c]-s[c+p]),d);l+=`${" ".repeat(r.indent)}${Ex((t.line+p+1).toString(),u)} | ${f.str}
`}return l.replace(/\n$/,"")}o(zAe,"makeSnippet");function yG(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(EG,"formatError");var Cl=class _G extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=EG(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${EG(this,e)}`}static throwAt(e,r,n,s=""){let i=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(i++,a=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:i,column:r-a};throw c.snippet=DAe(c),new _G(n,c)}},wt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Be={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},nc={BLOCK:1,FLOW:2},Fn={CLIP:1,STRIP:2,KEEP:3},OAe=-1;function yG(t){switch(t){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(yG,"simpleEscapeSequence");var PG=new Array(256),kG=new Array(256);for(let t=0;t<256;t++)PG[t]=yG(t)?1:0,kG[t]=yG(t);function MAe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(MAe,"charFromCodepoint");function LAe(t){return t>=48&&t<=57?t-48:(t|32)-97+10}o(LAe,"fromHexCode$1");function FAe(t){return t===120?2:t===117?4:8}o(FAe,"escapedHexLen$1");function ME(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}o(ME,"skipFoldedBreaks");function Tx(t){return t===1?" ":`
`.repeat(t-1)}o(Tx,"foldedBreaks");function UAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(i,a);let l=ME(t,s,r);n+=Tx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,a)}o(UAe,"getPlainValue");function qAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(i,s)+"'",s+=2,i=a=s;else if(c===10||c===13){n+=t.slice(i,a);let l=ME(t,s,r);n+=Tx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(qAe,"getSingleQuotedValue");function GAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(i,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=ME(t,s,r).position;else if(l<256&&PG[l])n+=kG[l],s++;else{let u=FAe(l),d=0;for(;u>0;u--){s++;let A=LAe(t.charCodeAt(s));d=(d<<4)+A}n+=MAe(d),s++}i=a=s}else if(c===10||c===13){n+=t.slice(i,a);let l=ME(t,s,r);n+=Tx(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(GAe,"getDoubleQuotedValue");function CG(t,e,r,n,s,i){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(yG,"formatError");var Il=class PG extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yG(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${yG(this,e)}`}static throwAt(e,r,n,s=""){let i=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(i++,a=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:i,column:r-a};throw c.snippet=zAe(c),new PG(n,c)}},wt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Be={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},sc={BLOCK:1,FLOW:2},Fn={CLIP:1,STRIP:2,KEEP:3},$Ae=-1;function CG(t){switch(t){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(CG,"simpleEscapeSequence");var kG=new Array(256),DG=new Array(256);for(let t=0;t<256;t++)kG[t]=CG(t)?1:0,DG[t]=CG(t);function JAe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(JAe,"charFromCodepoint");function YAe(t){return t>=48&&t<=57?t-48:(t|32)-97+10}o(YAe,"fromHexCode$1");function WAe(t){return t===120?2:t===117?4:8}o(WAe,"escapedHexLen$1");function UE(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}o(UE,"skipFoldedBreaks");function _x(t){return t===1?" ":`
`.repeat(t-1)}o(_x,"foldedBreaks");function jAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=_x(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,a)}o(jAe,"getPlainValue");function KAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(i,s)+"'",s+=2,i=a=s;else if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=_x(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(KAe,"getSingleQuotedValue");function XAe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(i,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=UE(t,s,r).position;else if(l<256&&kG[l])n+=DG[l],s++;else{let u=WAe(l),d=0;for(;u>0;u--){s++;let A=YAe(t.charCodeAt(s));d=(d<<4)+A}n+=JAe(d),s++}i=a=s}else if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=_x(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(XAe,"getDoubleQuotedValue");function IG(t,e,r,n,s,i){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
`),l=c===""?[]:(c.endsWith(`
`)?c.slice(0,-1):c).split(`
`),u="",d=!1,A=0,p=!1;for(let f of l){let h=0;for(;h<a&&f.charCodeAt(h)===32;)h++;if(n<0||h>=f.length){A++;continue}let g=f.slice(a),y=g.charCodeAt(0);i?y===32||y===9?(p=!0,u+=`
@@ -112,69 +112,70 @@ ${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(EG,"formatError");var Cl=clas
`.repeat(A):u+=`
`.repeat(d?1+A:A),u+=g,d=!0,A=0}return s===Fn.KEEP?u+=`
`.repeat(d?1+A:A):s!==Fn.STRIP&&d&&(u+=`
`),u}o(CG,"getBlockValue");function HAe(t,e){if(e.valueStart===OAe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Be.SINGLE_QUOTED:return qAe(t,r,n);case Be.DOUBLE_QUOTED:return GAe(t,r,n);case Be.LITERAL_BLOCK:return CG(t,r,n,e.indent,e.chomping,!1);case Be.FOLDED_BLOCK:return CG(t,r,n,e.indent,e.chomping,!0);default:return UAe(t,r,n)}}o(HAe,"getScalarValue");var VAe=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function DG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??VAe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(DG,"tagNameFull");var fd=-1,zAe="tag:yaml.org,2002:merge",vx={filename:"",schema:vAe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function $Ae(t){return"tagStart"in t&&t.tagStart!==fd?t.tagStart:"anchorStart"in t&&t.anchorStart!==fd?t.anchorStart:"valueStart"in t&&t.valueStart!==fd?t.valueStart:"start"in t?t.start:0}o($Ae,"eventPosition$1");function Cr(t,e){Cl.throwAt(t.source,t.position,e,t.filename)}o(Cr,"throwError$1");function OG(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Cl)throw s;Cl.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o(OG,"finalizeCollection");function JAe(t,e){let r=HAe(t.source,e),n=e.tagStart===fd?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=DG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){let l=a.resolve(r,!0,i);return l===Te&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`);let l=c.create(i);return{value:c.carrierIsResult?l:OG(t,t.position,c,l),tag:c}}Cr(t,`unknown scalar tag !<${i}>`)}return e.style===Be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o(JAe,"constructScalar");function IG(t,e,r){let n=e.tagStart===fd?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:DG(n,t.tagHandlers)}o(IG,"collectionTagName");function MG(t){return t.nodeKind==="mapping"}o(MG,"isMappingTag");function BG(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Cr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}o(BG,"chargeMergeWork");function bG(t,e,r,n){BG(t);for(let s of n.keys(r)){if(BG(t),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&Cr(t,i),e.overridable??=new Set,e.overridable.add(s)}}o(bG,"mergeKeys");function YAe(t,e,r,n){if(t.position=e.keyPosition,MG(n))bG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Cr(t,"abnormal merge sequence size");for(let s of r){let i=t.nodeTags.get(s);i||Cr(t,"cannot merge mappings; the provided source object is unacceptable"),bG(t,e,s,i)}}else Cr(t,"cannot merge mappings; the provided source object is unacceptable")}o(YAe,"mergeSource");function WAe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){YAe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Cr(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&Cr(t,i),e.overridable?.delete(r)}o(WAe,"addMappingValue");function gx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){MG(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Cr(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,WAe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===zAe}o(gx,"addValue");function Ex(t,e,r,n,s){if(e.anchorStart!==fd){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(Ex,"storeAnchor");function jAe(t,e){let r={...vx,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=$Ae(n),n.type){case wt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case wt.SCALAR:{let{value:s,tag:i}=JAe(r,n);Ex(r,n,s,i,!0),gx(r,s,i);break}case wt.SEQUENCE:{let s=IG(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(s);i||Cr(r,`unknown sequence tag !<${s}>`);let a=i.create(s),c=Ex(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:i,anchor:c,index:0});break}case wt.MAPPING:{let s=IG(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(s);i||Cr(r,`unknown mapping tag !<${s}>`);let a=i.create(s),c=Ex(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"mapping",positio Line truncated
`)?Be.DOUBLE_QUOTED:$G(t)))}o(Spe,"applyForceQuotesOption");function Npe(t){if(t.style!==Be.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!HE(t.allowedStylesMask,Be.LITERAL_BLOCK)){r&&(t.style=Be.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=Be.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),i=0,a=!1;for(;i<=e.length;){let c=e.length,l=e.indexOf(`
`,i);l!==-1&&(c=l);let u=e.slice(i,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;i=l+1}a?t.style=Be.FOLDED_BLOCK:r&&(t.style=Be.LITERAL_BLOCK)}o(Npe,"tryLongOrMultilineAsBlock");function xpe(t){t.style===Be.PLAIN&&!HE(t.allowedStylesMask,Be.PLAIN)&&(t.style=$G(t))}o(xpe,"quoteInvalidPlain");function Qpe(t){HE(t.allowedStylesMask,t.style)||(t.style=Be.DOUBLE_QUOTED)}o(Qpe,"fallbackToDoubleQuoted");var Rpe="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Tpe="[\\n\\r]",vpe="\\uFEFF",kx="[ \\t]",JG=`(?:(?!(?:${Tpe}|${vpe}))${Rpe})`,VE=`(?:(?!${kx})${JG})`,YG="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",WG="[-?:,\\[\\]{}#&*!|>'\"%@`]",_pe="[,\\[\\]{}]",Nx=VE,xx=`(?:(?!${_pe})${VE})`,Ppe=`(?:(?:(?!${WG})${VE})|[?:-](?=${Nx}))`,kpe=`(?:(?:(?!${WG})${VE})|[?:-](?=${xx}))`,jG=`(?:(?:(?![:#])${Nx})|:(?=${Nx}))#*`,KG=`(?:(?:(?![:#])${xx})|:(?=${xx}))#*`,XG=`(?:${kx}*${jG})*`,ZG=`(?:${kx}*${KG})*`,eH=`${Ppe}#*${XG}`,tH=`${kpe}#*${ZG}`,Dpe=eH,Ope=tH,Mpe=`\\n+${jG}${XG}`,Lpe=`\\n+${KG}${ZG}`,Fpe=`${eH}(?:${Mpe})*`,Upe=`${tH}(?:${Lpe})*`,uKe=new RegExp(`^(?:${Fpe})$`,"u"),dKe=new RegExp(`^(?:${Upe})$`,"u"),AKe=new RegExp(`^(?:${Dpe})$`,"u"),pKe=new RegExp(`^(?:${Ope})$`,"u"),fKe=new RegExp(`^(?:${YG})*$`,"u"),hKe=new RegExp(`^(?:${YG}|\\n)*$`,"u"),mKe=new RegExp(`^(?:${JG}|\\n)*$`,"u");var qpe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(QG).map(t=>Reflect.get(QG,t)),tagBeforeAnchor:!1};var gKe={...qpe,schema:PAe,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};var EKe=wt.DOCUMENT,yKe=wt.SEQUENCE,CKe=wt.MAPPING,IKe=wt.SCALAR,BKe=wt.ALIAS,bKe=wt.POP,wKe=Be.PLAIN,SKe=Be.SINGLE_QUOTED,NKe=Be.DOUBLE_QUOTED,xKe=Be.LITERAL_BLOCK,QKe=Be.FOLDED_BLOCK,RKe=nc.BLOCK,TKe=nc.FLOW,vKe=Fn.CLIP,_Ke=Fn.STRIP,PKe=Fn.KEEP;var nH=w(require("os"),1);function ta(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ta,"toCommandValue");function Dx(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(Dx,"toCommandProperties");function ra(t,e,r){let n=new Ox(t,e,r);process.stdout.write(n.toString()+nH.EOL)}o(ra,"issueCommand");function Mx(t,e=""){ra(t,{},e)}o(Mx,"issue");var rH="::",Ox=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=rH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Vpe(s)}`)}}return e+=`${rH}${Hpe(this.message)}`,e}};function Hpe(t){return ta(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Hpe,"escapeData");function Vpe(t){return ta(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Vpe,"escapeProperty");var sH=w(require("crypto"),1),$E=w(require("fs"),1),zE=w(require("os"),1);function JE(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!$E.existsSync(r))throw new Error(`Missing file at path: ${r}`);$E.appendFileSync(r,`${ta(e)}${zE.EOL}`,{encoding:"utf8"})}o(JE,"issueFileCommand");function Lx(t,e){let r=`ghadelimiter_${sH.randomUUID()}`,n=ta(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${zE.EOL}${n}${zE.EOL}${r}`}o(Lx,"prepareKeyValueMessage");var xv=w(require("os"),1),n4=w(require("path"),1);var Ph=w(require("http"),1),fv=w(require("https"),1);function Fx(t){let e=t.protocol==="https:";if(zpe(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 YE(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new YE(`http://${r}`)}else return}o(Fx,"getProxyUrl");function zpe(t){if(!t.hostname)return!1;let e=t.hostname;if($pe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(zpe,"checkBypass");function $pe(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($pe,"isLoopbackAddress");var YE=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){supe Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Xl,"getBooleanInput");function Fh(t,e){if(process.env.GITHUB_OUTPUT||"")return JE("OUTPUT",Lx(t,e));process.stdout.write(xv.EOL),ra("set-output",{name:t},ta(e))}o(Fh,"setOutput");function s4(t){process.exitCode=Nv.Failure,CA(t)}o(s4,"setFailed");function Ca(){return process.env.RUNNER_DEBUG==="1"}o(Ca,"isDebug");function B(t){ra("debug",{},t)}o(B,"debug");function CA(t,e={}){ra("error",Dx(e),t instanceof Error?t.toString():t)}o(CA,"error");function We(t,e={}){ra("warning",Dx(e),t instanceof Error?t.toString():t)}o(We,"warning");function S(t){process.stdout.write(t+xv.EOL)}o(S,"info");function bNe(t){Mx("group",t)}o(bNe,"startGroup");function wNe(){Mx("endgroup")}o(wNe,"endGroup");function ot(t,e){return BNe(this,void 0,void 0,function*(){bNe(t);let r;try{r=yield e()}finally{wNe()}return r})}o(ot,"group");function En(t,e){if(process.env.GITHUB_STATE||"")return JE("STATE",Lx(t,e));ra("save-state",{name:t},ta(e))}o(En,"saveState");function i4(t){return process.env[`STATE_${t}`]||""}o(i4,"getState");var e0=w(require("fs"),1),M1=w(require("os"),1),L1=w(require("path"),1);var a4=w(require("os"),1);function Uh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Uh,"toCommandValue");function c4(t,e,r){let n=new Qv(t,e,r);process.stdout.write(n.toString()+a4.EOL)}o(c4,"issueCommand");var o4="::",Qv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=o4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${NNe(s)}`)}}return e+=`${o4}${SNe(this.message)}`,e}};function SNe(t){return Uh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(SNe,"escapeData");function NNe(t){return Uh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(NNe,"escapeProperty");var A4=w(require("os"),1);var u4=require("os"),qh=require("fs");var Rv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:xNe,appendFile:QNe,writeFile:RNe}=qh.promises,l4="GITHUB_STEP_SUMMARY";var Tv=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return Rv(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[l4];if(!e)throw new Error(`Unable to find environment variable for $${l4}. Check if your runtime environment supports job summaries.`);try{yield xNe(e,qh.constants.R_OK|qh.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Rv(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?RNe:QNe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Rv(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(u4.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).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 n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}Line truncated
`),u}o(IG,"getBlockValue");function ZAe(t,e){if(e.valueStart===$Ae)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Be.SINGLE_QUOTED:return KAe(t,r,n);case Be.DOUBLE_QUOTED:return XAe(t,r,n);case Be.LITERAL_BLOCK:return IG(t,r,n,e.indent,e.chomping,!1);case Be.FOLDED_BLOCK:return IG(t,r,n,e.indent,e.chomping,!0);default:return jAe(t,r,n)}}o(ZAe,"getScalarValue");var epe=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function OG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??epe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(OG,"tagNameFull");var md=-1,tpe="tag:yaml.org,2002:merge",Px={filename:"",schema:qAe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function rpe(t){return"tagStart"in t&&t.tagStart!==md?t.tagStart:"anchorStart"in t&&t.anchorStart!==md?t.anchorStart:"valueStart"in t&&t.valueStart!==md?t.valueStart:"start"in t?t.start:0}o(rpe,"eventPosition$1");function Cr(t,e){Il.throwAt(t.source,t.position,e,t.filename)}o(Cr,"throwError$1");function MG(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Il)throw s;Il.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o(MG,"finalizeCollection");function npe(t,e){let r=ZAe(t.source,e),n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=OG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){let l=a.resolve(r,!0,i);return l===Te&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`);let l=c.create(i);return{value:c.carrierIsResult?l:MG(t,t.position,c,l),tag:c}}Cr(t,`unknown scalar tag !<${i}>`)}return e.style===Be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o(npe,"constructScalar");function BG(t,e,r){let n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:OG(n,t.tagHandlers)}o(BG,"collectionTagName");function LG(t){return t.nodeKind==="mapping"}o(LG,"isMappingTag");function bG(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Cr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}o(bG,"chargeMergeWork");function wG(t,e,r,n){bG(t);for(let s of n.keys(r)){if(bG(t),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&Cr(t,i),e.overridable??=new Set,e.overridable.add(s)}}o(wG,"mergeKeys");function spe(t,e,r,n){if(t.position=e.keyPosition,LG(n))wG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Cr(t,"abnormal merge sequence size");for(let s of r){let i=t.nodeTags.get(s);i||Cr(t,"cannot merge mappings; the provided source object is unacceptable"),wG(t,e,s,i)}}else Cr(t,"cannot merge mappings; the provided source object is unacceptable")}o(spe,"mergeSource");function ipe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){spe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Cr(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&Cr(t,i),e.overridable?.delete(r)}o(ipe,"addMappingValue");function yx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){LG(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Cr(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,ipe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===tpe}o(yx,"addValue");function Cx(t,e,r,n,s){if(e.anchorStart!==md){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(Cx,"storeAnchor");function ope(t,e){let r={...Px,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=rpe(n),n.type){case wt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case wt.SCALAR:{let{value:s,tag:i}=npe(r,n);Cx(r,n,s,i,!0),yx(r,s,i);break}case wt.SEQUENCE:{let s=BG(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(s);i||Cr(r,`unknown sequence tag !<${s}>`);let a=i.create(s),c=Cx(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:i,anchor:c,index:0});break}case wt.MAPPING:{let s=BG(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(s);i||Cr(r,`unknown mapping tag !<${s}>`);let a=i.create(s),c=Cx(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"mapping",positio Line truncated
`)?Be.DOUBLE_QUOTED:JG(t)))}o(Dpe,"applyForceQuotesOption");function Ope(t){if(t.style!==Be.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!$E(t.allowedStylesMask,Be.LITERAL_BLOCK)){r&&(t.style=Be.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=Be.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),i=0,a=!1;for(;i<=e.length;){let c=e.length,l=e.indexOf(`
`,i);l!==-1&&(c=l);let u=e.slice(i,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;i=l+1}a?t.style=Be.FOLDED_BLOCK:r&&(t.style=Be.LITERAL_BLOCK)}o(Ope,"tryLongOrMultilineAsBlock");function Mpe(t){t.style===Be.PLAIN&&!$E(t.allowedStylesMask,Be.PLAIN)&&(t.style=JG(t))}o(Mpe,"quoteInvalidPlain");function Lpe(t){$E(t.allowedStylesMask,t.style)||(t.style=Be.DOUBLE_QUOTED)}o(Lpe,"fallbackToDoubleQuoted");var Fpe="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Upe="[\\n\\r]",qpe="\\uFEFF",Ox="[ \\t]",YG=`(?:(?!(?:${Upe}|${qpe}))${Fpe})`,JE=`(?:(?!${Ox})${YG})`,WG="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",jG="[-?:,\\[\\]{}#&*!|>'\"%@`]",Gpe="[,\\[\\]{}]",Qx=JE,Rx=`(?:(?!${Gpe})${JE})`,Hpe=`(?:(?:(?!${jG})${JE})|[?:-](?=${Qx}))`,Vpe=`(?:(?:(?!${jG})${JE})|[?:-](?=${Rx}))`,KG=`(?:(?:(?![:#])${Qx})|:(?=${Qx}))#*`,XG=`(?:(?:(?![:#])${Rx})|:(?=${Rx}))#*`,ZG=`(?:${Ox}*${KG})*`,eH=`(?:${Ox}*${XG})*`,tH=`${Hpe}#*${ZG}`,rH=`${Vpe}#*${eH}`,zpe=tH,$pe=rH,Jpe=`\\n+${KG}${ZG}`,Ype=`\\n+${XG}${eH}`,Wpe=`${tH}(?:${Jpe})*`,jpe=`${rH}(?:${Ype})*`,bKe=new RegExp(`^(?:${Wpe})$`,"u"),wKe=new RegExp(`^(?:${jpe})$`,"u"),SKe=new RegExp(`^(?:${zpe})$`,"u"),NKe=new RegExp(`^(?:${$pe})$`,"u"),xKe=new RegExp(`^(?:${WG})*$`,"u"),QKe=new RegExp(`^(?:${WG}|\\n)*$`,"u"),RKe=new RegExp(`^(?:${YG}|\\n)*$`,"u");var Kpe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(RG).map(t=>Reflect.get(RG,t)),tagBeforeAnchor:!1};var TKe={...Kpe,schema:HAe,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};var vKe=wt.DOCUMENT,_Ke=wt.SEQUENCE,PKe=wt.MAPPING,kKe=wt.SCALAR,DKe=wt.ALIAS,OKe=wt.POP,MKe=Be.PLAIN,LKe=Be.SINGLE_QUOTED,FKe=Be.DOUBLE_QUOTED,UKe=Be.LITERAL_BLOCK,qKe=Be.FOLDED_BLOCK,GKe=sc.BLOCK,HKe=sc.FLOW,VKe=Fn.CLIP,zKe=Fn.STRIP,$Ke=Fn.KEEP;var sH=w(require("os"),1);function ra(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ra,"toCommandValue");function Mx(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(Mx,"toCommandProperties");function na(t,e,r){let n=new Lx(t,e,r);process.stdout.write(n.toString()+sH.EOL)}o(na,"issueCommand");function Fx(t,e=""){na(t,{},e)}o(Fx,"issue");var nH="::",Lx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=nH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${efe(s)}`)}}return e+=`${nH}${Zpe(this.message)}`,e}};function Zpe(t){return ra(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Zpe,"escapeData");function efe(t){return ra(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(efe,"escapeProperty");var iH=w(require("crypto"),1),WE=w(require("fs"),1),YE=w(require("os"),1);function jE(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!WE.existsSync(r))throw new Error(`Missing file at path: ${r}`);WE.appendFileSync(r,`${ra(e)}${YE.EOL}`,{encoding:"utf8"})}o(jE,"issueFileCommand");function Ux(t,e){let r=`ghadelimiter_${iH.randomUUID()}`,n=ra(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${YE.EOL}${n}${YE.EOL}${r}`}o(Ux,"prepareKeyValueMessage");var Rv=w(require("os"),1),s4=w(require("path"),1);var Dh=w(require("http"),1),mv=w(require("https"),1);function qx(t){let e=t.protocol==="https:";if(tfe(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 KE(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new KE(`http://${r}`)}else return}o(qx,"getProxyUrl");function tfe(t){if(!t.hostname)return!1;let e=t.hostname;if(rfe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(tfe,"checkBypass");function rfe(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(rfe,"isLoopbackAddress");var KE=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){supe Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Zl,"getBooleanInput");function qh(t,e){if(process.env.GITHUB_OUTPUT||"")return jE("OUTPUT",Ux(t,e));process.stdout.write(Rv.EOL),na("set-output",{name:t},ra(e))}o(qh,"setOutput");function i4(t){process.exitCode=Qv.Failure,BA(t)}o(i4,"setFailed");function Ia(){return process.env.RUNNER_DEBUG==="1"}o(Ia,"isDebug");function B(t){na("debug",{},t)}o(B,"debug");function BA(t,e={}){na("error",Mx(e),t instanceof Error?t.toString():t)}o(BA,"error");function $e(t,e={}){na("warning",Mx(e),t instanceof Error?t.toString():t)}o($e,"warning");function S(t){process.stdout.write(t+Rv.EOL)}o(S,"info");function PNe(t){Fx("group",t)}o(PNe,"startGroup");function kNe(){Fx("endgroup")}o(kNe,"endGroup");function ot(t,e){return _Ne(this,void 0,void 0,function*(){PNe(t);let r;try{r=yield e()}finally{kNe()}return r})}o(ot,"group");function En(t,e){if(process.env.GITHUB_STATE||"")return jE("STATE",Ux(t,e));na("save-state",{name:t},ra(e))}o(En,"saveState");function o4(t){return process.env[`STATE_${t}`]||""}o(o4,"getState");var Pg=w(require("fs"),1),L1=w(require("os"),1),F1=w(require("path"),1);var c4=w(require("os"),1);function Gh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Gh,"toCommandValue");function l4(t,e,r){let n=new Tv(t,e,r);process.stdout.write(n.toString()+c4.EOL)}o(l4,"issueCommand");var a4="::",Tv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=a4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${ONe(s)}`)}}return e+=`${a4}${DNe(this.message)}`,e}};function DNe(t){return Gh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(DNe,"escapeData");function ONe(t){return Gh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(ONe,"escapeProperty");var p4=w(require("os"),1);var d4=require("os"),Hh=require("fs");var vv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:MNe,appendFile:LNe,writeFile:FNe}=Hh.promises,u4="GITHUB_STEP_SUMMARY";var _v=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return vv(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[u4];if(!e)throw new Error(`Unable to find environment variable for $${u4}. Check if your runtime environment supports job summaries.`);try{yield MNe(e,Hh.constants.R_OK|Hh.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return vv(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?FNe:LNe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return vv(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(d4.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).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 n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new tm(i));return n.searchPaths.push(...d_(n.patterns)),n})}static stat(e,r,n){return g_(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield NA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Qs(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield NA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield NA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Qs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var ETe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function V8(t,e){return ETe(this,void 0,void 0,function*(){return yield pI.create(t,e)})}o(V8,"create");var TI=w(require("crypto"),1),TA=w(require("fs"),1),nu=w(require("path"),1),M6=w(D6(),1),L6=w(require("util"),1);var cm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(cm||(cm={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var Zn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zn||(Zn={}));var xI=2,QI=5e3,L_=5e3,F_=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,O6=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,lm="cache.tar",U_="manifest.txt",Sot=10*Math.pow(1024,3),RI="cache read denied:";var RA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},SPe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},NPe="1.0";function um(){return RA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=nu.join(n,"actions","temp")}let r=nu.join(e,TI.randomUUID());return yield ya(r),r})}o(um,"createTempDirectory");function Xi(t){return TA.statSync(t).size}o(Xi,"getArchiveFileSizeInBytes");function q_(t){return RA(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield V8(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=SPe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){s=A.value,u=!1;let f=nu.relative(c,s).replace(new RegExp(`\\${nu.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(q_,"resolvePaths");function dm(t){return RA(this,void 0,void 0,function*(){return L6.promisify(TA.unlink)(t)})}o(dm,"unlinkFile");function F6(t){return RA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Kn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){B(s.message)}return n=n.trim(),B(n),n})}o(F6,"getVersion");function Am(){return RA(this,void 0,void 0,function*(){let t=yield F6("zstd",["--quiet"]),e=M6.clean(t);return B(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}o(Am,"getCompressionMethod");function Tc(t){return t===Xr.Gzip?cm.Gzip:cm.Zstd}o(Tc,"getCacheFileName");function U6(){return RA(this,void 0,void 0,function*(){return TA.existsSync(F_)?F_:(yield F6("tar")).toLowerCase().includes("gnu tar")?Br("tar"):""})}o(U6,"getGnuTarPathOnWindows");function G_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(G_,"assertDefined");function vA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(NPe),TI.createHash("sha256").update(n.join("|")).digest("hex")}o(vA,"getCacheVersion");function q6(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(q6,"getRuntimeToken");var fm=w(require("http"),1),z_=w(require("https"),1);function H_(t){let e=t.protocol==="https:";if(xPe(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 _I(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new _I(`http://${r}`)}else return}o(H_,"getProxyUrl");function xPe(t){if(!t.hostname)return!1;let e=t.hostname;if(QPe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(xPe,"checkBypass");function QPe(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(QPe,"isLoopbackAddress");var _I=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 vc=w(vf(),1),G6=w(gA(),1);var Lt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Nt;(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"})(Nt||(Nt={}));var Zr;(function(t){t.Accept="accept",t.ContentType="content-type"})(Zr||(Zr={}));var wa;(function(t){t.ApplicationJson="application/json"})(wa||(wa={}));var TPe=[Nt.MovedPermanently,Nt.ResourceMoved,Nt.SeeOther,Nt.TemporaryRedirect,Nt.PermanentRedirect],vPe=[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout],_Pe=["OPTIONS","GET","DELETE","HEAD"],PPe=10,kPe=5,Zi=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${HPe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function LI(t){return t instanceof en?!0:iu(t)&&t.name==="RestError"}o(LI,"isRestError");function yn(t,e){return Buffer.from(t,e)}o(yn,"stringToUint8Array");var FI=w(require("node:http"),1),UI=w(require("node:https"),1),tP=w(require("node:zlib"),1),oK=require("node:stream");var vs=hm("ts-http-runtime");var VPe={};function mm(t){return t&&typeof t.pipe=="function"}o(mm,"isReadableStream");function iK(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(iK,"isStreamComplete");function aK(t){return t&&typeof t.byteLength=="number"}o(aK,"isArrayBuffer");var qI=class extends oK.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},rP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new eo("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Ei;vs.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=YPe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new qI(h);g.on("error",y=>{vs.error("Error in upload progress",y)}),mm(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=zPe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?$Pe(u,d):u;let f=e.onDownloadProgress;if(f){let h=new qI(f);h.on("error",g=>{vs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await JPe(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();mm(c)&&(u=iK(c));let d=Promise.resolve();mm(l)&&(d=iK(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{vs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?FI.default.request(c,l):UI.default.request(c,l);d.once("error",A=>{u(new en(A.message,{code:A.code??en.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new eo("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&mm(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):aK(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(vs.error("Unrecognized body type",n),u(new en("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?FI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new FI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return UI.default.globalAgent;let s=e.tlsSettings??VPe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(vs.info("No cached TLS Agent exist, creating a new Agent"),i=new UI.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function zPe(t){let e=es();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(zPe,"getResponseHeaders");function $Pe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=tP.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=tP.default.createInflate();return t.pipe(n),n}return t}o($Pe,"getDecodedResponseStream");function JPe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new en(`Error reading response as text: ${s.message}`,{code:en.PARSE_ERROR}))})})}o(JPe,"streamToText");function YPe(t){return t?Buffer.isBuffer(t)?t.length:mm(t)?nul Line truncated
`;return e}o(SDe,"encodeHeaders");function NDe(t){return t instanceof Uint8Array?t.byteLength:dB(t)?t.size===-1?void 0:t.size:void 0}o(NDe,"getLength");function xDe(t){let e=0;for(let r of t){let n=NDe(r);if(n===void 0)return;e+=n}return e}o(xDe,"getTotalLength");async function QDe(t,e,r){let n=[yn(`--${r}`,"utf-8"),...e.flatMap(i=>[yn(`\r
`,"utf-8"),yn(SDe(i.headers),"utf-8"),yn(`\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new nm(i));return n.searchPaths.push(...A_(n.patterns)),n})}static stat(e,r,n){return E_(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield QA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Qs(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield QA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield QA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Qs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var QTe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function $8(t,e){return QTe(this,void 0,void 0,function*(){return yield mI.create(t,e)})}o($8,"create");var PI=w(require("crypto"),1),_A=w(require("fs"),1),su=w(require("path"),1),F6=w(M6(),1),U6=w(require("util"),1);var um;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(um||(um={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var Zn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zn||(Zn={}));var TI=2,vI=5e3,F_=5e3,U_=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,L6=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,dm="cache.tar",q_="manifest.txt",Lot=10*Math.pow(1024,3),_I="cache read denied:";var vA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},DPe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},OPe="1.0";function Am(){return vA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=su.join(n,"actions","temp")}let r=su.join(e,PI.randomUUID());return yield Ca(r),r})}o(Am,"createTempDirectory");function Zi(t){return _A.statSync(t).size}o(Zi,"getArchiveFileSizeInBytes");function G_(t){return vA(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield $8(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=DPe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){s=A.value,u=!1;let f=su.relative(c,s).replace(new RegExp(`\\${su.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(G_,"resolvePaths");function pm(t){return vA(this,void 0,void 0,function*(){return U6.promisify(_A.unlink)(t)})}o(pm,"unlinkFile");function q6(t){return vA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Kn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){B(s.message)}return n=n.trim(),B(n),n})}o(q6,"getVersion");function fm(){return vA(this,void 0,void 0,function*(){let t=yield q6("zstd",["--quiet"]),e=F6.clean(t);return B(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}o(fm,"getCompressionMethod");function vc(t){return t===Xr.Gzip?um.Gzip:um.Zstd}o(vc,"getCacheFileName");function G6(){return vA(this,void 0,void 0,function*(){return _A.existsSync(U_)?U_:(yield q6("tar")).toLowerCase().includes("gnu tar")?Br("tar"):""})}o(G6,"getGnuTarPathOnWindows");function H_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(H_,"assertDefined");function PA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(OPe),PI.createHash("sha256").update(n.join("|")).digest("hex")}o(PA,"getCacheVersion");function H6(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(H6,"getRuntimeToken");var mm=w(require("http"),1),$_=w(require("https"),1);function V_(t){let e=t.protocol==="https:";if(MPe(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 DI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DI(`http://${r}`)}else return}o(V_,"getProxyUrl");function MPe(t){if(!t.hostname)return!1;let e=t.hostname;if(LPe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(MPe,"checkBypass");function LPe(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(LPe,"isLoopbackAddress");var DI=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 _c=w(Pf(),1),V6=w(yA(),1);var Lt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Nt;(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"})(Nt||(Nt={}));var Zr;(function(t){t.Accept="accept",t.ContentType="content-type"})(Zr||(Zr={}));var Sa;(function(t){t.ApplicationJson="application/json"})(Sa||(Sa={}));var UPe=[Nt.MovedPermanently,Nt.ResourceMoved,Nt.SeeOther,Nt.TemporaryRedirect,Nt.PermanentRedirect],qPe=[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout],GPe=["OPTIONS","GET","DELETE","HEAD"],HPe=10,VPe=5,eo=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${ZPe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function qI(t){return t instanceof en?!0:ou(t)&&t.name==="RestError"}o(qI,"isRestError");function yn(t,e){return Buffer.from(t,e)}o(yn,"stringToUint8Array");var GI=w(require("node:http"),1),HI=w(require("node:https"),1),rP=w(require("node:zlib"),1),cK=require("node:stream");var vs=gm("ts-http-runtime");var eke={};function Em(t){return t&&typeof t.pipe=="function"}o(Em,"isReadableStream");function aK(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(aK,"isStreamComplete");function lK(t){return t&&typeof t.byteLength=="number"}o(lK,"isArrayBuffer");var VI=class extends cK.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},nP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new to("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new yi;vs.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=ske(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new VI(h);g.on("error",y=>{vs.error("Error in upload progress",y)}),Em(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=tke(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?rke(u,d):u;let f=e.onDownloadProgress;if(f){let h=new VI(f);h.on("error",g=>{vs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await nke(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();Em(c)&&(u=aK(c));let d=Promise.resolve();Em(l)&&(d=aK(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{vs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?GI.default.request(c,l):HI.default.request(c,l);d.once("error",A=>{u(new en(A.message,{code:A.code??en.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new to("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&Em(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):lK(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(vs.error("Unrecognized body type",n),u(new en("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?GI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new GI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return HI.default.globalAgent;let s=e.tlsSettings??eke,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(vs.info("No cached TLS Agent exist, creating a new Agent"),i=new HI.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function tke(t){let e=es();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(tke,"getResponseHeaders");function rke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=rP.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=rP.default.createInflate();return t.pipe(n),n}return t}o(rke,"getDecodedResponseStream");function nke(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new en(`Error reading response as text: ${s.message}`,{code:en.PARSE_ERROR}))})})}o(nke,"streamToText");function ske(t){return t?Buffer.isBuffer(t)?t.length:Em(t)?nul Line truncated
`;return e}o(DDe,"encodeHeaders");function ODe(t){return t instanceof Uint8Array?t.byteLength:fB(t)?t.size===-1?void 0:t.size:void 0}o(ODe,"getLength");function MDe(t){let e=0;for(let r of t){let n=ODe(r);if(n===void 0)return;e+=n}return e}o(MDe,"getTotalLength");async function LDe(t,e,r){let n=[yn(`--${r}`,"utf-8"),...e.flatMap(i=>[yn(`\r
`,"utf-8"),yn(DDe(i.headers),"utf-8"),yn(`\r
`,"utf-8"),i.body,yn(`\r
--${r}`,"utf-8")]),yn(`--\r
\r
`,"utf-8")],s=xDe(n);s&&t.headers.set("Content-Length",s),t.body=await dX(n)}o(QDe,"buildRequestBody");var ym="multipartPolicy",RDe=70,TDe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function vDe(t){if(t.length>RDe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!TDe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(vDe,"assertValidBoundary");function pB(){return{name:ym,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?vDe(r):r=wDe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await QDe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(pB,"multipartPolicy");function fB(){return MI()}o(fB,"createEmptyPipeline");var AX=kI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),bdt=AX.logger;function no(t){return AX.createClientLogger(t)}o(no,"createClientLogger");var so=no("core-rest-pipeline");function IP(t={}){return HI({logger:so.info,...t})}o(IP,"logPolicy");var BP=VI;function bP(t={}){return zI(t)}o(bP,"redirectPolicy");var hB=w(require("node:os"),1),mB=w(require("node:process"),1);function pX(){return"User-Agent"}o(pX,"getHeaderName");async function fX(t){if(mB.default&&mB.default.versions){let e=`${hB.default.type()} ${hB.default.release()}; ${hB.default.arch()}`,r=mB.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(fX,"setPlatformSpecificData");var gB="1.22.2";function FDe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(FDe,"getUserAgentString");function hX(){return pX()}o(hX,"getUserAgentHeaderName");async function EB(t){let e=new Map;e.set("core-rest-pipeline",gB),await fX(e);let r=FDe(e);return t?`${t} ${r}`:r}o(EB,"getUserAgentValue");var mX=hX(),gX="userAgentPolicy";function wP(t={}){let e=EB(t.userAgentPrefix);return{name:gX,async sendRequest(r,n){return r.headers.has(mX)||r.headers.set(mX,await e),n(r)}}}o(wP,"userAgentPolicy");var ss=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function SP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new ss(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(SP,"createAbortablePromise");var VDe="The delay was aborted.";function Cm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return SP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??VDe})}o(Cm,"delay");function Pc(t){if(iu(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(Pc,"getErrorMessage");function EX(t){return iu(t)}o(EX,"isError");function UA(){return su()}o(UA,"randomUUID");var Fe=cu;var yX=Symbol("rawContent");function xP(t){return typeof t[yX]=="function"}o(xP,"hasRawContent");function CX(t){return xP(t)?t[yX]():t}o(CX,"getRawContent");var yB=ym;function QP(){let t=pB();return{name:yB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)xP(n.body)&&(n.body=CX(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(QP,"multipartPolicy");var RP=$I;function TP(){return JI()}o(TP,"decompressResponsePolicy");function vP(t={}){return jI(t)}o(vP,"defaultRetryPolicy");function _P(){return KI()}o(_P,"formDataPolicy");function kc(t){return mP(t)}o(kc,"getDefaultProxySettings");function PP(t,e){return cB(t,e)}o(PP,"proxyPolicy");var IX="setClientRequestIdPolicy";function kP(t="x-ms-client-request-id"){return{name:IX,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(kP,"setClientRequestIdPolicy");function DP(t){return lB(t)}o(DP,"agentPolicy");function OP(t){return uB(t)}o(OP,"tlsPolicy");var qA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function BX(t={}){let e=new MP(t.parentContext);return t.span&&(e=e.setValue(qA.span,t.span)),t.namespace&&(e=e.setValue(qA.namespace,t.namespace)),e}o(BX,"createTracingContext");var MP=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!fMe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Ft("InvalidTag",A,tn(t,i))}let u=lMe(t,i);if(u===!1)return Ft("InvalidAttr","Attributes for '"+l+"' have open quote.",tn(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=iZ(d,e);if(p===!0)n=!0;else return Ft(p.err.code,p.err.msg,tn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ft("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",tn(t,a));if(r.length===0)return Ft("InvalidTag","Closing tag '"+l+"' has not been opened.",tn(t,a));{let A=r.pop();if(l!==A.tagName){let p=tn(t,A.tagStartPos);return Ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",tn(t,a))}r.length==0&&(s=!0)}}else return Ft("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",tn(t,i));else{let A=iZ(d,e);if(A!==!0)return Ft(A.err.code,A.err.msg,tn(t,i-d.length+A.err.line));if(s===!0)return Ft("InvalidXml","Multiple possible root nodes found.",tn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=sZ(t,i);continue}else if(t[i+1]==="?"){if(i=nZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=AMe(t,i);if(A==-1)return Ft("InvalidChar","char '&' is not expected.",tn(t,i));i=A}else if(s===!0&&!rZ(t[i]))return Ft("InvalidXml","Extra text at the end",tn(t,i));t[i]==="<"&&i--}}else{if(rZ(t[i]))continue;return Ft("InvalidChar","char '"+t[i]+"' is not expected.",tn(t,i))}if(n){if(r.length==1)return Ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tn(t,r[0].tagStartPos));if(r.length>0)return Ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ft("InvalidXml","Start tag expected.",1);return!0}o(_B,"validate");function rZ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(rZ,"isWhiteSpace");function nZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ft("InvalidXml","XML declaration allowed only at the start of the document.",tn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(nZ,"readPI");function sZ(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(sZ,"readCommentAndCDATA");var aMe='"',cMe="'";function lMe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===aMe||t[e]===cMe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(lMe,"readAttributeStr");var uMe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function iZ(t,e){let r=TB(t,uMe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_m(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_m(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ft("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_m(r[s]));let i=r[s][2];if(!pMe(i))return Ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",_m(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Ft("InvalidAttr","Attribute '"+i+"' is repeated.",_m(r[s]))}return!0}o(iZ,"validateAttributeString");function dMe(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(dMe,"validateNumberAmpersand");function AMe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,dMe(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(AMe,"validateAmpersand");function Ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ft,"getErrorObject");function pMe(t){return tk(t)}o(pMe,"validateAttrName");function fMe(t){return tk(t)}o(fMe,"validateTagName");function tn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(tn,"getLineNumberForPosition");function _m(t){return t.startIndex+t[1].length}o(_m,"getPositionFromMatch");var oZ={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"},aZ={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"},cZ={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:"\u0125",HstLine truncated
`);let e=new bn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Dm(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=$A(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=lk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=uk(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new bn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=$A(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=$A(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=uk(t,c,s.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=lk(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),h=A!==f);let C=null,I={},b;b=MMe(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=OMe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let ce=this.readStopNodeData(t,p,g+1);if(!ce)throw new Error(`Unexpected end of ${p}`);c=ce.i,Q=ce.tagContent}let D=new bn(A);C&&(D[":@"]=C),D.add(s.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=lk(s.transformTagName,A,f,s));let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new bn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function HMe(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(HMe,"addChild");function VMe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(VMe,"replaceEntitiesValue");function zMe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(zMe,"saveTextToParentTag");function $Me(){return this.stopNodeExpressionsLine truncated
`;function tLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(mk(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(tLe,"detectXmlVersionFromArray");function QZ(t,e,r,n,s){return!r.sanitizeName||pu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(QZ,"resolveTagName");function hk(t,e){let r="";e.format&&(r=eLe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new as(c)):c instanceof as&&n.push(c)}let s=tLe(t,e),i=new ao;return RZ(t,e,r,i,n,s)}o(hk,"toXml");function RZ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=fk(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=mk(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:QZ(d,!1,e,n,i),f=rLe(u[":@"],e);n.push(p,f);let h=sLe(n,s);if(p===e.textNodeName){let I=u[d];h||(I=e.tagValueProcessor(p,I),I=fk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=MB(I);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=OB(I);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(p[0]==="?"){let I=xZ(u[":@"],e,h,n,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=xZ(u[":@"],e,h,n,i),E=r+`<${p}${y}`,C;h?C=TZ(u[d],e):C=RZ(u[d],e,g,n,s,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,n.pop()}return a}o(RZ,"arrToStr");function rLe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Mc(t[s]),n=!0}return n?r:null}o(rLe,"extractAttributeValues");function TZ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=mk(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=nLe(s[":@"],e),c=TZ(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(TZ,"getRawContent");function nLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Mc(s)}"`}return r}o(nLe,"attr_to_str_raw");function mk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(mk,"propName");function xZ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:QZ(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=fk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Mc(u)}"`}return i}o(xZ,"attr_to_str");function sLe(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(sLe,"checkStopNode");function fk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(fk,"replaceEntitiesValue");function gk(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(gk,"getIgnoreAttributesFn");var iLe={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 Sn(t){if(this.options=Object.assign({},iLe,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&&Array.isArray(this.oLine truncated
`,"utf-8")],s=MDe(n);s&&t.headers.set("Content-Length",s),t.body=await pX(n)}o(LDe,"buildRequestBody");var Im="multipartPolicy",FDe=70,UDe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function qDe(t){if(t.length>FDe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!UDe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(qDe,"assertValidBoundary");function mB(){return{name:Im,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?qDe(r):r=kDe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await LDe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(mB,"multipartPolicy");function gB(){return UI()}o(gB,"createEmptyPipeline");var fX=MI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Odt=fX.logger;function so(t){return fX.createClientLogger(t)}o(so,"createClientLogger");var io=so("core-rest-pipeline");function BP(t={}){return $I({logger:io.info,...t})}o(BP,"logPolicy");var bP=JI;function wP(t={}){return YI(t)}o(wP,"redirectPolicy");var EB=w(require("node:os"),1),yB=w(require("node:process"),1);function hX(){return"User-Agent"}o(hX,"getHeaderName");async function mX(t){if(yB.default&&yB.default.versions){let e=`${EB.default.type()} ${EB.default.release()}; ${EB.default.arch()}`,r=yB.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(mX,"setPlatformSpecificData");var CB="1.22.2";function WDe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(WDe,"getUserAgentString");function gX(){return hX()}o(gX,"getUserAgentHeaderName");async function IB(t){let e=new Map;e.set("core-rest-pipeline",CB),await mX(e);let r=WDe(e);return t?`${t} ${r}`:r}o(IB,"getUserAgentValue");var EX=gX(),yX="userAgentPolicy";function SP(t={}){let e=IB(t.userAgentPrefix);return{name:yX,async sendRequest(r,n){return r.headers.has(EX)||r.headers.set(EX,await e),n(r)}}}o(SP,"userAgentPolicy");var ss=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function NP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new ss(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(NP,"createAbortablePromise");var eOe="The delay was aborted.";function Bm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return NP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??eOe})}o(Bm,"delay");function kc(t){if(ou(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(kc,"getErrorMessage");function CX(t){return ou(t)}o(CX,"isError");function GA(){return iu()}o(GA,"randomUUID");var Fe=lu;var IX=Symbol("rawContent");function QP(t){return typeof t[IX]=="function"}o(QP,"hasRawContent");function BX(t){return QP(t)?t[IX]():t}o(BX,"getRawContent");var BB=Im;function RP(){let t=mB();return{name:BB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)QP(n.body)&&(n.body=BX(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(RP,"multipartPolicy");var TP=WI;function vP(){return jI()}o(vP,"decompressResponsePolicy");function _P(t={}){return ZI(t)}o(_P,"defaultRetryPolicy");function PP(){return eB()}o(PP,"formDataPolicy");function Dc(t){return gP(t)}o(Dc,"getDefaultProxySettings");function kP(t,e){return dB(t,e)}o(kP,"proxyPolicy");var bX="setClientRequestIdPolicy";function DP(t="x-ms-client-request-id"){return{name:bX,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(DP,"setClientRequestIdPolicy");function OP(t){return AB(t)}o(OP,"agentPolicy");function MP(t){return pB(t)}o(MP,"tlsPolicy");var HA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function wX(t={}){let e=new LP(t.parentContext);return t.span&&(e=e.setValue(HA.span,t.span)),t.namespace&&(e=e.setValue(HA.namespace,t.namespace)),e}o(wX,"createTracingContext");var LP=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!wMe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Ft("InvalidTag",A,tn(t,i))}let u=yMe(t,i);if(u===!1)return Ft("InvalidAttr","Attributes for '"+l+"' have open quote.",tn(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=aZ(d,e);if(p===!0)n=!0;else return Ft(p.err.code,p.err.msg,tn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ft("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",tn(t,a));if(r.length===0)return Ft("InvalidTag","Closing tag '"+l+"' has not been opened.",tn(t,a));{let A=r.pop();if(l!==A.tagName){let p=tn(t,A.tagStartPos);return Ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",tn(t,a))}r.length==0&&(s=!0)}}else return Ft("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",tn(t,i));else{let A=aZ(d,e);if(A!==!0)return Ft(A.err.code,A.err.msg,tn(t,i-d.length+A.err.line));if(s===!0)return Ft("InvalidXml","Multiple possible root nodes found.",tn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=oZ(t,i);continue}else if(t[i+1]==="?"){if(i=iZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=BMe(t,i);if(A==-1)return Ft("InvalidChar","char '&' is not expected.",tn(t,i));i=A}else if(s===!0&&!sZ(t[i]))return Ft("InvalidXml","Extra text at the end",tn(t,i));t[i]==="<"&&i--}}else{if(sZ(t[i]))continue;return Ft("InvalidChar","char '"+t[i]+"' is not expected.",tn(t,i))}if(n){if(r.length==1)return Ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tn(t,r[0].tagStartPos));if(r.length>0)return Ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ft("InvalidXml","Start tag expected.",1);return!0}o(DB,"validate");function sZ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(sZ,"isWhiteSpace");function iZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ft("InvalidXml","XML declaration allowed only at the start of the document.",tn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(iZ,"readPI");function oZ(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(oZ,"readCommentAndCDATA");var gMe='"',EMe="'";function yMe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===gMe||t[e]===EMe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(yMe,"readAttributeStr");var CMe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function aZ(t,e){let r=PB(t,CMe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",km(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",km(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ft("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",km(r[s]));let i=r[s][2];if(!bMe(i))return Ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",km(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Ft("InvalidAttr","Attribute '"+i+"' is repeated.",km(r[s]))}return!0}o(aZ,"validateAttributeString");function IMe(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(IMe,"validateNumberAmpersand");function BMe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,IMe(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(BMe,"validateAmpersand");function Ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ft,"getErrorObject");function bMe(t){return rk(t)}o(bMe,"validateAttrName");function wMe(t){return rk(t)}o(wMe,"validateTagName");function tn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(tn,"getLineNumberForPosition");function km(t){return t.startIndex+t[1].length}o(km,"getPositionFromMatch");var cZ={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"},lZ={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"},uZ={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:"\u0125",HstLine truncated
`);let e=new bn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Mm(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=YA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=uk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=dk(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new bn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=YA(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=YA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=dk(t,c,s.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=uk(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),h=A!==f);let C=null,I={},b;b=JMe(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=$Me(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let ce=this.readStopNodeData(t,p,g+1);if(!ce)throw new Error(`Unexpected end of ${p}`);c=ce.i,Q=ce.tagContent}let D=new bn(A);C&&(D[":@"]=C),D.add(s.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=uk(s.transformTagName,A,f,s));let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new bn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function ZMe(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(ZMe,"addChild");function eLe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(eLe,"replaceEntitiesValue");function tLe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(tLe,"saveTextToParentTag");function rLe(){return this.stopNodeExpressionsLine truncated
`;function dLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(gk(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(dLe,"detectXmlVersionFromArray");function TZ(t,e,r,n,s){return!r.sanitizeName||fu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(TZ,"resolveTagName");function mk(t,e){let r="";e.format&&(r=uLe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new as(c)):c instanceof as&&n.push(c)}let s=dLe(t,e),i=new co;return vZ(t,e,r,i,n,s)}o(mk,"toXml");function vZ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=hk(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=gk(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:TZ(d,!1,e,n,i),f=ALe(u[":@"],e);n.push(p,f);let h=fLe(n,s);if(p===e.textNodeName){let I=u[d];h||(I=e.tagValueProcessor(p,I),I=hk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=UB(I);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=FB(I);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(p[0]==="?"){let I=RZ(u[":@"],e,h,n,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=RZ(u[":@"],e,h,n,i),E=r+`<${p}${y}`,C;h?C=_Z(u[d],e):C=vZ(u[d],e,g,n,s,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,n.pop()}return a}o(vZ,"arrToStr");function ALe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Lc(t[s]),n=!0}return n?r:null}o(ALe,"extractAttributeValues");function _Z(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=gk(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=pLe(s[":@"],e),c=_Z(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(_Z,"getRawContent");function pLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Lc(s)}"`}return r}o(pLe,"attr_to_str_raw");function gk(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(gk,"propName");function RZ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:TZ(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=hk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Lc(u)}"`}return i}o(RZ,"attr_to_str");function fLe(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(fLe,"checkStopNode");function hk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(hk,"replaceEntitiesValue");function Ek(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(Ek,"getIgnoreAttributesFn");var hLe={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 Sn(t){if(this.options=Object.assign({},hLe,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&&Array.isArray(this.oLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Sn,"Builder");function oLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(oLe,"detectXmlVersionFromObj");function Ek(t,e,r,n,s){return!r.sanitizeName||pu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(Ek,"resolveTagName");Sn.prototype.build=function(t){if(this.options.preserveOrder)return hk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ao,r=oLe(t,this.options);return this.j2x(t,0,e,r).val}};Sn.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:Ek(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=Ek(A,!0,this.options,r,n);s+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let h=0;h<A;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,n);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let h=Ek(A[f],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:i}};Sn.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+'="'+Mc(e)+'"'};function aLe(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(aLe,"processTextOrObjNode");Sn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Mc(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=Mc(t[n]),r=!0)}return r?e:null};Sn.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(Sn,"Builder");function mLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(mLe,"detectXmlVersionFromObj");function yk(t,e,r,n,s){return!r.sanitizeName||fu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(yk,"resolveTagName");Sn.prototype.build=function(t){if(this.options.preserveOrder)return mk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new co,r=mLe(t,this.options);return this.j2x(t,0,e,r).val}};Sn.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:yk(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=yk(A,!0,this.options,r,n);s+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let h=0;h<A;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,n);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let h=yk(A[f],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:i}};Sn.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+'="'+Lc(e)+'"'};function gLe(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(gLe,"processTextOrObjNode");Sn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Lc(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=Lc(t[n]),r=!0)}return r?e:null};Sn.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),n=this.factory.computeHMACSHA256(r);return e.headers.set(ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ae.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE));r.sort((s,i)=>YB(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=zB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=$B(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var xt=class extends mu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Um(e,r,this)}computeHMACSHA256(e){return(0,LZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rr=no("storage-common");var Ds;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ds||(Ds={}));var Fc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mLe=new ss("The operation was aborted."),qm=class extends co{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Fc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Fc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Fc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Fc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Fc.maxRetryDelayInMs):Fc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Fc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Fc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=VB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Lc(s.url,Ra.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rr.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return rr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return rr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ae.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ds.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ds.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${s}ms`),JB(s,n,mLe)}};var Gm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new qm(e,r,this.retryOptions)}};var gLe="storageBrowserPolicy";function FZ(){return{name:gLe,async sendRequest(t,e){return Fe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Lc(t.url,Ra.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ae.COOKIE),t.headers.delete(ae.CONTENT_LENGTH)),e(t)}}}o(FZ,"storageBrowserPolicy");var ELe="StorageCorrectContentLengthPolicy";function UZ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ae.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:ELe,async sendRequest(e,r){return t(e),r(e)}}}o(UZ,"storageCorrectContentLengthPolicy");var yLe="storageRetryPolicy",YA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},CLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],ILe=new ss("The operation was aborted.");function qZ(t={}){let e=t.retryPolicyType??YA.retryPolicyType,r=t.maxTries??YA.maxTries,n=t.retryDelayInMs??YA.retryDelayInMs,s=t.maxRetryDelayInMs??YA.maxRetryDelayInMs,i=t.secondaryHost??YA.secondaryHost,a=t.tryTimeoutInMs??YA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return rr.inf Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ae.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE));r.sort((s,i)=>KB(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=YB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=WB(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var xt=class extends gu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Gm(e,r,this)}computeHMACSHA256(e){return(0,UZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rr=so("storage-common");var Ds;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ds||(Ds={}));var Uc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},NLe=new ss("The operation was aborted."),Hm=class extends lo{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Uc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Uc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Uc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Uc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Uc.maxRetryDelayInMs):Uc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Uc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Uc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=JB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Fc(s.url,Ta.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rr.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return rr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return rr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ae.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Ds.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ds.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${s}ms`),jB(s,n,NLe)}};var Vm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Hm(e,r,this.retryOptions)}};var xLe="storageBrowserPolicy";function qZ(){return{name:xLe,async sendRequest(t,e){return Fe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Fc(t.url,Ta.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ae.COOKIE),t.headers.delete(ae.CONTENT_LENGTH)),e(t)}}}o(qZ,"storageBrowserPolicy");var QLe="StorageCorrectContentLengthPolicy";function GZ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ae.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:QLe,async sendRequest(e,r){return t(e),r(e)}}}o(GZ,"storageCorrectContentLengthPolicy");var RLe="storageRetryPolicy",jA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ds.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},TLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],vLe=new ss("The operation was aborted.");function HZ(t={}){let e=t.retryPolicyType??jA.retryPolicyType,r=t.maxTries??jA.maxTries,n=t.retryDelayInMs??jA.retryDelayInMs,s=t.maxRetryDelayInMs??jA.maxRetryDelayInMs,i=t.secondaryHost??jA.secondaryHost,a=t.tryTimeoutInMs??jA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return rr.inf Line truncated
`)+`
`+n(i)+s(i),c=(0,GZ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ae.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ae.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>YB(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=zB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=$B(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:BLe,async sendRequest(i,a){return e(i),a(i)}}}o(bk,"storageSharedKeyCredentialPolicy");var bLe="storageRequestFailureDetailsParserPolicy";function HZ(){return{name:bLe,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(HZ,"storageRequestFailureDetailsParserPolicy");var VZ=require("node:crypto");var WB=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,VZ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var jB="12.31.0",KB="2026-02-06";var XB="https://storage.azure.com/.default",Ta={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var yi="",wk="*",wLe=1*1024*1024;var SLe=4*wLe;var zZ="AES256",$Z="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",JZ=["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"],YZ=["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"],WZ="BlobUsesCustomerSpecifiedEncryption",jZ="BlobDoesNotUseCustomerSpecifiedEncryption",KZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function va(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(va,"isPipelineLike");var Hm=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 Ut(t,e={}){t||(t=new ht);let r=new Hm([],e);return r._credential=t,r}o(Ut,"newPipeline");function NLe(t){let e=[xLe,XZ,QLe,RLe,TLe,vLe,PLe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>_Le(s));return{wrappedPolicies:ZP(r),afterRetry:n}}}}o(NLe,"processDownlevelPipeline");function Sk(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?ek(e):Bk(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Sm({...r,loggingOptions:{additionalAllowedHeaderNames:JZ,additionalAllowedQueryParameters:YZ,logger:FB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:LB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ck,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:RP}),s.addPolicy(UZ()),s.addPolicy(qZ(r.retryOptions),{phase:"Retry"}),s.addPo Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new wi(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(NFe,"generateBlobSASQueryParameters20150405");function xFe(t,e){if(t=Su(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(xFe,"generateBlobSASQueryParameters20181109");function QFe(t,e){if(t=Su(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(QFe,"generateBlobSASQueryParameters20201206");function RFe(t,e){if(t=Su(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(RFe,"generateBlobSASQueryParametersUDK20181109");function TFe(t,e){if(t=Su(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(TFe,"generateBlobSASQueryParametersUDK20200210");function vFe(t,e){if(t=Su(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(vFe,"generateBlobSASQueryParametersUDK20201206");function _Fe(t,e){if(t=Su(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=No.parse(t.permissions.toString()).toString():s=xo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",wu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?bi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(_Fe,"generateBlobSASQueryParametersUDK20250705");function wu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(wu,"getCanonicalName");function Su(t){let e=t.version?t.version:KB;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(Su,"SASSignatureValuesSanityCheckAndAutofill");var tg=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=UA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==yi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yi||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 z.withSpan("BlobLeaseClient-acquireLease",r,async n=>K(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==yi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==yi||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 z.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=K(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==yi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==yi||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 z.withSpan("BlobLeaseClient-releaseLease",e,async r=>K(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!==yi||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==yi||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 ar 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"}};op.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ru=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"}};Ru.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var dg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var RUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},AL=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function tte(t,e,r){return RUe(this,void 0,void 0,function*(){var n;let s=new La(t),i=s.getBlockBlobClient(),a=new AL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),B(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new rw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(tte,"uploadCacheArchiveSDK");var nte=w(require("buffer"),1),Qo=w(require("fs"),1),ste=w(require("stream"),1),ite=w(require("util"),1);var nw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function sw(t){return t?t>=200&&t<300:!1}o(sw,"isSuccessStatusCode");function TUe(t){return t?t>=500:!0}o(TUe,"isServerErrorStatusCode");function vUe(t){return t?[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout].includes(t):!1}o(vUe,"isRetryableStatusCode");function _Ue(t){return nw(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(_Ue,"sleep");function rte(t,e,r){return nw(this,arguments,void 0,function*(n,s,i,a=xI,c=QI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!TUe(p)))return A;if(p&&(f=vUe(p),u=`Cache service responded with ${p}`),B(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${n} - Error is not retryable`);break}yield _Ue(c),d++}throw Error(`${n} failed: ${u}`)})}o(rte,"retry");function Ag(t,e){return nw(this,arguments,void 0,function*(r,n,s=xI,i=QI){return yield rte(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Zi)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Ag,"retryTypedResponse");function ap(t,e){return nw(this,arguments,void 0,function*(r,n,s=xI,i=QI){return yield rte(r,n,a=>a.message.statusCode,s,i)})}o(ap,"retryHttpClientResponse");var Us=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function PUe(t,e){return Us(this,void 0,void 0,function*(){yield ite.promisify(ste.pipeline)(t.message,e)})}o(PUe,"pipeResponseToStream");var iw=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,B(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])B(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(UUe,"printCachesListForDiagnostics");function gL(t,e,r){return xn(this,void 0,void 0,function*(){let n=new Ete.URL(t),s=lte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield ate(t,e,s):s.concurrentBlobDownloads?yield ote(t,e,s):yield ow(t,e):yield ow(t,e)})}o(gL,"downloadCache");function Cte(t,e,r){return xn(this,void 0,void 0,function*(){let n=mL(),s=vA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield Ag("reserveCache",()=>xn(this,void 0,void 0,function*(){return n.postJson(fg("caches"),i)}))})}o(Cte,"reserveCache");function gte(t,e){return`bytes ${t}-${e}/*`}o(gte,"getContentRange");function qUe(t,e,r,n,s){return xn(this,void 0,void 0,function*(){B(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gte(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":gte(n,s)},a=yield ap(`uploadChunk (start: ${n}, end: ${s})`,()=>xn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!sw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(qUe,"uploadChunk");function GUe(t,e,r,n){return xn(this,void 0,void 0,function*(){let s=Xi(r),i=fg(`caches/${e.toString()}`),a=cp.openSync(r,"r"),c=pL(n),l=G_("uploadConcurrency",c.uploadConcurrency),u=G_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>xn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield qUe(t,i,()=>cp.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,h)}})))}finally{cp.closeSync(a)}})}o(GUe,"uploadFile");function HUe(t,e,r){return xn(this,void 0,void 0,function*(){let n={size:r};return yield Ag("commitCache",()=>xn(this,void 0,void 0,function*(){return t.postJson(fg(`caches/${e.toString()}`),n)}))})}o(HUe,"commitCache");function EL(t,e,r,n){return xn(this,void 0,void 0,function*(){if(pL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield tte(r,e,n)}else{let i=mL();B("Upload cache"),yield GUe(i,t,e,n),B("Commiting cache");let a=Xi(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield HUe(i,t,a);if(!sw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(EL,"saveCache");var fre=w(are(),1),Ht=w(Gt(),1),us=w(Gt(),1),ku=w(Gt(),1),Du=w(Gt(),1),Ou=w(Gt(),1);var A1=w(Gt(),1),p1=w(Gt(),1),dre=w(Gt(),1),Are=w(Gt(),1),pre=w(Gt(),1);var l1=w(Gt(),1),u1=w(Gt(),1),cre=w(Gt(),1),lre=w(Gt(),1),ure=w(Gt(),1);var d1=class extends ure.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,lre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,cre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?u1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,l1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,l1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?u1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Jw=new d1;var f1=class extends pre.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(()=>Jw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Are.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(Jw.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?p1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield R1(r,"create");yield T1(n,t)})}o(_1,"createTar");var wp=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},xi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Mu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},P1="cache write denied:",Kw=class t extends Mu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Ere=RI,Xw=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},Zw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function yre(t){if(!t||t.length===0)throw new xi("Path Validation Error: At least one directory or file path is required")}o(yre,"checkPaths");function k1(t){if(t.length>512)throw new xi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new xi(`Key Validation Error: ${t} cannot contain commas.`)}o(k1,"checkKey");function D1(){return pg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(D1,"isFeatureAvailable");function Cre(t,e,r,n){return wp(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=pg();B(`Cache service version: ${u}`),yre(s);let d=hL();if(!dte(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield sGe(s,i,a,c,l):yield nGe(s,i,a,c,l)})}o(Cre,"restoreCache");function nGe(t,e,r,n){return wp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new xi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)k1(f);let A=yield Am(),p="";try{let f;try{f=yield yte(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(Ere)?new Xw(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=Tg.join(yield um(),Tc(A)),B(`Archive Path: ${p}`),yield gL(f.archiveLocation,p,c),Ca()&&(yield Rg(p,A));let h=Xi(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield v1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===xi.name)throw f;h instanceof Zi&&typeof h.statusCode=="number"&&h.statusCode>=500?CA(`Failed to restore: ${f.message}`):We(`Failed to restore: ${f.message}`)}finally{try{yield dm(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(nGe,"restoreCacheV1");function sGe(t,e,r,n){return wp(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new xi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)k1(p);let A="";try{let p=Q1(),f=yield Am(),h={key:i,restoreKeys:a,version:vA(s,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Ere)?new Xw(I):C}if(!g.ok){B(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=Tg.join(yield um(),Tc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield gL(g.signedDownloadUrl,A,c);let E=Xi(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ca()&&(yield Rg(A,f)),yield v1(A,f),S("Cache restored successfully"),g.matchedKey}catch(p){let f=p;if(f.name===xi.name)throw p;f instanceof Zi&&typeof f.statusCode=="number"&&f.statusCode>=500?CA(`Failed to restore: ${p.message}`):We(`Failed to restore: ${p.message}`)}finally{try{A&&(yield dm(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(sGe,"restoreCacheV2");function O1(t,e,r){return wp(this,arguments,void 0,function*(n,s,i,a=!1){let c=pg();B(`Cache service version: ${c}`),yre(n),k1(s);let l=hL();return Ate(l)?c==="v2"?yield oGe(n,s,i,a):yield iGe(n,s,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(O1,"saveCache");function iGe(t,e,r){return wp(this,arguments,void Line truncated
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:b,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:ce,delimiterDiscovered:Me,delimiterBufPrevious:qe,rawBuffer:$e,escapeIsQuote:Ce}=this.state;if(!Me&&u){let Ge;if(qe===void 0?Ge=n:qe!==void 0&&n===void 0?Ge=qe:Ge=Buffer.concat([qe,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(xoe(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:et}=this.state,de;if(et===void 0)if(n===void 0){a();return}else de=n;else et!==void 0&&n===void 0?de=et:de=Buffer.concat([et,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in Up)if(Up[Ge].compare(de,0,Up[Ge].length)===0){let ki=Up[Ge].length;this.state.bufBytesStart+=ki,de=de.slice(ki);let rc=Fp({...this.original_options,encoding:Ge});for(let bt in rc)this.options[bt]=rc[bt];({comment:b,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let Gr=de.length,$;for($=0;$<Gr&&!this.__needMoreData($,Gr,s);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(D=this.options.record_delimiter);let Ge=de[$];if(h===!0&&$e.append(Ge),(Ge===QYe||Ge===RYe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Ge)&&$+N.length<Gr)if(Ce){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let bt=de[$+Q.length],Di=y&&this.__isCharTrimable(de,$+Q.length),Ln=b!==null&&this.__compareBytes(b,de,$+Q.length,bt),gl=this.__isDelimiter(de,$+Q.length,bt),DE=D.length===0?this.__autoDiscoverRecordDelimiter(de,$+Q.length):this.__isRecordDelimiter(bt,de,$+Q.length);if(N!==null&&this.__isEscape(de,$,Ge)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!bt||gl||DE||Ln||Di){this.state.quoting=!1,this.state.wasQuoting=!0,$+=Q.length-1;continue}else if(g===!1){let fG=this.__error(new we("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(fG!==void 0)return fG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),$+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let bt=this.__infoField(),Di=Object.keys(Up).map(gl=>Up[gl].equals(this.state.field.toString())?gl:!1).filter(Boolean)[0],Ln=this.__error(new we("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Di?`(${Di} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Ln!==void 0)return Ln}}else{this.state.quoting=!0,$+=Q.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ge,de,$);if(bt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=bt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let gl=this.__onField();if(gl!==void 0)return gl;this.info.bytes=this.state.bufBytesStart+$+bt;let DE=this.__onRecord(i);if(DE!==void 0)return DE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=bt-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,de,$,Ge)!==0){this.state.commenting=!0;continue}let Di=this.__isDelimiter(de,$,Ge);if(Di!==0){this.info.bytes=this.state.bufBytesStart+$;let Ln=this.__onField();if(Ln!==void 0)return Ln;$+=Di-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new we("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let ki=p===!1||th Line truncated
`+n(i)+s(i),c=(0,VZ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ae.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ae.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>KB(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=YB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=WB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:_Le,async sendRequest(i,a){return e(i),a(i)}}}o(wk,"storageSharedKeyCredentialPolicy");var PLe="storageRequestFailureDetailsParserPolicy";function zZ(){return{name:PLe,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(zZ,"storageRequestFailureDetailsParserPolicy");var $Z=require("node:crypto");var XB=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,$Z.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var ZB="12.31.0",eb="2026-02-06";var tb="https://storage.azure.com/.default",va={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ci="",Sk="*",kLe=1*1024*1024;var DLe=4*kLe;var JZ="AES256",YZ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",WZ=["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"],jZ=["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"],KZ="BlobUsesCustomerSpecifiedEncryption",XZ="BlobDoesNotUseCustomerSpecifiedEncryption",ZZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(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(_a,"isPipelineLike");var zm=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 Ut(t,e={}){t||(t=new ht);let r=new zm([],e);return r._credential=t,r}o(Ut,"newPipeline");function OLe(t){let e=[MLe,e7,LLe,FLe,ULe,qLe,HLe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>GLe(s));return{wrappedPolicies:ek(r),afterRetry:n}}}}o(OLe,"processDownlevelPipeline");function Nk(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?tk(e):bk(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${ZB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=xm({...r,loggingOptions:{additionalAllowedHeaderNames:WZ,additionalAllowedQueryParameters:jZ,logger:GB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:qB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Ik,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:TP}),s.addPolicy(GZ()),s.addPolicy(HZ(r.retryOptions),{phase:"Retry"}),s.addPo Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Si(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(OFe,"generateBlobSASQueryParameters20150405");function MFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=xo.parse(t.permissions.toString()).toString():s=Qo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Si(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(MFe,"generateBlobSASQueryParameters20181109");function LFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=xo.parse(t.permissions.toString()).toString():s=Qo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Si(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(LFe,"generateBlobSASQueryParameters20201206");function FFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=xo.parse(t.permissions.toString()).toString():s=Qo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Si(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(FFe,"generateBlobSASQueryParametersUDK20181109");function UFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=xo.parse(t.permissions.toString()).toString():s=Qo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Si(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(UFe,"generateBlobSASQueryParametersUDK20200210");function qFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=xo.parse(t.permissions.toString()).toString():s=Qo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Si(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(qFe,"generateBlobSASQueryParametersUDK20201206");function GFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=xo.parse(t.permissions.toString()).toString():s=Qo.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?wi(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Si(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(GFe,"generateBlobSASQueryParametersUDK20250705");function Su(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Su,"getCanonicalName");function Nu(t){let e=t.version?t.version:eb;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(Nu,"SASSignatureValuesSanityCheckAndAutofill");var ng=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=GA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ci||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ci||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 z.withSpan("BlobLeaseClient-acquireLease",r,async n=>K(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ci||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ci||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 z.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=K(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ci||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ci||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 z.withSpan("BlobLeaseClient-releaseLease",e,async r=>K(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!==Ci||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ci||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 ar 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"}};cp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Tu=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"}};Tu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var FUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},pL=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function nte(t,e,r){return FUe(this,void 0,void 0,function*(){var n;let s=new Fa(t),i=s.getBlockBlobClient(),a=new pL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),B(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new iw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw $e(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(nte,"uploadCacheArchiveSDK");var ite=w(require("buffer"),1),Ro=w(require("fs"),1),ote=w(require("stream"),1),ate=w(require("util"),1);var ow=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function aw(t){return t?t>=200&&t<300:!1}o(aw,"isSuccessStatusCode");function UUe(t){return t?t>=500:!0}o(UUe,"isServerErrorStatusCode");function qUe(t){return t?[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout].includes(t):!1}o(qUe,"isRetryableStatusCode");function GUe(t){return ow(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(GUe,"sleep");function ste(t,e,r){return ow(this,arguments,void 0,function*(n,s,i,a=TI,c=vI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!UUe(p)))return A;if(p&&(f=qUe(p),u=`Cache service responded with ${p}`),B(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${n} - Error is not retryable`);break}yield GUe(c),d++}throw Error(`${n} failed: ${u}`)})}o(ste,"retry");function fg(t,e){return ow(this,arguments,void 0,function*(r,n,s=TI,i=vI){return yield ste(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof eo)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(fg,"retryTypedResponse");function lp(t,e){return ow(this,arguments,void 0,function*(r,n,s=TI,i=vI){return yield ste(r,n,a=>a.message.statusCode,s,i)})}o(lp,"retryHttpClientResponse");var Us=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function HUe(t,e){return Us(this,void 0,void 0,function*(){yield ate.promisify(ote.pipeline)(t.message,e)})}o(HUe,"pipeResponseToStream");var cw=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,B(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])B(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(jUe,"printCachesListForDiagnostics");function EL(t,e,r){return xn(this,void 0,void 0,function*(){let n=new Cte.URL(t),s=dte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lte(t,e,s):s.concurrentBlobDownloads?yield cte(t,e,s):yield lw(t,e):yield lw(t,e)})}o(EL,"downloadCache");function Bte(t,e,r){return xn(this,void 0,void 0,function*(){let n=gL(),s=PA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield fg("reserveCache",()=>xn(this,void 0,void 0,function*(){return n.postJson(mg("caches"),i)}))})}o(Bte,"reserveCache");function yte(t,e){return`bytes ${t}-${e}/*`}o(yte,"getContentRange");function KUe(t,e,r,n,s){return xn(this,void 0,void 0,function*(){B(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${yte(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":yte(n,s)},a=yield lp(`uploadChunk (start: ${n}, end: ${s})`,()=>xn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!aw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(KUe,"uploadChunk");function XUe(t,e,r,n){return xn(this,void 0,void 0,function*(){let s=Zi(r),i=mg(`caches/${e.toString()}`),a=up.openSync(r,"r"),c=fL(n),l=H_("uploadConcurrency",c.uploadConcurrency),u=H_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>xn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield KUe(t,i,()=>up.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,h)}})))}finally{up.closeSync(a)}})}o(XUe,"uploadFile");function ZUe(t,e,r){return xn(this,void 0,void 0,function*(){let n={size:r};return yield fg("commitCache",()=>xn(this,void 0,void 0,function*(){return t.postJson(mg(`caches/${e.toString()}`),n)}))})}o(ZUe,"commitCache");function yL(t,e,r,n){return xn(this,void 0,void 0,function*(){if(fL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield nte(r,e,n)}else{let i=gL();B("Upload cache"),yield XUe(i,t,e,n),B("Commiting cache");let a=Zi(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield ZUe(i,t,a);if(!aw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(yL,"saveCache");var mre=w(lre(),1),Ht=w(Gt(),1),us=w(Gt(),1),Du=w(Gt(),1),Ou=w(Gt(),1),Mu=w(Gt(),1);var p1=w(Gt(),1),f1=w(Gt(),1),pre=w(Gt(),1),fre=w(Gt(),1),hre=w(Gt(),1);var u1=w(Gt(),1),d1=w(Gt(),1),ure=w(Gt(),1),dre=w(Gt(),1),Are=w(Gt(),1);var A1=class extends Are.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,dre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ure.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?d1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,u1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,u1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?d1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},jw=new A1;var h1=class extends hre.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(()=>jw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,fre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,pre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(jw.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?f1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield T1(r,"create");yield v1(n,t)})}o(P1,"createTar");var Np=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Qi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Lu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},k1="cache write denied:",e0=class t extends Lu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Cre=_I,t0=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},r0=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ire(t){if(!t||t.length===0)throw new Qi("Path Validation Error: At least one directory or file path is required")}o(Ire,"checkPaths");function D1(t){if(t.length>512)throw new Qi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Qi(`Key Validation Error: ${t} cannot contain commas.`)}o(D1,"checkKey");function O1(){return hg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(O1,"isFeatureAvailable");function Bre(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=hg();B(`Cache service version: ${u}`),Ire(s);let d=mL();if(!pte(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield fGe(s,i,a,c,l):yield pGe(s,i,a,c,l)})}o(Bre,"restoreCache");function pGe(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Qi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)D1(f);let A=yield fm(),p="";try{let f;try{f=yield Ite(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(Cre)?new t0(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=_g.join(yield Am(),vc(A)),B(`Archive Path: ${p}`),yield EL(f.archiveLocation,p,c),Ia()&&(yield vg(p,A));let h=Zi(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield _1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===Qi.name)throw f;h instanceof eo&&typeof h.statusCode=="number"&&h.statusCode>=500?BA(`Failed to restore: ${f.message}`):$e(`Failed to restore: ${f.message}`)}finally{try{yield pm(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(pGe,"restoreCacheV1");function fGe(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Qi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)D1(p);let A="";try{let p=R1(),f=yield fm(),h={key:i,restoreKeys:a,version:PA(s,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Cre)?new t0(I):C}if(!g.ok){B(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=_g.join(yield Am(),vc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield EL(g.signedDownloadUrl,A,c);let E=Zi(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ia()&&(yield vg(A,f)),yield _1(A,f),S("Cache restored successfully"),g.matchedKey}catch(p){let f=p;if(f.name===Qi.name)throw p;f instanceof eo&&typeof f.statusCode=="number"&&f.statusCode>=500?BA(`Failed to restore: ${p.message}`):$e(`Failed to restore: ${p.message}`)}finally{try{A&&(yield pm(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(fGe,"restoreCacheV2");function M1(t,e,r){return Np(this,arguments,void 0,function*(n,s,i,a=!1){let c=hg();B(`Cache service version: ${c}`),Ire(n),D1(s);let l=mL();return fte(l)?c==="v2"?yield mGe(n,s,i,a):yield hGe(n,s,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(M1,"saveCache");function hGe(t,e,r){return Np(this,arguments,void Line truncated
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:b,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:ce,delimiterDiscovered:Me,delimiterBufPrevious:qe,rawBuffer:Je,escapeIsQuote:Ce}=this.state;if(!Me&&u){let Ge;if(qe===void 0?Ge=n:qe!==void 0&&n===void 0?Ge=qe:Ge=Buffer.concat([qe,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(Ooe(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:et}=this.state,de;if(et===void 0)if(n===void 0){a();return}else de=n;else et!==void 0&&n===void 0?de=et:de=Buffer.concat([et,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in Gp)if(Gp[Ge].compare(de,0,Gp[Ge].length)===0){let Di=Gp[Ge].length;this.state.bufBytesStart+=Di,de=de.slice(Di);let nc=qp({...this.original_options,encoding:Ge});for(let bt in nc)this.options[bt]=nc[bt];({comment:b,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let Gr=de.length,$;for($=0;$<Gr&&!this.__needMoreData($,Gr,s);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(D=this.options.record_delimiter);let Ge=de[$];if(h===!0&&Je.append(Ge),(Ge===qYe||Ge===GYe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Ge)&&$+N.length<Gr)if(Ce){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let bt=de[$+Q.length],Oi=y&&this.__isCharTrimable(de,$+Q.length),Ln=b!==null&&this.__compareBytes(b,de,$+Q.length,bt),El=this.__isDelimiter(de,$+Q.length,bt),LE=D.length===0?this.__autoDiscoverRecordDelimiter(de,$+Q.length):this.__isRecordDelimiter(bt,de,$+Q.length);if(N!==null&&this.__isEscape(de,$,Ge)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!bt||El||LE||Ln||Oi){this.state.quoting=!1,this.state.wasQuoting=!0,$+=Q.length-1;continue}else if(g===!1){let hG=this.__error(new we("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hG!==void 0)return hG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),$+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let bt=this.__infoField(),Oi=Object.keys(Gp).map(El=>Gp[El].equals(this.state.field.toString())?El:!1).filter(Boolean)[0],Ln=this.__error(new we("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Oi?`(${Oi} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Ln!==void 0)return Ln}}else{this.state.quoting=!0,$+=Q.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ge,de,$);if(bt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=bt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let El=this.__onField();if(El!==void 0)return El;this.info.bytes=this.state.bufBytesStart+$+bt;let LE=this.__onRecord(i);if(LE!==void 0)return LE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=bt-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,de,$,Ge)!==0){this.state.commenting=!0;continue}let Oi=this.__isDelimiter(de,$,Ge);if(Oi!==0){this.info.bytes=this.state.bufBytesStart+$;let Ln=this.__onField();if(Ln!==void 0)return Ln;$+=Oi-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new we("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Di=p===!1||th Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var hs=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=eS(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=hs(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Br("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return Roe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return iU.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return iU.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Toe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Kg.default.resolve(e);return Kg.default.resolve(r).startsWith(n.endsWith(Kg.default.sep)?n:`${n}${Kg.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var dt=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Xg.default.join(voe.default.homedir(),".docker")}static configFile(){let e=Xg.default.join(t.configDir,"config.json");if(oU.default.existsSync(e))return JSON.parse(oU.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Br("docker",!0).then(e=>(B(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(B(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var hs=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=rS(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=hs(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Br("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return Loe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return oU.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return oU.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Foe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=eE.default.resolve(e);return eE.default.resolve(r).startsWith(n.endsWith(eE.default.sep)?n:`${n}${eE.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var dt=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||tE.default.join(Uoe.default.homedir(),".docker")}static configFile(){let e=tE.default.join(t.configDir,"config.json");if(aU.default.existsSync(e))return JSON.parse(aU.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Br("docker",!0).then(e=>(B(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(B(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var nS=require("fs"),Goe=require("os");var Hp=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,nS.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,nS.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Goe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var dU=w(Joe(),1),Yoe=w(yA(),1);var t3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Woe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Woe,"getAuthString");function joe(t){return new dU.HttpClient().getAgent(t)}o(joe,"getProxyAgent");function r3e(t){return new dU.HttpClient().getAgentDispatcher(t)}o(r3e,"getProxyAgentDispatcher");function Koe(t){let e=r3e(t);return o((n,s)=>t3e(this,void 0,void 0,function*(){return(0,Yoe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}o(Koe,"getProxyFetch");function Xoe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Xoe,"getApiBaseUrl");function AU(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}o(AU,"getUserAgentWithOrchestrationId");function Xc(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(Xc,"getUserAgent");function uS(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>uS.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}o(uS,"register");function Zoe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((i,a)=>Promise.resolve().then(s.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(n=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}o(Zoe,"addHook");function eae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(eae,"removeHook");var tae=Function.bind,rae=tae.bind(tae);function nae(t,e,r){let n=rae(eae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=rae(Zoe,null).apply(null,i)})}o(nae,"bindApi");function s3e(){let t=Symbol("Singular"),e={registry:{}},r=uS.bind(null,e,t);return nae(r,e,t),r}o(s3e,"Singular");function i3e(){let t={registry:{}},e=uS.bind(null,t);return nae(e,t),e}o(i3e,"Col Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(I3e,"_buildMessageForResponseErrors");var B3e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(I3e(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},b3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],w3e=["query","method","url"],hae=/\/api\/v3\/?$/;function S3e(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(w3e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>b3e.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return hae.test(i)&&(s.url=i.replace(hae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new B3e(s,c,a.data)}return a.data.data})}o(S3e,"graphql");function gU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>S3e(r,s,i),"newApi"),{defaults:gU.bind(null,r),endpoint:r.endpoint})}o(gU,"withDefaults");var qPt=gU(rE,{headers:{"user-agent":`octokit-graphql.js/${C3e} ${Kc()}`},method:"POST",url:"/graphql"});function mae(t){return gU(t,{method:"POST",url:"/graphql"})}o(mae,"withCustomRequest");var EU="(?:[a-zA-Z0-9_-]+)",gae="\\.",Eae=new RegExp(`^${EU}${gae}${EU}${gae}${EU}$`),N3e=Eae.test.bind(Eae);async function x3e(t){let e=N3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(x3e,"auth");function Q3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Q3e,"withAuthorizationPrefix");async function R3e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Q3e(t),e(s)}o(R3e,"hook");var yae=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(x3e.bind(null,e),{hook:R3e.bind(null,e)})},"createTokenAuth2");var yU="7.0.6";var Cae=o(()=>{},"noop"),T3e=console.warn.bind(console),v3e=console.error.bind(console);function _3e(t={}){return typeof t.debug!="function"&&(t.debug=Cae),typeof t.info!="function"&&(t.info=Cae),typeof t.warn!="function"&&(t.warn=T3e),typeof t.error!="function"&&(t.error=v3e),t}o(_3e,"createLogger");var Iae=`octokit-core.js/${yU} ${Kc()}`,AS=class{static{o(this,"Octokit")}static VERSION=yU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Yoe.Collection,n={baseUrl:rE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Iae}`:Iae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=rE.defaults(n),this.graphql=mae(this.request).defaults(n),this.log=_3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=yae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var CU="17.0.0";var P3e={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_name}/variables" Line truncated
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),h=!0;break}h||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var Zc=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new _e}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Builder.exists error: ${s}`),!1));return B(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
`)}o(k3e,"_buildMessageForResponseErrors");var D3e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(k3e(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},O3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],M3e=["query","method","url"],Sae=/\/api\/v3\/?$/;function L3e(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(M3e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>O3e.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Sae.test(i)&&(s.url=i.replace(Sae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new D3e(s,c,a.data)}return a.data.data})}o(L3e,"graphql");function EU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>L3e(r,s,i),"newApi"),{defaults:EU.bind(null,r),endpoint:r.endpoint})}o(EU,"withDefaults");var akt=EU(iE,{headers:{"user-agent":`octokit-graphql.js/${P3e} ${Xc()}`},method:"POST",url:"/graphql"});function Nae(t){return EU(t,{method:"POST",url:"/graphql"})}o(Nae,"withCustomRequest");var yU="(?:[a-zA-Z0-9_-]+)",xae="\\.",Qae=new RegExp(`^${yU}${xae}${yU}${xae}${yU}$`),F3e=Qae.test.bind(Qae);async function U3e(t){let e=F3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(U3e,"auth");function q3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(q3e,"withAuthorizationPrefix");async function G3e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=q3e(t),e(s)}o(G3e,"hook");var Rae=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(U3e.bind(null,e),{hook:G3e.bind(null,e)})},"createTokenAuth2");var CU="7.0.6";var Tae=o(()=>{},"noop"),H3e=console.warn.bind(console),V3e=console.error.bind(console);function z3e(t={}){return typeof t.debug!="function"&&(t.debug=Tae),typeof t.info!="function"&&(t.info=Tae),typeof t.warn!="function"&&(t.warn=H3e),typeof t.error!="function"&&(t.error=V3e),t}o(z3e,"createLogger");var vae=`octokit-core.js/${CU} ${Xc()}`,fS=class{static{o(this,"Octokit")}static VERSION=CU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new sae.Collection,n={baseUrl:iE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${vae}`:vae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=iE.defaults(n),this.graphql=Nae(this.request).defaults(n),this.log=z3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Rae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var IU="17.0.0";var $3e={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_name}/variables" Line truncated
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),h=!0;break}h||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var el=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new _e}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Builder.exists error: ${s}`),!1));return B(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":n=void 0,r.name==null?r.name=p:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:p});break;case A=="driver":n=void 0,r.driver=p;break;case A=="last activity":n=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":n=void 0,s.endpoint=p;break;case A=="driver options":n=void 0,s["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":n=void 0,s.status=p;break;case A=="buildkit daemon flags":case A=="flags":n=void 0,s["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":n=void 0,s.buildkit=p;break;case A=="platforms":{if(n=void 0,!p)break;let f=[];if(p.includes("*"))for(let h of p.split(", "))h.includes("*")&&f.push(h.replace(/\*/g,""));else f=p.split(", ");s.platforms=f.join(",");break}case A=="features":n="features",s.features={};break;case A=="labels":n="label",s.labels={};break;case A=="devices":n="devices",s.devices=s.devices||[];break;case A.startsWith("gc policy rule#"):n="gcpolicy",s.gcPolicy&&i&&(s.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):n="file",c=u.split("#")[1],s.files=s.files||{},s.files[c]="";break;default:switch(n&&n!=="devices"&&s.devices&&a&&(s.devices.push(a),a=void 0),n||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!p;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{s.devices&&a&&s.devices.push(a),a={},a.name=p;break}case"on-demand":{a&&p&&(a.onDemand=p=="true");break}case"automatically allowed":{a&&p&&(a.autoAllow=p=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=p)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=p=="true";break}case"filters":{p&&(i.filter=p.split(","));break}case"keep duration":{i.keepDuration=p;break}case"keep bytes":{i.keepBytes=p;break}case"reserved space":{i.reservedSpace=p;break}case"max used space":{i.maxUsedSpace=p;break}case"min free space":{i.minFreeSpace=p;break}}break}case"file":{c&&s.files&&(s.files[c].length>0&&(s.files[c]+=`
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var Yu=w(require("fs"),1),vU=w(require("path"),1);var gS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new _e,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||ln.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ke.serverURL}/${ln.repo.owner}/${ln.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=ln.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof ln.payload.pull_request?.head?.sha=="string"?ln.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of s)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return vU.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Yu.default.existsSync(e))return Yu.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return vU.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Yu.default.existsSync(e))return;let r=Yu.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Yu.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=De.tmpName({tmpdir:De.tmpDir()});return Yu.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return Xl(e)?`builder-id=${Ke.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ke.workflowRunURL(!0)}`;let r=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ke.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}return n==="gha"&&(s||(e=`${e},repository=${Ke.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=hs(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=hs(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=hs(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&$i(i),[s,i]}};var _U=w(require("fs"),1),_ae=w(require("path"),1);var ES=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new _e,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return _ae.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!_U.default.existsSync(e))return;let r=_U.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let i of n){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":s=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,s]=e.split("=",2);return r.id=n,s Line truncated
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var ju=w(require("fs"),1),_U=w(require("path"),1);var yS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new _e,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||ln.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ke.serverURL}/${ln.repo.owner}/${ln.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=ln.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof ln.payload.pull_request?.head?.sha=="string"?ln.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of s)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return _U.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(ju.default.existsSync(e))return ju.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return _U.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ju.default.existsSync(e))return;let r=ju.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!ju.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=De.tmpName({tmpdir:De.tmpDir()});return ju.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return Zl(e)?`builder-id=${Ke.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ke.workflowRunURL(!0)}`;let r=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ke.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}return n==="gha"&&(s||(e=`${e},repository=${Ke.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=hs(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=hs(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=hs(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Ji(i),[s,i]}};var PU=w(require("fs"),1),Gae=w(require("path"),1);var CS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new _e,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return Gae.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!PU.default.existsSync(e))return;let r=PU.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=hs(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let i of n){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":s=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,s]=e.split("=",2);return r.id=n,s 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"]);B(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let s=n[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let a=s.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=s.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Y.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[s]=n.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(s)return`refs/tags/${s}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(i=>i.trim()).filter(i=>i.length>0).sort((i,a)=>a.length-i.length);for(let i of s){let a=`tag: ${i.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return i}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Jue=require("crypto"),jo=w(require("fs"),1),Ko=w(require("path"),1);var bf=w(UU(),1),Yue=w(tq(),1),wf=w(Hue(),1);var sG=w(UU(),1);var zue=w(Qi(),1);var Vue="application/vnd.oci.empty.v1+json";var Wo=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 Y.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(B(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(B(`Cosign.isAvailable error: ${r}`),!1));return B(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Y.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 Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return B("Cosign.versionSatisfies false: undefined version"),!1;let s=zue.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return B(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===sG.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Vue&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===sG.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var iG=w(require("fs"),1);var KN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new _e}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=De.tmpName({tmpdir:De.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await Y.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(!iG.default.existsSync(n))return;let l=iG.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(A=>A.trim()):[]}:void 0}})}async inspect(e,r,n){let s=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(s.command,s.args,n);let i=e.retryLimit??15,a;for(let c=0;c<i;c++)try{return await this.execInspect(s.command,s.args,n)}ca Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Bf="https://search.sigstore.dev";var $ue="slsaprovenance1",hl=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Wo,this.imageTools=e?.imageTools||new KN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await ot(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...s];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Y.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Wo.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
`).map(s=>s.trim()).filter(s=>s.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var nde=require("crypto"),Ko=w(require("fs"),1),Xo=w(require("path"),1);var Sf=w(qU(),1),sde=w(rq(),1),Nf=w(Zue(),1);var iG=w(qU(),1);var tde=w(Ri(),1);var ede="application/vnd.oci.empty.v1+json";var jo=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 Y.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(B(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(B(`Cosign.isAvailable error: ${r}`),!1));return B(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Y.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 Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return B("Cosign.versionSatisfies false: undefined version"),!1;let s=tde.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return B(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===iG.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===ede&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===iG.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var oG=w(require("fs"),1);var ZN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new _e}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=De.tmpName({tmpdir:De.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await Y.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(!oG.default.existsSync(n))return;let l=oG.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(A=>A.trim()):[]}:void 0}})}async inspect(e,r,n){let s=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(s.command,s.args,n);let i=e.retryLimit??15,a;for(let c=0;c<i;c++)try{return await this.execInspect(s.command,s.args,n)}ca Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var wf="https://search.sigstore.dev";var rde="slsaprovenance1",ml=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new jo,this.imageTools=e?.imageTools||new ZN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await ot(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...s];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Y.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=jo.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${f}`)}else throw new Error(`Cosign sign command failed with: ${d.stderr.trim().split(/\r?\n/).filter(f=>f.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,bf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await ot(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=Wo.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Wo.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
${f}`)}else throw new Error(`Cosign sign command failed with: ${d.stderr.trim().split(/\r?\n/).filter(f=>f.length>0).pop()??"unknown error"}`);let p=t.parseBundle((0,Sf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await ot(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`);let c=jo.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=jo.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${s}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await ot(`Signing ${a}`,async()=>{let c=i[a],l=Ko.default.join(Ko.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){We(`No subjects found in provenance ${a}, skip signing.`);return}let d=Ko.default.join(Ko.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",$ue,"--bundle",l,...s];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await Y.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Wo.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await ot(`Signing ${a}`,async()=>{let c=i[a],l=Xo.default.join(Xo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){$e(`No subjects found in provenance ${a}, skip signing.`);return}let d=Xo.default.join(Xo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",rde,"--bundle",l,...s];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await Y.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=jo.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${p.stderr.trim().split(/\r?\n/).filter(g=>g.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,bf.bundleFromJSON)(JSON.parse(jo.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),S(`Sigstore bundle written to: ${l}`),r[a]={...h,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=Ko.default.dirname(s);await ot(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Ko.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??$ue];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Y.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let s=JSON.parse(jo.default.readFileSync(r,"utf-8")),i=(0,bf.bundleFromJSON)(s);S("Fetching Sigstore TUF trusted root metadata");let a=await Yue.getTrustedRoot(),c=(0,wf.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,wf.toSignedEntity)(i,jo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let h=u.subjectAltName?.replace(/^uri:/i,"");if(h){if(!h.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${h}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new wf.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ke.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let s=await this.useRekorV2(e);await ot("Creating Sigstore protobuf signing config",async()=>{let i=De.tmpName({template:"signing-config-XXXXXX.json",tmpdir:De.tmpDir()}),a=["signing-config","create",s?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];n&&a.push("--no-default-rekor=true"),await Y.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(jo.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${Bf}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Ko.default.join(e.localExportDir,"provenance.json");if(jo.default.existsSync(r))return{[r]:jo.default.readFileSync(r)};let n=jo.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>jo.default.existsSync(Ko.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=Ko.default.join(e.localExportDir,a.name,"provenance.json");i[c]=jo.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,s=n.length>0?n[0].logIndex:void 0;return{payload:(0,bf.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.cer Line truncated
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${p.stderr.trim().split(/\r?\n/).filter(g=>g.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,Sf.bundleFromJSON)(JSON.parse(Ko.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),S(`Sigstore bundle written to: ${l}`),r[a]={...h,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=Xo.default.dirname(s);await ot(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Xo.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??rde];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Y.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let s=JSON.parse(Ko.default.readFileSync(r,"utf-8")),i=(0,Sf.bundleFromJSON)(s);S("Fetching Sigstore TUF trusted root metadata");let a=await sde.getTrustedRoot(),c=(0,Nf.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,Nf.toSignedEntity)(i,Ko.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let h=u.subjectAltName?.replace(/^uri:/i,"");if(h){if(!h.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${h}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new Nf.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ke.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let s=await this.useRekorV2(e);await ot("Creating Sigstore protobuf signing config",async()=>{let i=De.tmpName({template:"signing-config-XXXXXX.json",tmpdir:De.tmpDir()}),a=["signing-config","create",s?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];n&&a.push("--no-default-rekor=true"),await Y.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Ko.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${wf}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Xo.default.join(e.localExportDir,"provenance.json");if(Ko.default.existsSync(r))return{[r]:Ko.default.readFileSync(r)};let n=Ko.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>Ko.default.existsSync(Xo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=Xo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Ko.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,s=n.length>0?n[0].logIndex:void 0;return{payload:(0,Sf.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.cer Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -218,7 +219,7 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var ix=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new _e,this.sigstore=e?.sigstore||new hl}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);B(`Install.download vspec: ${s}`);let i=Qf.clean(s)||"";if(!Qf.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new Er({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:xf.default.join(_i.default.homedir(),".bin"),cacheFile:_i.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=cG.format(r.downloadURL,s,this.filename());S(`Downloading ${l}`);let u=await xs(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Qf.satisfies(s,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,n){let s=await this.vspec(e);B(`Install.build vspec: ${s}`);let i=new Er({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:xf.default.join(_i.default.homedir(),".bin"),cacheFile:_i.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=xf.default.join(De.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Y.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(jue)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),d=await i.save(u,n);return S(`Cached to ${d}`),d}async install(e,r){r=r||De.tmpDir();let n=xf.default.join(r,"cosign-bin");TE.default.existsSync(n)||TE.default.mkdirSync(n,{recursive:!0});let s=_i.default.platform()=="win32"?"cosign.exe":"cosign",i=xf.default.join(n,s);return TE.default.copyFileSync(e,i),S("Fixing perms"),TE.default.chmodSync(i,"0755"),Yi(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new _e({standalone:!0}).isAvailable(),s=await new _e({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)B("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new _e({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let s=await xs(n,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${Bf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(_i.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=_i.default.arch();break}}let r=_i.default.platform()=="win32"?"windows":_i.default.platform(),n=_i.default.platform()=="win32"?".exe":"";return cG.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await Vp.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${Oe.trimSuffix(a,".git")}/${s}`,l=Oe.hash(c);return S(`Use ${l} version spec cache key for ${c}`),l}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 s=await new Ke({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var Kue=w(Qi(),1);var ox=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 Y.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silen Line truncated
`;var ax=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new _e,this.sigstore=e?.sigstore||new ml}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);B(`Install.download vspec: ${s}`);let i=Tf.clean(s)||"";if(!Tf.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new Er({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Rf.default.join(Pi.default.homedir(),".bin"),cacheFile:Pi.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=lG.format(r.downloadURL,s,this.filename());S(`Downloading ${l}`);let u=await xs(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Tf.satisfies(s,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,n){let s=await this.vspec(e);B(`Install.build vspec: ${s}`);let i=new Er({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Rf.default.join(Pi.default.homedir(),".bin"),cacheFile:Pi.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Rf.default.join(De.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Y.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(ode)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),d=await i.save(u,n);return S(`Cached to ${d}`),d}async install(e,r){r=r||De.tmpDir();let n=Rf.default.join(r,"cosign-bin");PE.default.existsSync(n)||PE.default.mkdirSync(n,{recursive:!0});let s=Pi.default.platform()=="win32"?"cosign.exe":"cosign",i=Rf.default.join(n,s);return PE.default.copyFileSync(e,i),S("Fixing perms"),PE.default.chmodSync(i,"0755"),Wi(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new _e({standalone:!0}).isAvailable(),s=await new _e({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)B("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new _e({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let s=await xs(n,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${wf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Pi.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Pi.default.arch();break}}let r=Pi.default.platform()=="win32"?"windows":Pi.default.platform(),n=Pi.default.platform()=="win32"?".exe":"";return lG.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await $p.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${Oe.trimSuffix(a,".git")}/${s}`,l=Oe.hash(c);return S(`Use ${l} version spec cache key for ${c}`),l}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 s=await new Ke({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var ade=w(Ri(),1);var cx=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 Y.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silen Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,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,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,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,GAAUH,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,GAAUH,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,GAAmBJ,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,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,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
"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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,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,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,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,GAAUH,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,GAAUH,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,GAAmBJ,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,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,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
+4 -5
View File
@@ -216,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.95.0
- @docker/actions-toolkit@0.96.0
This package contains the following license:
@@ -1790,12 +1790,11 @@ SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- js-yaml@5.3.0
- js-yaml@5.4.1
These packages each contain the following license:
This package contains the following license:
(The MIT License)
@@ -4314,7 +4313,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.0
- tar-stream@3.2.1
These packages each contain the following license: