chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-05-27 14:58:54 +00:00
1 parent 0a8f3dc125
commit d1a0ff34af
3 files changed
+469 -113

No files matched your search

Generated Vendored
+105 -92
View File
@@ -1,114 +1,134 @@
var ej=Object.create;var py=Object.defineProperty;var tj=Object.getOwnPropertyDescriptor;var rj=Object.getOwnPropertyNames;var sj=Object.getPrototypeOf,nj=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ij=(t,e)=>{for(var r in e)py(t,r,{get:e[r],enumerable:!0})},oj=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rj(e))!nj.call(t,n)&&n!==r&&py(t,n,{get:()=>e[n],enumerable:!(s=tj(e,n))||s.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?ej(sj(t)):{},oj(e||!t||!t.__esModule?py(r,"default",{value:t,enumerable:!0}):r,t));var LT=g(La=>{"use strict";var jIe=require("net"),dj=require("tls"),Iy=require("http"),kT=require("https"),mj=require("events"),KIe=require("assert"),pj=require("util");La.httpOverHttp=hj;La.httpsOverHttp=gj;La.httpOverHttps=fj;La.httpsOverHttps=Ej;function hj(t){var e=new qn(t);return e.request=Iy.request,e}function gj(t){var e=new qn(t);return e.request=Iy.request,e.createSocket=vT,e.defaultPort=443,e}function fj(t){var e=new qn(t);return e.request=kT.request,e}function Ej(t){var e=new qn(t);return e.request=kT.request,e.createSocket=vT,e.defaultPort=443,e}function qn(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Iy.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=MT(n,i,o),c=0,l=e.requests.length;c<l;++c){var A=e.requests[c];if(A.host===a.host&&A.port===a.port){e.requests.splice(c,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}pj.inherits(qn,mj.EventEmitter);qn.prototype.addRequest=function(e,r,s,n){var i=this,o=By({request:e},i.options,MT(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){i.emit("free",a,o)}function l(A){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};qn.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=By({},s.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")),wi("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",A),o.end();function a(u){u.upgrade=!0}function c(u,d,m){process.nextTick(function(){l(u,d,m)})}function l(u,d,m){if(o.removeAllListeners(),d.removeAllListeners(),u.statusCode!==200){wi("tunneling socket could not be established, statusCode=%d",u.statusCode),d.destroy();var p=new Error("tunneling socket could not be established, statusCode="+u.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n);return}if(m.length>0){wi("got illegal response body from proxy"),d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n);return}return wi("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function A(u){o.removeAllListeners(),wi(`tunneling socket could not be established, cause=%s
`,u.message,u.stack);var d=new Error("tunneling socket could not be established, cause="+u.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};qn.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function vT(t,e){var r=this;qn.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=By({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=dj.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function MT(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function By(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var wi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wi=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)}:wi=function(){};La.debug=wi});var Qy=g((ZIe,FT)=>{FT.exports=LT()});var ke=g((eBe,UT)=>{UT.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 ge=g((tBe,lP)=>{"use strict";var _T=Symbol.for("undici.error.UND_ERR"),ve=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[_T]===!0}[_T]=!0},OT=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),by=class extends ve{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[OT]===!0}[OT]=!0},GT=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),wy=class extends ve{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[GT]===!0}[GT]=!0},qT=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),xy=class extends ve{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[qT]===!0}[qT]=!0},HT=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Ny=class extends ve{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[HT]===!0}[HT]=!0},zT=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),Sy=class extends ve{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.sta Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function v4(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(E4.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function M4(){return"allowed"}function L4(){return"success"}function F4(){return"success"}function U4(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _4(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&&yC(t.origin)&&!yC(rA(t))&&(e=null);break;case"same-origin":pm(t,rA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Va(t,e){return t}function O4(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Va(t.domainLookupStartTime,r),domainLookupEndTime:Va(t.domainLookupEndTime,r),connectionStartTime:Va(t.connectionStartTime,r),connectionEndTime:Va(t.connectionEndTime,r),secureConnectionStartTime:Va(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function G4(t){return Va(Q4.now(),t)}function q4(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}}function bD(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function H4(t){return{referrerPolicy:t.referrerPolicy}}function z4(t){let e=t.referrerPolicy;Qo(e);let r=null;if(t.referrer==="client"){let a=ED();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=EC(r),n=EC(r,!0);s.toString().length>4096&&(s=n);let i=pm(t,s),o=tA(s)&&!tA(t.url);switch(e){case"origin":return n??EC(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=rA(t);return pm(s,a)?s:tA(s)&&!tA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function EC(t,e){return Qo(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)}function tA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function Y4(t,e){if(mm===void 0)return!0;let r=wD(e);if(r==="no metadata"||r.length===0)return!0;let s=J4(r),n=$4(r,s);for(let i of n){let o=i.algo,a=i.hash,c=mm.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),W4(c,a))return!0}return!1}var V4=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function wD(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=V4.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();CD.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function J4(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function $4(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function W4(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}function j4(t){}function pm(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function K4(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function X4(t){return t.controller.state==="aborted"}function Z4(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function e8(t){return x4[t.toLowerCase()]??t}function t8(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Qo(typeof e=="string"),e}var r8=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function xD(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o, Line truncated
`);function D8(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k8(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function v8(t,e){gm(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&fm(t,T8,i)||i.position===t.length-4&&fm(t,P8,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=M8(t,i);if(a==="failure")return"failure";let{name:c,filename:l,contentType:A,encoding:u}=a;i.position+=2;let d;{let p=t.indexOf(s.subarray(2),i.position);if(p===-1)return"failure";d=t.subarray(i.position,p-4),i.position+=d.length,u==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;l!==null?(A??="text/plain",D8(A)||(A=""),m=new S8([d],l,{type:A})):m=Q8(Buffer.from(d)),gm(UD(c)),gm(typeof m=="string"&&UD(m)||w8(m)),n.push(x8(c,m,l))}}function M8(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=$a(a=>a!==10&&a!==13&&a!==58,t,e);if(o=xC(o,!0,!0,a=>a===9||a===32),!b8.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,$a(a=>a===32||a===9,t,e),B8(o)){case"content-disposition":{if(r=s=null,!fm(t,R8,e)||(e.position+=17,r=GD(t,e),r===null))return"failure";if(fm(t,OD,e)){let a=e.position+OD.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=GD(t,e),s===null))return"failure"}break}case"content-type":{let a=$a(c=>c!==10&&c!==13,t,e);a=xC(a,!1,!0,c=>c===9||c===32),n=_D(a);break}case"content-transfer-encoding":{let a=$a(c=>c!==10&&c!==13,t,e);a=xC(a,!1,!0,c=>c===9||c===32),i=_D(a);break}default:$a(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function GD(t,e){gm(t[e.position-1]===34);let r=$a(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function $a(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function xC(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function fm(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}qD.exports={multipartFormDataParser:v8,validateBoundary:k8}});var Ka=g((xBe,ZD)=>{"use strict";var iA=ie(),{ReadableStreamFrom:L8,isBlobLike:zD,isReadableStreamLike:F8,readableStreamClose:U8,createDeferredPromise:_8,fullyReadBody:O8,extractMimeType:G8,utf8DecodeBytes:JD}=Br(),{FormData:YD}=nA(),{kState:ja}=xi(),{webidl:q8}=St(),{Blob:H8}=require("node:buffer"),NC=require("node:assert"),{isErrored:$D,isDisturbed:z8}=require("node:stream"),{isArrayBuffer:Y8}=require("node:util/types"),{serializeAMimeType:V8}=tr(),{multipartFormDataParser:J8}=HD(),SC;try{let t=require("node:crypto");SC=e=>t.randomInt(0,e)}catch{SC=t=>Math.floor(Math.random(t))}var Em=new TextEncoder;function $8(){}var WD=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,jD;WD&&(jD=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!z8(e)&&!$D(e)&&e.cancel("Response object has been garbage collected").catch($8)}));function KD(t,e=!1){let r=null;t instanceof ReadableStream?r=t:zD(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?Em.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>U8(c))},start(){},type:"bytes"}),NC(F8(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(Y8(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(iA.isFormDataLike(t)){let c=`----formdata-undici-0${`${SC(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let A=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),u=y=>y.replace(/\r?\n|\r/g,`\r
`),d=[],m=new Uint8Array([13,10]);i=0;let p=!1;for(let[y,f]of t)if(typeof f=="string"){let E=Em.encode(l+`; name="${A(u(y))}"\r
var B5=Object.create;var UC=Object.defineProperty;var Q5=Object.getOwnPropertyDescriptor;var x5=Object.getOwnPropertyNames;var w5=Object.getPrototypeOf,b5=Object.prototype.hasOwnProperty;var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),N5=(t,e)=>{for(var r in e)UC(t,r,{get:e[r],enumerable:!0})},S5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of x5(e))!b5.call(t,s)&&s!==r&&UC(t,s,{get:()=>e[s],enumerable:!(n=Q5(e,s))||n.enumerable});return t};var B=(t,e,r)=>(r=t!=null?B5(w5(t)):{},S5(e||!t||!t.__esModule?UC(r,"default",{value:t,enumerable:!0}):r,t));var GD=h(sc=>{"use strict";var I0e=require("net"),D5=require("tls"),HC=require("http"),qD=require("https"),k5=require("events"),B0e=require("assert"),T5=require("util");sc.httpOverHttp=M5;sc.httpsOverHttp=L5;sc.httpOverHttps=_5;sc.httpsOverHttps=F5;function M5(t){var e=new ti(t);return e.request=HC.request,e}function L5(t){var e=new ti(t);return e.request=HC.request,e.createSocket=HD,e.defaultPort=443,e}function _5(t){var e=new ti(t);return e.request=qD.request,e}function F5(t){var e=new ti(t);return e.request=qD.request,e.createSocket=HD,e.defaultPort=443,e}function ti(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=zD(s,i,o),c=0,l=e.requests.length;c<l;++c){var A=e.requests[c];if(A.host===a.host&&A.port===a.port){e.requests.splice(c,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}T5.inherits(ti,k5.EventEmitter);ti.prototype.addRequest=function(e,r,n,s){var i=this,o=zC({request:e},i.options,zD(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){i.emit("free",a,o)}function l(A){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};ti.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=zC({},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")),Oi("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",A),o.end();function a(u){u.upgrade=!0}function c(u,d,m){process.nextTick(function(){l(u,d,m)})}function l(u,d,m){if(o.removeAllListeners(),d.removeAllListeners(),u.statusCode!==200){Oi("tunneling socket could not be established, statusCode=%d",u.statusCode),d.destroy();var p=new Error("tunneling socket could not be established, statusCode="+u.statusCode);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s);return}if(m.length>0){Oi("got illegal response body from proxy"),d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s);return}return Oi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function A(u){o.removeAllListeners(),Oi(`tunneling socket could not be established, cause=%s
`,u.message,u.stack);var d=new Error("tunneling socket could not be established, cause="+u.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};ti.prototype.removeSocket=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)})}};function HD(t,e){var r=this;ti.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=zC({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=D5.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function zD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function zC(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,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var Oi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Oi=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)}:Oi=function(){};sc.debug=Oi});var QA=h((x0e,YD)=>{YD.exports=GD()});var Le=h((w0e,VD)=>{VD.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 ye=h((b0e,gk)=>{"use strict";var JD=Symbol.for("undici.error.UND_ERR"),_e=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[JD]===!0}[JD]=!0},WD=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),GC=class extends _e{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[WD]===!0}[WD]=!0},$D=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),YC=class extends _e{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[$D]===!0}[$D]=!0},jD=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),VC=class extends _e{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[jD]===!0}[jD]=!0},KD=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),JC=class extends _e{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KD]===!0}[KD]=!0},XD=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),WC=class extends _e{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.sta Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function ej(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 o=n[i-1].trim();if(F6.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function tj(){return"allowed"}function rj(){return"success"}function nj(){return"success"}function sj(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ij(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&&UI(t.origin)&&!UI(DA(t))&&(e=null);break;case"same-origin":lp(t,DA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pc(t,e){return t}function oj(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pc(t.domainLookupStartTime,r),domainLookupEndTime:pc(t.domainLookupEndTime,r),connectionStartTime:pc(t.connectionStartTime,r),connectionEndTime:pc(t.connectionEndTime,r),secureConnectionStartTime:pc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function aj(t){return pc(z6.now(),t)}function cj(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}}function DT(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function lj(t){return{referrerPolicy:t.referrerPolicy}}function Aj(t){let e=t.referrerPolicy;Oo(e);let r=null;if(t.referrer==="client"){let a=bT();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=FI(r),s=FI(r,!0);n.toString().length>4096&&(n=s);let i=lp(t,n),o=vA(n)&&!vA(t.url);switch(e){case"origin":return s??FI(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 a=DA(t);return lp(n,a)?n:vA(n)&&!vA(a)?"no-referrer":s}default:return o?"no-referrer":s}}function FI(t,e){return Oo(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)}function vA(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"))}}function uj(t,e){if(cp===void 0)return!0;let r=kT(e);if(r==="no metadata"||r.length===0)return!0;let n=mj(r),s=pj(r,n);for(let i of s){let o=i.algo,a=i.hash,c=cp.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),hj(c,a))return!0}return!1}var dj=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kT(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=dj.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ST.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mj(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}function pj(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}function hj(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}function fj(t){}function lp(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function gj(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function yj(t){return t.controller.state==="aborted"}function Ej(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Cj(t){return V6[t.toLowerCase()]??t}function Ij(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Oo(typeof e=="string"),e}var Bj=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TT(t,e,r=0,n=1){class s{#e;#t;#r;constructor(o,a){this.#e=o, Line truncated
`);function Xj(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Zj(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}function eK(t,e){up(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 o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&dp(t,jj,i)||i.position===t.length-4&&dp(t,Kj,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=tK(t,i);if(a==="failure")return"failure";let{name:c,filename:l,contentType:A,encoding:u}=a;i.position+=2;let d;{let p=t.indexOf(n.subarray(2),i.position);if(p===-1)return"failure";d=t.subarray(i.position,p-4),i.position+=d.length,u==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;l!==null?(A??="text/plain",Xj(A)||(A=""),m=new Wj([d],l,{type:A})):m=zj(Buffer.from(d)),up(VT(c)),up(typeof m=="string"&&VT(m)||Yj(m)),s.push(Vj(c,m,l))}}function tK(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 o=fc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=VI(o,!0,!0,a=>a===9||a===32),!Gj.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,fc(a=>a===32||a===9,t,e),Hj(o)){case"content-disposition":{if(r=n=null,!dp(t,$j,e)||(e.position+=17,r=$T(t,e),r===null))return"failure";if(dp(t,WT,e)){let a=e.position+WT.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=$T(t,e),n===null))return"failure"}break}case"content-type":{let a=fc(c=>c!==10&&c!==13,t,e);a=VI(a,!1,!0,c=>c===9||c===32),s=JT(a);break}case"content-transfer-encoding":{let a=fc(c=>c!==10&&c!==13,t,e);a=VI(a,!1,!0,c=>c===9||c===32),i=JT(a);break}default:fc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function $T(t,e){up(t[e.position-1]===34);let r=fc(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)}function fc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function VI(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)}function dp(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}jT.exports={multipartFormDataParser:eK,validateBoundary:Zj}});var Ec=h((K0e,aM)=>{"use strict";var MA=ce(),{ReadableStreamFrom:rK,isBlobLike:XT,isReadableStreamLike:nK,readableStreamClose:sK,createDeferredPromise:iK,fullyReadBody:oK,extractMimeType:aK,utf8DecodeBytes:tM}=br(),{FormData:ZT}=TA(),{kState:yc}=qi(),{webidl:cK}=vt(),{Blob:lK}=require("node:buffer"),JI=require("node:assert"),{isErrored:rM,isDisturbed:AK}=require("node:stream"),{isArrayBuffer:uK}=require("node:util/types"),{serializeAMimeType:dK}=ir(),{multipartFormDataParser:mK}=KT(),WI;try{let t=require("node:crypto");WI=e=>t.randomInt(0,e)}catch{WI=t=>Math.floor(Math.random(t))}var mp=new TextEncoder;function pK(){}var nM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sM;nM&&(sM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!AK(e)&&!rM(e)&&e.cancel("Response object has been garbage collected").catch(pK)}));function iM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:XT(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof s=="string"?mp.encode(s):s;l.byteLength&&c.enqueue(l),queueMicrotask(()=>sK(c))},start(){},type:"bytes"}),JI(nK(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(uK(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(MA.isFormDataLike(t)){let c=`----formdata-undici-0${`${WI(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let A=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),u=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],m=new Uint8Array([13,10]);i=0;let p=!1;for(let[E,g]of t)if(typeof g=="string"){let y=mp.encode(l+`; name="${A(u(E))}"\r
\r
${u(f)}\r
`);d.push(E),i+=E.byteLength}else{let E=Em.encode(`${l}; name="${A(u(y))}"`+(f.name?`; filename="${A(f.name)}"`:"")+`\r
Content-Type: ${f.type||"application/octet-stream"}\r
${u(g)}\r
`);d.push(y),i+=y.byteLength}else{let y=mp.encode(`${l}; name="${A(u(E))}"`+(g.name?`; filename="${A(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);d.push(E,f,m),typeof f.size=="number"?i+=E.byteLength+f.size+m.byteLength:p=!0}let h=Em.encode(`--${c}--\r
`);d.push(h),i+=h.byteLength,p&&(i=null),n=t,s=async function*(){for(let y of d)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(zD(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:L8(t)}if((typeof n=="string"||iA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:A,done:u}=await c.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!$D(r)){let d=new Uint8Array(A);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function W8(t,e=!1){return t instanceof ReadableStream&&(NC(!iA.isDisturbed(t),"The body has already been consumed."),NC(!t.locked,"The stream is locked.")),KD(t,e)}function j8(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function K8(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function X8(t){return{blob(){return Wa(this,r=>{let s=VD(this);return s===null?s="":s&&(s=V8(s)),new H8([r],{type:s})},t)},arrayBuffer(){return Wa(this,r=>new Uint8Array(r).buffer,t)},text(){return Wa(this,JD,t)},json(){return Wa(this,eK,t)},formData(){return Wa(this,r=>{let s=VD(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=J8(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new YD;return i[ja]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new YD;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Wa(this,r=>new Uint8Array(r),t)}}}function Z8(t){Object.assign(t.prototype,X8(t))}async function Wa(t,e,r){if(q8.brandCheck(t,r),XD(t))throw new TypeError("Body is unusable: Body has already been read");K8(t[ja]);let s=_8(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[ja].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await O8(t[ja].body,i,n),s.promise)}function XD(t){let e=t[ja].body;return e!=null&&(e.stream.locked||iA.isDisturbed(e.stream))}function eK(t){return JSON.parse(JD(t))}function VD(t){let e=t[ja].headersList,r=G8(e);return r==="failure"?null:r}ZD.exports={extractBody:KD,safelyExtractBody:W8,cloneBody:j8,mixinBody:Z8,streamRegistry:jD,hasFinalizationRegistry:WD,bodyUnusable:XD}});var mk=g((NBe,dk)=>{"use strict";var z=require("node:assert"),X=ie(),{channels:ek}=Ua(),RC=AC(),{RequestContentLengthMismatchError:bo,ResponseContentLengthMismatchError:tk,RequestAbortedError:lk,HeadersTimeoutError:tK,HeadersOverflowError:rK,SocketError:wm,InformationalError:Xa,BodyTimeoutError:sK,HTTPParserError:nK,ResponseExceededMaxSizeError:iK}=ge(),{kUrl:Ak,kReset:rr,kClient:Bm,kParser:He,kBlocking:cA,kRunning:Dt,kPending:oK,kSize:rk,kWriting:Si,kQueue:ys,kNoRef:oA,kKeepAliveDefaultTimeout:aK,kHostHeader:cK,kPendingIdx:lK,kRunningIdx:Wr,kError:qt,kPipelining:Qm,kSocket:Za,kKeepAliveTimeoutValue:xm,kMaxHeadersSize:TC,kKeepAliveMaxTimeout:AK,kKeepAliveTimeoutThreshold:uK,kHeadersTimeout:dK,kBodyTimeout:mK,kStrictContentLength:kC,kMaxRequests:sk,kCounter:pK,kMaxResponseSize:hK,kOnError:nk,kResume:Ni,kHTTPContext:uk}=ke(),Qr=jP(),ik=Buffer.alloc(0),ym=Buffer[Symbol.species],Cm=X.addListener,gK=X.removeAllListeners,PC;async function fK(){let t=process.env.JEST_WORKER_ID?mC():void 0,e;try{e=await WebAssembly.compile(ZP())}catch{e=await WebAssembly.compile(t||mC())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{z(qe.ptr===r);let i=s-Js+Vs.byteOffset;return qe.onStatus(new ym(Vs.buffer,i,n))||0},wasm_on_message_begin:r=>(z(qe.ptr===r),qe.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{z(qe.ptr===r);let i=s-Js+Vs.byteOffset;return qe.onHeaderField(new ym(Vs.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{z(qe.ptr===r);let i=s-Js+Vs.byteOffset;return qe.onHeaderValue(new ym(Vs.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(z(qe.ptr===r),qe.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{z(qe.ptr===r);let i=s-Js+Vs.byteOffset;return qe.onBody(new ym(Vs.buffer,i,n))||0},wasm_on_message_complete:r=>(z(qe.ptr===r),qe.onMessageComplete()||0)}})}var DC=null,vC=fK();vC.catch();var qe=null,Vs=null,Im=0,Js=null,EK=0,aA=1,ec=2|aA,bm=4|aA,MC=8|EK,LC=class{constructor(e,r,{exports:s}){z(Number.isFinite(e[TC])&&e[TC]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(Qr.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[TC],this.shouldKeepAlive=!1,this.pause Line truncated
`;if(typeof n=="string"?h+=`host: ${n}\r
`:h+=t[cK],i?h+=`connection: upgrade\r
`);d.push(y,g,m),typeof g.size=="number"?i+=y.byteLength+g.size+m.byteLength:p=!0}let f=mp.encode(`--${c}--\r
`);d.push(f),i+=f.byteLength,p&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(XT(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(MA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:rK(t)}if((typeof s=="string"||MA.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(l){let{value:A,done:u}=await c.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!rM(r)){let d=new Uint8Array(A);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function hK(t,e=!1){return t instanceof ReadableStream&&(JI(!MA.isDisturbed(t),"The body has already been consumed."),JI(!t.locked,"The stream is locked.")),iM(t,e)}function fK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function gK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function yK(t){return{blob(){return gc(this,r=>{let n=eM(this);return n===null?n="":n&&(n=dK(n)),new lK([r],{type:n})},t)},arrayBuffer(){return gc(this,r=>new Uint8Array(r).buffer,t)},text(){return gc(this,tM,t)},json(){return gc(this,CK,t)},formData(){return gc(this,r=>{let n=eM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mK(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ZT;return i[yc]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ZT;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return gc(this,r=>new Uint8Array(r),t)}}}function EK(t){Object.assign(t.prototype,yK(t))}async function gc(t,e,r){if(cK.brandCheck(t,r),oM(t))throw new TypeError("Body is unusable: Body has already been read");gK(t[yc]);let n=iK(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[yc].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await oK(t[yc].body,i,s),n.promise)}function oM(t){let e=t[yc].body;return e!=null&&(e.stream.locked||MA.isDisturbed(e.stream))}function CK(t){return JSON.parse(tM(t))}function eM(t){let e=t[yc].headersList,r=aK(e);return r==="failure"?null:r}aM.exports={extractBody:iM,safelyExtractBody:hK,cloneBody:fK,mixinBody:EK,streamRegistry:sM,hasFinalizationRegistry:nM,bodyUnusable:oM}});var IM=h((X0e,CM)=>{"use strict";var V=require("node:assert"),Z=ce(),{channels:cM}=oc(),$I=PI(),{RequestContentLengthMismatchError:qo,ResponseContentLengthMismatchError:lM,RequestAbortedError:gM,HeadersTimeoutError:IK,HeadersOverflowError:BK,SocketError:Cp,InformationalError:Cc,BodyTimeoutError:QK,HTTPParserError:xK,ResponseExceededMaxSizeError:wK}=ye(),{kUrl:yM,kReset:or,kClient:gp,kParser:Ye,kBlocking:FA,kRunning:Mt,kPending:bK,kSize:AM,kWriting:zi,kQueue:Sn,kNoRef:LA,kKeepAliveDefaultTimeout:NK,kHostHeader:SK,kPendingIdx:RK,kRunningIdx:tn,kError:Vt,kPipelining:yp,kSocket:Ic,kKeepAliveTimeoutValue:Ip,kMaxHeadersSize:jI,kKeepAliveMaxTimeout:PK,kKeepAliveTimeoutThreshold:vK,kHeadersTimeout:DK,kBodyTimeout:kK,kStrictContentLength:ZI,kMaxRequests:uM,kCounter:TK,kMaxResponseSize:MK,kOnError:dM,kResume:Hi,kHTTPContext:EM}=Le(),Nr=sT(),mM=Buffer.alloc(0),pp=Buffer[Symbol.species],hp=Z.addListener,LK=Z.removeAllListeners,KI;async function _K(){let t=process.env.JEST_WORKER_ID?kI():void 0,e;try{e=await WebAssembly.compile(aT())}catch{e=await WebAssembly.compile(t||kI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{V(Ge.ptr===r);let i=n-ns+rs.byteOffset;return Ge.onStatus(new pp(rs.buffer,i,s))||0},wasm_on_message_begin:r=>(V(Ge.ptr===r),Ge.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{V(Ge.ptr===r);let i=n-ns+rs.byteOffset;return Ge.onHeaderField(new pp(rs.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{V(Ge.ptr===r);let i=n-ns+rs.byteOffset;return Ge.onHeaderValue(new pp(rs.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(V(Ge.ptr===r),Ge.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{V(Ge.ptr===r);let i=n-ns+rs.byteOffset;return Ge.onBody(new pp(rs.buffer,i,s))||0},wasm_on_message_complete:r=>(V(Ge.ptr===r),Ge.onMessageComplete()||0)}})}var XI=null,eB=_K();eB.catch();var Ge=null,rs=null,fp=0,ns=null,FK=0,_A=1,Bc=2|_A,Ep=4|_A,tB=8|FK,rB=class{constructor(e,r,{exports:n}){V(Number.isFinite(e[jI])&&e[jI]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Nr.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[jI],this.shouldKeepAlive=!1,this.pause Line truncated
`;if(typeof s=="string"?f+=`host: ${s}\r
`:f+=t[SK],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Qm]&&!m[rr]?h+=`connection: keep-alive\r
`:h+=`connection: close\r
`,Array.isArray(l))for(let y=0;y<l.length;y+=2){let f=l[y+0],E=l[y+1];if(Array.isArray(E))for(let C=0;C<E.length;C++)h+=`${f}: ${E[C]}\r
`;else h+=`${f}: ${E}\r
`}return ek.sendHeaders.hasSubscribers&&ek.sendHeaders.publish({request:e,headers:h,socket:m}),!c||d===0?ak(p,null,t,e,m,A,h,u):X.isBuffer(c)?ak(p,c,t,e,m,A,h,u):X.isBlobLike(c)?typeof c.stream=="function"?ck(p,c.stream(),t,e,m,A,h,u):bK(p,c,t,e,m,A,h,u):X.isStream(c)?QK(p,c,t,e,m,A,h,u):X.isIterable(c)?ck(p,c,t,e,m,A,h,u):z(!1),!0}function QK(t,e,r,s,n,i,o,a){z(i!==0||r[Dt]===0,"stream body cannot be pipelined");let c=!1,l=new Nm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),A=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(h){X.destroy(this,h)}},u=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let p=new lk;queueMicrotask(()=>m(p))}},m=function(p){if(!c){if(c=!0,z(n.destroyed||n[Si]&&r[Dt]<=1),n.off("drain",u).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",d),!p)try{l.end()}catch(h){p=h}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?X.destroy(e,p):X.destroy(e)}};e.on("data",A).on("end",m).on("error",m).on("close",d),e.resume&&e.resume(),n.on("drain",u).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function ak(t,e,r,s,n,i,o,a){try{e?X.isBuffer(e)&&(z(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`:t[yp]&&!m[or]?f+=`connection: keep-alive\r
`:f+=`connection: close\r
`,Array.isArray(l))for(let E=0;E<l.length;E+=2){let g=l[E+0],y=l[E+1];if(Array.isArray(y))for(let C=0;C<y.length;C++)f+=`${g}: ${y[C]}\r
`;else f+=`${g}: ${y}\r
`}return cM.sendHeaders.hasSubscribers&&cM.sendHeaders.publish({request:e,headers:f,socket:m}),!c||d===0?hM(p,null,t,e,m,A,f,u):Z.isBuffer(c)?hM(p,c,t,e,m,A,f,u):Z.isBlobLike(c)?typeof c.stream=="function"?fM(p,c.stream(),t,e,m,A,f,u):GK(p,c,t,e,m,A,f,u):Z.isStream(c)?zK(p,c,t,e,m,A,f,u):Z.isIterable(c)?fM(p,c,t,e,m,A,f,u):V(!1),!0}function zK(t,e,r,n,s,i,o,a){V(i!==0||r[Mt]===0,"stream body cannot be pipelined");let c=!1,l=new Bp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),A=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(f){Z.destroy(this,f)}},u=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let p=new gM;queueMicrotask(()=>m(p))}},m=function(p){if(!c){if(c=!0,V(s.destroyed||s[zi]&&r[Mt]<=1),s.off("drain",u).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",d),!p)try{l.end()}catch(f){p=f}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?Z.destroy(e,p):Z.destroy(e)}};e.on("data",A).on("end",m).on("error",m).on("close",d),e.resume&&e.resume(),s.on("drain",u).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function hM(t,e,r,n,s,i,o,a){try{e?Z.isBuffer(e)&&(V(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[rr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[or]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(z(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Ni]()}catch(c){t(c)}}async function bK(t,e,r,s,n,i,o,a){z(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new bo;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1"):(V(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Hi]()}catch(c){t(c)}}async function GK(t,e,r,n,s,i,o,a){V(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new qo;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[rr]=!0),r[Ni]()}catch(c){t(c)}}async function ck(t,e,r,s,n,i,o,a){z(i!==0||r[Dt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let A=()=>new Promise((d,m)=>{z(c===null),n[qt]?m(n[qt]):c=d});n.on("close",l).on("drain",l);let u=new Nm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[qt])throw n[qt];u.write(d)||await A()}u.end()}catch(d){u.destroy(d)}finally{n.off("close",l).off("drain",l)}}var Nm=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Si]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[qt])throw r[qt];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[kC])throw new bo;process.emitWarning(new bo)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[rr]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[or]=!0),r[Hi]()}catch(c){t(c)}}async function fM(t,e,r,n,s,i,o,a){V(i!==0||r[Mt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let A=()=>new Promise((d,m)=>{V(c===null),s[Vt]?m(s[Vt]):c=d});s.on("close",l).on("drain",l);let u=new Bp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Vt])throw s[Vt];u.write(d)||await A()}u.end()}catch(d){u.destroy(d)}finally{s.off("close",l).off("drain",l)}}var Bp=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[zi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Vt])throw r[Vt];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(s!==null&&o+l>s){if(i[ZI])throw new qo;process.emitWarning(new qo)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[or]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),n===null&&r.write(`\r
`,"latin1")),s===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let A=r.write(e);return r.uncork(),s.onBodySent(e),A||r[He].timeout&&r[He].timeoutType===ec&&r[He].timeout.refresh&&r[He].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Si]=!1,e[qt])throw e[qt];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=l;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[Ye].timeout&&r[Ye].timeoutType===Bc&&r[Ye].timeout.refresh&&r[Ye].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[zi]=!1,e[Vt])throw e[Vt];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[kC])throw new bo;process.emitWarning(new bo)}e[He].timeout&&e[He].timeoutType===ec&&e[He].timeout.refresh&&e[He].timeout.refresh(),s[Ni]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Si]=!1,e&&(z(s[Dt]<=1,"pipeline should only contain this request"),n(e))}};dk.exports=yK});var Ik=g((SBe,Ck)=>{"use strict";var jr=require("node:assert"),{pipeline:wK}=require("node:stream"),le=ie(),{RequestContentLengthMismatchError:FC,RequestAbortedError:pk,SocketError:lA,InformationalError:UC}=ge(),{kUrl:Sm,kReset:Tm,kClient:tc,kRunning:Pm,kPending:xK,kQueue:Ri,kPendingIdx:_C,kRunningIdx:Cs,kError:Bs,kSocket:It,kStrictContentLength:NK,kOnError:OC,kMaxConcurrentStreams:yk,kHTTP2Session:Is,kResume:Ti,kSize:SK,kHTTPContext:RK}=ke(),$n=Symbol("open streams"),hk,gk=!1,Rm;try{Rm=require("node:http2")}catch{Rm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:TK,HTTP2_HEADER_METHOD:PK,HTTP2_HEADER_PATH:DK,HTTP2_HEADER_SCHEME:kK,HTTP2_HEADER_CONTENT_LENGTH:vK,HTTP2_HEADER_EXPECT:MK,HTTP2_HEADER_STATUS:LK}}=Rm;function FK(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function UK(t,e){t[It]=e,gk||(gk=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Rm.connect(t[Sm],{createConnection:()=>e,peerMaxConcurrentStreams:t[yk]});r[$n]=0,r[tc]=t,r[It]=e,le.addListener(r,"error",OK),le.addListener(r,"frameError",GK),le.addListener(r,"end",qK),le.addListener(r,"goaway",HK),le.addListener(r,"close",function(){let{[tc]:n}=this,{[It]:i}=n,o=this[It][Bs]||this[Bs]||new lA("closed",le.getSocketInfo(i));if(n[Is]=null,n.destroyed){jr(n[xK]===0);let a=n[Ri].splice(n[Cs]);for(let c=0;c<a.length;c++){let l=a[c];le.errorRequest(n,l,o)}}}),r.unref(),t[Is]=r,e[Is]=r,le.addListener(e,"error",function(n){jr(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Bs]=n,this[tc][OC](n)}),le.addListener(e,"end",function(){le.destroy(this,new lA("other side closed",le.getSocketInfo(this)))}),le.addListener(e,"close",function(){let n=this[Bs]||new lA("closed",le.getSocketInfo(this));t[It]=null,this[Is]!=null&&this[Is].destroy(n),t[_C]=t[Cs],jr(t[Pm]===0),t.emit("disconnect",t[Sm],[t],n),t[Ti]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return YK(t,...n)},resume(){_K(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function _K(t){let e=t[It];e?.destroyed===!1&&(t[SK]===0&&t[yk]===0?(e.unref(),t[Is].unref()):(e.ref(),t[Is].ref()))}function OK(t){jr(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[It][Bs]=t,this[tc][OC](t)}function GK(t,e,r){if(r===0){let s=new UC(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[It][Bs]=s,this[tc][OC](s)}}function qK(){let t=new lA("other side closed",le.getSocketInfo(this[It]));this.destroy(t),le.destroy(this[It],t)}function HK(t){let e=this[Bs]||new lA(`HTTP/2: "GOAWAY" frame received with code ${t}`,le.getSocketInfo(this)),r=this[tc];if(r[It]=null,r[RK]=null,this[Is]!=null&&(this[Is].destroy(e),this[Is]=null),le.destroy(this[It],e),r[Cs]<r[Ri].length){let s=r[Ri][r[Cs]];r[Ri][r[Cs]++]=null,le.errorRequest(r,s,e),r[_C]=r[Cs]}jr(r[Pm]===0),r.emit("disconnect",r[Sm],[r],e),r[Ti]()}function zK(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function YK(t,e){let r=t[Is],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:A}=e;if(o)return le.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let I=0;I<l.length;I+=2){let x=l[I+0],F=l[I+1];if(Array.isArray(F))for(let J=0;J<F.length;J++)u[x]?u[x]+=`,${F[J]}`:u[x]=F[J];else u[x]=F}let d,{hostname:m,port:p}=t[Sm];u[TK]=i||`${m}${p?`:${p}`:""}`,u[PK]=s;let h=I=>{e.aborted||e.completed||(I=I||new pk,le.errorRequest(t,e,I),d!=null&&le.destroy(d,I),le.destroy(A,I),t[Ri][t[Cs]++]=null,t[Ti]())};try{e.onConnect(h)}catch(I){le.errorRequest(t,e,I)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(u,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[$n],t[Ri][t[Cs]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[$n],t[Ri][t[Cs]++]=null}),d.once("close",()=>{r[$n]-=1,r[$n]===0&&r.unref()}),!0;u[DK]=n,u[kK]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let f=le.bodyLength(A);if(le.isFormDataLike(A)){hk??=Ka().extractBody;let[I,x]=hk(A);u["content-type"]=x,A=I.stream,f=I.length}if(f==null&&(f=e.contentLength),(f===0||!y)&&(f=null),zK(s)&&f>0&&e.contentLength!=null&&e.contentLength!==f){if(t[NK])return le.errorRequest(t,e,new FC),!1;process.emitWarning(new FC)}f!=null&&(jr(A,"no body must not have content length"),u[vK]=`${f}`),r.ref();let E=s==="GET"||s==="HEAD"||A===null;return a?(u[MK]="100-continue",d=r.request(u,{endStream:E,signal:c}),d.once("continue",C)):(d=r.request(u,{endStream: Line truncated
`,this[fX]=c??3e5,this[gX]=n??3e5,this[EX]=E??!0,this[yX]=I,this[zC]=F,this[Di]=null,this[bX]=ae>-1?ae:-1,this[xX]=H??100,this[et]=null,this[Qs]=[],this[jn]=0,this[bs]=0,this[mA]=Be=>VC(this,Be),this[wX]=Be=>kk(this,Be)}get pipelining(){return this[Mm]}set pipelining(e){this[Mm]=e,this[mA](!0)}get[gA](){return this[Qs].length-this[bs]}get[hA](){return this[bs]-this[jn]}get[pA](){return this[Qs].length-this[jn]}get[lX](){return!!this[et]&&!this[sc]&&!this[et].destroyed}get[HC](){return!!(this[et]?.busy(null)||this[pA]>=(Dk(this)||1)||this[gA]>0)}[cX](e){vk(this),this.once("connect",e)}[QX](e,r){let s=e.origin||this[Ws].origin,n=new rX(s,e,r);return this[Qs].push(n),this[xo]||(wo.bodyLength(n.body)==null&&wo.isIterable(n.body)?(this[xo]=1,queueMicrotask(()=>VC(this))):this[mA](!0)),this[xo]&&this[ki]!==2&&this[HC]&&(this[ki]=2),this[ki]<2}async[IX](){return new Promise(e=>{this[pA]?this[Di]=e:e(null)})}async[BX](e){return new Promise(r=>{let s=this[Qs].splice(this[bs]);for(let i=0;i<s.length;i++){let o=s[i];wo.errorRequest(this,o,e)}let n=()=>{this[Di]&&(this[Di](),this[Di]=null),r(null)};this[et]?(this[et].destroy(e,n),this[et]=null):queueMicrotask(n),this[mA]()})}},RX=vm();function kk(t,e){if(t[hA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wn(t[bs]===t[jn]);let r=t[Qs].splice(t[jn]);for(let s=0;s<r.length;s++){let n=r[s];wo.errorRequest(t,n,e)}Wn(t[pA]===0)}}async function vk(t){Wn(!t[sc]),Wn(!t[et]);let{host:e,hostname:r,protocol:s,port:n}=t[Ws];if(r[0]==="["){let i=r.indexOf("]");Wn(i!==-1);let o=r.substring(1,i);Wn(Pk.isIP(o)),r=o}t[sc]=!0,rc.beforeConnect.hasSubscribers&&rc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[et]?.version,servername:t[Pi],localAddress:t[dA]},connector:t[uA]});try{let i=await new Promise((o,a)=>{t[uA]({host:e,hostname:r,protocol:s,port:n,servername:t[Pi],localAddress:t[dA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){wo.destroy(i.on("error",Rk),new iX);return}Wn(i);try{t[et]=i.alpnProtocol==="h2"?await SX(t,i):await NX(t,i)}catch(o){throw i.destroy().on("error",Rk),o}t[sc]=!1,i[CX]=0,i[zC]=t[zC],i[aX]=t,i[uX]=null,rc.connected.hasSubscribers&&rc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[et]?.version,servername:t[Pi],localAddress:t[dA]},connector:t[uA],socket:i}),t.emit("connect",t[Ws],[t])}catch(i){if(t.destroyed)return;if(t[sc]=!1,rc.connectError.hasSubscribers&&rc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[et]?.version,servername:t[Pi],localAddress:t[dA]},connector:t[uA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wn(t[hA]===0);t[gA]>0&&t[Qs][t[bs]].servername===t[Pi];){let o=t[Qs][t[bs]++];wo.errorRequest(t,o,i)}else kk(t,i);t.emit("connectionError",t[Ws],[t],i)}t[mA]()}function Tk(t){t[ki]=0,t.emit("drain",t[Ws],[t])}function VC(t,e){t[xo]!==2&&(t[xo]=2,TX(t,e),t[xo]=0,t[jn]>256&&(t[Qs].splice(0,t[jn]),t[bs]-=t[jn],t[jn]=0))}function TX(t,e){for(;;){if(t.destroyed){Wn(t[gA]===0);return}if(t[Di]&&!t[pA]){t[Di](),t[Di]=null;return}if(t[et]&&t[et].resume(),t[HC])t[ki]=2;else if(t[ki]===2){e?(t[ki]=1,queueMicrotask(()=>Tk(t))):Tk(t);continue}if(t[gA]===0||t[hA]>=(Dk(t)||1))return;let r=t[Qs][t[bs]];if(t[Ws].protocol==="https:"&&t[Pi]!==r.servername){if(t[hA]>0)return;t[Pi]=r.servername,t[et]?.destroy(new nX("servername changed"),()=>{t[et]=null,VC(t)})}if(t[sc])return;if(!t[et]){vk(t);return}if(t[et].destroyed||t[et].busy(r))return;!r.aborted&&t[et].write(r)?t[bs]++:t[Qs].splice(t[bs],1)}}Mk.exports=YC});var JC=g((kBe,Lk)=>{"use strict";var Lm=class{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)}};Lk.exports=class{constructor(){this.head=this.tail=new Lm}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Lm),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Uk=g((vBe,Fk)=>{var{kFree:PX,kConnected:DX,kPending:kX,kQueued:vX,kRunning:MX,kSize:LX}=ke(),No=Symbol("pool"),$C=class{constructor(e){this[No]=e}get connected(){return this[No][DX]}get free(){return this[No][PX]}get pending(){return this[No][kX]}get queued(){return this[No][vX]}get running(){return this[No][MX]}get size(){return this[No][LX]}};Fk.exports=$C});var eI=g((MBe,$k)=>{"use strict";var FX=qa(),UX=JC(),{kConnected:WC,kSize:_k,kRunning:Ok,kPending:Gk,kQueued:fA,kBusy:_X,kFree:OX,kUrl:GX,kClose:qX,kDestroy:HX,kDispatch:zX}=ke(),YX=Uk(),sr=Symbol("clients"),Ht=Symbol("needDrain"),EA=Symbol("queue"),jC=Symbol("closed resolve"),KC=Symbol("onDrain"),qk=Symbol("onConnect"),Hk=Symbol("onDisconnect"),zk=Symbol("onConnectionError"),XC=Symbol("get dispatcher"),Vk=Symbol("add client"),Jk Line truncated
${s.count} ${s.noun} ${s.is} pending:
`,"latin1"),r!==null&&s!==r){if(n[ZI])throw new qo;process.emitWarning(new qo)}e[Ye].timeout&&e[Ye].timeoutType===Bc&&e[Ye].timeout.refresh&&e[Ye].timeout.refresh(),n[Hi]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[zi]=!1,e&&(V(n[Mt]<=1,"pipeline should only contain this request"),s(e))}};CM.exports=UK});var RM=h((Z0e,SM)=>{"use strict";var rn=require("node:assert"),{pipeline:YK}=require("node:stream"),Ae=ce(),{RequestContentLengthMismatchError:nB,RequestAbortedError:BM,SocketError:UA,InformationalError:sB}=ye(),{kUrl:Qp,kReset:wp,kClient:Qc,kRunning:bp,kPending:VK,kQueue:Gi,kPendingIdx:iB,kRunningIdx:Rn,kError:vn,kSocket:xt,kStrictContentLength:JK,kOnError:oB,kMaxConcurrentStreams:NM,kHTTP2Session:Pn,kResume:Yi,kSize:WK,kHTTPContext:$K}=Le(),ai=Symbol("open streams"),QM,xM=!1,xp;try{xp=require("node:http2")}catch{xp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:jK,HTTP2_HEADER_METHOD:KK,HTTP2_HEADER_PATH:XK,HTTP2_HEADER_SCHEME:ZK,HTTP2_HEADER_CONTENT_LENGTH:eX,HTTP2_HEADER_EXPECT:tX,HTTP2_HEADER_STATUS:rX}}=xp;function nX(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}async function sX(t,e){t[xt]=e,xM||(xM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=xp.connect(t[Qp],{createConnection:()=>e,peerMaxConcurrentStreams:t[NM]});r[ai]=0,r[Qc]=t,r[xt]=e,Ae.addListener(r,"error",oX),Ae.addListener(r,"frameError",aX),Ae.addListener(r,"end",cX),Ae.addListener(r,"goaway",lX),Ae.addListener(r,"close",function(){let{[Qc]:s}=this,{[xt]:i}=s,o=this[xt][vn]||this[vn]||new UA("closed",Ae.getSocketInfo(i));if(s[Pn]=null,s.destroyed){rn(s[VK]===0);let a=s[Gi].splice(s[Rn]);for(let c=0;c<a.length;c++){let l=a[c];Ae.errorRequest(s,l,o)}}}),r.unref(),t[Pn]=r,e[Pn]=r,Ae.addListener(e,"error",function(s){rn(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn]=s,this[Qc][oB](s)}),Ae.addListener(e,"end",function(){Ae.destroy(this,new UA("other side closed",Ae.getSocketInfo(this)))}),Ae.addListener(e,"close",function(){let s=this[vn]||new UA("closed",Ae.getSocketInfo(this));t[xt]=null,this[Pn]!=null&&this[Pn].destroy(s),t[iB]=t[Rn],rn(t[bp]===0),t.emit("disconnect",t[Qp],[t],s),t[Yi]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return uX(t,...s)},resume(){iX(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function iX(t){let e=t[xt];e?.destroyed===!1&&(t[WK]===0&&t[NM]===0?(e.unref(),t[Pn].unref()):(e.ref(),t[Pn].ref()))}function oX(t){rn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xt][vn]=t,this[Qc][oB](t)}function aX(t,e,r){if(r===0){let n=new sB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xt][vn]=n,this[Qc][oB](n)}}function cX(){let t=new UA("other side closed",Ae.getSocketInfo(this[xt]));this.destroy(t),Ae.destroy(this[xt],t)}function lX(t){let e=this[vn]||new UA(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ae.getSocketInfo(this)),r=this[Qc];if(r[xt]=null,r[$K]=null,this[Pn]!=null&&(this[Pn].destroy(e),this[Pn]=null),Ae.destroy(this[xt],e),r[Rn]<r[Gi].length){let n=r[Gi][r[Rn]];r[Gi][r[Rn]++]=null,Ae.errorRequest(r,n,e),r[iB]=r[Rn]}rn(r[bp]===0),r.emit("disconnect",r[Qp],[r],e),r[Yi]()}function AX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function uX(t,e){let r=t[Pn],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:A}=e;if(o)return Ae.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let I=0;I<l.length;I+=2){let w=l[I+0],D=l[I+1];if(Array.isArray(D))for(let _=0;_<D.length;_++)u[w]?u[w]+=`,${D[_]}`:u[w]=D[_];else u[w]=D}let d,{hostname:m,port:p}=t[Qp];u[jK]=i||`${m}${p?`:${p}`:""}`,u[KK]=n;let f=I=>{e.aborted||e.completed||(I=I||new BM,Ae.errorRequest(t,e,I),d!=null&&Ae.destroy(d,I),Ae.destroy(A,I),t[Gi][t[Rn]++]=null,t[Yi]())};try{e.onConnect(f)}catch(I){Ae.errorRequest(t,e,I)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(u,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ai],t[Gi][t[Rn]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ai],t[Gi][t[Rn]++]=null}),d.once("close",()=>{r[ai]-=1,r[ai]===0&&r.unref()}),!0;u[XK]=s,u[ZK]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";A&&typeof A.read=="function"&&A.read(0);let g=Ae.bodyLength(A);if(Ae.isFormDataLike(A)){QM??=Ec().extractBody;let[I,w]=QM(A);u["content-type"]=w,A=I.stream,g=I.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),AX(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[JK])return Ae.errorRequest(t,e,new nB),!1;process.emitWarning(new nB)}g!=null&&(rn(A,"no body must not have content length"),u[eX]=`${g}`),r.ref();let y=n==="GET"||n==="HEAD"||A===null;return a?(u[tX]="100-continue",d=r.request(u,{endStream:y,signal:c}),d.once("continue",C)):(d=r.request(u,{endStream: Line truncated
`,this[_X]=c??3e5,this[LX]=s??3e5,this[FX]=y??!0,this[UX]=I,this[AB]=D,this[Ji]=null,this[GX]=ae>-1?ae:-1,this[VX]=H??100,this[nt]=null,this[Dn]=[],this[li]=0,this[kn]=0,this[zA]=de=>dB(this,de),this[YX]=de=>qM(this,de)}get pipelining(){return this[Pp]}set pipelining(e){this[Pp]=e,this[zA](!0)}get[VA](){return this[Dn].length-this[kn]}get[YA](){return this[kn]-this[li]}get[GA](){return this[Dn].length-this[li]}get[RX](){return!!this[nt]&&!this[wc]&&!this[nt].destroyed}get[lB](){return!!(this[nt]?.busy(null)||this[GA]>=(OM(this)||1)||this[VA]>0)}[SX](e){HM(this),this.once("connect",e)}[zX](e,r){let n=e.origin||this[is].origin,s=new BX(n,e,r);return this[Dn].push(s),this[zo]||(Ho.bodyLength(s.body)==null&&Ho.isIterable(s.body)?(this[zo]=1,queueMicrotask(()=>dB(this))):this[zA](!0)),this[zo]&&this[Wi]!==2&&this[lB]&&(this[Wi]=2),this[Wi]<2}async[qX](){return new Promise(e=>{this[GA]?this[Ji]=e:e(null)})}async[HX](e){return new Promise(r=>{let n=this[Dn].splice(this[kn]);for(let i=0;i<n.length;i++){let o=n[i];Ho.errorRequest(this,o,e)}let s=()=>{this[Ji]&&(this[Ji](),this[Ji]=null),r(null)};this[nt]?(this[nt].destroy(e,s),this[nt]=null):queueMicrotask(s),this[zA]()})}},$X=Rp();function qM(t,e){if(t[YA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ci(t[kn]===t[li]);let r=t[Dn].splice(t[li]);for(let n=0;n<r.length;n++){let s=r[n];Ho.errorRequest(t,s,e)}ci(t[GA]===0)}}async function HM(t){ci(!t[wc]),ci(!t[nt]);let{host:e,hostname:r,protocol:n,port:s}=t[is];if(r[0]==="["){let i=r.indexOf("]");ci(i!==-1);let o=r.substring(1,i);ci(UM.isIP(o)),r=o}t[wc]=!0,xc.beforeConnect.hasSubscribers&&xc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nt]?.version,servername:t[Vi],localAddress:t[HA]},connector:t[qA]});try{let i=await new Promise((o,a)=>{t[qA]({host:e,hostname:r,protocol:n,port:s,servername:t[Vi],localAddress:t[HA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){Ho.destroy(i.on("error",_M),new wX);return}ci(i);try{t[nt]=i.alpnProtocol==="h2"?await WX(t,i):await JX(t,i)}catch(o){throw i.destroy().on("error",_M),o}t[wc]=!1,i[OX]=0,i[AB]=t[AB],i[NX]=t,i[vX]=null,xc.connected.hasSubscribers&&xc.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nt]?.version,servername:t[Vi],localAddress:t[HA]},connector:t[qA],socket:i}),t.emit("connect",t[is],[t])}catch(i){if(t.destroyed)return;if(t[wc]=!1,xc.connectError.hasSubscribers&&xc.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nt]?.version,servername:t[Vi],localAddress:t[HA]},connector:t[qA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ci(t[YA]===0);t[VA]>0&&t[Dn][t[kn]].servername===t[Vi];){let o=t[Dn][t[kn]++];Ho.errorRequest(t,o,i)}else qM(t,i);t.emit("connectionError",t[is],[t],i)}t[zA]()}function FM(t){t[Wi]=0,t.emit("drain",t[is],[t])}function dB(t,e){t[zo]!==2&&(t[zo]=2,jX(t,e),t[zo]=0,t[li]>256&&(t[Dn].splice(0,t[li]),t[kn]-=t[li],t[li]=0))}function jX(t,e){for(;;){if(t.destroyed){ci(t[VA]===0);return}if(t[Ji]&&!t[GA]){t[Ji](),t[Ji]=null;return}if(t[nt]&&t[nt].resume(),t[lB])t[Wi]=2;else if(t[Wi]===2){e?(t[Wi]=1,queueMicrotask(()=>FM(t))):FM(t);continue}if(t[VA]===0||t[YA]>=(OM(t)||1))return;let r=t[Dn][t[kn]];if(t[is].protocol==="https:"&&t[Vi]!==r.servername){if(t[YA]>0)return;t[Vi]=r.servername,t[nt]?.destroy(new xX("servername changed"),()=>{t[nt]=null,dB(t)})}if(t[wc])return;if(!t[nt]){HM(t);return}if(t[nt].destroyed||t[nt].busy(r))return;!r.aborted&&t[nt].write(r)?t[kn]++:t[Dn].splice(t[kn],1)}}zM.exports=uB});var mB=h((sNe,GM)=>{"use strict";var vp=class{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)}};GM.exports=class{constructor(){this.head=this.tail=new vp}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new vp),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var VM=h((iNe,YM)=>{var{kFree:KX,kConnected:XX,kPending:ZX,kQueued:eZ,kRunning:tZ,kSize:rZ}=Le(),Go=Symbol("pool"),pB=class{constructor(e){this[Go]=e}get connected(){return this[Go][XX]}get free(){return this[Go][KX]}get pending(){return this[Go][ZX]}get queued(){return this[Go][eZ]}get running(){return this[Go][tZ]}get size(){return this[Go][rZ]}};YM.exports=pB});var CB=h((oNe,rL)=>{"use strict";var nZ=Ac(),sZ=mB(),{kConnected:hB,kSize:JM,kRunning:WM,kPending:$M,kQueued:JA,kBusy:iZ,kFree:oZ,kUrl:aZ,kClose:cZ,kDestroy:lZ,kDispatch:AZ}=Le(),uZ=VM(),ar=Symbol("clients"),Jt=Symbol("needDrain"),WA=Symbol("queue"),fB=Symbol("closed resolve"),gB=Symbol("onDrain"),jM=Symbol("onConnect"),KM=Symbol("onDisconnect"),XM=Symbol("onConnectionError"),yB=Symbol("get dispatcher"),eL=Symbol("add client"),tL Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};eL.exports=eB});var ep=g((lQe,iL)=>{"use strict";var rL=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:fZ}=ge(),EZ=oc();nL()===void 0&&sL(new EZ);function sL(t){if(!t||typeof t.dispatch!="function")throw new fZ("Argument agent must implement Agent");Object.defineProperty(globalThis,rL,{value:t,writable:!0,enumerable:!1,configurable:!1})}function nL(){return globalThis[rL]}iL.exports={setGlobalDispatcher:sL,getGlobalDispatcher:nL}});var tp=g((uQe,oL)=>{"use strict";oL.exports=class{#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 cL=g((dQe,aL)=>{"use strict";var yZ=km();aL.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new yZ(r,o,n,i);return r(a,c)}}});var AL=g((mQe,lL)=>{"use strict";var CZ=zm();lL.exports=t=>e=>function(s,n){return e(s,new CZ({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var dL=g((pQe,uL)=>{"use strict";var IZ=ie(),{InvalidArgumentError:BZ,RequestAbortedError:QZ}=ge(),bZ=tp(),tB=class extends bZ{#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new BZ("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#s=e}onHeaders(e,r,s,n){let o=IZ.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new QZ(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function wZ({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new tB({maxSize:i},n);return e(s,o)}}uL.exports=wZ});var hL=g((hQe,pL)=>{"use strict";var{isIP:xZ}=require("node:net"),{lookup:NZ}=require("node:dns"),SZ=tp(),{InvalidArgumentError:gc,InformationalError:RZ}=ge(),mL=Math.pow(2,31)-1,rB=class{#e=0;#t=0;#r=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.#i,this.pick=e.pick??this.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new RZ("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),A;typeof l.port=="number"?A=`:${l.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${A}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#i(e,r,s){NZ(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===mL?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===mL?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return n=a.ips[c]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#r.set(e.hostname,n)}getHandler(e,r){return new sB(this,e,r)}},sB=class extends SZ{#e=null;#t=null;#r=null;#i=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#i=s,this.#t={...i},this.#e=e,this.#r=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r)return this.#i.onError(r);let n={...this. Line truncated
${i}`;break;case"retry":$U(i)&&(r[n]=i);break;case"id":WU(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&$U(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&WU(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}}};jU.exports={EventSourceStream:HB}});var i_=g((VQe,n_)=>{"use strict";var{pipeline:Ute}=require("node:stream"),{fetching:_te}=PA(),{makeRequest:Ote}=yc(),{webidl:ti}=St(),{EventSourceStream:Gte}=KU(),{parseMIMEType:qte}=tr(),{createFastMessageEvent:Hte}=wc(),{isNetworkError:XU}=RA(),{delay:zte}=GB(),{kEnumerableProperty:qo}=ie(),{environmentSettingsObject:ZU}=Br(),e_=!1,t_=3e3,zA=0,r_=1,YA=2,Yte="anonymous",Vte="use-credentials",Tc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=zA;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),ti.util.markAsUncloneable(this);let s="EventSource constructor";ti.argumentLengthCheck(arguments,1,s),e_||(e_=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ti.converters.USVString(e,s,"url"),r=ti.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:t_};let n=ZU,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yte;r.withCredentials&&(o=Vte,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ZU.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=Ote(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===YA)return;this.#i=zA;let e={request:this.#n,dispatcher:this.#o},r=s=>{XU(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(XU(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?qte(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=r_,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new Gte({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(Hte(c.type,c.options))}});Ute(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=_te(e)}async#l(){this.#i!==YA&&(this.#i=zA,this.dispatchEvent(new Event("error")),await zte(this.#a.reconnectionTime),this.#i===zA&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){ti.brandCheck(this,t),this.#i!==YA&&(this.#i=YA,this.#s.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},s_={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:zA,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:r_,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:YA,writable:!1}};Object.defineProperties(Tc,s_);Object.defineProperties(Tc.prototype,s_);Object.defineProperties(Tc.prototype,{close:qo,onerror:qo,onmessage:qo,onopen:qo,readyState:qo,url:qo,withCredentials:qo});ti.converters.EventSourceInitDict=ti.dictionaryConverter([{key:"withCredentials",converter:ti.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:ti.converters.any}]);n_.exports={EventSource:Tc,defaultReconnectionTime:t_}});var Hp=g((JQe,W)=>{"use strict";var Jte=nc(),o_=Wl(),$te=ic(),Wte=sv(),jte=oc(),Kte=mI(),Xte=Nv(),Zte=kv(),a_=ge(),qp=ie(),{InvalidArgumentError:Gp}=a_,Pc=yM(),ere=Kl(),tre=$I(),rre=tL(),sre=KI(),nre=MI(),ire=zm(),{getGlobalDispatcher:c_,setGlobalDispatcher:ore}=ep(),are=tp(),cre=km(),lre=vm();Object.assign(o_.prototype,Pc);W.exports.Dispatcher=o_;W.exports.Client=Jte;W.exports.Pool=$te;W.exports.BalancedPool=Wte;W.exports.Agent=jte;W.exports.ProxyAgent=Kte;W.exports.EnvHttpProxyAgent=Xte;W.exports.RetryAgent=Zte;W.exports.RetryHandler=ir Line truncated
%s`,x,x,E,s);var F=E.type==="*"?MQ:E.type==="?"?vQ:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+F+"\\("+x}p(),i&&(s+="\\\\");var J=!1;switch(s.charAt(0)){case"[":case".":case"(":J=!0}for(var ae=a.length-1;ae>-1;ae--){var Ie=a[ae],Oe=s.slice(0,Ie.reStart),H=s.slice(Ie.reStart,Ie.reEnd-8),ue=s.slice(Ie.reEnd-8,Ie.reEnd),_=s.slice(Ie.reEnd);ue+=_;var Be=Oe.split("(").length-1,Pt=_;for(h=0;h<Be;h++)Pt=Pt.replace(/\)[+*?]?/,"");_=Pt;var Jr="";_===""&&e!==Ah&&(Jr="$");var Xe=Oe+H+_+Jr+ue;s=Xe}if(s!==""&&n&&(s="(?=.)"+s),J&&(s=d+s),e===Ah)return[s,n];if(!n)return doe(t);var On=r.nocase?"i":"";try{var Ir=new RegExp("^"+s+"$",On)}catch{return new RegExp("$.")}return Ir._glob=t,Ir._src=s,Ir}kr.makeRe=function(t,e){return new Rt(t,e||{}).makeRe()};Rt.prototype.makeRe=uoe;function uoe(){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?MQ:e.dot?soe:noe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===LQ?r:typeof o=="string"?moe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}kr.match=function(t,e,r){r=r||{};var s=new Rt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Rt.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;au.sep!=="/"&&(e=e.split(au.sep).join("/")),e=e.split(VG),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Rt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");var c=e[i],l=t[n];if(this.debug(e,c,l),c===!1)return!1;if(c===LQ){this.debug("GLOBSTAR",[e,c,l]);var A=n,u=i+1;if(u===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<o;){var d=t[A];if(this.debug(`
globstar while`,t,A,e,u,d),this.matchOne(t.slice(A),e.slice(u),r))return this.debug("globstar found match!",A,o,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,A,e,u);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,u),A===o))}var m;if(typeof c=="string"?(m=l===c,this.debug("string match",c,l,m)):(m=l.match(c),this.debug("pattern match",c,l,m)),!m)return!1}if(n===o&&i===a)return!0;if(n===o)return r;if(i===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function doe(t){return t.replace(/\\(.)/g,"$1")}function moe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Au=g((Uwe,ZG)=>{"use strict";var Ioe="2.0.0",Boe=Number.MAX_SAFE_INTEGER||9007199254740991,Qoe=16,boe=250,woe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ZG.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Qoe,MAX_SAFE_BUILD_LENGTH:boe,MAX_SAFE_INTEGER:Boe,RELEASE_TYPES:woe,SEMVER_SPEC_VERSION:Ioe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var uu=g((_we,eq)=>{"use strict";var xoe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};eq.exports=xoe});var Hc=g((rn,tq)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:UQ,MAX_SAFE_BUILD_LENGTH:Noe,MAX_LENGTH:Soe}=Au(),Roe=uu();rn=tq.exports={};var Toe=rn.re=[],Poe=rn.safeRe=[],v=rn.src=[],Doe=rn.safeSrc=[],M=rn.t={},koe=0,_Q="[a-zA-Z0-9-]",voe=[["\\s",1],["\\d",Soe],[_Q,Noe]],Moe=t=>{for(let[e,r]of voe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ee=(t,e,r)=>{let s=Moe(e),n=koe++;Roe(t,n,e),M[t]=n,v[n]=e,Doe[n]=s,Toe[n]=new RegExp(e,r?"g":void 0),Poe[n]=new RegExp(s,r?"g":void 0)};ee("NUMERICIDENTIFIER","0|[1-9]\\d*");ee("NUMERICIDENTIFIERLOOSE","\\d+");ee("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_Q}*`);ee("MAINVERSION",`(${v[M.NUMERICIDENTIFIER]})\\.(${v[M.NUMERICIDENTIFIER]})\\.(${v[M.NUMERICIDENTIFIER]})`);ee("MAINVERSIONLOOSE",`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.(${v[M.NUMERICIDENTIFIERLOOSE]})\\.(${v[M.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASEIDENTIFIER",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIER]})`);ee("PRERELEASEIDENTIFIERLOOSE",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIERLOOSE]})`);ee("PRERELEASE",`(?:-(${v[M.PRERELEASEIDENTIFIER]}(?:\\.${v[M.PRERELEASEIDENTIFIER]})*))`);ee("PRERELEASELOOSE",`(?:-?(${v[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[M.PRERELEASEIDENTIFIERLOOSE]})*))`);ee("BUILDIDENTIFIER",`${_Q}+`);ee("BUILD",`(?:\\+(${v[M.BUILDIDENTIFIER]}(?:\\.${v[M.BUILDIDENTIFIER]})*))`);ee("FULLPLAIN",`v?${v[M.MAINVERSION]}${v[M.PRERELEASE]}?${v[M.BUILD]}?`);ee("FULL",`^${v[M.FULLPLAIN]}$`);ee("LOOSEPLAIN",`[v=\\s]*${v[M.MAINVERSIONLOOSE]}${v[M.PRERELEASELOOSE]}?${v[M.BUILD]}?`);ee("LOOSE",`^${v[M.LOOSEPLAIN]}$`);ee("GTLT","((?:<|>)?=?)");ee("XRANGEIDENTIFIERLOOSE",`${v[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ee("XRANGEIDENTIFIER",`${v[M.NUMERICIDENTIFIER]}|x|X|\\*`);ee("XRANGEPLAIN",`[v=\\s]*(${v[M.XRANGEIDENTIFIER]})(?:\\.(${v[M.XRANGEIDENTIFIER]})(?:\\.(${v[M.XRANGEIDENTIFIER]})(?:${v[M.PRERELEASE]})?${v[M.BUILD]}?)?)?`);ee("XRANGEPLAINLOOSE",`[v=\\s]*(${v[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})(?:${v[M.PRERELEASELOOSE]})?${v[M.BUILD]}?)?)?`);ee("XRANGE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAIN]}$`);ee("XRANGELOOSE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAINLOOSE]}$`);ee("COERCEPLAIN",`(^|[^\\d])(\\d{1,${UQ}})(?:\\.(\\d{1,${UQ}}))?(?:\\.(\\d{1,${UQ}}))?`);ee("COERCE",`${v[M.COERCEPLAIN]}(?:$|[^\\d])`);ee("COERCEFULL",v[M.COERCEPLAIN]+`(?:${v[M.PRERELEASE]})?(?:${v[M.BUILD]})?(?:$|[^\\d])`);ee("COERCERTL",v[M.COERCE],!0);ee("COERCERTLFULL",v[M.COERCEFULL],!0);ee("LONETILDE","(?:~>?)");ee("TILDETRIM",`(\\s*)${v[M.LONETILDE]}\\s+`,!0);rn.tildeTrimReplace="$1~";ee("TILDE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAIN]}$`);ee("TILDELOOSE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAINLOOSE]}$`);ee("LONECARET","(?:\\^)");ee("CARETTRIM",`(\\s*)${v[M.LONECARET]}\\s+`,!0);rn.caretTrimReplace="$1^";ee("CARET",`^${v[M.LONECARET]}${v[M.XRANGEPLAIN]}$`);ee("CARETLOOSE",`^${v[M.LONECARET]}${v[M.XRANGEPLAINLOOSE]}$`);ee("COMPARATORLOOSE",`^${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]})$|^$`);ee("COMPARATOR",`^${v[M.GTLT]}\\s*(${v[M.FULLPLAIN]})$|^$`);ee("COMPARATORTRIM",`(\\s*)${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]}|${v[M.XRANGEPLAIN]})`,!0);rn.comparatorTrimReplace="$1$2$3";ee("HYPHENRANGE",`^\\s*(${v[M.XRANGEPLAIN]})\\s+-\\s+(${v[M.XRANGEPLAIN]})\\s*$`);ee("HYPHENRANGELOOSE",`^\\s*(${v[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${v[M.XRANGEPLAINLOOSE]})\\s*$`);ee("STAR","(<|>)?=?\\s*\\*");ee("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ee("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ph=g((Owe,rq)=>{"use strict";var Loe=Object.freeze({loose:!0}),Foe=Object.freeze({}),Uoe=t=>t?typeof t!="object"?Loe:t:Foe;rq.exports=Uoe});var OQ=g((Gwe,iq)=>{"use strict";var sq=/^[0-9]+$/,nq=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=sq.test(t),s=sq.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},_oe=(t,e)=>nq(e,t);iq.exports={compareIdentifiers:nq,rcompareIdentifiers:_oe}});var Ut=g((qwe,aq)=>{"use strict";var hh=uu(),{MAX_LENGTH:oq,MAX_SAFE_INTEGER:gh}=Au(),{ Line truncated
`.trim())}};cF.exports=CQ});var $p=h((TNe,mF)=>{"use strict";var AF=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:_ee}=ye(),Fee=Sc();dF()===void 0&&uF(new Fee);function uF(t){if(!t||typeof t.dispatch!="function")throw new _ee("Argument agent must implement Agent");Object.defineProperty(globalThis,AF,{value:t,writable:!0,enumerable:!1,configurable:!1})}function dF(){return globalThis[AF]}mF.exports={setGlobalDispatcher:uF,getGlobalDispatcher:dF}});var jp=h((LNe,pF)=>{"use strict";pF.exports=class{#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 fF=h((_Ne,hF)=>{"use strict";var Uee=Sp();hF.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new Uee(r,o,s,i);return r(a,c)}}});var yF=h((FNe,gF)=>{"use strict";var Oee=Up();gF.exports=t=>e=>function(n,s){return e(n,new Oee({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var CF=h((UNe,EF)=>{"use strict";var qee=ce(),{InvalidArgumentError:Hee,RequestAbortedError:zee}=ye(),Gee=jp(),IQ=class extends Gee{#e=1024*1024;#t=null;#r=!1;#i=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Hee("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#n=e}onHeaders(e,r,n,s){let o=qee.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new zee(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Yee({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new IQ({maxSize:i},s);return e(n,o)}}EF.exports=Yee});var QF=h((ONe,BF)=>{"use strict";var{isIP:Vee}=require("node:net"),{lookup:Jee}=require("node:dns"),Wee=jp(),{InvalidArgumentError:Fc,InformationalError:$ee}=ye(),IF=Math.pow(2,31)-1,BQ=class{#e=0;#t=0;#r=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.#i,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.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,(o,a)=>{if(o||a==null||a.length===0){n(o??new $ee("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),A;typeof l.port=="number"?A=`:${l.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${A}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#i(e,r,n){Jee(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===IF?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===IF?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#r.set(e.hostname,s)}getHandler(e,r){return new QQ(this,e,r)}},QQ=class extends Wee{#e=null;#t=null;#r=null;#i=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#i=n,this.#t={...i},this.#e=e,this.#r=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)return this.#i.o Line truncated
${i}`;break;case"retry":r1(i)&&(r[s]=i);break;case"id":n1(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&r1(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&n1(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}}};s1.exports={EventSourceStream:lx}});var m1=h((gSe,d1)=>{"use strict";var{pipeline:sie}=require("node:stream"),{fetching:iie}=au(),{makeRequest:oie}=qc(),{webidl:pi}=vt(),{EventSourceStream:aie}=i1(),{parseMIMEType:cie}=ir(),{createFastMessageEvent:lie}=Jc(),{isNetworkError:o1}=iu(),{delay:Aie}=ax(),{kEnumerableProperty:ia}=ce(),{environmentSettingsObject:a1}=br(),c1=!1,l1=3e3,Cu=0,A1=1,Iu=2,uie="anonymous",die="use-credentials",Xc=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=Cu;#s=null;#n=null;#o;#a;constructor(e,r={}){super(),pi.util.markAsUncloneable(this);let n="EventSource constructor";pi.argumentLengthCheck(arguments,1,n),c1||(c1=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=pi.converters.USVString(e,n,"url"),r=pi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:l1};let s=a1,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=uie;r.withCredentials&&(o=die,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=a1.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=oie(a),this.#c()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#c(){if(this.#i===Iu)return;this.#i=Cu;let e={request:this.#s,dispatcher:this.#o},r=n=>{o1(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(o1(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),i=s!==null?cie(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=A1,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let a=new aie({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(lie(c.type,c.options))}});sie(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=iie(e)}async#l(){this.#i!==Iu&&(this.#i=Cu,this.dispatchEvent(new Event("error")),await Aie(this.#a.reconnectionTime),this.#i===Cu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){pi.brandCheck(this,t),this.#i!==Iu&&(this.#i=Iu,this.#n.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}},u1={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Cu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:A1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Iu,writable:!1}};Object.defineProperties(Xc,u1);Object.defineProperties(Xc.prototype,u1);Object.defineProperties(Xc.prototype,{close:ia,onerror:ia,onmessage:ia,onopen:ia,readyState:ia,url:ia,withCredentials:ia});pi.converters.EventSourceInitDict=pi.dictionaryConverter([{key:"withCredentials",converter:pi.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:pi.converters.any}]);d1.exports={EventSource:Xc,defaultReconnectionTime:l1}});var Qu=h((ySe,j)=>{"use strict";var mie=bc(),p1=wA(),pie=Nc(),hie=uL(),fie=Sc(),gie=kB(),yie=ML(),Eie=qL(),h1=ye(),_h=ce(),{InvalidArgumentError:Lh}=h1,Zc=N_(),Cie=NA(),Iie=pQ(),Bie=lF(),Qie=gQ(),xie=tQ(),wie=Up(),{getGlobalDispatcher:f1,setGlobalDispatcher:bie}=$p(),Nie=jp(),Sie=Sp(),Rie=Rp();Object.assign(p1.prototype,Zc);j.exports.Dispatcher=p1;j.exports.Client=mie;j.exports.Pool=pie;j.exports.BalancedPool=hie;j.exports.Agent=fie;j.exports.ProxyAgent=gie;j.exports.EnvHttpProxyAgent=yie;j.exports.RetryAgent=Eie;j.exports.RetryHandler=wi Line truncated
%s`,w,w,y,n);var D=y.type==="*"?Aw:y.type==="?"?lw:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+D+"\\("+w}p(),i&&(n+="\\\\");var _=!1;switch(n.charAt(0)){case"[":case".":case"(":_=!0}for(var ae=a.length-1;ae>-1;ae--){var ge=a[ae],Be=n.slice(0,ge.reStart),H=n.slice(ge.reStart,ge.reEnd-8),ee=n.slice(ge.reEnd-8,ge.reEnd),F=n.slice(ge.reEnd);ee+=F;var de=Be.split("(").length-1,At=F;for(f=0;f<de;f++)At=At.replace(/\)[+*?]?/,"");F=At;var He="";F===""&&e!==uf&&(He="$");var tt=Be+H+F+He+ee;n=tt}if(n!==""&&s&&(n="(?=.)"+n),_&&(n=d+n),e===uf)return[n,s];if(!s)return $le(t);var ei=r.nocase?"i":"";try{var wr=new RegExp("^"+n+"$",ei)}catch{return new RegExp("$.")}return wr._glob=t,wr._src=n,wr}_r.makeRe=function(t,e){return new Dt(t,e||{}).makeRe()};Dt.prototype.makeRe=Wle;function Wle(){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?Aw:e.dot?Ole:qle,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===uw?r:typeof o=="string"?jle(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}_r.match=function(t,e,r){r=r||{};var n=new Dt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Dt.prototype.match=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;Gu.sep!=="/"&&(e=e.split(Gu.sep).join("/")),e=e.split(CH),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var l=this.matchOne(c,a,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};Dt.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,o=t.length,a=e.length;s<o&&i<a;s++,i++){this.debug("matchOne loop");var c=e[i],l=t[s];if(this.debug(e,c,l),c===!1)return!1;if(c===uw){this.debug("GLOBSTAR",[e,c,l]);var A=s,u=i+1;if(u===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;A<o;){var d=t[A];if(this.debug(`
globstar while`,t,A,e,u,d),this.matchOne(t.slice(A),e.slice(u),r))return this.debug("globstar found match!",A,o,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,A,e,u);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,u),A===o))}var m;if(typeof c=="string"?(m=l===c,this.debug("string match",c,l,m)):(m=l.match(c),this.debug("pattern match",c,l,m)),!m)return!1}if(s===o&&i===a)return!0;if(s===o)return r;if(i===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function $le(t){return t.replace(/\\(.)/g,"$1")}function jle(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ju=h((Tve,NH)=>{"use strict";var sAe="2.0.0",iAe=Number.MAX_SAFE_INTEGER||9007199254740991,oAe=16,aAe=250,cAe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];NH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:oAe,MAX_SAFE_BUILD_LENGTH:aAe,MAX_SAFE_INTEGER:iAe,RELEASE_TYPES:cAe,SEMVER_SPEC_VERSION:sAe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wu=h((Mve,SH)=>{"use strict";var lAe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};SH.exports=lAe});var Al=h((ps,RH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:mw,MAX_SAFE_BUILD_LENGTH:AAe,MAX_LENGTH:uAe}=Ju(),dAe=Wu();ps=RH.exports={};var mAe=ps.re=[],pAe=ps.safeRe=[],M=ps.src=[],hAe=ps.safeSrc=[],L=ps.t={},fAe=0,pw="[a-zA-Z0-9-]",gAe=[["\\s",1],["\\d",uAe],[pw,AAe]],yAe=t=>{for(let[e,r]of gAe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},re=(t,e,r)=>{let n=yAe(e),s=fAe++;dAe(t,s,e),L[t]=s,M[s]=e,hAe[s]=n,mAe[s]=new RegExp(e,r?"g":void 0),pAe[s]=new RegExp(n,r?"g":void 0)};re("NUMERICIDENTIFIER","0|[1-9]\\d*");re("NUMERICIDENTIFIERLOOSE","\\d+");re("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${pw}*`);re("MAINVERSION",`(${M[L.NUMERICIDENTIFIER]})\\.(${M[L.NUMERICIDENTIFIER]})\\.(${M[L.NUMERICIDENTIFIER]})`);re("MAINVERSIONLOOSE",`(${M[L.NUMERICIDENTIFIERLOOSE]})\\.(${M[L.NUMERICIDENTIFIERLOOSE]})\\.(${M[L.NUMERICIDENTIFIERLOOSE]})`);re("PRERELEASEIDENTIFIER",`(?:${M[L.NONNUMERICIDENTIFIER]}|${M[L.NUMERICIDENTIFIER]})`);re("PRERELEASEIDENTIFIERLOOSE",`(?:${M[L.NONNUMERICIDENTIFIER]}|${M[L.NUMERICIDENTIFIERLOOSE]})`);re("PRERELEASE",`(?:-(${M[L.PRERELEASEIDENTIFIER]}(?:\\.${M[L.PRERELEASEIDENTIFIER]})*))`);re("PRERELEASELOOSE",`(?:-?(${M[L.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${M[L.PRERELEASEIDENTIFIERLOOSE]})*))`);re("BUILDIDENTIFIER",`${pw}+`);re("BUILD",`(?:\\+(${M[L.BUILDIDENTIFIER]}(?:\\.${M[L.BUILDIDENTIFIER]})*))`);re("FULLPLAIN",`v?${M[L.MAINVERSION]}${M[L.PRERELEASE]}?${M[L.BUILD]}?`);re("FULL",`^${M[L.FULLPLAIN]}$`);re("LOOSEPLAIN",`[v=\\s]*${M[L.MAINVERSIONLOOSE]}${M[L.PRERELEASELOOSE]}?${M[L.BUILD]}?`);re("LOOSE",`^${M[L.LOOSEPLAIN]}$`);re("GTLT","((?:<|>)?=?)");re("XRANGEIDENTIFIERLOOSE",`${M[L.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);re("XRANGEIDENTIFIER",`${M[L.NUMERICIDENTIFIER]}|x|X|\\*`);re("XRANGEPLAIN",`[v=\\s]*(${M[L.XRANGEIDENTIFIER]})(?:\\.(${M[L.XRANGEIDENTIFIER]})(?:\\.(${M[L.XRANGEIDENTIFIER]})(?:${M[L.PRERELEASE]})?${M[L.BUILD]}?)?)?`);re("XRANGEPLAINLOOSE",`[v=\\s]*(${M[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${M[L.XRANGEIDENTIFIERLOOSE]})(?:${M[L.PRERELEASELOOSE]})?${M[L.BUILD]}?)?)?`);re("XRANGE",`^${M[L.GTLT]}\\s*${M[L.XRANGEPLAIN]}$`);re("XRANGELOOSE",`^${M[L.GTLT]}\\s*${M[L.XRANGEPLAINLOOSE]}$`);re("COERCEPLAIN",`(^|[^\\d])(\\d{1,${mw}})(?:\\.(\\d{1,${mw}}))?(?:\\.(\\d{1,${mw}}))?`);re("COERCE",`${M[L.COERCEPLAIN]}(?:$|[^\\d])`);re("COERCEFULL",M[L.COERCEPLAIN]+`(?:${M[L.PRERELEASE]})?(?:${M[L.BUILD]})?(?:$|[^\\d])`);re("COERCERTL",M[L.COERCE],!0);re("COERCERTLFULL",M[L.COERCEFULL],!0);re("LONETILDE","(?:~>?)");re("TILDETRIM",`(\\s*)${M[L.LONETILDE]}\\s+`,!0);ps.tildeTrimReplace="$1~";re("TILDE",`^${M[L.LONETILDE]}${M[L.XRANGEPLAIN]}$`);re("TILDELOOSE",`^${M[L.LONETILDE]}${M[L.XRANGEPLAINLOOSE]}$`);re("LONECARET","(?:\\^)");re("CARETTRIM",`(\\s*)${M[L.LONECARET]}\\s+`,!0);ps.caretTrimReplace="$1^";re("CARET",`^${M[L.LONECARET]}${M[L.XRANGEPLAIN]}$`);re("CARETLOOSE",`^${M[L.LONECARET]}${M[L.XRANGEPLAINLOOSE]}$`);re("COMPARATORLOOSE",`^${M[L.GTLT]}\\s*(${M[L.LOOSEPLAIN]})$|^$`);re("COMPARATOR",`^${M[L.GTLT]}\\s*(${M[L.FULLPLAIN]})$|^$`);re("COMPARATORTRIM",`(\\s*)${M[L.GTLT]}\\s*(${M[L.LOOSEPLAIN]}|${M[L.XRANGEPLAIN]})`,!0);ps.comparatorTrimReplace="$1$2$3";re("HYPHENRANGE",`^\\s*(${M[L.XRANGEPLAIN]})\\s+-\\s+(${M[L.XRANGEPLAIN]})\\s*$`);re("HYPHENRANGELOOSE",`^\\s*(${M[L.XRANGEPLAINLOOSE]})\\s+-\\s+(${M[L.XRANGEPLAINLOOSE]})\\s*$`);re("STAR","(<|>)?=?\\s*\\*");re("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");re("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var hf=h((Lve,PH)=>{"use strict";var EAe=Object.freeze({loose:!0}),CAe=Object.freeze({}),IAe=t=>t?typeof t!="object"?EAe:t:CAe;PH.exports=IAe});var hw=h((_ve,kH)=>{"use strict";var vH=/^[0-9]+$/,DH=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=vH.test(t),n=vH.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},BAe=(t,e)=>DH(e,t);kH.exports={compareIdentifiers:DH,rcompareIdentifiers:BAe}});var qt=h((Fve,MH)=>{"use strict";var ff=Wu(),{MAX_LENGTH:TH,MAX_SAFE_INTEGER:gf}=Ju(),{ Line truncated
`).join(`
`+i),t.push(n+"m+"+Xh.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=iAe()+e+" "+t[0]}function iAe(){return Tt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function oAe(...t){return process.stderr.write(Kh.format(...t)+`
`)}function aAe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function cAe(){return process.env.DEBUG}function lAe(t){t.inspectOpts={};let e=Object.keys(Tt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Tt.inspectOpts[e[r]]}Xh.exports=bb()(Tt);var{formatters:LH}=Xh.exports;LH.o=function(t){return this.inspectOpts.colors=this.useColors,Kh.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};LH.O=function(t){return this.inspectOpts.colors=this.useColors,Kh.inspect(t,this.inspectOpts)}});var Zh=g((t0e,Nb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Nb.exports=TH():Nb.exports=FH()});var OH=g(Ar=>{"use strict";var AAe=Ar&&Ar.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),uAe=Ar&&Ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),UH=Ar&&Ar.__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)&&AAe(e,t,r);return uAe(e,t),e};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.req=Ar.json=Ar.toBuffer=void 0;var dAe=UH(require("http")),mAe=UH(require("https"));async function _H(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Ar.toBuffer=_H;async function pAe(t){let r=(await _H(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Ar.json=pAe;function hAe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?mAe:dAe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Ar.req=hAe});var zH=g(Fr=>{"use strict";var qH=Fr&&Fr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),gAe=Fr&&Fr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HH=Fr&&Fr.__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)&&qH(e,t,r);return gAe(e,t),e},fAe=Fr&&Fr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qH(e,t,r)};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.Agent=void 0;var EAe=HH(require("net")),GH=HH(require("http")),yAe=require("https");fAe(OH(),Fr);var on=Symbol("AgentBaseInternalState"),Sb=class extends GH.Agent{constructor(e){super(e),this[on]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new EAe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?yAe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof GH.Agent)try{return a.addRequest(e,n)}catch(c){return s(c)}this[on].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[on].currentSocket;if(this[on].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[on].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[on]&&(this[on].defaultPort=e)}get protocol(){return this[on].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[on]&&(this[on].protocol=e)}};Fr.Agent=Sb});var YH=g(Xc=>{"use strict";var CAe=Xc&&Xc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xc,"__esModule",{value:!0});Xc.parseProxyResponse=void 0;var IAe=CAe(Zh()),eg=(0,IAe.default)("https-proxy-agent:parse-proxy-response");function BAe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?l(A):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),eg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(A){o(),eg("onerror %o",A),r(A)}function l(A){n.push(A),s+=A.length;let u=Buffer.concat(n,s),d=u.indexOf(`\r
`+i),t.push(s+"m+"+eg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Kme()+e+" "+t[0]}function Kme(){return kt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xme(...t){return process.stderr.write(Zf.format(...t)+`
`)}function Zme(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function epe(){return process.env.DEBUG}function tpe(t){t.inspectOpts={};let e=Object.keys(kt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=kt.inspectOpts[e[r]]}eg.exports=rb()(kt);var{formatters:uY}=eg.exports;uY.o=function(t){return this.inspectOpts.colors=this.useColors,Zf.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};uY.O=function(t){return this.inspectOpts.colors=this.useColors,Zf.inspect(t,this.inspectOpts)}});var tg=h((Zke,ib)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ib.exports=iY():ib.exports=dY()});var hY=h(pr=>{"use strict";var rpe=pr&&pr.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),npe=pr&&pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mY=pr&&pr.__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)&&rpe(e,t,r);return npe(e,t),e};Object.defineProperty(pr,"__esModule",{value:!0});pr.req=pr.json=pr.toBuffer=void 0;var spe=mY(require("http")),ipe=mY(require("https"));async function pY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}pr.toBuffer=pY;async function ope(t){let r=(await pY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}pr.json=ope;function ape(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ipe:spe).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}pr.req=ape});var EY=h(qr=>{"use strict";var gY=qr&&qr.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cpe=qr&&qr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yY=qr&&qr.__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)&&gY(e,t,r);return cpe(e,t),e},lpe=qr&&qr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gY(e,t,r)};Object.defineProperty(qr,"__esModule",{value:!0});qr.Agent=void 0;var Ape=yY(require("net")),fY=yY(require("http")),upe=require("https");lpe(hY(),qr);var ys=Symbol("AgentBaseInternalState"),ob=class extends fY.Agent{constructor(e){super(e),this[ys]={}}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 Ape.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)?upe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof fY.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[ys].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[ys].currentSocket;if(this[ys].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ys].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ys]&&(this[ys].defaultPort=e)}get protocol(){return this[ys].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ys]&&(this[ys].protocol=e)}};qr.Agent=ob});var CY=h(Cl=>{"use strict";var dpe=Cl&&Cl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parseProxyResponse=void 0;var mpe=dpe(tg()),rg=(0,mpe.default)("https-proxy-agent:parse-proxy-response");function ppe(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let A=t.read();A?l(A):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),rg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(A){o(),rg("onerror %o",A),r(A)}function l(A){s.push(A),n+=A.length;let u=Buffer.concat(s,n),d=u.indexOf(`\r
\r
`);if(d===-1){eg("have not received end of HTTP headers yet..."),i();return}let m=u.slice(0,d).toString("ascii").split(`\r
`),p=m.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=p.split(" "),y=+h[1],f=h.slice(2).join(" "),E={};for(let C of m){if(!C)continue;let I=C.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let x=C.slice(0,I).toLowerCase(),F=C.slice(I+1).trimStart(),J=E[x];typeof J=="string"?E[x]=[J,F]:Array.isArray(J)?J.push(F):E[x]=F}eg("got proxy server response: %o %o",p,E),o(),e({connect:{statusCode:y,statusText:f,headers:E},buffered:u})}t.on("error",c),t.on("end",a),i()})}Xc.parseProxyResponse=BAe});var KH=g(as=>{"use strict";var QAe=as&&as.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bAe=as&&as.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WH=as&&as.__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)&&QAe(e,t,r);return bAe(e,t),e},jH=as&&as.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(as,"__esModule",{value:!0});as.HttpsProxyAgent=void 0;var tg=WH(require("net")),VH=WH(require("tls")),wAe=jH(require("assert")),xAe=jH(Zh()),NAe=zH(),SAe=require("url"),RAe=YH(),wu=(0,xAe.default)("https-proxy-agent"),JH=t=>t.servername===void 0&&t.host&&!tg.isIP(t.host)?{...t,servername:t.host}:t,rg=class extends NAe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new SAe.URL(e):e,this.proxyHeaders=r?.headers??{},wu("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?$H(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(wu("Creating `tls.Socket`: %o",this.connectOpts),n=VH.connect(JH(this.connectOpts))):(wu("Creating `net.Socket`: %o",this.connectOpts),n=tg.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=tg.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,RAe.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:l,buffered:A}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",TAe),r.secureEndpoint?(wu("Upgrading socket connection to TLS"),VH.connect({...$H(JH(r),"host","path","port"),socket:n})):n;n.destroy();let u=new tg.Socket({writable:!1});return u.readable=!0,e.once("socket",d=>{wu("Replaying proxy buffer for failed request"),(0,wAe.default)(d.listenerCount("data")>0),d.push(A),d.push(null)}),u}};rg.protocols=["http","https"];as.HttpsProxyAgent=rg;function TAe(t){t.resume()}function $H(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var e2=g(ur=>{"use strict";var PAe=ur&&ur.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),DAe=ur&&ur.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XH=ur&&ur.__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)&&PAe(e,t,r);return DAe(e,t),e};Object.defineProperty(ur,"__esModule",{value:!0});ur.req=ur.json=ur.toBuffer=void 0;var kAe=XH(require("http")),vAe=XH(require("https"));async function ZH(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}ur.toBuffer=ZH;async function MAe(t){let r=(await ZH(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}ur.json=MAe;function LAe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?vAe:kAe).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}ur.req=LAe});var n2=g(Ur=>{"use strict";var r2=Ur&&Ur.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),FAe=Ur&&Ur.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),s2=Ur&&Ur.__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)&&r2(e,t,r);return FAe(e,t),e},UAe=Ur&&Ur.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&r2(e,t,r)};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Agent=void 0;var _Ae=s2(require("net")),t2=s2(require("http")),OAe=require("https");UAe(e2(),Ur);var an=Symbol("AgentBaseInternalState"),Rb=class extends t2.Agent{constructor(e){super(e),this[an]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new _Ae.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?OAe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof t2.Agent)return a.addRequest(e,n);this[an].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[an].currentSocket;if(this[an].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[an].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[an]&&(this[an].defaultPort=e)}get protocol(){return this[an].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[an]&&(this[an].protocol=e)}};Ur.Agent=Rb});var a2=g(cs=>{"use strict";var GAe=cs&&cs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),qAe=cs&&cs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),o2=cs&&cs.__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)&&GAe(e,t,r);return qAe(e,t),e},HAe=cs&&cs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cs,"__esModule",{value:!0});cs.HttpProxyAgent=void 0;var zAe=o2(require("net")),YAe=o2(require("tls")),VAe=HAe(Zh()),JAe=require("events"),$Ae=n2(),i2=require("url"),Zc=(0,VAe.default)("http-proxy-agent"),sg=class extends $Ae.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new i2.URL(e):e,this.proxyHeaders=r?.headers??{},Zc("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?WAe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new i2.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let A=c[l];A&&e.setHeader(l,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Zc("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Zc("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`);if(d===-1){rg("have not received end of HTTP headers yet..."),i();return}let m=u.slice(0,d).toString("ascii").split(`\r
`),p=m.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=p.split(" "),E=+f[1],g=f.slice(2).join(" "),y={};for(let C of m){if(!C)continue;let I=C.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let w=C.slice(0,I).toLowerCase(),D=C.slice(I+1).trimStart(),_=y[w];typeof _=="string"?y[w]=[_,D]:Array.isArray(_)?_.push(D):y[w]=D}rg("got proxy server response: %o %o",p,y),o(),e({connect:{statusCode:E,statusText:g,headers:y},buffered:u})}t.on("error",c),t.on("end",a),i()})}Cl.parseProxyResponse=ppe});var bY=h(hn=>{"use strict";var hpe=hn&&hn.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fpe=hn&&hn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xY=hn&&hn.__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)&&hpe(e,t,r);return fpe(e,t),e},wY=hn&&hn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hn,"__esModule",{value:!0});hn.HttpsProxyAgent=void 0;var ng=xY(require("net")),IY=xY(require("tls")),gpe=wY(require("assert")),ype=wY(tg()),Epe=EY(),Cpe=require("url"),Ipe=CY(),Ad=(0,ype.default)("https-proxy-agent"),BY=t=>t.servername===void 0&&t.host&&!ng.isIP(t.host)?{...t,servername:t.host}:t,sg=class extends Epe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Cpe.URL(e):e,this.proxyHeaders=r?.headers??{},Ad("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?QY(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:"?(Ad("Creating `tls.Socket`: %o",this.connectOpts),s=IY.connect(BY(this.connectOpts))):(Ad("Creating `net.Socket`: %o",this.connectOpts),s=ng.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=ng.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let c=(0,Ipe.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:l,buffered:A}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",Bpe),r.secureEndpoint?(Ad("Upgrading socket connection to TLS"),IY.connect({...QY(BY(r),"host","path","port"),socket:s})):s;s.destroy();let u=new ng.Socket({writable:!1});return u.readable=!0,e.once("socket",d=>{Ad("Replaying proxy buffer for failed request"),(0,gpe.default)(d.listenerCount("data")>0),d.push(A),d.push(null)}),u}};sg.protocols=["http","https"];hn.HttpsProxyAgent=sg;function Bpe(t){t.resume()}function QY(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var RY=h(hr=>{"use strict";var Qpe=hr&&hr.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xpe=hr&&hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NY=hr&&hr.__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)&&Qpe(e,t,r);return xpe(e,t),e};Object.defineProperty(hr,"__esModule",{value:!0});hr.req=hr.json=hr.toBuffer=void 0;var wpe=NY(require("http")),bpe=NY(require("https"));async function SY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}hr.toBuffer=SY;async function Npe(t){let r=(await SY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}hr.json=Npe;function Spe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?bpe:wpe).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}hr.req=Spe});var kY=h(Hr=>{"use strict";var vY=Hr&&Hr.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Rpe=Hr&&Hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DY=Hr&&Hr.__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)&&vY(e,t,r);return Rpe(e,t),e},Ppe=Hr&&Hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vY(e,t,r)};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Agent=void 0;var vpe=DY(require("net")),PY=DY(require("http")),Dpe=require("https");Ppe(RY(),Hr);var Es=Symbol("AgentBaseInternalState"),ab=class extends PY.Agent{constructor(e){super(e),this[Es]={}}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 vpe.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))?Dpe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof PY.Agent)return a.addRequest(e,s);this[Es].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Es].currentSocket;if(this[Es].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Es].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Es]&&(this[Es].defaultPort=e)}get protocol(){return this[Es].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Es]&&(this[Es].protocol=e)}};Hr.Agent=ab});var LY=h(fn=>{"use strict";var kpe=fn&&fn.__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:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tpe=fn&&fn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MY=fn&&fn.__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)&&kpe(e,t,r);return Tpe(e,t),e},Mpe=fn&&fn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fn,"__esModule",{value:!0});fn.HttpProxyAgent=void 0;var Lpe=MY(require("net")),_pe=MY(require("tls")),Fpe=Mpe(tg()),Upe=require("events"),Ope=kY(),TY=require("url"),Il=(0,Fpe.default)("http-proxy-agent"),ig=class extends Ope.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new TY.URL(e):e,this.proxyHeaders=r?.headers??{},Il("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?qpe(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",o=`${s}//${i}`,a=new TY.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let l=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let A=c[l];A&&e.setHeader(l,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Il("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Il("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+s.substring(n),Zc("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Zc("Creating `tls.Socket`: %o",this.connectOpts),i=YAe.connect(this.connectOpts)):(Zc("Creating `net.Socket`: %o",this.connectOpts),i=zAe.connect(this.connectOpts)),await(0,JAe.once)(i,"connect"),i}};sg.protocols=["http","https"];cs.HttpProxyAgent=sg;function WAe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var R2=g(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.state=void 0;fg.state={instrumenterImplementation:void 0}});var V2=g(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.state=void 0;Bg.state={operationRequestMap:new WeakMap}});var bV=g(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var hge=require("os"),gge=require("util");function fge(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Ege=fge(gge);function yge(t,...e){process.stderr.write(`${Ege.default.format(t,...e)}${hge.EOL}`)}var pV=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,gV,aS=[],cS=[],qf=[];pV&&lS(pV);var fV=Object.assign(t=>EV(t),{enable:lS,enabled:AS,disable:Cge,log:yge});function lS(t){gV=t,aS=[],cS=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?cS.push(new RegExp(`^${s.substr(1)}$`)):aS.push(new RegExp(`^${s}$`));for(let s of qf)s.enabled=AS(s.namespace)}function AS(t){if(t.endsWith("*"))return!0;for(let e of cS)if(e.test(t))return!1;for(let e of aS)if(e.test(t))return!0;return!1}function Cge(){let t=gV||"";return lS(""),t}function EV(t){let e=Object.assign(r,{enabled:AS(t),destroy:Ige,log:fV.log,namespace:t,extend:Bge});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return qf.push(e),e}function Ige(){let t=qf.indexOf(this);return t>=0?(qf.splice(t,1),!0):!1}function Bge(t){let e=EV(`${this.namespace}:${t}`);return e.log=this.log,e}var dd=fV,yV=new Set,Of=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Hf,zf=dd("azure");zf.log=(...t)=>{dd.log(...t)};var uS=["verbose","info","warning","error"];Of&&(QV(Of)?CV(Of):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Of}'; logging is not enabled. Acceptable values: ${uS.join(", ")}.`));function CV(t){if(t&&!QV(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${uS.join(",")}`);Hf=t;let e=[];for(let r of yV)BV(r)&&e.push(r.namespace);dd.enable(e.join(","))}function Qge(){return Hf}var hV={verbose:400,info:300,warning:200,error:100};function bge(t){let e=zf.extend(t);return IV(zf,e),{error:Gf(e,"error"),warning:Gf(e,"warning"),info:Gf(e,"info"),verbose:Gf(e,"verbose")}}function IV(t,e){e.log=(...r)=>{t.log(...r)}}function Gf(t,e){let r=Object.assign(t.extend(e),{level:e});if(IV(t,r),BV(r)){let s=dd.disable();dd.enable(s+","+r.namespace)}return yV.add(r),r}function BV(t){return!!(Hf&&hV[t.level]<=hV[Hf])}function QV(t){return uS.includes(t)}fl.AzureLogger=zf;fl.createClientLogger=bge;fl.getLogLevel=Qge;fl.setLogLevel=CV});var pS=g(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});var El=new WeakMap,Yf=new WeakMap,md=class t{constructor(){this.onabort=null,El.set(this,[]),Yf.set(this,!1)}get aborted(){if(!Yf.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Yf.get(this)}static get none(){return new t}addEventListener(e,r){if(!El.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");El.get(this).push(r)}removeEventListener(e,r){if(!El.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=El.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function wV(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=El.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Yf.set(t,!0)}var dS=class extends Error{constructor(e){super(e),this.name="AbortError"}},mS=class{constructor(e){if(this._signal=new md,!!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(){wV(this._signal)}static timeout(e){let r=new md,s=setTimeout(wV,e,r);return typeof s.unref=="function"&&s.unref(),r}};pd.AbortController=mS;pd.AbortError=dS;pd.AbortSignal=md});var TV=g(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});var wge=pS(),IS=require("crypto");function xV(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new wge.AbortError(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}s?.addEventListener("abort",l)})}var xge="The delay was aborted.";function Nge(t,e){let r,{ab Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Il("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Il("Creating `tls.Socket`: %o",this.connectOpts),i=_pe.connect(this.connectOpts)):(Il("Creating `net.Socket`: %o",this.connectOpts),i=Lpe.connect(this.connectOpts)),await(0,Upe.once)(i,"connect"),i}};ig.protocols=["http","https"];fn.HttpProxyAgent=ig;function qpe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var sV=h(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.state=void 0;Eg.state={instrumenterImplementation:void 0}});var IV=h(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.state=void 0;xg.state={operationRequestMap:new WeakMap}});var Z3=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var aCe=require("os"),cCe=require("util");function lCe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ACe=lCe(cCe);function uCe(t,...e){process.stderr.write(`${ACe.default.format(t,...e)}${aCe.EOL}`)}var z3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Y3,UR=[],OR=[],zy=[];z3&&qR(z3);var V3=Object.assign(t=>J3(t),{enable:qR,enabled:HR,disable:dCe,log:uCe});function qR(t){Y3=t,UR=[],OR=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?OR.push(new RegExp(`^${n.substr(1)}$`)):UR.push(new RegExp(`^${n}$`));for(let n of zy)n.enabled=HR(n.namespace)}function HR(t){if(t.endsWith("*"))return!0;for(let e of OR)if(e.test(t))return!1;for(let e of UR)if(e.test(t))return!0;return!1}function dCe(){let t=Y3||"";return qR(""),t}function J3(t){let e=Object.assign(r,{enabled:HR(t),destroy:mCe,log:V3.log,namespace:t,extend:pCe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return zy.push(e),e}function mCe(){let t=zy.indexOf(this);return t>=0?(zy.splice(t,1),!0):!1}function pCe(t){let e=J3(`${this.namespace}:${t}`);return e.log=this.log,e}var Kd=V3,W3=new Set,qy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Gy,Yy=Kd("azure");Yy.log=(...t)=>{Kd.log(...t)};var zR=["verbose","info","warning","error"];qy&&(X3(qy)?$3(qy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${qy}'; logging is not enabled. Acceptable values: ${zR.join(", ")}.`));function $3(t){if(t&&!X3(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${zR.join(",")}`);Gy=t;let e=[];for(let r of W3)K3(r)&&e.push(r.namespace);Kd.enable(e.join(","))}function hCe(){return Gy}var G3={verbose:400,info:300,warning:200,error:100};function fCe(t){let e=Yy.extend(t);return j3(Yy,e),{error:Hy(e,"error"),warning:Hy(e,"warning"),info:Hy(e,"info"),verbose:Hy(e,"verbose")}}function j3(t,e){e.log=(...r)=>{t.log(...r)}}function Hy(t,e){let r=Object.assign(t.extend(e),{level:e});if(j3(t,r),K3(r)){let n=Kd.disable();Kd.enable(n+","+r.namespace)}return W3.add(r),r}function K3(t){return!!(Gy&&G3[t.level]<=G3[Gy])}function X3(t){return zR.includes(t)}Ul.AzureLogger=Yy;Ul.createClientLogger=fCe;Ul.getLogLevel=hCe;Ul.setLogLevel=$3});var VR=h(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Ol=new WeakMap,Vy=new WeakMap,Xd=class t{constructor(){this.onabort=null,Ol.set(this,[]),Vy.set(this,!1)}get aborted(){if(!Vy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Vy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ol.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ol.get(this).push(r)}removeEventListener(e,r){if(!Ol.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Ol.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 e4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Ol.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Vy.set(t,!0)}var GR=class extends Error{constructor(e){super(e),this.name="AbortError"}},YR=class{constructor(e){if(this._signal=new Xd,!!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(){e4(this._signal)}static timeout(e){let r=new Xd,n=setTimeout(e4,e,r);return typeof n.unref=="function"&&n.unref(),r}};Zd.AbortController=YR;Zd.AbortError=GR;Zd.AbortSignal=Xd});var i4=h(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var gCe=VR(),ZR=require("crypto");function t4(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new gCe.AbortError(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(n?.aborted)return a();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}n?.addEventListener("abort",l)})}var yCe="The delay was aborted.";function ECe(t,e){let r,{ab Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${vV.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let u=o(l,r);if(u!==void 0)return{response:await e(u).catch(DV({state:r,stateProxy:s,isOperationError:a})),status:A}}return{response:l,status:A}}async function UV(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:A,processResult:u,getError:d,updateState:m,setDelay:p,isDone:h,setErrorAsResult:y}=t,{operationLocation:f}=r.config;if(f!==void 0){let{response:E,status:C}=await efe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:f,getResourceLocation:o,isOperationError:c,options:n});if(LV({status:C,response:E,state:r,stateProxy:s,isDone:h,processResult:u,getError:d,setErrorAsResult:y}),!vV.includes(C)){let I=A?.(E);I&&p(I);let x=a?.(E,r);if(x!==void 0){let F=f!==x;r.config.operationLocation=x,l?.(x,F)}else l?.(f,!1)}m?.(r,E)}}function _V(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function OV(t){return t.headers.location}function GV(t){return t.headers["operation-location"]}function qV(t){return t.headers["azure-asyncoperation"]}function tfe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function HV(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=GV(e),o=qV(e),a=_V({operationLocation:i,azureAsyncOperation:o}),c=OV(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:tfe({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function zV(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 wS(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 Ia.verbose(`LRO: unrecognized operation status: ${e}`),e}}function rfe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return zV({status:r,statusCode:t.statusCode})}function sfe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return zV({status:i,statusCode:t.statusCode})}function wS(t){return t===202?"running":t<300?"succeeded":"failed"}function YV({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?nfe(new Date(e)):r*1e3}}function VV(t){let e=t.flatResponse.error;if(!e){Ia.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ia.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function nfe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function JV(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return wS(e.rawResponse.statusCode);case"Body":return xS(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function ife(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return FV({init:async()=>{let o=await n.sendInitialRequest(),a=HV({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:JV,setErrorAsResult:i})}function $V({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return _V({operationLocation:GV(t),azureAsyncOperation:qV(t)});case"ResourceLocation":return OV(t);default:return}}function xS({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return rfe(t);case"ResourceLocation":return wS(t.statusCode);case"Body":return sfe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function WV({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}bl.base64decode=qfe;function Hfe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Ci[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Ci[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Ci[n|s>>6],e+=Ci[s&63],r=0;break}return r&&(e+=Ci[n],e+="=",r==1&&(e+="=")),e}bl.base64encode=Hfe});var bJ=g(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.utf8read=void 0;var LS=t=>String.fromCharCode.apply(String,t);function zfe(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(LS(s)),n=0);return r.length?(n&&r.push(LS(s.slice(0,n))),r.join("")):LS(s.slice(0,n))}AE.utf8read=zfe});var Bd=g(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.WireType=kn.mergeBinaryOptions=kn.UnknownFieldHandler=void 0;var Yfe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Yfe=kn.UnknownFieldHandler||(kn.UnknownFieldHandler={}));function Vfe(t,e){return Object.assign(Object.assign({},t),e)}kn.mergeBinaryOptions=Vfe;var Jfe;(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"})(Jfe=kn.WireType||(kn.WireType={}))});var dE=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.varint32read=Er.varint32write=Er.int64toString=Er.int64fromString=Er.varint64write=Er.varint64read=void 0;function $fe(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Er.varint64read=$fe;function Wfe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Er.varint64write=Wfe;var uE=65536*65536;function jfe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let c=Number(t.slice(o,a));n*=r,s=s*r+c,s>=uE&&(n=n+(s/uE|0),s=s%uE)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Er.int64fromString=jfe;function Kfe(t,e){if(e>>>0<=2097151)return""+(uE*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(A,u){let d=A?String(A):"";return u?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(i,1)}Er.int64toString=Kfe;function Xfe(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)}}Er.varint32write=Xfe;function Zfe(){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}Er.varint32read=Zfe});var ho=g(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.PbLong=po.PbULong=po.detectBi=void 0;var Qd=dE(),xe;function wJ(){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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}po.detectBi=wJ;wJ();function xJ(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var NJ=/^-?[0-9]+$/,pE=4294967296,mE=2147483648,hE=class{c Line truncated
`)}};_E.RpcError=lR});var uR=g(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.mergeRpcOptions=void 0;var s$=it();function Iye(t,e){if(!e)return t;let r={};OE(t,r),OE(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=s$.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=s$.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},OE(t.meta,r.meta),OE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}GE.mergeRpcOptions=Iye;function OE(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var mR=g(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.Deferred=xa.DeferredState=void 0;var Ln;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ln=xa.DeferredState||(xa.DeferredState={}));var dR=class{constructor(e=!0){this._state=Ln.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ln.PENDING)throw new Error(`cannot resolve ${Ln[this.state].toLowerCase()}`);this._resolve(e),this._state=Ln.RESOLVED}reject(e){if(this.state!==Ln.PENDING)throw new Error(`cannot reject ${Ln[this.state].toLowerCase()}`);this._reject(e),this._state=Ln.REJECTED}resolvePending(e){this._state===Ln.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ln.PENDING&&this.reject(e)}};xa.Deferred=dR});var hR=g(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.RpcOutputStreamController=void 0;var n$=mR(),Na=it(),pR=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Na.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Na.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){Na.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(){Na.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:()=>{let e=this._itState;Na.assert(e,"bad state"),Na.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 n$.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Na.assert(s.state==n$.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};qE.RpcOutputStreamController=pR});var fR=g(Pl=>{"use strict";var Bye=Pl&&Pl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Pl,"__esModule",{value:!0});Pl.UnaryCall=void 0;var gR=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return Bye(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};Pl.UnaryCall=gR});var yR=g(Dl=>{"use strict";var Qye=Dl&&Dl.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Dl,"__esModule",{value:!0});Dl.ServerStreamingCall=void 0;var ER=class{constructor(e,r,s,n Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function P_(t,e){if(process.env.GITHUB_OUTPUT||"")return Ey("OUTPUT",yy(t,e));process.stdout.write(aQ.EOL),bi("set-output",{name:t},Gn(e))}function D_(t){process.exitCode=oQ.Failure,Lc(t)}function Ji(){return process.env.RUNNER_DEBUG==="1"}function B(t){bi("debug",{},t)}function Lc(t,e={}){bi("error",hy(e),t instanceof Error?t.toString():t)}function dt(t,e={}){bi("warning",hy(e),t instanceof Error?t.toString():t)}function oe(t){process.stdout.write(t+aQ.EOL)}function Gre(t){fy("group",t)}function qre(){fy("endgroup")}function si(t,e){return Ore(this,void 0,void 0,function*(){Gre(t);let r;try{r=yield e()}finally{qre()}return r})}function $p(t,e){if(process.env.GITHUB_STATE||"")return Ey("STATE",yy(t,e));bi("save-state",{name:t},Gn(e))}function k_(t){return process.env[`STATE_${t}`]||""}var jE=Q(require("fs"),1),ZR=Q(require("os"),1),eT=Q(require("path"),1);var cr=Q(require("fs"),1);var Uie=Q(NQ(),1);var ah=Q(require("os"),1),$i=Q(require("path"),1);var rs=Q(NQ(),1);var QG=require("assert");var BG=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};var fwe=process.platform==="win32",Ewe=process.platform==="darwin";function SQ(t,e,r,s){return BG(this,void 0,void 0,function*(){if(r=rs.clean(r)||r,s=s||ah.arch(),B(`Caching tool ${e} ${r} ${s}`),B(`source dir: ${t}`),!cr.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let n=yield Gie(e,r,s);for(let i of cr.readdirSync(t)){let o=$i.join(t,i);yield I_(o,n,{recursive:!0})}return qie(e,r,s),n})}function bG(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||ah.arch(),!wG(e)){let n=Oie(t,r);e=Hie(n,e)}let s="";if(e){e=rs.clean(e)||"";let n=$i.join(ch(),t,e,r);B(`checking cache: ${n}`),cr.existsSync(n)&&cr.existsSync(`${n}.complete`)?(B(`Found tool in cache ${t} ${e} ${r}`),s=n):B("not found")}return s}function Oie(t,e){let r=[];e=e||ah.arch();let s=$i.join(ch(),t);if(cr.existsSync(s)){let n=cr.readdirSync(s);for(let i of n)if(wG(i)){let o=$i.join(s,i,e||"");cr.existsSync(o)&&cr.existsSync(`${o}.complete`)&&r.push(i)}}return r}function Gie(t,e,r){return BG(this,void 0,void 0,function*(){let s=$i.join(ch(),t,rs.clean(e)||e,r||"");B(`destination ${s}`);let n=`${s}.complete`;return yield ZB(s),yield ZB(n),yield Vo(s),s})}function qie(t,e,r){let n=`${$i.join(ch(),t,rs.clean(e)||e,r||"")}.complete`;cr.writeFileSync(n,""),B("finished caching tool")}function wG(t){let e=rs.clean(t)||"";B(`isExplicit: ${e}`);let r=rs.valid(e)!=null;return B(`explicit? ${r}`),r}function Hie(t,e){let r="";B(`evaluating ${t.length} versions`),t=t.sort((s,n)=>rs.gt(s,n)?1:-1);for(let s=t.length-1;s>=0;s--){let n=t[s];if(rs.satisfies(n,e)){r=n;break}}return r?B(`matched: ${r}`):B("match not found"),r}function ch(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,QG.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}var Fd=Q(require("path"),1);var qc=Q(require("fs"),1);function RQ(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,B(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,B(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,B(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,B(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,B(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}var mh=Q(require("path"),1);var Uc=Q(require("path"),1),Wi=Q(require("assert"),1),ji=process.platform==="win32";function ii(t){if(t=ni(t),ji&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Uc.dirname(t);return ji&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ni(e)),e}function lh(t,e){if((0,Wi.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,Wi.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),iu(e))return e;if(ji){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,Wi.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Rs(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,Wi.defaLine truncated
Polling status: ${l4.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let u=o(l,r);if(u!==void 0)return{response:await e(u).catch(a4({state:r,stateProxy:n,isOperationError:a})),status:A}}return{response:l,status:A}}async function m4(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:A,processResult:u,getError:d,updateState:m,setDelay:p,isDone:f,setErrorAsResult:E}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:y,status:C}=await VCe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:g,getResourceLocation:o,isOperationError:c,options:s});if(u4({status:C,response:y,state:r,stateProxy:n,isDone:f,processResult:u,getError:d,setErrorAsResult:E}),!l4.includes(C)){let I=A?.(y);I&&p(I);let w=a?.(y,r);if(w!==void 0){let D=g!==w;r.config.operationLocation=w,l?.(w,D)}else l?.(g,!1)}m?.(r,y)}}function p4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function h4(t){return t.headers.location}function f4(t){return t.headers["operation-location"]}function g4(t){return t.headers["azure-asyncoperation"]}function JCe(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function y4(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=f4(e),o=g4(e),a=p4({operationLocation:i,azureAsyncOperation:o}),c=h4(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:JCe({requestMethod:l,location:c,requestPath:n,resourceLocationConfig:s})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}function E4(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 nP(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 qa.verbose(`LRO: unrecognized operation status: ${e}`),e}}function WCe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return E4({status:r,statusCode:t.statusCode})}function $Ce(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 E4({status:i,statusCode:t.statusCode})}function nP(t){return t===202?"running":t<300?"succeeded":"failed"}function C4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?jCe(new Date(e)):r*1e3}}function I4(t){let e=t.flatResponse.error;if(!e){qa.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){qa.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function jCe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function B4(t){let{response:e,state:r,operationLocation:n}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return nP(e.rawResponse.statusCode);case"Body":return sP(e,r);default:return"running"}}let i=s();return i==="running"&&n===void 0?"succeeded":i}async function KCe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return d4({init:async()=>{let o=await s.sendInitialRequest(),a=y4({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:n?({flatResponse:o},a)=>n(o,a):({flatResponse:o})=>o,getOperationStatus:B4,setErrorAsResult:i})}function Q4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return p4({operationLocation:f4(t),azureAsyncOperation:g4(t)});case"ResourceLocation":return h4(t);default:return}}function sP({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return WCe(t);case"ResourceLocation":return nP(t.statusCode);case"Body":return $Ce(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}function x4({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Vl.base64decode=TIe;function MIe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=ki[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=ki[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=ki[s|n>>6],e+=ki[n&63],r=0;break}return r&&(e+=ki[s],e+="=",r==1&&(e+="=")),e}Vl.base64encode=MIe});var Z4=h(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.utf8read=void 0;var pP=t=>String.fromCharCode.apply(String,t);function LIe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)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(pP(n)),s=0);return r.length?(s&&r.push(pP(n.slice(0,s))),r.join("")):pP(n.slice(0,s))}uE.utf8read=LIe});var am=h(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.WireType=Ys.mergeBinaryOptions=Ys.UnknownFieldHandler=void 0;var _Ie;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},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=r=>r&&Array.isArray(r[t.symbol])})(_Ie=Ys.UnknownFieldHandler||(Ys.UnknownFieldHandler={}));function FIe(t,e){return Object.assign(Object.assign({},t),e)}Ys.mergeBinaryOptions=FIe;var UIe;(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"})(UIe=Ys.WireType||(Ys.WireType={}))});var mE=h(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.varint32read=Br.varint32write=Br.int64toString=Br.int64fromString=Br.varint64write=Br.varint64read=void 0;function OIe(){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")}Br.varint64read=OIe;function qIe(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)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 o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Br.varint64write=qIe;var dE=65536*65536;function HIe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=dE&&(s=s+(n/dE|0),n=n%dE)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Br.int64fromString=HIe;function zIe(t,e){if(e>>>0<=2097151)return""+(dE*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(A,u){let d=A?String(A):"";return u?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(i,1)}Br.int64toString=zIe;function GIe(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)}}Br.varint32write=GIe;function YIe(){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}Br.varint32read=YIe});var vo=h(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PbLong=Po.PbULong=Po.detectBi=void 0;var cm=mE(),Ne;function eW(){let t=new DataView(new ArrayBuffer(8));Ne=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("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Po.detectBi=eW;eW();function tW(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var rW=/^-?[0-9]+$/,hE=4294967296,pE=2147483648,fE=class{c Line truncated
`)}};OE.RpcError=qP});var zP=h(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.mergeRpcOptions=void 0;var DW=ct();function mQe(t,e){if(!e)return t;let r={};qE(t,r),qE(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=DW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=DW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},qE(t.meta,r.meta),qE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}HE.mergeRpcOptions=mQe;function qE(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}});var YP=h(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.Deferred=Va.DeferredState=void 0;var Ws;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ws=Va.DeferredState||(Va.DeferredState={}));var GP=class{constructor(e=!0){this._state=Ws.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!==Ws.PENDING)throw new Error(`cannot resolve ${Ws[this.state].toLowerCase()}`);this._resolve(e),this._state=Ws.RESOLVED}reject(e){if(this.state!==Ws.PENDING)throw new Error(`cannot reject ${Ws[this.state].toLowerCase()}`);this._reject(e),this._state=Ws.REJECTED}resolvePending(e){this._state===Ws.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ws.PENDING&&this.reject(e)}};Va.Deferred=GP});var JP=h(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.RpcOutputStreamController=void 0;var kW=YP(),Ja=ct(),VP=class{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){Ja.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){Ja.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){Ja.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(){Ja.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:()=>{let e=this._itState;Ja.assert(e,"bad state"),Ja.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 kW.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Ja.assert(n.state==kW.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};zE.RpcOutputStreamController=VP});var $P=h(Zl=>{"use strict";var pQe=Zl&&Zl.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.UnaryCall=void 0;var WP=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 pQe(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}})}};Zl.UnaryCall=WP});var KP=h(eA=>{"use strict";var hQe=eA&&eA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(eA,"__esModule",{value:!0});eA.ServerStreamingCall=void 0;var jP=class{constructor(e,r,n,s 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`))}function uwe(){Object.keys(dC).forEach(function(t){delete dC[t]})}});var pC=h(Ks=>{"use strict";Ks.__esModule=!0;Ks.HandlebarsEnvironment=jv;function J8(t){return t&&t.__esModule?t:{default:t}}var Xa=sr(),dwe=Xr(),Wv=J8(dwe),mwe=Gv(),pwe=z8(),hwe=Vv(),mC=J8(hwe),fwe=Jv(),gwe="4.7.9";Ks.VERSION=gwe;var ywe=8;Ks.COMPILER_REVISION=ywe;var Ewe=7;Ks.LAST_COMPATIBLE_COMPILER_REVISION=Ewe;var Cwe={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"};Ks.REVISION_CHANGES=Cwe;var $v="[object Object]";function jv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},mwe.registerDefaultHelpers(this),pwe.registerDefaultDecorators(this)}jv.prototype={constructor:jv,logger:mC.default,log:mC.default.log,registerHelper:function(e,r){if(Xa.toString.call(e)===$v){if(r)throw new Wv.default("Arg not supported with multiple helpers");Xa.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Xa.toString.call(e)===$v)Xa.extend(this.partials,e);else{if(typeof r>"u")throw new Wv.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Xa.toString.call(e)===$v){if(r)throw new Wv.default("Arg not supported with multiple decorators");Xa.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){fwe.resetLoggedProperties()}};var Iwe=mC.default.log;Ks.log=Iwe;Ks.createFrame=Xa.createFrame;Ks.logger=mC.default});var $8=h((hC,W8)=>{"use strict";hC.__esModule=!0;function Kv(t){this.string=t}Kv.prototype.toString=Kv.prototype.toHTML=function(){return""+this.string};hC.default=Kv;W8.exports=hC.default});var j8=h(Xv=>{"use strict";Xv.__esModule=!0;Xv.wrapHelper=Bwe;function Bwe(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var r$=h(To=>{"use strict";To.__esModule=!0;To.checkRevision=Swe;To.template=Rwe;To.wrapProgram=fC;To.resolvePartial=Pwe;To.invokePartial=vwe;To.noop=e$;function Qwe(t){return t&&t.__esModule?t:{default:t}}function xwe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var wwe=sr(),dA=xwe(wwe),bwe=Xr(),Li=Qwe(bwe),_i=pC(),K8=Gv(),Nwe=j8(),X8=Jv();function Swe(t){var e=t&&t[0]||1,r=_i.COMPILER_REVISION;if(!(e>=_i.LAST_COMPATIBLE_COMPILER_REVISION&&e<=_i.COMPILER_REVISION))if(e<_i.LAST_COMPATIBLE_COMPILER_REVISION){var n=_i.REVISION_CHANGES[r],s=_i.REVISION_CHANGES[e];throw new Li.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 Li.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Rwe(t,e){if(!e)throw new Li.default("No environment passed to template");if(!t||!t.main)throw new Li.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(o,a,c){c.hash&&(a=dA.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var A=l.split(`
`),u=0,d=A.length;u<d&&!(!A[u]&&u+1===d);u++)A[u]=c.indent+A[u];l=A.join(`
`)}return l}else throw new Li.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var s={strict:function(a,c,l){if(!a||!(c in a))throw new Li.default('"'+c+'" not defined in '+a,{loc:l});return s.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||X8.resultIsAllowed(l,s.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,A=0;A<l;A++){var u=a[A]&&s.lookupProperty(a[A],c);if(u!=null)return u}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:dA.escapeExpression,invokePartial:n,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,A,u){var d=this.programs[a],m=this.fn(a);return c||u||A||l?d=fC(this,a,m,c,l,A,u):d||(d=this.programs[a]=fC(this,a,m)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=dA.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;i._setup(a),!a.partial&&t.useData&&(c=Dwe(o,c));var l=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function u(d){return""+t.main(s,d,s.helpers,s.partials,c,A,l)}return u=t$(t.main,u,s,a.depths||[],c,A),u(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)s.protoAccessControl=o.protoAccessControl,s.helpers=o.helpers,s.partials=o.partials,s.decorators=o.decorators,s.hooks=o.hooks;else{var a={};Z8(a,e.helpers,s),Z8(a,o.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=dA.extend({},e.decorators,o.decorators)),s.hooks={},s.protoAccessControl=X8.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;K8.moveHelperToHooks(s,"helperMissing",c),K8.moveHelperToHooks(s,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new Li.default("must pass block params");if(t.useDepths&&!l)throw new Li.default("must pass parent depths");return fC(s,o,t[o],a,0,c,l)},i}function fC(t,e,r,n,s,i,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(A=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||n,i&&[l.blockParams].concat(i),A)}return a=t$(r,a,t,o,n,i),a.program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function Pwe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=gC(r.partials,t)):r.name==="@partial-block"?t=gC(r.data,"partial-block"):t=gC(r.partials,r.name),t}function vwe(t,e,r){var n=gC(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!==e$&&(function(){r.data=_i.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=_i.createFrame(c.data),c.data["partial-block"]=n,i(a,c)},i.partials&&(r.partials=dA.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Li.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function e$(){return""}function gC(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function Dwe(t,e){return(!e||!("root"in e))&&(e=e?_i.createFrame(e):{},e.root=t),e}function t$(t,e,r,n,s,i){if(t.decorator){var o={};e=t.decorator(e,o,r,n&&n[0],s,i,n),dA.extend(e,o)}return e}function Z8(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=kwe(s,r)})}function kwe(t,e){var r=e.lookupProperty;return Nwe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}});var Zv=h((yC,n$)=>{"use strict";yC.__esModule=!0;yC.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}};n$.exports=yC.default});var c$=h((EC,a$)=>{"use strict";EC.__esModule=!0;function tD(t){return t&&t.__esModule?t:{default:t}}function rD(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Twe=pC(),s$=rD(Twe),Mwe=$8(),Lwe=tD(Mwe),_we=Xr(),Fwe=tD(_we),Uwe=sr(),eD=rD(Uwe),Owe=r$(),i$=rD(Owe),qwe=Zv(),Hwe=tD(qwe);function o$(){var t=new s$.HandlebarsEnvironment;return eD.extend(t,s$),t.SafeString=Lwe.default,t.Exception=Fwe.default,t.Utils=eD,t.escapeExpression=eD.escapeExpression,t.VM=i$,t.template=function(e){return i$.template(e,t)},t}var Nm=o$();Nm.create=o$;Hwe.default(Nm);Nm.default=Nm;EC.default=Nm;a$.exports=EC.default});var nD=h((CC,A$)=>{"use strict";CC.__esModule=!0;var l$={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="Mus Line truncated
`+this.lexer.showPosition()+`
Expecting `+de.join(", ")+", got '"+(this.terminals_[I]||I)+"'":At="Parse error on line "+(u+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(At,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:E,expected:de})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+I);switch(_[0]){case 1:o.push(I),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(_[1]),I=null,w?(I=w,w=null):(d=this.lexer.yyleng,A=this.lexer.yytext,u=this.lexer.yylineno,E=this.lexer.yylloc,m>0&&m--);break;case 2:if(ee=this.productions_[_[1]][1],Be.$=a[a.length-ee],Be._$={first_line:c[c.length-(ee||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ee||1)].first_column,last_column:c[c.length-1].last_column},g&&(Be._$.range=[c[c.length-(ee||1)].range[0],c[c.length-1].range[1]]),ge=this.performAction.call(Be,A,d,u,this.yy,_[1],a,c),typeof ge<"u")return ge;ee&&(o=o.slice(0,-1*ee*2),a=a.slice(0,-1*ee),c=c.slice(0,-1*ee)),o.push(this.productions_[_[1]][0]),a.push(Be.$),c.push(Be._$),F=l[o[o.length-2]][o[o.length-1]],o.push(F);break;case 3:return!0}}return!0}},e=(function(){var n={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput: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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,a,c,l,A;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),d=0;d<u.length&&(a=this._input.match(this.rules[u[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(A=o[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,u[c],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})},lex:function(){var i=this.next();return typeof i<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(i){this.begin(i)}};return n.options={},n.performAction=function(i,o,a,c){function l(u,d){return o.yytext=o.yytext.substring(u,o.yyleng-d+u)}var A=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.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 o.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},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 r.prototype=t,t.Parser=r,new r})();IC.default=zwe;u$.exports=IC.default});var wC=h((xC,h$)=>{"use strict";xC.__esModule=!0;function Gwe(t){return t&&t.__esModule?t:{default:t}}var Ywe=Xr(),sD=Gwe(Ywe);function BC(){this.parents=[]}BC.prototype={constructor:BC,mutating:!1,acceptKey:function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!BC.prototype[n.type])throw new sD.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new sD.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},accept:function(e){if(e){if(!this[e.type])throw new sD.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}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:QC,Decorator:QC,BlockStatement:m$,DecoratorBlock:m$,PartialStatement:p$,PartialBlockStatement:function(e){p$.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:QC,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function QC(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function m$(t){Line truncated
`])}),e},each:function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new rc(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof rc?e:(e=bD(e,this,r),new rc(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var o=bD(e[i],r);o!=="undefined"&&n.push([r.quotedString(i),":",o])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(bD(e[n],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};kC.default=j$;K$.exports=kC.default});var n5=h((TC,r5)=>{"use strict";TC.__esModule=!0;function t5(t){return t&&t.__esModule?t:{default:t}}var Z$=pC(),Hbe=Xr(),SD=t5(Hbe),zbe=sr(),Gbe=X$(),e5=t5(Gbe);function yA(t){this.value=t}function EA(){}EA.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=Z$.COMPILER_REVISION,r=Z$.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,n){return zbe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile: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,o=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=i.length;c<l;c++)o=i[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new SD.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 A=this.createFunctionContext(s);if(this.isChild)return A;var u={compiler:this.compilerInfo(),main:A};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var d=this.context,m=d.programs,p=d.decorators;for(c=0,l=m.length;c<l;c++)u[c]=m[c],p[c]&&(u[c+"_d"]=p[c],u.useDecorators=!0);return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),s?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),r.srcName?(u=u.toStringWithSourceMap({file:r.destName}),u.map=u.map&&u.map.toString()):u=u.toString()),u},preamble:function(){this.lastContext=0,this.source=new e5.default(this.options.srcName),this.decorators=new e5.default(this.options.srcName)},createFunctionContext: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(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++i+"="+c,l.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(n);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(i?o.prepend("buffer += "):s=!0,a.add(";"),o=a=void 0),i=!0,r||(n=!1))}),n?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},blockValue: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))},ambiguousBlockValue: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),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append: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)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext: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)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},resolvePath:function(e,r,n,s,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(Ybe(this.options.strict&&i,this,r,n,e));return}for(var a=r.length,c=function(A){o.replaceStack(function(u){var d=o.nameLookup(u,r[A],e);return s?[" && ",d]:[" != null ? ",d," : ",u]})},l=n;l<a;l++)c(l)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash: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))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator: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;"])},invokeHelper:function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),o=[];n&&o.push(i.name),o.push(s),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",i.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},invokeKnownHelper:function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous: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"),o=["(","(helper = ",i," || ",n,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",s.callParams)," : helper))"])},invokePartial:function(e,r,n){var s=[],i=this.setupParams(r,1,s);e&&(r=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?s.unshift(r):s.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),s.push(i),this.push(this.source.functionCall("container.invokePartial","",s))},assignToHash Line truncated
`,e};et.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};et.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};et.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};et.prototype.BlockStatement=et.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};et.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+" }}")};et.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+" }}")};et.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};et.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};et.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};et.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};et.prototype.StringLiteral=function(t){return'"'+t.value+'"'};et.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};et.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};et.prototype.UndefinedLiteral=function(){return"UNDEFINED"};et.prototype.NullLiteral=function(){return"NULL"};et.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(", ")+"}"};et.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var u5=h((N4e,A5)=>{var _C=o5().default,l5=a5();_C.PrintVisitor=l5.PrintVisitor;_C.print=l5.print;A5.exports=_C;function c5(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=_C.compile(n)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=c5,require.extensions[".hbs"]=c5)});var _D=B(require("os"),1);function Ui(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Om(t,e,r){let n=new OC(t,e,r);process.stdout.write(n.toString()+_D.EOL)}function qC(t,e=""){Om(t,{},e)}var LD="::",OC=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=LD+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}=${P5(s)}`)}}return e+=`${LD}${R5(this.message)}`,e}};function R5(t){return Ui(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function P5(t){return Ui(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var FD=B(require("crypto"),1),Hm=B(require("fs"),1),qm=B(require("os"),1);function UD(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Hm.existsSync(r))throw new Error(`Missing file at path: ${r}`);Hm.appendFileSync(r,`${Ui(e)}${qm.EOL}`,{encoding:"utf8"})}function OD(t,e){let r=`ghadelimiter_${FD.randomUUID()}`,n=Ui(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}${qm.EOL}${n}${qm.EOL}${r}`}var Bx=B(require("os"),1);var Fh=B(QA(),1),Yie=B(Qu(),1);var ls;(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]="RequestTi Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function O1(t,e){if(process.env.GITHUB_OUTPUT||"")return UD("OUTPUT",OD(t,e));process.stdout.write(Bx.EOL),Om("set-output",{name:t},Ui(e))}function Pe(t){Om("debug",{},t)}function zh(t){process.stdout.write(t+Bx.EOL)}function soe(t){qC("group",t)}function ioe(){qC("endgroup")}function la(t,e){return noe(this,void 0,void 0,function*(){soe(t);let r;try{r=yield e()}finally{ioe()}return r})}var H1=B(require("os"),1);function ao(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function xx(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function rl(t,e,r){let n=new wx(t,e,r);process.stdout.write(n.toString()+H1.EOL)}function bx(t,e=""){rl(t,{},e)}var q1="::",wx=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=q1+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}=${aoe(s)}`)}}return e+=`${q1}${ooe(this.message)}`,e}};function ooe(t){return ao(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function aoe(t){return ao(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var z1=B(require("crypto"),1),Yh=B(require("fs"),1),Gh=B(require("os"),1);function G1(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Yh.existsSync(r))throw new Error(`Missing file at path: ${r}`);Yh.appendFileSync(r,`${ao(e)}${Gh.EOL}`,{encoding:"utf8"})}function Y1(t,e){let r=`ghadelimiter_${z1.randomUUID()}`,n=ao(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}${Gh.EOL}${n}${Gh.EOL}${r}`}var j1=B(require("os"),1);var Vh=B(QA(),1),loe=B(Qu(),1);var us;(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"})(us||(us={}));var V1;(function(t){t.Accept="accept",t.ContentType="content-type"})(V1||(V1={}));var J1;(function(t){t.ApplicationJson="application/json"})(J1||(J1={}));var sRe=[us.MovedPermanently,us.ResourceMoved,us.SeeOther,us.TemporaryRedirect,us.PermanentRedirect],iRe=[us.BadGateway,us.ServiceUnavailable,us.GatewayTimeout];var $1=require("os"),Ru=require("fs"),Nx=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},{access:Aoe,appendFile:uoe,writeFile:doe}=Ru.promises,W1="GITHUB_STEP_SUMMARY";var Sx=class{constructor(){this._buffer=""}filePath(){return Nx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[W1];if(!e)throw new Error(`Unable to find environment variable for $${W1}. Check if your runtime environment supports job summaries.`);try{yield Aoe(e,Ru.constants.R_OK|Ru.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,o])=>` ${i}="${o}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return Nx(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?doe:uoe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return Nx(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(Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new cu(i));return s.searchPaths.push(...PQ(s.patterns)),s})}static stat(e,r,s){return FQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield qc.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){B(`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 n=yield qc.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield qc.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){B(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var yoe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function XG(t,e){return yoe(this,void 0,void 0,function*(){return yield dh.create(t,e)})}var Sh=Q(require("crypto"),1),Yc=Q(require("fs"),1),Ko=Q(require("path"),1),H1=Q(G1(),1),z1=Q(require("util"),1);var fu;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(fu||(fu={}));var Wt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Wt||(Wt={}));var vr;(function(t){t.GNU="gnu",t.BSD="bsd"})(vr||(vr={}));var xh=2,Nh=5e3,sb=5e3,nb=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,q1=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Eu="cache.tar",ib="manifest.txt",Sxe=10*Math.pow(1024,3);var zc=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},gle=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},o)}},fle="1.0";function yu(){return zc(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Ko.join(s,"actions","temp")}let r=Ko.join(e,Sh.randomUUID());return yield Vo(r),r})}function sn(t){return Yc.statSync(t).size}function ob(t){return zc(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield XG(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,A=gle(c.globGenerator()),u;u=yield A.next(),e=u.done,!e;l=!0){n=u.value,l=!1;let m=Ko.relative(a,n).replace(new RegExp(`\\${Ko.sep}`,"g"),"/");B(`Matched: ${m}`),m===""?o.push("."):o.push(`${m}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return o})}function Cu(t){return zc(this,void 0,void 0,function*(){return z1.promisify(Yc.unlink)(t)})}function Y1(t){return zc(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Vi(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){B(n.message)}return s=s.trim(),B(s),s})}function Iu(){return zc(this,void 0,void 0,function*(){let t=yield Y1("zstd",["--quiet"]),e=H1.clean(t);return B(`zstd version: ${e}`),t===""?Wt.Gzip:Wt.ZstdWithoutLong})}function eo(t){return t===Wt.Gzip?fu.Gzip:fu.Zstd}function V1(){return zc(this,void 0,void 0,function*(){return Yc.existsSync(nb)?nb:(yield Y1("tar")).toLowerCase().includes("gnu tar")?ar("tar"):""})}function ab(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Vc(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(fle),Sh.createHash("sha256").update(s.join("|")).digest("hex")}function J1(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Bl=Q(require("fs"),1),IJ=require("url");var nn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var $1=require("node:os"),W1=Q(require("node:util"),1),j1=Q(require("node:process"),1);function K1(t,...e){j1.default.stderr.write(`${W1.default.format(t,...e)}${$1.EOL}`)}var X1=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,eH,cb=[],lb=[],Th=[];X1&&Ab(X1);var tH=Object.assign(t=>rH(t),{enable:Ab,enabled:ub,disable:Ele,log:K1});function Ab(t){eH=t,cb=[],lb=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?lb.push(r.substring(1)):cb.push(r);for(let r of Th)r.enabled=ub(r.namespace)}function ub(t){if(t.endsWith("*"))return!0;for(let e of lb)if(Z1(t,e))return!1;for(let e of cb)if(Z1(t,e))return!0;return!1}function Z1(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],m="";for(let p of e)p==="*"&&m==="*"||(m=p,d.push(p));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let l=s===t.length,A=n===r.length,u=n===r.length-1&&r[n]==="*";return l&&(A||u)}function Ele(){let t=eH||"";return Ab(""),t}function rH(t){let e=Object.assign(r,{enabled:ub(t),destroy:yle,log:tH.log,namespace:t,extend:Cle});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Th.push(e),e}function yle(){let t=Th.indexOf(this);return t>=0?(Th.splice(t,1),!0):!1}function Cle(t){let e=rH(`${this.namespace}:${t}`);return e.log=this.log,e}var Jc=tH;var db=["verbose","info","warning","error"],sH={verbose:400,info:300,warning:200,error:100};function nH(t,e){e.log=(...r)=>{t.log(...r)}}function iH(t){return db.includes(t)}function Ph(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Jc(t.namespace);n.log=(...A)=>{Jc.log(...A)};function i(A){if(A&&!iH(A))throw new Error(`Unknown log level '${A}'. Acceptable values: ${db.join(",")}`);s=A;let u=[];for(let d of e)o(d)&&u.push(d.namespace);Jc.enable(u.join(","))}r&&(iH(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${db.join(", ")}.`));function o(A){return!!(s&&sH[A.level]<=sH[s])}function a(A,u){let d=Object.assign(A.extend(u),{level:u});if(nH(A,d),o(d)){let m=Jc.disable();Jc.enable(m+","+d.namespace)}return e.add(d),d}function c(){return s}function l(A){let u=n.extend(A);return nH(n,u),{error:a(u,"error"),warning:a(u,"warning"),info:a(u,"info"),verbose:a(u,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:l,logger:n}}var oH=Ph({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Ile=oH.logger;function Bu(t){return oH.createClientLogger(t)}function Dh(t){return t.toLowerCase()}function*Ble(t){for(let e of t.values())yield[e.name,e.value]}var mb=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(Dh(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(Dh(e))?.value}has(e){return this._headersMap.has(Dh(e))}delete(e){this._headersMap.delete(Dh(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.values())r[s.name]=s.value;else for(let[s,n]of t Line truncated
${wle.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Mh(t){return t instanceof jt?!0:Zo(t)&&t.name==="RestError"}function lr(t,e){return Buffer.from(t,e)}var Lh=Q(require("node:http"),1),Fh=Q(require("node:https"),1),fb=Q(require("node:zlib"),1),uH=require("node:stream");var is=Bu("ts-http-runtime");var xle={};function Qu(t){return t&&typeof t.pipe=="function"}function AH(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function dH(t){return t&&typeof t.byteLength=="number"}var Uh=class extends uH.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},Eb=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new nn("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let l=new Ps;is.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=Tle(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,h=new Uh(p);h.on("error",y=>{is.error("Error in upload progress",y)}),Qu(a)?a.pipe(h):h.end(a),a=h}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let A=Nle(l),d={status:l.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?Sle(l,A):l;let m=e.onDownloadProgress;if(m){let p=new Uh(m);p.on("error",h=>{is.error("Error in download progress",h)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Rle(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();Qu(a)&&(l=AH(a));let A=Promise.resolve();Qu(c)&&(A=AH(c)),Promise.all([l,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(u=>{is.warning("Error when cleaning up abortListener on httpRequest",u)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let A=i?Lh.default.request(a,c):Fh.default.request(a,c);A.once("error",u=>{l(new jt(u.message,{code:u.code??jt.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let u=new nn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(u),l(u)}),s&&Qu(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):dH(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(is.error("Unrecognized body type",s),l(new jt("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?Lh.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Lh.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Fh.default.globalAgent;let n=e.tlsSettings??xle,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(is.info("No cached TLS Agent exist, creating a new Agent"),i=new Fh.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Nle(t){let e=Mr();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function Sle(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=fb.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=fb.default.createInflate();return t.pipe(s),s}return t}function Rle(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new jt(`Error reading response as text: ${n.message}`,{code:jt.PARSE_ERROR}))})})}function Tle(t){return t?Buffer.isBuffer(t)?t.length:Qu(t)?null:dH(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function mH(){return new Eb}function _h(){return mH()}var yb="logPolicy";function Oh(t={}){let e=t.logger??is.info,r=new Ps({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function cue(t){return t instanceof Uint8Array?t.byteLength:cg(t)?t.size===-1?void 0:t.size:void 0}function lue(t){let e=0;for(let r of t){let s=cue(r);if(s===void 0)return;e+=s}return e}async function Aue(t,e,r){let s=[lr(`--${r}`,"utf-8"),...e.flatMap(i=>[lr(`\r
`,"utf-8"),lr(aue(i.headers),"utf-8"),lr(`\r
`,"utf-8"),i.body,lr(`\r
--${r}`,"utf-8")]),lr(`--\r
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Yu(i));return n.searchPaths.push(...ow(n.patterns)),n})}static stat(e,r,n){return dw(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ll.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Pe(`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 ll.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield ll.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){Pe(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var rAe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function bH(t,e){return rAe(this,void 0,void 0,function*(){return yield mf.create(t,e)})}var Rf=B(require("crypto"),1),dl=B(require("fs"),1),ga=B(require("path"),1),gG=B(hG(),1),yG=B(require("util"),1);var ed;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ed||(ed={}));var Xt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xt||(Xt={}));var Fr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Fr||(Fr={}));var Nf=2,Sf=5e3,Dw=5e3,kw=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,fG=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,td="cache.tar",Tw="manifest.txt",xDe=10*Math.pow(1024,3);var ul=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},Zde=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(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},o)}},eme="1.0";function rd(){return ul(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=ga.join(n,"actions","temp")}let r=ga.join(e,Rf.randomUUID());return yield ca(r),r})}function hs(t){return dl.statSync(t).size}function Mw(t){return ul(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield bH(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,A=Zde(c.globGenerator()),u;u=yield A.next(),e=u.done,!e;l=!0){s=u.value,l=!1;let m=ga.relative(a,s).replace(new RegExp(`\\${ga.sep}`,"g"),"/");N(`Matched: ${m}`),m===""?o.push("."):o.push(`${m}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return o})}function nd(t){return ul(this,void 0,void 0,function*(){return yG.promisify(dl.unlink)(t)})}function EG(t){return ul(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield oo(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){N(s.message)}return n=n.trim(),N(n),n})}function sd(){return ul(this,void 0,void 0,function*(){let t=yield EG("zstd",["--quiet"]),e=gG.clean(t);return N(`zstd version: ${e}`),t===""?Xt.Gzip:Xt.ZstdWithoutLong})}function fo(t){return t===Xt.Gzip?ed.Gzip:ed.Zstd}function CG(){return ul(this,void 0,void 0,function*(){return dl.existsSync(kw)?kw:(yield EG("tar")).toLowerCase().includes("gnu tar")?ur("tar"):""})}function Lw(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ml(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(eme),Rf.createHash("sha256").update(n.join("|")).digest("hex")}function IG(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var od=B(require("http"),1),Uw=B(require("https"),1);function _w(t){let e=t.protocol==="https:";if(tme(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 vf(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new vf(`http://${r}`)}else return}function tme(t){if(!t.hostname)return!1;let e=t.hostname;if(rme(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(o=>o.trim().toUpperCase()).filter(o=>o))if(i==="*"||s.some(o=>o===i||o.endsWith(`.${i}`)||i.startsWith(".")&&o.endsWith(`${i}`)))return!0;return!1}function rme(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var vf=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var go=B(QA(),1),BG=B(Qu(),1),st=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},Ve;(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"})(Ve||(Ve={}));var Zt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Zt||(Zt={}));var yi;(function(t){t.ApplicationJson="application/json"})(yi||(yi={}));var sme=[Ve.MovedPermanently,Ve.ResourceMoved,Ve.SeeOther,Ve.TemporaryRedirect,Ve.PermanentRedirect],ime=[Ve.BadGateway,Ve.ServiceUnavailable,Ve.GatewayTimeout],ome=["OPTIONS","GET","DELETE","HEAD"],ame=10,cme=5,fs=class t extends Error{constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},Fw=class{constructor(e){this.message=e}readBody(){return st(this,void 0,void 0,function*(){return new Promise(e=>st(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return st(this,void 0,void 0,function*(){re Line truncated
${gme.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function _f(t){return t instanceof er?!0:Ea(t)&&t.name==="RestError"}function mr(t,e){return Buffer.from(t,e)}var Ff=B(require("node:http"),1),Uf=B(require("node:https"),1),$w=B(require("node:zlib"),1),OG=require("node:stream");var mn=ad("ts-http-runtime");var yme={};function cd(t){return t&&typeof t.pipe=="function"}function UG(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function qG(t){return t&&typeof t.byteLength=="number"}var Of=class extends OG.Transform{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}},jw=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new gs("The operation was aborted. Request has already been canceled.");n=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let l=new qn;mn.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=Bme(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,f=new Of(p);f.on("error",E=>{mn.error("Error in upload progress",E)}),cd(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let A=Eme(l),d={status:l.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?Cme(l,A):l;let m=e.onDownloadProgress;if(m){let p=new Of(m);p.on("error",f=>{mn.error("Error in download progress",f)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Ime(c),d}finally{if(e.abortSignal&&n){let l=Promise.resolve();cd(a)&&(l=UG(a));let A=Promise.resolve();cd(c)&&(A=UG(c)),Promise.all([l,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(u=>{mn.warning("Error when cleaning up abortListener on httpRequest",u)})}}}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 a={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((c,l)=>{let A=i?Ff.default.request(a,c):Uf.default.request(a,c);A.once("error",u=>{l(new er(u.message,{code:u.code??er.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let u=new gs("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(u),l(u)}),n&&cd(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):qG(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(mn.error("Unrecognized body type",n),l(new er("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Ff.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Ff.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Uf.default.globalAgent;let s=e.tlsSettings??yme,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(mn.info("No cached TLS Agent exist, creating a new Agent"),i=new Uf.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Eme(t){let e=Ur();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}function Cme(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=$w.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=$w.default.createInflate();return t.pipe(n),n}return t}function Ime(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 er(`Error reading response as text: ${s.message}`,{code:er.PARSE_ERROR}))})})}function Bme(t){return t?Buffer.isBuffer(t)?t.length:cd(t)?null:qG(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function HG(){return new jw}function qf(){return HG()}var Kw="logPolicy";function Hf(t={}){let e=t.logger??mn.info,r=new qn({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function ehe(t){return t instanceof Uint8Array?t.byteLength:Ag(t)?t.size===-1?void 0:t.size:void 0}function the(t){let e=0;for(let r of t){let n=ehe(r);if(n===void 0)return;e+=n}return e}async function rhe(t,e,r){let n=[mr(`--${r}`,"utf-8"),...e.flatMap(i=>[mr(`\r
`,"utf-8"),mr(Zpe(i.headers),"utf-8"),mr(`\r
`,"utf-8"),i.body,mr(`\r
--${r}`,"utf-8")]),mr(`--\r
\r
`,"utf-8")],n=lue(s);n&&t.headers.set("Content-Length",n),t.body=await f2(s)}var xu="multipartPolicy",uue=70,due=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function mue(t){if(t.length>uue)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!due.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Ag(){return{name:xu,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?mue(r):r=oue(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Aue(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function ug(){return vh()}var E2=Ph({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),uRe=E2.logger;function cn(t){return E2.createClientLogger(t)}var ln=cn("core-rest-pipeline");function Lb(t={}){return Oh({logger:ln.info,...t})}var Fb=Gh;function Ub(t={}){return qh(t)}var dg=Q(require("node:os"),1),mg=Q(require("node:process"),1);function y2(){return"User-Agent"}async function C2(t){if(mg.default&&mg.default.versions){let e=`${dg.default.type()} ${dg.default.release()}; ${dg.default.arch()}`,r=mg.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var pg="1.22.2";function Iue(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function I2(){return y2()}async function hg(t){let e=new Map;e.set("core-rest-pipeline",pg),await C2(e);let r=Iue(e);return t?`${t} ${r}`:r}var B2=I2(),Q2="userAgentPolicy";function _b(t={}){let e=hg(t.userAgentPrefix);return{name:Q2,async sendRequest(r,s){return r.headers.has(B2)||r.headers.set(B2,await e),s(r)}}}var _r=class extends Error{constructor(e){super(e),this.name="AbortError"}};function Ob(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new _r(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}s?.addEventListener("abort",l)})}var xue="The delay was aborted.";function Nu(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Ob(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??xue})}function ro(t){if(Zo(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}`}}function b2(t){return Zo(t)}function el(){return Xo()}var Ee=ra;var w2=Symbol("rawContent");function qb(t){return typeof t[w2]=="function"}function x2(t){return qb(t)?t[w2]():t}var gg=xu;function Hb(){let t=Ag();return{name:gg,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)qb(s.body)&&(s.body=x2(s.body));return t.sendRequest(e,r)}}}var zb=Hh;function Yb(){return zh()}function Vb(t={}){return Jh(t)}function Jb(){return $h()}function so(t){return Pb(t)}function $b(t,e){return ig(t,e)}var N2="setClientRequestIdPolicy";function Wb(t="x-ms-client-request-id"){return{name:N2,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function jb(t){return og(t)}function Kb(t){return ag(t)}var tl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function S2(t={}){let e=new Xb(t.parentContext);return t.span&&(e=e.setValue(tl.span,t.span)),t.namespace&&(e=e.setValue(tl.namespace,t.namespace)),e}var Xb=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var T2=Q(R2(),1),Eg=T2.state;function Nue(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Sue(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Nue(),tracingContext:S2({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Su(){return Eg.instrumenterImplementation||(Eg.instrumenterImplementation=Sue()),Eg.instrumenterImplementation}function Ru(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,A,u){let d=Su().startSpan(l,{...u,packageName:r,packageVersion:s,tracingContext:A?.tracingOptions?.tracingContext}),m=d.tracingContext,p=d.span;m.getValue(tl.na Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!jde(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",rt("InvalidTag",u,Kt(t,i))}let l=Yde(t,i);if(l===!1)return rt("InvalidAttr","Attributes for '"+c+"' have open quote.",Kt(t,i));let A=l.value;if(i=l.index,A[A.length-1]==="/"){let u=i-A.length;A=A.substring(0,A.length-1);let d=uz(A,e);if(d===!0)s=!0;else return rt(d.err.code,d.err.msg,Kt(t,u+d.err.line))}else if(a)if(l.tagClosed){if(A.trim().length>0)return rt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Kt(t,o));if(r.length===0)return rt("InvalidTag","Closing tag '"+c+"' has not been opened.",Kt(t,o));{let u=r.pop();if(c!==u.tagName){let d=Kt(t,u.tagStartPos);return rt("InvalidTag","Expected closing tag '"+u.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Kt(t,o))}r.length==0&&(n=!0)}}else return rt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Kt(t,i));else{let u=uz(A,e);if(u!==!0)return rt(u.err.code,u.err.msg,Kt(t,i-A.length+u.err.line));if(n===!0)return rt("InvalidXml","Multiple possible root nodes found.",Kt(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Az(t,i);continue}else if(t[i+1]==="?"){if(i=lz(t,++i),i.err)return i}else break;else if(t[i]==="&"){let u=$de(t,i);if(u==-1)return rt("InvalidChar","char '&' is not expected.",Kt(t,i));i=u}else if(n===!0&&!cz(t[i]))return rt("InvalidXml","Extra text at the end",Kt(t,i));t[i]==="<"&&i--}}else{if(cz(t[i]))continue;return rt("InvalidChar","char '"+t[i]+"' is not expected.",Kt(t,i))}if(s){if(r.length==1)return rt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Kt(t,r[0].tagStartPos));if(r.length>0)return rt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return rt("InvalidXml","Start tag expected.",1);return!0}function cz(t){return t===" "||t===" "||t===`
`||t==="\r"}function lz(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return rt("InvalidXml","XML declaration allowed only at the start of the document.",Kt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Az(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Hde='"',zde="'";function Yde(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===Hde||t[e]===zde)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var Vde=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function uz(t,e){let r=Ng(t,Vde),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return rt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",_u(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return rt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",_u(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return rt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",_u(r[n]));let i=r[n][2];if(!Wde(i))return rt("InvalidAttr","Attribute '"+i+"' is an invalid name.",_u(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return rt("InvalidAttr","Attribute '"+i+"' is repeated.",_u(r[n]))}return!0}function Jde(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function $de(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Jde(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function rt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Wde(t){return gw(t)}function jde(t){return gw(t)}function Kt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _u(t){return t.startIndex+t[1].length}var dz={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"},mz={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"},pz={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",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u0Line truncated
`);let e=new mr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new qu(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let A=ol(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,A).trim();if(n.removeNSPrefix){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1))}u=bw(n.transformTagName,u,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(u&&n.unpairedTagsSet.has(u))throw new Error(`Unpaired tag can not be used as closing tag: </${u}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=A}else if(l===63){let A=ww(t,a,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let u=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(u){let d=u[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let d=new mr(A.tagName);d.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=u),this.addChild(r,d,this.readonlyMatcher,a)}a=A.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let A=ol(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let u=t.substring(a+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:u}])}a=A}else if(l===33&&t.charCodeAt(a+2)===68){let A=i.readDocType(t,a);this.entityDecoder.addInputEntities(A.entities),a=A.i}else if(l===33&&t.charCodeAt(a+2)===91){let A=ol(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(u,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:u}]):r.add(n.textNodeName,d),a=A+2}else{let A=ww(t,a,n.removeNSPrefix);if(!A){let F=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${F}"`)}let u=A.tagName,d=A.rawTagName,m=A.tagExp,p=A.attrExpPresent,h=A.closeIndex;if({tagName:u,tagExp:m}=bw(n.transformTagName,u,m,n),n.strictReservedNames&&(u===n.commentPropName||u===n.cdataPropName||u===n.textNodeName||u===n.attributesGroupName))throw new Error(`Invalid tag name: ${u}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(f=!0,u[u.length-1]==="/"?(u=u.substr(0,u.length-1),m=u):m=m.substr(0,m.length-1),p=u!==m);let E=null,C={},I;I=yme(d),u!==e.tagname&&this.matcher.push(u,{},I),u!==m&&p&&(E=this.buildAttributesMap(m,this.matcher,u),E&&(C=Eme(E,n))),u!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let x=a;if(this.isCurrentNodeStopNode){let F="";if(f)a=A.closeIndex;else if(n.unpairedTagsSet.has(u))a=A.closeIndex;else{let ae=this.readStopNodeData(t,d,h+1);if(!ae)throw new Error(`Unexpected end of ${d}`);a=ae.i,F=ae.tagContent}let J=new mr(u);E&&(J[":@"]=E),J.add(n.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,J,this.readonlyMatcher,x)}else{if(f){({tagName:u,tagExp:m}=bw(n.transformTagName,u,m,n));let F=new mr(u);E&&(F[":@"]=E),this.addChild(r,F,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(u)){let F=new mr(u);E&&(F[":@"]=E),this.addChild(r,F,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=A.closeIndex;continue}else{let F=new mr(u);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(F[":@"]=E),this.addChild(r,F,this.readonlyMatcher,x),r=F}s="",a=h}}}else s+=t[a];return e.child};function wme(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function xme(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}function Nme(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function Sme(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Rme(t,e,r="Line truncated
`;function Fme(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Pw(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function vz(t,e,r,s,n){return!r.sanitizeName||aa(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function Tw(t,e){let r="";e.format&&(r=Lme);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new qr(a)):a instanceof qr&&s.push(a)}let n=Fme(t,e),i=new dn;return Mz(t,e,r,i,s,n)}function Mz(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=Rw(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],A=Pw(l);if(A===void 0)continue;let d=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:vz(A,!1,e,s,i),m=Ume(l[":@"],e);s.push(d,m);let p=Ome(s,n);if(d===e.textNodeName){let C=l[A];p||(C=e.tagValueProcessor(d,C),C=Rw(C,e)),a&&(o+=r),o+=C,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let C=l[A][0][e.textNodeName],I=vg(C);o+=`<![CDATA[${I}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let C=l[A][0][e.textNodeName],I=kg(C);o+=r+`<!--${I}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let C=kz(l[":@"],e,p,s,i);o+=(d==="?xml"?"":r)+`<${d}${C}?>`,a=!0,s.pop();continue}let h=r;h!==""&&(h+=e.indentBy);let y=kz(l[":@"],e,p,s,i),f=r+`<${d}${y}`,E;p?E=Lz(l[A],e):E=Mz(l[A],e,h,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=f+">":o+=f+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=f+"/>":E&&E.endsWith(">")?o+=f+`>${E}${r}</${d}>`:(o+=f+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${d}>`),a=!0,s.pop()}return o}function Ume(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=oo(t[n]),s=!0}return s?r:null}function Lz(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=Pw(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=_me(n[":@"],e),a=Lz(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function _me(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${oo(n)}"`}return r}function Pw(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function kz(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:vz(a,!0,e,s,n),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=Rw(l,e)),l===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${oo(l)}"`}return i}function Ome(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}function Rw(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function Dw(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}var Gme={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 hr(t){if(this.options=Object.assign({},Gme,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.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new qr(r)):r instanceof qr&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,"utf-8")],s=the(n);s&&t.headers.set("Content-Length",s),t.body=await VY(n)}var ud="multipartPolicy",nhe=70,she=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ihe(t){if(t.length>nhe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!she.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function dg(){return{name:ud,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,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ihe(r):r=Xpe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await rhe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function mg(){return Lf()}var JY=kf({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),lLe=JY.logger;function Cs(t){return JY.createClientLogger(t)}var Is=Cs("core-rest-pipeline");function pb(t={}){return Hf({logger:Is.info,...t})}var hb=zf;function fb(t={}){return Gf(t)}var pg=B(require("node:os"),1),hg=B(require("node:process"),1);function WY(){return"User-Agent"}async function $Y(t){if(hg.default&&hg.default.versions){let e=`${pg.default.type()} ${pg.default.release()}; ${pg.default.arch()}`,r=hg.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var fg="1.22.2";function mhe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function jY(){return WY()}async function gg(t){let e=new Map;e.set("core-rest-pipeline",fg),await $Y(e);let r=mhe(e);return t?`${t} ${r}`:r}var KY=jY(),XY="userAgentPolicy";function gb(t={}){let e=gg(t.userAgentPrefix);return{name:XY,async sendRequest(r,n){return r.headers.has(KY)||r.headers.set(KY,await e),n(r)}}}var zr=class extends Error{constructor(e){super(e),this.name="AbortError"}};function yb(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new zr(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(n?.aborted)return a();try{t(A=>{c(),i(A)},A=>{c(),o(A)})}catch(A){o(A)}n?.addEventListener("abort",l)})}var yhe="The delay was aborted.";function dd(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return yb(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??yhe})}function Eo(t){if(Ea(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}`}}function ZY(t){return Ea(t)}function Bl(){return ya()}var Ce=Ba;var eV=Symbol("rawContent");function Cb(t){return typeof t[eV]=="function"}function tV(t){return Cb(t)?t[eV]():t}var yg=ud;function Ib(){let t=dg();return{name:yg,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Cb(n.body)&&(n.body=tV(n.body));return t.sendRequest(e,r)}}}var Bb=Yf;function Qb(){return Vf()}function xb(t={}){return $f(t)}function wb(){return jf()}function Co(t){return lb(t)}function bb(t,e){return ag(t,e)}var rV="setClientRequestIdPolicy";function Nb(t="x-ms-client-request-id"){return{name:rV,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Sb(t){return cg(t)}function Rb(t){return lg(t)}var Ql={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function nV(t={}){let e=new Pb(t.parentContext);return t.span&&(e=e.setValue(Ql.span,t.span)),t.namespace&&(e=e.setValue(Ql.namespace,t.namespace)),e}var Pb=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var iV=B(sV(),1),Cg=iV.state;function Ehe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Che(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Ehe(),tracingContext:nV({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function md(){return Cg.instrumenterImplementation||(Cg.instrumenterImplementation=Che()),Cg.instrumenterImplementation}function pd(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(l,A,u){let d=md().startSpan(l,{...u,packageName:r,packageVersion:n,tracingContext:A?.tracingOptions?.tracingContext}),m=d.tracingContext,p=d.span;m.getValue(Ql.na Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Hfe(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",it("InvalidTag",u,tr(t,i))}let l=_fe(t,i);if(l===!1)return it("InvalidAttr","Attributes for '"+c+"' have open quote.",tr(t,i));let A=l.value;if(i=l.index,A[A.length-1]==="/"){let u=i-A.length;A=A.substring(0,A.length-1);let d=OV(A,e);if(d===!0)n=!0;else return it(d.err.code,d.err.msg,tr(t,u+d.err.line))}else if(a)if(l.tagClosed){if(A.trim().length>0)return it("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",tr(t,o));if(r.length===0)return it("InvalidTag","Closing tag '"+c+"' has not been opened.",tr(t,o));{let u=r.pop();if(c!==u.tagName){let d=tr(t,u.tagStartPos);return it("InvalidTag","Expected closing tag '"+u.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",tr(t,o))}r.length==0&&(s=!0)}}else return it("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",tr(t,i));else{let u=OV(A,e);if(u!==!0)return it(u.err.code,u.err.msg,tr(t,i-A.length+u.err.line));if(s===!0)return it("InvalidXml","Multiple possible root nodes found.",tr(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=UV(t,i);continue}else if(t[i+1]==="?"){if(i=FV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let u=Ofe(t,i);if(u==-1)return it("InvalidChar","char '&' is not expected.",tr(t,i));i=u}else if(s===!0&&!_V(t[i]))return it("InvalidXml","Extra text at the end",tr(t,i));t[i]==="<"&&i--}}else{if(_V(t[i]))continue;return it("InvalidChar","char '"+t[i]+"' is not expected.",tr(t,i))}if(n){if(r.length==1)return it("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tr(t,r[0].tagStartPos));if(r.length>0)return it("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return it("InvalidXml","Start tag expected.",1);return!0}function _V(t){return t===" "||t===" "||t===`
`||t==="\r"}function FV(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 it("InvalidXml","XML declaration allowed only at the start of the document.",tr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function UV(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var Mfe='"',Lfe="'";function _fe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Mfe||t[e]===Lfe)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}}var Ffe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function OV(t,e){let r=Rg(t,Ffe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return it("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",xd(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return it("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",xd(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return it("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",xd(r[s]));let i=r[s][2];if(!qfe(i))return it("InvalidAttr","Attribute '"+i+"' is an invalid name.",xd(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return it("InvalidAttr","Attribute '"+i+"' is repeated.",xd(r[s]))}return!0}function Ufe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function Ofe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ufe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function it(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function qfe(t){return Wb(t)}function Hfe(t){return Wb(t)}function tr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function xd(t){return t.startIndex+t[1].length}var qV={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"},HV={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"},zV={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",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u0Line truncated
`);let e=new gr("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Nd(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let A=Sl(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,A).trim();if(s.removeNSPrefix){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1))}u=r0(s.transformTagName,u,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(u&&s.unpairedTagsSet.has(u))throw new Error(`Unpaired tag can not be used as closing tag: </${u}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=A}else if(l===63){let A=n0(t,a,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let u=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(u){let d=u[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&A.tagName==="?xml"||s.ignorePiTags)){let d=new gr(A.tagName);d.add(s.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=u),this.addChild(r,d,this.readonlyMatcher,a)}a=A.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let A=Sl(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let u=t.substring(a+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:u}])}a=A}else if(l===33&&t.charCodeAt(a+2)===68){let A=i.readDocType(t,a);this.entityDecoder.addInputEntities(A.entities),a=A.i}else if(l===33&&t.charCodeAt(a+2)===91){let A=Sl(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(u,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:u}]):r.add(s.textNodeName,d),a=A+2}else{let A=n0(t,a,s.removeNSPrefix);if(!A){let D=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${D}"`)}let u=A.tagName,d=A.rawTagName,m=A.tagExp,p=A.attrExpPresent,f=A.closeIndex;if({tagName:u,tagExp:m}=r0(s.transformTagName,u,m,s),s.strictReservedNames&&(u===s.commentPropName||u===s.cdataPropName||u===s.textNodeName||u===s.attributesGroupName))throw new Error(`Invalid tag name: ${u}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(g=!0,u[u.length-1]==="/"?(u=u.substr(0,u.length-1),m=u):m=m.substr(0,m.length-1),p=u!==m);let y=null,C={},I;I=uge(d),u!==e.tagname&&this.matcher.push(u,{},I),u!==m&&p&&(y=this.buildAttributesMap(m,this.matcher,u),y&&(C=Age(y,s))),u!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let w=a;if(this.isCurrentNodeStopNode){let D="";if(g)a=A.closeIndex;else if(s.unpairedTagsSet.has(u))a=A.closeIndex;else{let ae=this.readStopNodeData(t,d,f+1);if(!ae)throw new Error(`Unexpected end of ${d}`);a=ae.i,D=ae.tagContent}let _=new gr(u);y&&(_[":@"]=y),_.add(s.textNodeName,D),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,w)}else{if(g){({tagName:u,tagExp:m}=r0(s.transformTagName,u,m,s));let D=new gr(u);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(u)){let D=new gr(u);y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=A.closeIndex;continue}else{let D=new gr(u);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(D[":@"]=y),this.addChild(r,D,this.readonlyMatcher,w),r=D}n="",a=f}}}else n+=t[a];return e.child};function gge(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))}function yge(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)}function Ege(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}function Cge(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Ige(t,e,r="Line truncated
`;function Rge(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(l0(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function lJ(t,e,r,n,s){return!r.sanitizeName||Na(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function c0(t,e){let r="";e.format&&(r=Sge);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new Vr(a)):a instanceof Vr&&n.push(a)}let s=Rge(t,e),i=new xs;return AJ(t,e,r,i,n,s)}function AJ(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=a0(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],A=l0(l);if(A===void 0)continue;let d=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:lJ(A,!1,e,n,i),m=Pge(l[":@"],e);n.push(d,m);let p=Dge(n,s);if(d===e.textNodeName){let C=l[A];p||(C=e.tagValueProcessor(d,C),C=a0(C,e)),a&&(o+=r),o+=C,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let C=l[A][0][e.textNodeName],I=Lg(C);o+=`<![CDATA[${I}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let C=l[A][0][e.textNodeName],I=Mg(C);o+=r+`<!--${I}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let C=cJ(l[":@"],e,p,n,i);o+=(d==="?xml"?"":r)+`<${d}${C}?>`,a=!0,n.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let E=cJ(l[":@"],e,p,n,i),g=r+`<${d}${E}`,y;p?y=uJ(l[A],e):y=AJ(l[A],e,f,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!y||y.length===0)&&e.suppressEmptyNode?o+=g+"/>":y&&y.endsWith(">")?o+=g+`>${y}${r}</${d}>`:(o+=g+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?o+=r+e.indentBy+y+r:o+=y,o+=`</${d}>`),a=!0,n.pop()}return o}function Pge(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]=Qo(t[s]),n=!0}return n?r:null}function uJ(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=l0(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 o=vge(s[":@"],e),a=uJ(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function vge(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)}="${Qo(s)}"`}return r}function l0(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}}function cJ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:lJ(a,!0,e,n,s),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=a0(l,e)),l===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${Qo(l)}"`}return i}function Dge(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}function a0(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}function A0(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}var kge={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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 Er(t){if(this.options=Object.assign({},kge,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.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Vr(r)):r instanceof Vr&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function qme(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function kw(t,e,r,s,n){return!r.sanitizeName||aa(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}hr.prototype.build=function(t){if(this.options.preserveOrder)return Tw(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new dn,r=qme(t,this.options);return this.j2x(t,0,e,r).val}};hr.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let A=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:kw(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],A,"",e,r);else if(typeof t[c]!="object"){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let d=kw(u,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[c],a)}else if(!u)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(A);let d=this.checkStopNode(r);if(r.pop(),d){let m=""+t[c];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[c],A,"",e,r)}}else if(Array.isArray(t[c])){let u=t[c].length,d="",m="";for(let p=0;p<u;p++){let h=t[c][p];if(!(typeof h>"u"))if(h===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(h,e+1,r,s);r.pop(),d+=y.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else d+=this.processTextOrObjNode(h,A,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,h);y=this.replaceEntitiesValue(y),d+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let f=""+h;f===""?d+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:d+=this.indentate(e)+"<"+A+">"+f+"</"+A+this.tagEndChar}else d+=this.buildTextValNode(h,A,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,A,m,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let u=Object.keys(t[c]),d=u.length;for(let m=0;m<d;m++){let p=kw(u[m],!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[c][u[m]],a)}}else i+=this.processTextOrObjNode(t[c],A,e,r,s)}return{attrStr:n,val:i}};hr.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+'="'+oo(e)+'"'};function Hme(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}hr.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=oo(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=oo(t[s]),r=!0)}return r?e:null};hr.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.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Tge(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"}function u0(t,e,r,n,s){return!r.sanitizeName||Na(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Er.prototype.build=function(t){if(this.options.preserveOrder)return c0(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xs,r=Tge(t,this.options);return this.j2x(t,0,e,r).val}};Er.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 o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let A=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:u0(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],A,"",e,r);else if(typeof t[c]!="object"){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let d=u0(u,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!u)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(A);let d=this.checkStopNode(r);if(r.pop(),d){let m=""+t[c];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[c],A,"",e,r)}}else if(Array.isArray(t[c])){let u=t[c].length,d="",m="";for(let p=0;p<u;p++){let f=t[c][p];if(!(typeof f>"u"))if(f===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(A);let E=this.j2x(f,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(m+=E.attrStr)}else d+=this.processTextOrObjNode(f,A,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(A,f);E=this.replaceEntitiesValue(E),d+=E}else{r.push(A);let E=this.checkStopNode(r);if(r.pop(),E){let g=""+f;g===""?d+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:d+=this.indentate(e)+"<"+A+">"+g+"</"+A+this.tagEndChar}else d+=this.buildTextValNode(f,A,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,A,m,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let u=Object.keys(t[c]),d=u.length;for(let m=0;m<d;m++){let p=u0(u[m],!0,this.options,r,n);s+=this.buildAttrPairStr(p,""+t[c][u[m]],a)}}else i+=this.processTextOrObjNode(t[c],A,e,r,n)}return{attrStr:s,val:i}};Er.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+'="'+Qo(e)+'"'};function Mge(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Er.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]=Qo(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]=Qo(t[n]),r=!0)}return r?e:null};Er.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(K.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===K.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(K.PREFIX_FOR_STORAGE));r.sort((n,i)=>Yg(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=qg(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=Hg(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Ye=class extends Aa{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Ju(e,r,this)}computeHMACSHA256(e){return(0,zz.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var pt=cn("storage-common");var ls;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ls||(ls={}));var co={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ls.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Xme=new _r("The operation was aborted."),$u=class extends mn{retryOptions;constructor(e,r,s=co){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:co.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):co.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:co.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:co.maxRetryDelayInMs):co.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:co.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:co.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=Gg(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=ao(n.url,Ai.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(pt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return pt.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(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return pt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return pt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(K.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(pt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ls.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ls.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return pt.info(`RetryPolicy: Delay for ${n}ms`),zg(n,s,Xme)}};var Wu=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new $u(e,r,this.retryOptions)}};var Zme="storageBrowserPolicy";function Yz(){return{name:Zme,async sendRequest(t,e){return Ee||((t.method==="GET"||t.method==="HEAD")&&(t.url=ao(t.url,Ai.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(K.COOKIE),t.headers.delete(K.CONTENT_LENGTH)),e(t)}}}var epe="StorageCorrectContentLengthPolicy";function Vz(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(K.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:epe,async sendRequest(e,r){return t(e),r(e)}}}var tpe="storageRetryPolicy",cl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ls.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rpe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],spe=new _r("The operation was aborted.");function Jz(t={}){let e=t.retryPolicyType??cl.retryPolicyType,r=t.maxTries??cl.maxTries,s=t.retryDelayInMs??cl.retryDelayInMs,n=t.maxRetryDelayInMs??cl.maxRetryDelayInMs,i=t.secondaryHost??cl.secondaryHost,o=t.tryTimeoutInMs??cl.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:A,response:u,error:d}){if(A>=r)return pt.info(`RetryPolicy: Attempt(s) ${A} >= maxTries ${r}, no further try.`),!1;if(d){for(let m of rpe)if(d.name.toUpperCase().includes(m)||d.message.toUpperCase().includes(m)||d.code&&d.code.toString().toUpperCase()===m)return pt.info( Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(X.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===X.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(X.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jg(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=Gg(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Yg(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Je=class extends Pa{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Dd(e,r,this)}computeHMACSHA256(e){return(0,EJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var gt=Cs("storage-common");var gn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(gn||(gn={}));var wo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:gn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Gge=new zr("The operation was aborted."),kd=class extends ws{retryOptions;constructor(e,r,n=wo){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:wo.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):wo.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:wo.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:wo.maxRetryDelayInMs):wo.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:wo.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:wo.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=zg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=xo(s.url,Qi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gt.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(gt.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return gt.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 o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return gt.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return gt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gt.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(X.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(gt.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 gn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case gn.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return gt.info(`RetryPolicy: Delay for ${s}ms`),Vg(s,n,Gge)}};var Td=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kd(e,r,this.retryOptions)}};var Yge="storageBrowserPolicy";function CJ(){return{name:Yge,async sendRequest(t,e){return Ce||((t.method==="GET"||t.method==="HEAD")&&(t.url=xo(t.url,Qi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(X.COOKIE),t.headers.delete(X.CONTENT_LENGTH)),e(t)}}}var Vge="StorageCorrectContentLengthPolicy";function IJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(X.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Vge,async sendRequest(e,r){return t(e),r(e)}}}var Jge="storageRetryPolicy",Pl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:gn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Wge=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],$ge=new zr("The operation was aborted.");function BJ(t={}){let e=t.retryPolicyType??Pl.retryPolicyType,r=t.maxTries??Pl.maxTries,n=t.retryDelayInMs??Pl.retryDelayInMs,s=t.maxRetryDelayInMs??Pl.maxRetryDelayInMs,i=t.secondaryHost??Pl.secondaryHost,o=t.tryTimeoutInMs??Pl.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:A,response:u,error:d}){if(A>=r)return gt.info(`RetryPolicy: Attempt(s) ${A} >= maxTries ${r}, no further try.`),!1;if(d){for(let m of Wge)if(d.name.toUpperCase().includes(m)||d.message.toUpperCase().includes(m)||d.code&&d.code.toString().toUpperCase()===m)return gt.info( Line truncated
`)+`
`+s(i)+n(i),a=(0,$z.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(K.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===K.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,l]of i.headers)c.toLowerCase().startsWith(K.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>Yg(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,A)=>!(l>0&&c.name.toLowerCase()===A[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(i){let o=qg(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Hg(i.url),l={};if(c){let A=[];for(let u in c)if(Object.prototype.hasOwnProperty.call(c,u)){let d=u.toLowerCase();l[d]=c[u],A.push(d)}A.sort();for(let u of A)a+=`
${u}:${decodeURIComponent(l[u])}`}return a}return{name:npe,async sendRequest(i,o){return e(i),o(i)}}}var ipe="storageRequestFailureDetailsParserPolicy";function Wz(){return{name:ipe,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}}}}var jz=require("node:crypto"),Vg=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,jz.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var Jg="12.31.0",$g="2026-02-06";var Wg="https://storage.azure.com/.default",ui={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ds="",_w="*",ope=1*1024*1024;var ape=4*ope;var Kz="AES256",Xz="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Zz=["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"],eY=["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"],tY="BlobUsesCustomerSpecifiedEncryption",rY="BlobDoesNotUseCustomerSpecifiedEncryption",sY=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function di(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var ju=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function st(t,e={}){t||(t=new Le);let r=new ju([],e);return r._credential=t,r}function cpe(t){let e=[lpe,nY,Ape,upe,dpe,mpe,hpe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>ppe(n));return{wrappedPolicies:pw(r),afterRetry:s}}}}function Ow(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?hw(e):Fw(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${Jg}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Du({...r,loggingOptions:{additionalAllowedHeaderNames:Zz,additionalAllowedQueryParameters:eY,logger:Lg.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Mg,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Mw,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:zb}),n.addPolicy(Vz()),n.addPolicy(Jz(r.retryOptions),{phase:"Retry"}),n.addPolicy(Wz()),n.addPolicy(Yz());let a=cpe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=Gw(t);Or(c)?n.addPolicy(rl({credential:c,scopes:r.audience??Wg,challengeCallba Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Fs(t.version,i,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:n}}function lge(t,e){if(t=ya(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,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:i}}function Age(t,e){if(t=ya(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function uge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function dge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function mge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function pge(t,e){if(t=ya(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=Tn.parse(t.permissions.toString()).toString():n=Pn.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ye(t.startsOn,!1):"",t.expiresOn?ye(t.expiresOn,!1):"",Ea(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ye(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ye(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ls(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Fs(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Ea(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function ya(t){let e=t.version?t.version:$g;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var cd=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=el()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ds||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ds||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 U.withSpan("BlobLeaseClient-acquireLease",r,async s=>q(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ds||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ds||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 U.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=q(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ds||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ds||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 U.withSpan("BlobLeaseClient-releaseLease",e,async r=>q(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!==Ds||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ds||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 U.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSign 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"}};Cl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Qa=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};Qa.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Ed=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var bfe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},TS=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);oe(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function aJ(t,e,r){return bfe(this,void 0,void 0,function*(){var s;let n=new yi(t),i=n.getBlockBlobClient(),o=new TS((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),B(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new eE(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw dt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var lJ=Q(require("buffer"),1),Dn=Q(require("fs"),1),AJ=Q(require("stream"),1),uJ=Q(require("util"),1);var tE=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function rE(t){return t?t>=200&&t<300:!1}function wfe(t){return t?t>=500:!0}function xfe(t){return t?[ze.BadGateway,ze.ServiceUnavailable,ze.GatewayTimeout].includes(t):!1}function Nfe(t){return tE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function cJ(t,e,r){return tE(this,arguments,void 0,function*(s,n,i,o=xh,a=Nh,c=void 0){let l="",A=1;for(;A<=o;){let u,d,m=!1;try{u=yield n()}catch(p){c&&(u=c(p)),m=!0,l=p.message}if(u&&(d=i(u),!wfe(d)))return u;if(d&&(m=xfe(d),l=`Cache service responded with ${d}`),B(`${s} - Attempt ${A} of ${o} failed with error: ${l}`),!m){B(`${s} - Error is not retryable`);break}yield Nfe(a),A++}throw Error(`${s} failed: ${l}`)})}function yd(t,e){return tE(this,arguments,void 0,function*(r,s,n=xh,i=Nh){return yield cJ(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Zs)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Il(t,e){return tE(this,arguments,void 0,function*(r,s,n=xh,i=Nh){return yield cJ(r,s,o=>o.message.statusCode,n,i)})}var ps=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Sfe(t,e){return ps(this,void 0,void 0,function*(){yield uJ.promisify(AJ.pipeline)(t.message,e)})}var sE=class{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){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);oe(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){le Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])B(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function vS(t,e,r){return fr(this,void 0,void 0,function*(){let s=new IJ.URL(t),n=hJ(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield mJ(t,e,n):n.concurrentBlobDownloads?yield dJ(t,e,n):yield nE(t,e):yield nE(t,e)})}function QJ(t,e,r){return fr(this,void 0,void 0,function*(){let s=kS(),n=Vc(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield yd("reserveCache",()=>fr(this,void 0,void 0,function*(){return s.postJson(Id("caches"),i)}))})}function CJ(t,e){return`bytes ${t}-${e}/*`}function Lfe(t,e,r,s,n){return fr(this,void 0,void 0,function*(){B(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${CJ(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":CJ(s,n)},o=yield Il(`uploadChunk (start: ${s}, end: ${n})`,()=>fr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!rE(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Ffe(t,e,r,s){return fr(this,void 0,void 0,function*(){let n=sn(r),i=Id(`caches/${e.toString()}`),o=Bl.openSync(r,"r"),a=PS(s),c=ab("uploadConcurrency",a.uploadConcurrency),l=ab("uploadChunkSize",a.uploadChunkSize),A=[...new Array(c).keys()];B("Awaiting all uploads");let u=0;try{yield Promise.all(A.map(()=>fr(this,void 0,void 0,function*(){for(;u<n;){let d=Math.min(n-u,l),m=u,p=u+d-1;u+=l,yield Lfe(t,i,()=>Bl.createReadStream(r,{fd:o,start:m,end:p,autoClose:!1}).on("error",h=>{throw new Error(`Cache upload failed because file read failed with ${h.message}`)}),m,p)}})))}finally{Bl.closeSync(o)}})}function Ufe(t,e,r){return fr(this,void 0,void 0,function*(){let s={size:r};return yield yd("commitCache",()=>fr(this,void 0,void 0,function*(){return t.postJson(Id(`caches/${e.toString()}`),s)}))})}function MS(t,e,r,s){return fr(this,void 0,void 0,function*(){if(PS(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield aJ(r,e,s)}else{let i=kS();B("Upload cache"),yield Ffe(i,t,e,s),B("Commiting cache");let o=sn(e);oe(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Ufe(i,t,o);if(!rE(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);oe("Cache saved successfully")}})}var f$=Q(A$(),1),ot=Q(it(),1),Yr=Q(it(),1),Sa=Q(it(),1),Ra=Q(it(),1),Ta=Q(it(),1);var RR=Q(it(),1),TR=Q(it(),1),p$=Q(it(),1),h$=Q(it(),1),g$=Q(it(),1);var xR=Q(it(),1),NR=Q(it(),1),u$=Q(it(),1),d$=Q(it(),1),m$=Q(it(),1),SR=class extends m$.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,d$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,u$.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?NR.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,xR.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,xR.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?NR.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},YE=new SR;var PR=class extends g$.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>YE}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,h$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,p$.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(YE.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?TR.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,RR.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)YE.internalBinaryWrite(e.scope[i],r.tag(2,RR.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?TR.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Fn=new Line truncated
`));let s=yield VR(r,"create");yield JR(s,t)})}var _l=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(s.next(A))}catch(u){o(u)}}function c(A){try{l(s.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):n(A.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Os=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ul=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},WE=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function I$(t){if(!t||t.length===0)throw new Os("Path Validation Error: At least one directory or file path is required")}function jR(t){if(t.length>512)throw new Os(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Os(`Key Validation Error: ${t} cannot contain commas.`)}function KR(){return Cd()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function B$(t,e,r,s){return _l(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Cd();return B(`Cache service version: ${l}`),I$(n),l==="v2"?yield Zye(n,i,o,a,c):yield Xye(n,i,o,a,c)})}function Xye(t,e,r,s){return _l(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(B("Resolved Keys:"),B(JSON.stringify(l)),l.length>10)throw new Os("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)jR(d);let A=yield Iu(),u="";try{let d=yield BJ(l,n,{compressionMethod:A,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return oe("Lookup only - skipping download"),d.cacheKey;u=Fd.join(yield yu(),eo(A)),B(`Archive Path: ${u}`),yield vS(d.archiveLocation,u,a),Ji()&&(yield Ld(u,A));let m=sn(u);return oe(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield $R(u,A),oe("Cache restored successfully"),d.cacheKey}catch(d){let m=d;if(m.name===Os.name)throw d;m instanceof Zs&&typeof m.statusCode=="number"&&m.statusCode>=500?Lc(`Failed to restore: ${d.message}`):dt(`Failed to restore: ${d.message}`)}finally{try{yield Cu(u)}catch(d){B(`Failed to delete archive: ${d}`)}}})}function Zye(t,e,r,s){return _l(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(B("Resolved Keys:"),B(JSON.stringify(l)),l.length>10)throw new Os("Key Validation Error: Keys are limited to a maximum of 10.");for(let u of l)jR(u);let A="";try{let u=YR(),d=yield Iu(),m={key:i,restoreKeys:o,version:Vc(n,d,c)},p=yield u.GetCacheEntryDownloadURL(m);if(!p.ok){B(`Cache not found for version ${m.version} of keys: ${l.join(", ")}`);return}if(m.key!==p.matchedKey?oe(`Cache hit for restore-key: ${p.matchedKey}`):oe(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return oe("Lookup only - skipping download"),p.matchedKey;A=Fd.join(yield yu(),eo(d)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield vS(p.signedDownloadUrl,A,a);let y=sn(A);return oe(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ji()&&(yield Ld(A,d)),yield $R(A,d),oe("Cache restored successfully"),p.matchedKey}catch(u){let d=u;if(d.name===Os.name)throw u;d instanceof Zs&&typeof d.statusCode=="number"&&d.statusCode>=500?Lc(`Failed to restore: ${u.message}`):dt(`Failed to restore: ${u.message}`)}finally{try{A&&(yield Cu(A))}catch(u){B(`Failed to delete archive: ${u}`)}}})}function XR(t,e,r){return _l(this,arguments,void 0,function*(s,n,i,o=!1){let a=Cd();return B(`Cache service version: ${a}`),I$(s),jR(n),a==="v2"?yield tCe(s,n,i,o):yield eCe(s,n,i,o)})}function eCe(t,e,r){return _l(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,A,u;let d=yield Iu(),m=-1,p=yield ob(s);if(B("Cache Paths:"),B(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let h=yield yu(),y=Fd.join(h,eo(d));B(`Archive Path: ${y}`);try{yield WR(h,p,d),Ji()&&(yield Ld(y,d));let f=10*1024*1024*1024,E=sn(y);if(B(`File Size: ${E}`),E>f&&!DS())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);B("Reserving Cache");let C=yield QJ(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)m=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((A=(l=C?.error)===null||l===void 0?void 0:l.message)!==null&&A!==void 0?A:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new Ul(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(u=C?.error)===null||u===void 0?void 0:u.message}`);B(`Saving Cache (ID: ${m})`),yield MS(m,y,"",i)}catch(f){let E=f;if(E.name===Os.name)throw f;E.name===Ul.na Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var gIe=class extends Error{constructor(t,e,r){super(hIe(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},fIe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],EIe=["query","method","url"],NW=/\/api\/v3\/?$/;function yIe(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 o in r)if(EIe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>fIe.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return NW.test(i)&&(n.url=i.replace(NW,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new gIe(n,a,o.data)}return o.data.data})}function hT(t,e){let r=t.defaults(e);return Object.assign((n,i)=>yIe(r,n,i),{defaults:hT.bind(null,r),endpoint:r.endpoint})}var NHe=hT(Gd,{headers:{"user-agent":`octokit-graphql.js/${pIe} ${Eo()}`},method:"POST",url:"/graphql"});function SW(t){return hT(t,{method:"POST",url:"/graphql"})}var gT="(?:[a-zA-Z0-9_-]+)",RW="\\.",TW=new RegExp(`^${gT}${RW}${gT}${RW}${gT}$`),CIe=TW.test.bind(TW);async function IIe(t){let e=CIe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function BIe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function QIe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=BIe(t),e(n)}var PW=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(IIe.bind(null,e),{hook:QIe.bind(null,e)})};var fT="7.0.6";var DW=()=>{},bIe=console.warn.bind(console),wIe=console.error.bind(console);function xIe(t={}){return typeof t.debug!="function"&&(t.debug=DW),typeof t.info!="function"&&(t.info=DW),typeof t.warn!="function"&&(t.warn=bIe),typeof t.error!="function"&&(t.error=wIe),t}var kW=`octokit-core.js/${fT} ${Eo()}`,Ay=class{static VERSION=fT;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new oW.Collection,s={baseUrl:Gd.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${kW}`:kW,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Gd.defaults(s),this.graphql=SW(this.request).defaults(s),this.log=xIe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=PW(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var ET="17.0.0";var NIe={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{or Line truncated
`,o).length:u,l?(a===null?0:a.length)+c.length:0,l?c.length+u:0);return d<m},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:A,ltrim:u,max_record_size:d,raw:m,relax_quotes:p,rtrim:h,skip_empty_lines:y,to:f,to_line:E}=this.options,{comment:C,escape:I,quote:x,record_delimiter:F}=this.options,{bomSkipped:J,previousBuf:ae,rawBuffer:Ie,escapeIsQuote:Oe}=this.state,H;if(ae===void 0)if(s===void 0){o();return}else H=s;else ae!==void 0&&s===void 0?H=ae:H=Buffer.concat([ae,s]);if(J===!1)if(a===!1)this.state.bomSkipped=!0;else if(H.length<3){if(n===!1){this.state.previousBuf=H;return}}else{for(let Be in Vl)if(Vl[Be].compare(H,0,Vl[Be].length)===0){let Pt=Vl[Be].length;this.state.bufBytesStart+=Pt,H=H.slice(Pt);let Jr=NT({...this.original_options,encoding:Be});for(let Xe in Jr)this.options[Xe]=Jr[Xe];({comment:C,escape:I,quote:x}=this.options);break}this.state.bomSkipped=!0}let ue=H.length,_;for(_=0;_<ue&&!this.__needMoreData(_,ue,n);_++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&F.length===0&&this.__autoDiscoverRecordDelimiter(H,_)&&(F=this.options.record_delimiter);let Be=H[_];if(m===!0&&Ie.append(Be),(Be===GIe||Be===qIe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(H,_,Be)&&_+I.length<ue)if(Oe){if(this.__isQuote(H,_+I.length)){this.state.escaping=!0,_+=I.length-1;continue}}else{this.state.escaping=!0,_+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(H,_))if(this.state.quoting===!0){let Xe=H[_+x.length],On=h&&this.__isCharTrimable(H,_+x.length),Ir=C!==null&&this.__compareBytes(C,H,_+x.length,Xe),qs=this.__isDelimiter(H,_+x.length,Xe),yo=F.length===0?this.__autoDiscoverRecordDelimiter(H,_+x.length):this.__isRecordDelimiter(Xe,H,_+x.length);if(I!==null&&this.__isEscape(H,_,Be)&&this.__isQuote(H,_+I.length))_+=I.length-1;else if(!Xe||qs||yo||Ir||On){this.state.quoting=!1,this.state.wasQuoting=!0,_+=x.length-1;continue}else if(p===!1){let Ma=this.__error(new he("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Xe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Ma!==void 0)return Ma}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),_+=x.length-1}else if(this.state.field.length!==0){if(p===!1){let Xe=this.__infoField(),On=Object.keys(Vl).map(qs=>Vl[qs].equals(this.state.field.toString())?qs:!1).filter(Boolean)[0],Ir=this.__error(new he("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Xe.column)} at line ${Xe.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,On?`(${On} bom)`:void 0],this.options,Xe,{field:this.state.field}));if(Ir!==void 0)return Ir}}else{this.state.quoting=!0,_+=x.length-1;continue}if(this.state.quoting===!1){let Xe=this.__isRecordDelimiter(Be,H,_);if(Xe!==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(),_+=Xe-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,_+=Xe-1;continue}this.info.bytes=this.state.bufBytesStart+_;let qs=this.__onField();if(qs!==void 0)return qs;this.info.bytes=this.state.bufBytesStart+_+Xe;let yo=this.__onRecord(i);if(yo!==void 0)return yo;if(f!==-1&&this.info.records>=f){this.state.stop=!0,o();return}}this.state.commenting=!1,_+=Xe-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,H,_,Be)!==0){this.state.commenting=!0;continue}let On=this.__isDelimiter(H,_,Be);if(On!==0){this.info.bytes=this.state.bufBytesStart+_;let Ir=this.__onField();if(Ir!==void 0)return Ir;_+=On-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new he("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Pt=u===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(H,_),Jr=h===!1||this.state.wasQuoting===!1;if(Pt===!0&&Jr===!0)this.state.field.append(Be);else{if(h===!0&&!this.__isCharTrimable(H,_))return this.__error(new he("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Pt===!1&&(_+=this.__isCharTrimable(H,_)-1);continue}}if(n===!0 Line truncated
`+n(i)+s(i),a=(0,QJ.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(X.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===X.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,l]of i.headers)c.toLowerCase().startsWith(X.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>Jg(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,A)=>!(l>0&&c.name.toLowerCase()===A[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=Gg(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Yg(i.url),l={};if(c){let A=[];for(let u in c)if(Object.prototype.hasOwnProperty.call(c,u)){let d=u.toLowerCase();l[d]=c[u],A.push(d)}A.sort();for(let u of A)a+=`
${u}:${decodeURIComponent(l[u])}`}return a}return{name:jge,async sendRequest(i,o){return e(i),o(i)}}}var Kge="storageRequestFailureDetailsParserPolicy";function xJ(){return{name:Kge,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}}}}var wJ=require("node:crypto"),Wg=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,wJ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var $g="12.31.0",jg="2026-02-06";var Kg="https://storage.azure.com/.default",xi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Hn="",g0="*",Xge=1*1024*1024;var Zge=4*Xge;var bJ="AES256",NJ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",SJ=["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"],RJ=["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"],PJ="BlobUsesCustomerSpecifiedEncryption",vJ="BlobDoesNotUseCustomerSpecifiedEncryption",DJ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Md=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ot(t,e={}){t||(t=new Ue);let r=new Md([],e);return r._credential=t,r}function eye(t){let e=[tye,kJ,rye,nye,sye,iye,aye];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>oye(s));return{wrappedPolicies:Vb(r),afterRetry:n}}}}function y0(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Jb(e):h0(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${$g}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=gd({...r,loggingOptions:{additionalAllowedHeaderNames:SJ,additionalAllowedQueryParameters:RJ,logger:Fg.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:_g,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:m0,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:Bb}),s.addPolicy(IJ()),s.addPolicy(BJ(r.retryOptions),{phase:"Retry"}),s.addPolicy(xJ()),s.addPolicy(CJ());let a=eye(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=E0(t);Gr(c)?s.addPolicy(xl({credential:c,scopes:r.audience??Kg,challengeCallba Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Jn(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}}function tCe(t,e){if(t=Ua(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=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vn(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Jn(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function rCe(t,e){if(t=Ua(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=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vn(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Jn(t.version,o,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}}function nCe(t,e){if(t=Ua(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=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Jn(t.version,o,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}}function sCe(t,e){if(t=Ua(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=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Jn(t.version,o,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}}function iCe(t,e){if(t=Ua(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=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Jn(t.version,o,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}}function oCe(t,e){if(t=Ua(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=Hs.parse(t.permissions.toString()).toString():s=zs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ie(t.startsOn,!1):"",t.expiresOn?Ie(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ie(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ie(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Vn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Jn(t.version,o,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}}function Fa(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Ua(t){let e=t.version?t.version:jg;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Jd=class{_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=Bl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Hn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hn||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 q.withSpan("BlobLeaseClient-acquireLease",r,async n=>Y(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!==Hn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Hn||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 q.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Y(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!==Hn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Hn||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 q.withSpan("BlobLeaseClient-releaseLease",e,async r=>Y(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!==Hn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Hn||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 q.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSign 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"}};Hl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var za=class extends Error{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"}};za.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var nm=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var fIe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},cP=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);mt(`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=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function L4(t,e,r){return fIe(this,void 0,void 0,function*(){var n;let s=new Di(t),i=s.getBlockBlobClient(),o=new cP((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),N(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new tE(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Fn(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var F4=B(require("buffer"),1),Gs=B(require("fs"),1),U4=B(require("stream"),1),O4=B(require("util"),1);var rE=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function nE(t){return t?t>=200&&t<300:!1}function gIe(t){return t?t>=500:!0}function yIe(t){return t?[Ve.BadGateway,Ve.ServiceUnavailable,Ve.GatewayTimeout].includes(t):!1}function EIe(t){return rE(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function _4(t,e,r){return rE(this,arguments,void 0,function*(n,s,i,o=Nf,a=Sf,c=void 0){let l="",A=1;for(;A<=o;){let u,d,m=!1;try{u=yield s()}catch(p){c&&(u=c(p)),m=!0,l=p.message}if(u&&(d=i(u),!gIe(d)))return u;if(d&&(m=yIe(d),l=`Cache service responded with ${d}`),N(`${n} - Attempt ${A} of ${o} failed with error: ${l}`),!m){N(`${n} - Error is not retryable`);break}yield EIe(a),A++}throw Error(`${n} failed: ${l}`)})}function sm(t,e){return rE(this,arguments,void 0,function*(r,n,s=Nf,i=Sf){return yield _4(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof fs)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function zl(t,e){return rE(this,arguments,void 0,function*(r,n,s=Nf,i=Sf){return yield _4(r,n,o=>o.message.statusCode,s,i)})}var Bn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function CIe(t,e){return Bn(this,void 0,void 0,function*(){yield O4.promisify(U4.pipeline)(t.message,e)})}var sE=class{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,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);mt(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){le Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])N(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function dP(t,e,r){return Ir(this,void 0,void 0,function*(){let n=new j4.URL(t),s=G4(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield H4(t,e,s):s.concurrentBlobDownloads?yield q4(t,e,s):yield iE(t,e):yield iE(t,e)})}function X4(t,e,r){return Ir(this,void 0,void 0,function*(){let n=uP(),s=ml(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield sm("reserveCache",()=>Ir(this,void 0,void 0,function*(){return n.postJson(om("caches"),i)}))})}function $4(t,e){return`bytes ${t}-${e}/*`}function SIe(t,e,r,n,s){return Ir(this,void 0,void 0,function*(){N(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${$4(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":$4(n,s)},o=yield zl(`uploadChunk (start: ${n}, end: ${s})`,()=>Ir(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!nE(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function RIe(t,e,r,n){return Ir(this,void 0,void 0,function*(){let s=hs(r),i=om(`caches/${e.toString()}`),o=Gl.openSync(r,"r"),a=lP(n),c=Lw("uploadConcurrency",a.uploadConcurrency),l=Lw("uploadChunkSize",a.uploadChunkSize),A=[...new Array(c).keys()];N("Awaiting all uploads");let u=0;try{yield Promise.all(A.map(()=>Ir(this,void 0,void 0,function*(){for(;u<s;){let d=Math.min(s-u,l),m=u,p=u+d-1;u+=l,yield SIe(t,i,()=>Gl.createReadStream(r,{fd:o,start:m,end:p,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),m,p)}})))}finally{Gl.closeSync(o)}})}function PIe(t,e,r){return Ir(this,void 0,void 0,function*(){let n={size:r};return yield sm("commitCache",()=>Ir(this,void 0,void 0,function*(){return t.postJson(om(`caches/${e.toString()}`),n)}))})}function mP(t,e,r,n){return Ir(this,void 0,void 0,function*(){if(lP(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield L4(r,e,n)}else{let i=uP();N("Upload cache"),yield RIe(i,t,e,n),N("Commiting cache");let o=hs(e);mt(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield PIe(i,t,o);if(!nE(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);mt("Cache saved successfully")}})}var VW=B(UW(),1),lt=B(ct(),1),$r=B(ct(),1),Wa=B(ct(),1),$a=B(ct(),1),ja=B(ct(),1);var av=B(ct(),1),cv=B(ct(),1),zW=B(ct(),1),GW=B(ct(),1),YW=B(ct(),1);var sv=B(ct(),1),iv=B(ct(),1),OW=B(ct(),1),qW=B(ct(),1),HW=B(ct(),1),ov=class extends HW.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,qW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,OW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let l=n.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?iv.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,sv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,sv.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?iv.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VE=new ov;var lv=class extends YW.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>VE}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,GW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,zW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(VE.internalBinaryRead(e,e.uint32(),n));break;default:let l=n.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let A=e.skip(c);l!==!1&&(l===!0?cv.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,A)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,av.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)VE.internalBinaryWrite(e.scope[i],r.tag(2,av.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?cv.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},$s=new Line truncated
`));let n=yield xv(r,"create");yield wv(n,t)})}var aA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(A){try{l(n.next(A))}catch(u){o(u)}}function c(A){try{l(n.throw(A))}catch(u){o(u)}}function l(A){A.done?i(A.value):s(A.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},jn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},oA=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},jE=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function jW(t){if(!t||t.length===0)throw new jn("Path Validation Error: At least one directory or file path is required")}function Sv(t){if(t.length>512)throw new jn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new jn(`Key Validation Error: ${t} cannot contain commas.`)}function Rv(){return im()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function KW(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,o,a,c=!1){let l=im();return N(`Cache service version: ${l}`),jW(s),l==="v2"?yield YQe(s,i,o,a,c):yield GQe(s,i,o,a,c)})}function GQe(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let l=[i,...o];if(N("Resolved Keys:"),N(JSON.stringify(l)),l.length>10)throw new jn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Sv(d);let A=yield sd(),u="";try{let d=yield K4(l,s,{compressionMethod:A,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return mt("Lookup only - skipping download"),d.cacheKey;u=Bm.join(yield rd(),fo(A)),N(`Archive Path: ${u}`),yield dP(d.archiveLocation,u,a),da()&&(yield Im(u,A));let m=hs(u);return mt(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield bv(u,A),mt("Cache restored successfully"),d.cacheKey}catch(d){let m=d;if(m.name===jn.name)throw d;m instanceof fs&&typeof m.statusCode=="number"&&m.statusCode>=500?qu(`Failed to restore: ${d.message}`):Fn(`Failed to restore: ${d.message}`)}finally{try{yield nd(u)}catch(d){N(`Failed to delete archive: ${d}`)}}})}function YQe(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[i,...o];if(N("Resolved Keys:"),N(JSON.stringify(l)),l.length>10)throw new jn("Key Validation Error: Keys are limited to a maximum of 10.");for(let u of l)Sv(u);let A="";try{let u=Qv(),d=yield sd(),m={key:i,restoreKeys:o,version:ml(s,d,c)},p=yield u.GetCacheEntryDownloadURL(m);if(!p.ok){N(`Cache not found for version ${m.version} of keys: ${l.join(", ")}`);return}if(m.key!==p.matchedKey?mt(`Cache hit for restore-key: ${p.matchedKey}`):mt(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return mt("Lookup only - skipping download"),p.matchedKey;A=Bm.join(yield rd(),fo(d)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield dP(p.signedDownloadUrl,A,a);let E=hs(A);return mt(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),da()&&(yield Im(A,d)),yield bv(A,d),mt("Cache restored successfully"),p.matchedKey}catch(u){let d=u;if(d.name===jn.name)throw u;d instanceof fs&&typeof d.statusCode=="number"&&d.statusCode>=500?qu(`Failed to restore: ${u.message}`):Fn(`Failed to restore: ${u.message}`)}finally{try{A&&(yield nd(A))}catch(u){N(`Failed to delete archive: ${u}`)}}})}function Pv(t,e,r){return aA(this,arguments,void 0,function*(n,s,i,o=!1){let a=im();return N(`Cache service version: ${a}`),jW(n),Sv(s),a==="v2"?yield JQe(n,s,i,o):yield VQe(n,s,i,o)})}function VQe(t,e,r){return aA(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,l,A,u;let d=yield sd(),m=-1,p=yield Mw(n);if(N("Cache Paths:"),N(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let f=yield rd(),E=Bm.join(f,fo(d));N(`Archive Path: ${E}`);try{yield Nv(f,p,d),da()&&(yield Im(E,d));let g=10*1024*1024*1024,y=hs(E);if(N(`File Size: ${y}`),y>g&&!AP())throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`);N("Reserving Cache");let C=yield X4(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:y});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)m=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((A=(l=C?.error)===null||l===void 0?void 0:l.message)!==null&&A!==void 0?A:`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the data cap limit, not saving cache.`):new oA(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(u=C?.error)===null||u===void 0?void 0:u.message}`);N(`Saving Cache (ID: ${m})`),yield mP(m,E,"",i)}catch(g){let y=g;if(y.name===jn.name)throw g;y.name===oA.na Line truncated
`,o).length:u,l?(a===null?0:a.length)+c.length:0,l?c.length+u:0);return d<m},parse:function(n,s,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:A,ltrim:u,max_record_size:d,raw:m,relax_quotes:p,rtrim:f,skip_empty_lines:E,to:g,to_line:y}=this.options,{comment:C,escape:I,quote:w,record_delimiter:D}=this.options,{bomSkipped:_,previousBuf:ae,rawBuffer:ge,escapeIsQuote:Be}=this.state,H;if(ae===void 0)if(n===void 0){o();return}else H=n;else ae!==void 0&&n===void 0?H=ae:H=Buffer.concat([ae,n]);if(_===!1)if(a===!1)this.state.bomSkipped=!0;else if(H.length<3){if(s===!1){this.state.previousBuf=H;return}}else{for(let de in IA)if(IA[de].compare(H,0,IA[de].length)===0){let At=IA[de].length;this.state.bufBytesStart+=At,H=H.slice(At);let He=kD({...this.original_options,encoding:de});for(let tt in He)this.options[tt]=He[tt];({comment:C,escape:I,quote:w}=this.options);break}this.state.bomSkipped=!0}let ee=H.length,F;for(F=0;F<ee&&!this.__needMoreData(F,ee,s);F++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),y!==-1&&this.info.lines>y){this.state.stop=!0,o();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(H,F)&&(D=this.options.record_delimiter);let de=H[F];if(m===!0&&ge.append(de),(de===d0e||de===m0e)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(I!==null&&this.state.quoting===!0&&this.__isEscape(H,F,de)&&F+I.length<ee)if(Be){if(this.__isQuote(H,F+I.length)){this.state.escaping=!0,F+=I.length-1;continue}}else{this.state.escaping=!0,F+=I.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(H,F))if(this.state.quoting===!0){let tt=H[F+w.length],ei=f&&this.__isCharTrimable(H,F+w.length),wr=C!==null&&this.__compareBytes(C,H,F+w.length,tt),Xn=this.__isDelimiter(H,F+w.length,tt),Lo=D.length===0?this.__autoDiscoverRecordDelimiter(H,F+w.length):this.__isRecordDelimiter(tt,H,F+w.length);if(I!==null&&this.__isEscape(H,F,de)&&this.__isQuote(H,F+I.length))F+=I.length-1;else if(!tt||Xn||Lo||wr||ei){this.state.quoting=!1,this.state.wasQuoting=!0,F+=w.length-1;continue}else if(p===!1){let nc=this.__error(new fe("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(tt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(nc!==void 0)return nc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(w),F+=w.length-1}else if(this.state.field.length!==0){if(p===!1){let tt=this.__infoField(),ei=Object.keys(IA).map(Xn=>IA[Xn].equals(this.state.field.toString())?Xn:!1).filter(Boolean)[0],wr=this.__error(new fe("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(tt.column)} at line ${tt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ei?`(${ei} bom)`:void 0],this.options,tt,{field:this.state.field}));if(wr!==void 0)return wr}}else{this.state.quoting=!0,F+=w.length-1;continue}if(this.state.quoting===!1){let tt=this.__isRecordDelimiter(de,H,F);if(tt!==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(),F+=tt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,F+=tt-1;continue}this.info.bytes=this.state.bufBytesStart+F;let Xn=this.__onField();if(Xn!==void 0)return Xn;this.info.bytes=this.state.bufBytesStart+F+tt;let Lo=this.__onRecord(i);if(Lo!==void 0)return Lo;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,F+=tt-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,H,F,de)!==0){this.state.commenting=!0;continue}let ei=this.__isDelimiter(H,F,de);if(ei!==0){this.info.bytes=this.state.bufBytesStart+F;let wr=this.__onField();if(wr!==void 0)return wr;F+=ei-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new fe("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let At=u===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(H,F),He=f===!1||this.state.wasQuoting===!1;if(At===!0&&He===!0)this.state.field.append(de);else{if(f===!0&&!this.__isCharTrimable(H,F))return this.__error(new fe("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));At===!1&&(F+=this.__isCharTrimable(H,F)-1);continue}}if(s===!0 Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[n+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:n,raw:i,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},__infoField:function(){let{columns:s}=this.options,n=Array.isArray(s);return{...this.__infoRecord(),column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var jW=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=WW(e),n=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=s.parse(t,!0,n,i);if(o!==void 0)throw o;return r};var Jl=class t{static getInputList(e,r){return this.getList(Mc(e),r)}static getList(e,r){let s=[];if(e=="")return s;let n=jW(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>i.trim())}static getInputNumber(e){let r=Mc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await ar("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let o in r)i.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return KW.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return ST.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){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 formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return ST.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=Hd.default.resolve(e);return Hd.default.resolve(r).startsWith(s.endsWith(Hd.default.sep)?s:`${s}${Hd.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,o=[];return s&&o.push(`${s}h`),n&&o.push(`${n}m`),(i||o.length===0)&&o.push(`${i}s`),o.join("")}};var _n=class t{static get configDir(){return process.env.DOCKER_CONFIG||zd.default.join(XW.default.homedir(),".docker")}static configFile(){let e=zd.default.join(t.configDir,"config.json");if(RT.default.existsSync(e))return JSON.parse(RT.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ar("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}catch{return!1}}static async exec(e,r){return qd.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return qd.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)thro Line truncated
`,i),Buffer.from("\r",i)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==n[s+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(n){let{encoding:s,raw:i,skip_records_with_error:o}=this.options,a=typeof n=="string"?new Error(n):n;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord: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}},__infoField: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}}}};var g5=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=f5(e),s=a=>{n.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=n.parse(t,!0,s,i);if(o!==void 0)throw o;return r};var BA=class t{static getInputList(e,r){return this.getList(vx(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=g5(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=vx(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 ur("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let o in r)i.push(`-${o} '${r[o].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 y5.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 TD.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 TD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return E5.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=Fm.default.resolve(e);return Fm.default.resolve(r).startsWith(n.endsWith(Fm.default.sep)?n:`${n}${Fm.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,o=[];return n&&o.push(`${n}h`),s&&o.push(`${s}m`),(i||o.length===0)&&o.push(`${i}s`),o.join("")}};var Zs=class t{static get configDir(){return process.env.DOCKER_CONFIG||Um.default.join(C5.default.homedir(),".docker")}static configFile(){let e=Um.default.join(t.configDir,"config.json");if(MD.default.existsSync(e))return JSON.parse(MD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ur("docker",!0).then(e=>(Lr(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(Lr(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Qm.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Qm.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.en Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -125,12 +145,5 @@ tmp/lib/tmp.js:
*
* MIT Licensed
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.cjs.map
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": "glBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,GAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line 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": "glBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,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,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,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,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,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,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,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,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,GAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,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,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "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", "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", "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", "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", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}
Generated Vendored
+360 -17
View File
@@ -4,10 +4,10 @@ https://www.npmjs.com/package/generate-license-file
The following npm packages may be included in this product:
- @sigstore/bundle@4.0.0
- @sigstore/core@3.1.0
- @sigstore/core@3.2.1
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.0
- @sigstore/tuf@4.0.1
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
These packages each contain the following license:
@@ -217,7 +217,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.79.0
- @docker/actions-toolkit@0.91.0
This package contains the following license:
@@ -455,6 +455,13 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
- events-universal@1.0.1
- text-decoder@1.2.7
These packages each contain the following license:
@@ -662,6 +669,247 @@ Apache License
-----------
The following npm package may be included in this product:
- bare-path@3.0.0
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
With the following notices:
Copyright 2023 Holepunch Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---
Copyright Joyent, Inc. and other Node contributors.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
-----------
The following npm package may be included in this product:
- readdir-glob@1.1.3
@@ -2286,6 +2534,7 @@ The following npm packages may be included in this product:
- @actions/http-client@3.0.2
- @actions/http-client@4.0.0
- @actions/http-client@4.0.1
These packages each contain the following license:
@@ -2451,7 +2700,7 @@ END OF TERMS AND CONDITIONS
The following npm package may be included in this product:
- @sigstore/verify@3.1.0
- @sigstore/verify@3.1.1
This package contains the following license:
@@ -2577,6 +2826,35 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.3
This package contains the following license:
Copyright (c) 2011 Tim Koschützki (tim@debuggable.com), Felix Geisendörfer (felix@debuggable.com)
Copyright (c) 2014 IndigoUnited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- color-convert@2.0.1
@@ -2634,12 +2912,11 @@ THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- retry@0.12.0
- retry@0.13.1
These packages each contain the following license:
This package contains the following license:
Copyright (c) 2011:
Tim Koschützki (tim@debuggable.com)
@@ -2760,12 +3037,11 @@ OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- @gar/promise-retry@1.0.2
- promise-retry@2.0.1
These packages each contain the following license:
This package contains the following license:
Copyright (c) 2014 IndigoUnited
@@ -2895,12 +3171,14 @@ The following npm packages may be included in this product:
- @azure/core-client@1.10.1
- @azure/core-http-compat@2.3.2
- @azure/core-rest-pipeline@1.22.2
- @azure/core-rest-pipeline@1.23.0
- @azure/core-tracing@1.3.1
- @azure/core-util@1.13.1
- @azure/core-xml@1.5.0
- @azure/logger@1.3.0
- @azure/storage-blob@12.31.0
- @typespec/ts-http-runtime@0.3.3
- @typespec/ts-http-runtime@0.3.5
These packages each contain the following license:
@@ -3215,11 +3493,12 @@ USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- make-fetch-happen@15.0.4
- make-fetch-happen@15.0.6
This package contains the following license:
These packages each contain the following license:
ISC License
@@ -3356,7 +3635,6 @@ The following npm packages may be included in this product:
- binary@0.3.0
- browserify-zlib@0.1.4
- eastasianwidth@0.2.0
- err-code@2.0.3
- imurmurhash@0.1.4
- is-gzip@1.0.0
- isarray@1.0.0
@@ -3766,6 +4044,36 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- @npmcli/redact@4.0.0
This package contains the following license:
MIT License
Copyright (c) 2024 npm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- fast-xml-builder@1.2.0
@@ -4367,6 +4675,7 @@ The following npm packages may be included in this product:
- semver@7.6.0
- semver@7.7.3
- semver@7.7.4
- semver@7.8.1
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
@@ -4509,7 +4818,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@6.1.0
- csv-parse@6.2.1
This package contains the following license:
@@ -4693,6 +5002,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
These packages each contain the following license:
@@ -4964,6 +5274,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.26.0
These packages each contain the following license:
@@ -4991,6 +5302,36 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- teex@1.0.1
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2020 Mathias Buus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm packages may be included in this product:
- @azure/abort-controller@1.1.0
@@ -5216,11 +5557,13 @@ https://github.com/bitinn/node-fetch
The following npm packages may be included in this product:
- @actions/artifact@6.2.0
- @actions/cache@6.0.0
- @actions/artifact@6.2.1
- @actions/cache@6.0.1
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0