Merge pull request #235 from docker/dependabot/npm_and_yarn/brace-expansion-1.1.13

build(deps): bump brace-expansion from 1.1.12 to 1.1.14
This commit is contained in:
CrazyMax authored and GitHub committed 2026-04-24 15:01:27 +02:00
commit dd830f042c
4 files changed
+88 -97

No files matched your search

Generated Vendored
+78 -78
View File
@@ -1,82 +1,82 @@
var j6=Object.create;var FI=Object.defineProperty;var K6=Object.getOwnPropertyDescriptor;var X6=Object.getOwnPropertyNames;var Z6=Object.getPrototypeOf,eK=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tK=(t,e)=>{for(var r in e)FI(t,r,{get:e[r],enumerable:!0})},rK=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of X6(e))!eK.call(t,n)&&n!==r&&FI(t,n,{get:()=>e[n],enumerable:!(s=K6(e,n))||s.enumerable});return t};var b=(t,e,r)=>(r=t!=null?j6(Z6(t)):{},rK(e||!t||!t.__esModule?FI(r,"default",{value:t,enumerable:!0}):r,t));var uD=m(Rc=>{"use strict";var lke=require("net"),cK=require("tls"),HI=require("http"),aD=require("https"),lK=require("events"),uke=require("assert"),uK=require("util");Rc.httpOverHttp=AK;Rc.httpsOverHttp=dK;Rc.httpOverHttps=pK;Rc.httpsOverHttps=mK;function AK(t){var e=new xi(t);return e.request=HI.request,e}function dK(t){var e=new xi(t);return e.request=HI.request,e.createSocket=cD,e.defaultPort=443,e}function pK(t){var e=new xi(t);return e.request=aD.request,e}function mK(t){var e=new xi(t);return e.request=aD.request,e.createSocket=cD,e.defaultPort=443,e}function xi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=lD(n,i,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}uK.inherits(xi,lK.EventEmitter);xi.prototype.addRequest=function(e,r,s,n){var i=this,o=zI({request:e},i.options,lD(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(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};xi.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=zI({},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")),po("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",u),o.end();function a(A){A.upgrade=!0}function c(A,d,p){process.nextTick(function(){l(A,d,p)})}function l(A,d,p){if(o.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){po("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(p.length>0){po("got illegal response body from proxy"),d.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return po("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(A){o.removeAllListeners(),po(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};xi.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 cD(t,e){var r=this;xi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=zI({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=cK.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function lD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function zI(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 po;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?po=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)}:po=function(){};Rc.debug=po});var VI=m((dke,AD)=>{AD.exports=uD()});var Ge=m((pke,dD)=>{dD.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 be=m((mke,LD)=>{"use strict";var pD=Symbol.for("undici.error.UND_ERR"),We=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[pD]===!0}[pD]=!0},mD=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),YI=class extends We{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[mD]===!0}[mD]=!0},hD=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),JI=class extends We{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[hD]===!0}[hD]=!0},fD=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),$I=class extends We{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[fD]===!0}[fD]=!0},gD=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),WI=class extends We{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[gD]===!0}[gD]=!0},ED=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),jI=class extends We{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 TZ(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(mZ.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function PZ(){return"allowed"}function vZ(){return"success"}function kZ(){return"success"}function DZ(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _Z(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&&UB(t.origin)&&!UB(sA(t))&&(e=null);break;case"same-origin":Um(t,sA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Uc(t,e){return t}function LZ(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Uc(t.domainLookupStartTime,r),domainLookupEndTime:Uc(t.domainLookupEndTime,r),connectionStartTime:Uc(t.connectionStartTime,r),connectionEndTime:Uc(t.connectionEndTime,r),secureConnectionStartTime:Uc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function MZ(t){return Uc(yZ.now(),t)}function FZ(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 K_(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function UZ(t){return{referrerPolicy:t.referrerPolicy}}function OZ(t){let e=t.referrerPolicy;ca(e);let r=null;if(t.referrer==="client"){let a=V_();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=FB(r),n=FB(r,!0);s.toString().length>4096&&(s=n);let i=Um(t,s),o=rA(s)&&!rA(t.url);switch(e){case"origin":return n??FB(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=sA(t);return Um(s,a)?s:rA(s)&&!rA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function FB(t,e){return ca(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 rA(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 qZ(t,e){if(Fm===void 0)return!0;let r=X_(e);if(r==="no metadata"||r.length===0)return!0;let s=HZ(r),n=zZ(r,s);for(let i of n){let o=i.algo,a=i.hash,c=Fm.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)),VZ(c,a))return!0}return!1}var GZ=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function X_(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=GZ.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();J_.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function HZ(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 zZ(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 VZ(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 YZ(t){}function Um(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function JZ(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function $Z(t){return t.controller.state==="aborted"}function WZ(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jZ(t){return BZ[t.toLowerCase()]??t}function KZ(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ca(typeof e=="string"),e}var XZ=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Z_(t,e,r=0,s=1){class n{#e;#t;#n;constructor(o,a){this.#e=o, Line truncated
`);function S7(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function R7(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 T7(t,e){qm(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&&Gm(t,x7,i)||i.position===t.length-4&&Gm(t,N7,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=P7(t,i);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:A}=a;i.position+=2;let d;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";d=t.subarray(i.position,h-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;l!==null?(u??="text/plain",S7(u)||(u=""),p=new w7([d],l,{type:u})):p=y7(Buffer.from(d)),qm(AL(c)),qm(typeof p=="string"&&AL(p)||I7(p)),n.push(B7(c,p,l))}}function P7(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=qc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=YB(o,!0,!0,a=>a===9||a===32),!C7.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,qc(a=>a===32||a===9,t,e),E7(o)){case"content-disposition":{if(r=s=null,!Gm(t,Q7,e)||(e.position+=17,r=mL(t,e),r===null))return"failure";if(Gm(t,pL,e)){let a=e.position+pL.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=mL(t,e),s===null))return"failure"}break}case"content-type":{let a=qc(c=>c!==10&&c!==13,t,e);a=YB(a,!1,!0,c=>c===9||c===32),n=dL(a);break}case"content-transfer-encoding":{let a=qc(c=>c!==10&&c!==13,t,e);a=YB(a,!1,!0,c=>c===9||c===32),i=dL(a);break}default:qc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function mL(t,e){qm(t[e.position-1]===34);let r=qc(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 qc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function YB(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 Gm(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}hL.exports={multipartFormDataParser:T7,validateBoundary:R7}});var zc=m((Uke,xL)=>{"use strict";var oA=de(),{ReadableStreamFrom:v7,isBlobLike:gL,isReadableStreamLike:k7,readableStreamClose:D7,createDeferredPromise:_7,fullyReadBody:L7,extractMimeType:M7,utf8DecodeBytes:CL}=qr(),{FormData:EL}=iA(),{kState:Hc}=mo(),{webidl:F7}=Gt(),{Blob:U7}=require("node:buffer"),JB=require("node:assert"),{isErrored:IL,isDisturbed:O7}=require("node:stream"),{isArrayBuffer:q7}=require("node:util/types"),{serializeAMimeType:G7}=br(),{multipartFormDataParser:H7}=fL(),$B;try{let t=require("node:crypto");$B=e=>t.randomInt(0,e)}catch{$B=t=>Math.floor(Math.random(t))}var Hm=new TextEncoder;function z7(){}var BL=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,bL;BL&&(bL=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!O7(e)&&!IL(e)&&e.cancel("Response object has been garbage collected").catch(z7)}));function wL(t,e=!1){let r=null;t instanceof ReadableStream?r=t:gL(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?Hm.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>D7(c))},start(){},type:"bytes"}),JB(k7(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(q7(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(oA.isFormDataLike(t)){let c=`----formdata-undici-0${`${$B(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
var eK=Object.create;var FI=Object.defineProperty;var tK=Object.getOwnPropertyDescriptor;var rK=Object.getOwnPropertyNames;var sK=Object.getPrototypeOf,nK=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),iK=(t,e)=>{for(var r in e)FI(t,r,{get:e[r],enumerable:!0})},oK=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rK(e))!nK.call(t,n)&&n!==r&&FI(t,n,{get:()=>e[n],enumerable:!(s=tK(e,n))||s.enumerable});return t};var b=(t,e,r)=>(r=t!=null?eK(sK(t)):{},oK(e||!t||!t.__esModule?FI(r,"default",{value:t,enumerable:!0}):r,t));var pD=m(Rc=>{"use strict";var mke=require("net"),dK=require("tls"),HI=require("http"),uD=require("https"),pK=require("events"),hke=require("assert"),mK=require("util");Rc.httpOverHttp=hK;Rc.httpsOverHttp=fK;Rc.httpOverHttps=gK;Rc.httpsOverHttps=EK;function hK(t){var e=new xi(t);return e.request=HI.request,e}function fK(t){var e=new xi(t);return e.request=HI.request,e.createSocket=AD,e.defaultPort=443,e}function gK(t){var e=new xi(t);return e.request=uD.request,e}function EK(t){var e=new xi(t);return e.request=uD.request,e.createSocket=AD,e.defaultPort=443,e}function xi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HI.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=dD(n,i,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}mK.inherits(xi,pK.EventEmitter);xi.prototype.addRequest=function(e,r,s,n){var i=this,o=zI({request:e},i.options,dD(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(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};xi.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=zI({},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")),po("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",u),o.end();function a(A){A.upgrade=!0}function c(A,d,p){process.nextTick(function(){l(A,d,p)})}function l(A,d,p){if(o.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){po("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(p.length>0){po("got illegal response body from proxy"),d.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return po("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(A){o.removeAllListeners(),po(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};xi.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 AD(t,e){var r=this;xi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=zI({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=dK.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function dD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function zI(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 po;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?po=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)}:po=function(){};Rc.debug=po});var VI=m((gke,mD)=>{mD.exports=pD()});var He=m((Eke,hD)=>{hD.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 we=m((yke,OD)=>{"use strict";var fD=Symbol.for("undici.error.UND_ERR"),ze=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[fD]===!0}[fD]=!0},gD=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),YI=class extends ze{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[gD]===!0}[gD]=!0},ED=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),JI=class extends ze{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[ED]===!0}[ED]=!0},yD=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),$I=class extends ze{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[yD]===!0}[yD]=!0},CD=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),WI=class extends ze{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[CD]===!0}[CD]=!0},ID=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),jI=class extends ze{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 DZ(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(EZ.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function _Z(){return"allowed"}function LZ(){return"success"}function MZ(){return"success"}function FZ(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function UZ(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&&qB(t.origin)&&!qB(sA(t))&&(e=null);break;case"same-origin":Om(t,sA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Uc(t,e){return t}function OZ(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Uc(t.domainLookupStartTime,r),domainLookupEndTime:Uc(t.domainLookupEndTime,r),connectionStartTime:Uc(t.connectionStartTime,r),connectionEndTime:Uc(t.connectionEndTime,r),secureConnectionStartTime:Uc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function qZ(t){return Uc(bZ.now(),t)}function GZ(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 tL(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function HZ(t){return{referrerPolicy:t.referrerPolicy}}function zZ(t){let e=t.referrerPolicy;ca(e);let r=null;if(t.referrer==="client"){let a=W_();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=OB(r),n=OB(r,!0);s.toString().length>4096&&(s=n);let i=Om(t,s),o=rA(s)&&!rA(t.url);switch(e){case"origin":return n??OB(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=sA(t);return Om(s,a)?s:rA(s)&&!rA(a)?"no-referrer":n}default:return o?"no-referrer":n}}function OB(t,e){return ca(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 rA(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 VZ(t,e){if(Um===void 0)return!0;let r=rL(e);if(r==="no metadata"||r.length===0)return!0;let s=JZ(r),n=$Z(r,s);for(let i of n){let o=i.algo,a=i.hash,c=Um.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)),WZ(c,a))return!0}return!1}var YZ=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function rL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=YZ.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();K_.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function JZ(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 $Z(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 WZ(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 jZ(t){}function Om(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KZ(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function XZ(t){return t.controller.state==="aborted"}function ZZ(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function e7(t){return xZ[t.toLowerCase()]??t}function t7(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ca(typeof e=="string"),e}var r7=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function sL(t,e,r=0,s=1){class n{#e;#t;#r;constructor(o,a){this.#e=o, Line truncated
`);function v7(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k7(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 D7(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&&Hm(t,T7,i)||i.position===t.length-4&&Hm(t,P7,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_7(t,i);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:A}=a;i.position+=2;let d;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";d=t.subarray(i.position,h-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;l!==null?(u??="text/plain",v7(u)||(u=""),p=new S7([d],l,{type:u})):p=b7(Buffer.from(d)),Gm(hL(c)),Gm(typeof p=="string"&&hL(p)||Q7(p)),n.push(x7(c,p,l))}}function _7(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=qc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=$B(o,!0,!0,a=>a===9||a===32),!w7.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,qc(a=>a===32||a===9,t,e),B7(o)){case"content-disposition":{if(r=s=null,!Hm(t,R7,e)||(e.position+=17,r=EL(t,e),r===null))return"failure";if(Hm(t,gL,e)){let a=e.position+gL.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=EL(t,e),s===null))return"failure"}break}case"content-type":{let a=qc(c=>c!==10&&c!==13,t,e);a=$B(a,!1,!0,c=>c===9||c===32),n=fL(a);break}case"content-transfer-encoding":{let a=qc(c=>c!==10&&c!==13,t,e);a=$B(a,!1,!0,c=>c===9||c===32),i=fL(a);break}default:qc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function EL(t,e){Gm(t[e.position-1]===34);let r=qc(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 qc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function $B(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 Hm(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}yL.exports={multipartFormDataParser:D7,validateBoundary:k7}});var zc=m((zke,TL)=>{"use strict";var oA=de(),{ReadableStreamFrom:L7,isBlobLike:IL,isReadableStreamLike:M7,readableStreamClose:F7,createDeferredPromise:U7,fullyReadBody:O7,extractMimeType:q7,utf8DecodeBytes:wL}=Gr(),{FormData:BL}=iA(),{kState:Hc}=mo(),{webidl:G7}=Gt(),{Blob:H7}=require("node:buffer"),WB=require("node:assert"),{isErrored:QL,isDisturbed:z7}=require("node:stream"),{isArrayBuffer:V7}=require("node:util/types"),{serializeAMimeType:Y7}=wr(),{multipartFormDataParser:J7}=CL(),jB;try{let t=require("node:crypto");jB=e=>t.randomInt(0,e)}catch{jB=t=>Math.floor(Math.random(t))}var zm=new TextEncoder;function $7(){}var xL=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,NL;xL&&(NL=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!z7(e)&&!QL(e)&&e.cancel("Response object has been garbage collected").catch($7)}));function SL(t,e=!1){let r=null;t instanceof ReadableStream?r=t:IL(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof n=="string"?zm.encode(n):n;l.byteLength&&c.enqueue(l),queueMicrotask(()=>F7(c))},start(){},type:"bytes"}),WB(M7(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(V7(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(oA.isFormDataLike(t)){let c=`----formdata-undici-0${`${jB(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let u=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),A=y=>y.replace(/\r?\n|\r/g,`\r
`),d=[],p=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,g]of t)if(typeof g=="string"){let E=Hm.encode(l+`; name="${u(A(y))}"\r
`),d=[],p=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,g]of t)if(typeof g=="string"){let E=zm.encode(l+`; name="${u(A(y))}"\r
\r
${A(g)}\r
`);d.push(E),i+=E.byteLength}else{let E=Hm.encode(`${l}; name="${u(A(y))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
`);d.push(E),i+=E.byteLength}else{let E=zm.encode(`${l}; name="${u(A(y))}"`+(g.name?`; filename="${u(g.name)}"`:"")+`\r
Content-Type: ${g.type||"application/octet-stream"}\r
\r
`);d.push(E,g,p),typeof g.size=="number"?i+=E.byteLength+g.size+p.byteLength:h=!0}let f=Hm.encode(`--${c}--\r
`);d.push(f),i+=f.byteLength,h&&(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(gL(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(oA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:v7(t)}if((typeof n=="string"||oA.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:u,done:A}=await c.next();if(A)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!IL(r)){let d=new Uint8Array(u);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 V7(t,e=!1){return t instanceof ReadableStream&&(JB(!oA.isDisturbed(t),"The body has already been consumed."),JB(!t.locked,"The stream is locked.")),wL(t,e)}function Y7(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function J7(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $7(t){return{blob(){return Gc(this,r=>{let s=yL(this);return s===null?s="":s&&(s=G7(s)),new U7([r],{type:s})},t)},arrayBuffer(){return Gc(this,r=>new Uint8Array(r).buffer,t)},text(){return Gc(this,CL,t)},json(){return Gc(this,j7,t)},formData(){return Gc(this,r=>{let s=yL(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=H7(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new EL;return i[Hc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new EL;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 Gc(this,r=>new Uint8Array(r),t)}}}function W7(t){Object.assign(t.prototype,$7(t))}async function Gc(t,e,r){if(F7.brandCheck(t,r),QL(t))throw new TypeError("Body is unusable: Body has already been read");J7(t[Hc]);let s=_7(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Hc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await L7(t[Hc].body,i,n),s.promise)}function QL(t){let e=t[Hc].body;return e!=null&&(e.stream.locked||oA.isDisturbed(e.stream))}function j7(t){return JSON.parse(CL(t))}function yL(t){let e=t[Hc].headersList,r=M7(e);return r==="failure"?null:r}xL.exports={extractBody:wL,safelyExtractBody:V7,cloneBody:Y7,mixinBody:W7,streamRegistry:bL,hasFinalizationRegistry:BL,bodyUnusable:QL}});var ML=m((Oke,LL)=>{"use strict";var K=require("node:assert"),re=de(),{channels:NL}=Pc(),WB=TB(),{RequestContentLengthMismatchError:la,ResponseContentLengthMismatchError:K7,RequestAbortedError:kL,HeadersTimeoutError:X7,HeadersOverflowError:Z7,SocketError:Wm,InformationalError:Vc,BodyTimeoutError:eee,HTTPParserError:tee,ResponseExceededMaxSizeError:ree}=be(),{kUrl:DL,kReset:wr,kClient:ZB,kParser:Ze,kBlocking:lA,kRunning:Jt,kPending:see,kSize:SL,kWriting:fo,kQueue:Ys,kNoRef:aA,kKeepAliveDefaultTimeout:nee,kHostHeader:iee,kPendingIdx:oee,kRunningIdx:ps,kError:ms,kPipelining:Jm,kSocket:Yc,kKeepAliveTimeoutValue:jm,kMaxHeadersSize:jB,kKeepAliveMaxTimeout:aee,kKeepAliveTimeoutThreshold:cee,kHeadersTimeout:lee,kBodyTimeout:uee,kStrictContentLength:eb,kMaxRequests:RL,kCounter:Aee,kMaxResponseSize:dee,kOnError:pee,kResume:ho,kHTTPContext:_L}=Ge(),xn=b_(),mee=Buffer.alloc(0),zm=Buffer[Symbol.species],Vm=re.addListener,hee=re.removeAllListeners,KB;async function fee(){let t=process.env.JEST_WORKER_ID?kB():void 0,e;try{e=await WebAssembly.compile(x_())}catch{e=await WebAssembly.compile(t||kB())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onStatus(new zm(Nn.buffer,i,n))||0},wasm_on_message_begin:r=>(K(xt.ptr===r),xt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onHeaderField(new zm(Nn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onHeaderValue(new zm(Nn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(K(xt.ptr===r),xt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onBody(new zm(Nn.buffer,i,n))||0},wasm_on_message_complete:r=>(K(xt.ptr===r),xt.onMessageComplete()||0)}})}var XB=null,tb=fee();tb.catch();var xt=null,Nn=null,Ym=0,Sn=null,gee=0,cA=1,Jc=2|cA,$m=4|cA,rb=8|gee,sb=class{constructor(e,r,{exports:s}){K(Number.isFinite(e[jB])&&e[jB]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(xn.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[jB],this.should Line truncated
`);d.push(E,g,p),typeof g.size=="number"?i+=E.byteLength+g.size+p.byteLength:h=!0}let f=zm.encode(`--${c}--\r
`);d.push(f),i+=f.byteLength,h&&(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(IL(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(oA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:L7(t)}if((typeof n=="string"||oA.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:u,done:A}=await c.next();if(A)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!QL(r)){let d=new Uint8Array(u);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 W7(t,e=!1){return t instanceof ReadableStream&&(WB(!oA.isDisturbed(t),"The body has already been consumed."),WB(!t.locked,"The stream is locked.")),SL(t,e)}function j7(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function K7(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function X7(t){return{blob(){return Gc(this,r=>{let s=bL(this);return s===null?s="":s&&(s=Y7(s)),new H7([r],{type:s})},t)},arrayBuffer(){return Gc(this,r=>new Uint8Array(r).buffer,t)},text(){return Gc(this,wL,t)},json(){return Gc(this,eee,t)},formData(){return Gc(this,r=>{let s=bL(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=J7(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new BL;return i[Hc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new BL;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 Gc(this,r=>new Uint8Array(r),t)}}}function Z7(t){Object.assign(t.prototype,X7(t))}async function Gc(t,e,r){if(G7.brandCheck(t,r),RL(t))throw new TypeError("Body is unusable: Body has already been read");K7(t[Hc]);let s=U7(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[Hc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await O7(t[Hc].body,i,n),s.promise)}function RL(t){let e=t[Hc].body;return e!=null&&(e.stream.locked||oA.isDisturbed(e.stream))}function eee(t){return JSON.parse(wL(t))}function bL(t){let e=t[Hc].headersList,r=q7(e);return r==="failure"?null:r}TL.exports={extractBody:SL,safelyExtractBody:W7,cloneBody:j7,mixinBody:Z7,streamRegistry:NL,hasFinalizationRegistry:xL,bodyUnusable:RL}});var qL=m((Vke,OL)=>{"use strict";var K=require("node:assert"),re=de(),{channels:PL}=Pc(),KB=vB(),{RequestContentLengthMismatchError:la,ResponseContentLengthMismatchError:tee,RequestAbortedError:ML,HeadersTimeoutError:ree,HeadersOverflowError:see,SocketError:jm,InformationalError:Vc,BodyTimeoutError:nee,HTTPParserError:iee,ResponseExceededMaxSizeError:oee}=we(),{kUrl:FL,kReset:Qr,kClient:tb,kParser:Ze,kBlocking:lA,kRunning:Jt,kPending:aee,kSize:vL,kWriting:fo,kQueue:Ys,kNoRef:aA,kKeepAliveDefaultTimeout:cee,kHostHeader:lee,kPendingIdx:uee,kRunningIdx:ms,kError:hs,kPipelining:$m,kSocket:Yc,kKeepAliveTimeoutValue:Km,kMaxHeadersSize:XB,kKeepAliveMaxTimeout:Aee,kKeepAliveTimeoutThreshold:dee,kHeadersTimeout:pee,kBodyTimeout:mee,kStrictContentLength:rb,kMaxRequests:kL,kCounter:hee,kMaxResponseSize:fee,kOnError:gee,kResume:ho,kHTTPContext:UL}=He(),xn=N_(),Eee=Buffer.alloc(0),Vm=Buffer[Symbol.species],Ym=re.addListener,yee=re.removeAllListeners,ZB;async function Cee(){let t=process.env.JEST_WORKER_ID?_B():void 0,e;try{e=await WebAssembly.compile(T_())}catch{e=await WebAssembly.compile(t||_B())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onStatus(new Vm(Nn.buffer,i,n))||0},wasm_on_message_begin:r=>(K(xt.ptr===r),xt.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onHeaderField(new Vm(Nn.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onHeaderValue(new Vm(Nn.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(K(xt.ptr===r),xt.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{K(xt.ptr===r);let i=s-Sn+Nn.byteOffset;return xt.onBody(new Vm(Nn.buffer,i,n))||0},wasm_on_message_complete:r=>(K(xt.ptr===r),xt.onMessageComplete()||0)}})}var eb=null,sb=Cee();sb.catch();var xt=null,Nn=null,Jm=0,Sn=null,Iee=0,cA=1,Jc=2|cA,Wm=4|cA,nb=8|Iee,ib=class{constructor(e,r,{exports:s}){K(Number.isFinite(e[XB])&&e[XB]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(xn.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[XB],this.s Line truncated
`;if(typeof n=="string"?f+=`host: ${n}\r
`:f+=t[iee],i?f+=`connection: upgrade\r
`:f+=t[lee],i?f+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Jm]&&!p[wr]?f+=`connection: keep-alive\r
`:t[$m]&&!p[Qr]?f+=`connection: keep-alive\r
`:f+=`connection: close\r
`,Array.isArray(l))for(let y=0;y<l.length;y+=2){let g=l[y+0],E=l[y+1];if(Array.isArray(E))for(let C=0;C<E.length;C++)f+=`${g}: ${E[C]}\r
`;else f+=`${g}: ${E}\r
`}return NL.sendHeaders.hasSubscribers&&NL.sendHeaders.publish({request:e,headers:f,socket:p}),!c||d===0?PL(h,null,t,e,p,u,f,A):re.isBuffer(c)?PL(h,c,t,e,p,u,f,A):re.isBlobLike(c)?typeof c.stream=="function"?vL(h,c.stream(),t,e,p,u,f,A):bee(h,c,t,e,p,u,f,A):re.isStream(c)?Bee(h,c,t,e,p,u,f,A):re.isIterable(c)?vL(h,c,t,e,p,u,f,A):K(!1),!0}function Bee(t,e,r,s,n,i,o,a){K(i!==0||r[Jt]===0,"stream body cannot be pipelined");let c=!1,l=new Km({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(f){re.destroy(this,f)}},A=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!c){let h=new kL;queueMicrotask(()=>p(h))}},p=function(h){if(!c){if(c=!0,K(n.destroyed||n[fo]&&r[Jt]<=1),n.off("drain",A).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",d),!h)try{l.end()}catch(f){h=f}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?re.destroy(e,h):re.destroy(e)}};e.on("data",u).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function PL(t,e,r,s,n,i,o,a){try{e?re.isBuffer(e)&&(K(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
`}return PL.sendHeaders.hasSubscribers&&PL.sendHeaders.publish({request:e,headers:f,socket:p}),!c||d===0?_L(h,null,t,e,p,u,f,A):re.isBuffer(c)?_L(h,c,t,e,p,u,f,A):re.isBlobLike(c)?typeof c.stream=="function"?LL(h,c.stream(),t,e,p,u,f,A):Nee(h,c,t,e,p,u,f,A):re.isStream(c)?xee(h,c,t,e,p,u,f,A):re.isIterable(c)?LL(h,c,t,e,p,u,f,A):K(!1),!0}function xee(t,e,r,s,n,i,o,a){K(i!==0||r[Jt]===0,"stream body cannot be pipelined");let c=!1,l=new Xm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(h){if(!c)try{!l.write(h)&&this.pause&&this.pause()}catch(f){re.destroy(this,f)}},A=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!c){let h=new ML;queueMicrotask(()=>p(h))}},p=function(h){if(!c){if(c=!0,K(n.destroyed||n[fo]&&r[Jt]<=1),n.off("drain",A).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",d),!h)try{l.end()}catch(f){h=f}l.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?re.destroy(e,h):re.destroy(e)}};e.on("data",u).on("end",p).on("error",p).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function _L(t,e,r,s,n,i,o,a){try{e?re.isBuffer(e)&&(K(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[wr]=!0)):i===0?n.write(`${o}content-length: 0\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Qr]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
`,"latin1"):(K(i===null,"no body must not have content length"),n.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[ho]()}catch(c){t(c)}}async function bee(t,e,r,s,n,i,o,a){K(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new la;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[ho]()}catch(c){t(c)}}async function Nee(t,e,r,s,n,i,o,a){K(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new la;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[wr]=!0),r[ho]()}catch(c){t(c)}}async function vL(t,e,r,s,n,i,o,a){K(i!==0||r[Jt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,p)=>{K(c===null),n[ms]?p(n[ms]):c=d});n.on("close",l).on("drain",l);let A=new Km({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ms])throw n[ms];A.write(d)||await u()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",l).off("drain",l)}}var Km=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[fo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ms])throw r[ms];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[eb])throw new la;process.emitWarning(new la)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[wr]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Qr]=!0),r[ho]()}catch(c){t(c)}}async function LL(t,e,r,s,n,i,o,a){K(i!==0||r[Jt]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,p)=>{K(c===null),n[hs]?p(n[hs]):c=d});n.on("close",l).on("drain",l);let A=new Xm({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[hs])throw n[hs];A.write(d)||await u()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",l).off("drain",l)}}var Xm=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[fo]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[hs])throw r[hs];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(n!==null&&o+l>n){if(i[rb])throw new la;process.emitWarning(new la)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Qr]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Ze].timeout&&r[Ze].timeoutType===Jc&&r[Ze].timeout.refresh&&r[Ze].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[fo]=!1,e[ms])throw e[ms];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Ze].timeout&&r[Ze].timeoutType===Jc&&r[Ze].timeout.refresh&&r[Ze].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[fo]=!1,e[hs])throw e[hs];if(!e.destroyed){if(n===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[eb])throw new la;process.emitWarning(new la)}e[Ze].timeout&&e[Ze].timeoutType===Jc&&e[Ze].timeout.refresh&&e[Ze].timeout.refresh(),s[ho]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[fo]=!1,e&&(K(s[Jt]<=1,"pipeline should only contain this request"),n(e))}};LL.exports=Eee});var VL=m((qke,zL)=>{"use strict";var hs=require("node:assert"),{pipeline:wee}=require("node:stream"),he=de(),{RequestContentLengthMismatchError:nb,RequestAbortedError:FL,SocketError:uA,InformationalError:ib}=be(),{kUrl:Xm,kReset:eh,kClient:$c,kRunning:th,kPending:Qee,kQueue:go,kPendingIdx:ob,kRunningIdx:Js,kError:Ws,kSocket:_t,kStrictContentLength:xee,kOnError:ab,kMaxConcurrentStreams:HL,kHTTP2Session:$s,kResume:Eo,kSize:Nee,kHTTPContext:See}=Ge(),vi=Symbol("open streams"),UL,OL=!1,Zm;try{Zm=require("node:http2")}catch{Zm={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Ree,HTTP2_HEADER_METHOD:Tee,HTTP2_HEADER_PATH:Pee,HTTP2_HEADER_SCHEME:vee,HTTP2_HEADER_CONTENT_LENGTH:kee,HTTP2_HEADER_EXPECT:Dee,HTTP2_HEADER_STATUS:_ee}}=Zm;function Lee(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 Mee(t,e){t[_t]=e,OL||(OL=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Zm.connect(t[Xm],{createConnection:()=>e,peerMaxConcurrentStreams:t[HL]});r[vi]=0,r[$c]=t,r[_t]=e,he.addListener(r,"error",Uee),he.addListener(r,"frameError",Oee),he.addListener(r,"end",qee),he.addListener(r,"goaway",Gee),he.addListener(r,"close",function(){let{[$c]:n}=this,{[_t]:i}=n,o=this[_t][Ws]||this[Ws]||new uA("closed",he.getSocketInfo(i));if(n[$s]=null,n.destroyed){hs(n[Qee]===0);let a=n[go].splice(n[Js]);for(let c=0;c<a.length;c++){let l=a[c];he.errorRequest(n,l,o)}}}),r.unref(),t[$s]=r,e[$s]=r,he.addListener(e,"error",function(n){hs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws]=n,this[$c][ab](n)}),he.addListener(e,"end",function(){he.destroy(this,new uA("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[Ws]||new uA("closed",he.getSocketInfo(this));t[_t]=null,this[$s]!=null&&this[$s].destroy(n),t[ob]=t[Js],hs(t[th]===0),t.emit("disconnect",t[Xm],[t],n),t[Eo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return zee(t,...n)},resume(){Fee(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Fee(t){let e=t[_t];e?.destroyed===!1&&(t[Nee]===0&&t[HL]===0?(e.unref(),t[$s].unref()):(e.ref(),t[$s].ref()))}function Uee(t){hs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_t][Ws]=t,this[$c][ab](t)}function Oee(t,e,r){if(r===0){let s=new ib(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_t][Ws]=s,this[$c][ab](s)}}function qee(){let t=new uA("other side closed",he.getSocketInfo(this[_t]));this.destroy(t),he.destroy(this[_t],t)}function Gee(t){let e=this[Ws]||new uA(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[$c];if(r[_t]=null,r[See]=null,this[$s]!=null&&(this[$s].destroy(e),this[$s]=null),he.destroy(this[_t],e),r[Js]<r[go].length){let s=r[go][r[Js]];r[go][r[Js]++]=null,he.errorRequest(r,s,e),r[ob]=r[Js]}hs(r[th]===0),r.emit("disconnect",r[Xm],[r],e),r[Eo]()}function Hee(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function zee(t,e){let r=t[$s],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return he.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<l.length;B+=2){let v=l[B+0],Y=l[B+1];if(Array.isArray(Y))for(let H=0;H<Y.length;H++)A[v]?A[v]+=`,${Y[H]}`:A[v]=Y[H];else A[v]=Y}let d,{hostname:p,port:h}=t[Xm];A[Ree]=i||`${p}${h?`:${h}`:""}`,A[Tee]=s;let f=B=>{e.aborted||e.completed||(B=B||new FL,he.errorRequest(t,e,B),d!=null&&he.destroy(d,B),he.destroy(u,B),t[go][t[Js]++]=null,t[Eo]())};try{e.onConnect(f)}catch(B){he.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(A,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[vi],t[go][t[Js]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[vi],t[go][t[Js]++]=null}),d.once("close",()=>{r[vi]-=1,r[vi]===0&&r.unref()}),!0;A[Pee]=n,A[vee]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=he.bodyLength(u);if(he.isFormDataLike(u)){UL??=zc().extractBody;let[B,v]=UL(u);A["content-type"]=v,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Hee(s)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[xee])return he.errorRequest(t,e,new nb),!1;process.emitWarning(new nb)}g!=null&&(hs(u,"no body must not have content length"),A[kee]=`${g}`),r.ref();let E=s==="GET"||s==="HEAD"||u===null;return a?(A[Dee]="100-continue",d=r.request(A,{endStream:E,signal:c}),d.once("c Line truncated
`,this[fte]=c??3e5,this[hte]=n??3e5,this[gte]=E??!0,this[Ete]=B,this[Ab]=Y,this[Co]=null,this[bte]=ge>-1?ge:-1,this[Qte]=z??100,this[At]=null,this[js]=[],this[Di]=0,this[Ks]=0,this[mA]=U=>pb(this,U),this[wte]=U=>sM(this,U)}get pipelining(){return this[ih]}set pipelining(e){this[ih]=e,this[mA](!0)}get[gA](){return this[js].length-this[Ks]}get[fA](){return this[Ks]-this[Di]}get[hA](){return this[js].length-this[Di]}get[cte](){return!!this[At]&&!this[jc]&&!this[At].destroyed}get[ub](){return!!(this[At]?.busy(null)||this[hA]>=(rM(this)||1)||this[gA]>0)}[ate](e){nM(this),this.once("connect",e)}[Bte](e,r){let s=e.origin||this[Tn].origin,n=new tte(s,e,r);return this[js].push(n),this[Aa]||(ua.bodyLength(n.body)==null&&ua.isIterable(n.body)?(this[Aa]=1,queueMicrotask(()=>pb(this))):this[mA](!0)),this[Aa]&&this[Io]!==2&&this[ub]&&(this[Io]=2),this[Io]<2}async[Cte](){return new Promise(e=>{this[hA]?this[Co]=e:e(null)})}async[Ite](e){return new Promise(r=>{let s=this[js].splice(this[Ks]);for(let i=0;i<s.length;i++){let o=s[i];ua.errorRequest(this,o,e)}let n=()=>{this[Co]&&(this[Co](),this[Co]=null),r(null)};this[At]?(this[At].destroy(e,n),this[At]=null):queueMicrotask(n),this[mA]()})}},Ste=nh();function sM(t,e){if(t[fA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ki(t[Ks]===t[Di]);let r=t[js].splice(t[Di]);for(let s=0;s<r.length;s++){let n=r[s];ua.errorRequest(t,n,e)}ki(t[hA]===0)}}async function nM(t){ki(!t[jc]),ki(!t[At]);let{host:e,hostname:r,protocol:s,port:n}=t[Tn];if(r[0]==="["){let i=r.indexOf("]");ki(i!==-1);let o=r.substring(1,i);ki(tM.isIP(o)),r=o}t[jc]=!0,Wc.beforeConnect.hasSubscribers&&Wc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[yo],localAddress:t[pA]},connector:t[dA]});try{let i=await new Promise((o,a)=>{t[dA]({host:e,hostname:r,protocol:s,port:n,servername:t[yo],localAddress:t[pA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){ua.destroy(i.on("error",ZL),new nte);return}ki(i);try{t[At]=i.alpnProtocol==="h2"?await Nte(t,i):await xte(t,i)}catch(o){throw i.destroy().on("error",ZL),o}t[jc]=!1,i[yte]=0,i[Ab]=t[Ab],i[ote]=t,i[ute]=null,Wc.connected.hasSubscribers&&Wc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[yo],localAddress:t[pA]},connector:t[dA],socket:i}),t.emit("connect",t[Tn],[t])}catch(i){if(t.destroyed)return;if(t[jc]=!1,Wc.connectError.hasSubscribers&&Wc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[yo],localAddress:t[pA]},connector:t[dA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ki(t[fA]===0);t[gA]>0&&t[js][t[Ks]].servername===t[yo];){let o=t[js][t[Ks]++];ua.errorRequest(t,o,i)}else sM(t,i);t.emit("connectionError",t[Tn],[t],i)}t[mA]()}function eM(t){t[Io]=0,t.emit("drain",t[Tn],[t])}function pb(t,e){t[Aa]!==2&&(t[Aa]=2,Rte(t,e),t[Aa]=0,t[Di]>256&&(t[js].splice(0,t[Di]),t[Ks]-=t[Di],t[Di]=0))}function Rte(t,e){for(;;){if(t.destroyed){ki(t[gA]===0);return}if(t[Co]&&!t[hA]){t[Co](),t[Co]=null;return}if(t[At]&&t[At].resume(),t[ub])t[Io]=2;else if(t[Io]===2){e?(t[Io]=1,queueMicrotask(()=>eM(t))):eM(t);continue}if(t[gA]===0||t[fA]>=(rM(t)||1))return;let r=t[js][t[Ks]];if(t[Tn].protocol==="https:"&&t[yo]!==r.servername){if(t[fA]>0)return;t[yo]=r.servername,t[At]?.destroy(new ste("servername changed"),()=>{t[At]=null,pb(t)})}if(t[jc])return;if(!t[At]){nM(t);return}if(t[At].destroyed||t[At].busy(r))return;!r.aborted&&t[At].write(r)?t[Ks]++:t[js].splice(t[Ks],1)}}iM.exports=db});var mb=m((Yke,oM)=>{"use strict";var oh=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)}};oM.exports=class{constructor(){this.head=this.tail=new oh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new oh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var cM=m((Jke,aM)=>{var{kFree:Tte,kConnected:Pte,kPending:vte,kQueued:kte,kRunning:Dte,kSize:_te}=Ge(),da=Symbol("pool"),hb=class{constructor(e){this[da]=e}get connected(){return this[da][Pte]}get free(){return this[da][Tte]}get pending(){return this[da][vte]}get queued(){return this[da][kte]}get running(){return this[da][Dte]}get size(){return this[da][_te]}};aM.exports=hb});var Ib=m(($ke,EM)=>{"use strict";var Lte=_c(),Mte=mb(),{kConnected:fb,kSize:lM,kRunning:uM,kPending:AM,kQueued:EA,kBusy:Fte,kFree:Ute,kUrl:Ote,kClose:qte,kDestroy:Gte,kDispatch:Hte}=Ge(),zte=cM(),Qr=Symbol("clients"),ar=Symbol("needDrain"),yA=Symbol("queue"),gb=Symbol("closed resolve"),Eb=Symbol("onDrain"),dM=Symbol("onConnect"),pM=Symbol("onDisconnect"),mM=Symbol("onConnectionError"),yb=Symbol("get Line truncated
`,"latin1"),r!==null&&n!==r){if(s[rb])throw new la;process.emitWarning(new la)}e[Ze].timeout&&e[Ze].timeoutType===Jc&&e[Ze].timeout.refresh&&e[Ze].timeout.refresh(),s[ho]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[fo]=!1,e&&(K(s[Jt]<=1,"pipeline should only contain this request"),n(e))}};OL.exports=Bee});var WL=m((Yke,$L)=>{"use strict";var fs=require("node:assert"),{pipeline:See}=require("node:stream"),he=de(),{RequestContentLengthMismatchError:ob,RequestAbortedError:GL,SocketError:uA,InformationalError:ab}=we(),{kUrl:Zm,kReset:th,kClient:$c,kRunning:rh,kPending:Ree,kQueue:go,kPendingIdx:cb,kRunningIdx:Js,kError:Ws,kSocket:_t,kStrictContentLength:Tee,kOnError:lb,kMaxConcurrentStreams:JL,kHTTP2Session:$s,kResume:Eo,kSize:Pee,kHTTPContext:vee}=He(),vi=Symbol("open streams"),HL,zL=!1,eh;try{eh=require("node:http2")}catch{eh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kee,HTTP2_HEADER_METHOD:Dee,HTTP2_HEADER_PATH:_ee,HTTP2_HEADER_SCHEME:Lee,HTTP2_HEADER_CONTENT_LENGTH:Mee,HTTP2_HEADER_EXPECT:Fee,HTTP2_HEADER_STATUS:Uee}}=eh;function Oee(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 qee(t,e){t[_t]=e,zL||(zL=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=eh.connect(t[Zm],{createConnection:()=>e,peerMaxConcurrentStreams:t[JL]});r[vi]=0,r[$c]=t,r[_t]=e,he.addListener(r,"error",Hee),he.addListener(r,"frameError",zee),he.addListener(r,"end",Vee),he.addListener(r,"goaway",Yee),he.addListener(r,"close",function(){let{[$c]:n}=this,{[_t]:i}=n,o=this[_t][Ws]||this[Ws]||new uA("closed",he.getSocketInfo(i));if(n[$s]=null,n.destroyed){fs(n[Ree]===0);let a=n[go].splice(n[Js]);for(let c=0;c<a.length;c++){let l=a[c];he.errorRequest(n,l,o)}}}),r.unref(),t[$s]=r,e[$s]=r,he.addListener(e,"error",function(n){fs(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ws]=n,this[$c][lb](n)}),he.addListener(e,"end",function(){he.destroy(this,new uA("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[Ws]||new uA("closed",he.getSocketInfo(this));t[_t]=null,this[$s]!=null&&this[$s].destroy(n),t[cb]=t[Js],fs(t[rh]===0),t.emit("disconnect",t[Zm],[t],n),t[Eo]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return $ee(t,...n)},resume(){Gee(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Gee(t){let e=t[_t];e?.destroyed===!1&&(t[Pee]===0&&t[JL]===0?(e.unref(),t[$s].unref()):(e.ref(),t[$s].ref()))}function Hee(t){fs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_t][Ws]=t,this[$c][lb](t)}function zee(t,e,r){if(r===0){let s=new ab(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[_t][Ws]=s,this[$c][lb](s)}}function Vee(){let t=new uA("other side closed",he.getSocketInfo(this[_t]));this.destroy(t),he.destroy(this[_t],t)}function Yee(t){let e=this[Ws]||new uA(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[$c];if(r[_t]=null,r[vee]=null,this[$s]!=null&&(this[$s].destroy(e),this[$s]=null),he.destroy(this[_t],e),r[Js]<r[go].length){let s=r[go][r[Js]];r[go][r[Js]++]=null,he.errorRequest(r,s,e),r[cb]=r[Js]}fs(r[rh]===0),r.emit("disconnect",r[Zm],[r],e),r[Eo]()}function Jee(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function $ee(t,e){let r=t[$s],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return he.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let B=0;B<l.length;B+=2){let x=l[B+0],Y=l[B+1];if(Array.isArray(Y))for(let H=0;H<Y.length;H++)A[x]?A[x]+=`,${Y[H]}`:A[x]=Y[H];else A[x]=Y}let d,{hostname:p,port:h}=t[Zm];A[kee]=i||`${p}${h?`:${h}`:""}`,A[Dee]=s;let f=B=>{e.aborted||e.completed||(B=B||new GL,he.errorRequest(t,e,B),d!=null&&he.destroy(d,B),he.destroy(u,B),t[go][t[Js]++]=null,t[Eo]())};try{e.onConnect(f)}catch(B){he.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(A,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[vi],t[go][t[Js]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[vi],t[go][t[Js]++]=null}),d.once("close",()=>{r[vi]-=1,r[vi]===0&&r.unref()}),!0;A[_ee]=n,A[Lee]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=he.bodyLength(u);if(he.isFormDataLike(u)){HL??=zc().extractBody;let[B,x]=HL(u);A["content-type"]=x,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Jee(s)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Tee])return he.errorRequest(t,e,new ob),!1;process.emitWarning(new ob)}g!=null&&(fs(u,"no body must not have content length"),A[Mee]=`${g}`),r.ref();let E=s==="GET"||s==="HEAD"||u===null;return a?(A[Fee]="100-continue",d=r.request(A,{endStream:E,signal:c}),d.once("c Line truncated
`,this[Cte]=c??3e5,this[yte]=n??3e5,this[Ite]=E??!0,this[Bte]=B,this[pb]=Y,this[Co]=null,this[Nte]=ge>-1?ge:-1,this[Rte]=z??100,this[At]=null,this[js]=[],this[Di]=0,this[Ks]=0,this[mA]=Ee=>hb(this,Ee),this[Ste]=Ee=>aM(this,Ee)}get pipelining(){return this[oh]}set pipelining(e){this[oh]=e,this[mA](!0)}get[gA](){return this[js].length-this[Ks]}get[fA](){return this[Ks]-this[Di]}get[hA](){return this[js].length-this[Di]}get[dte](){return!!this[At]&&!this[jc]&&!this[At].destroyed}get[db](){return!!(this[At]?.busy(null)||this[hA]>=(oM(this)||1)||this[gA]>0)}[Ate](e){cM(this),this.once("connect",e)}[xte](e,r){let s=e.origin||this[Tn].origin,n=new ite(s,e,r);return this[js].push(n),this[Aa]||(ua.bodyLength(n.body)==null&&ua.isIterable(n.body)?(this[Aa]=1,queueMicrotask(()=>hb(this))):this[mA](!0)),this[Aa]&&this[Io]!==2&&this[db]&&(this[Io]=2),this[Io]<2}async[wte](){return new Promise(e=>{this[hA]?this[Co]=e:e(null)})}async[Qte](e){return new Promise(r=>{let s=this[js].splice(this[Ks]);for(let i=0;i<s.length;i++){let o=s[i];ua.errorRequest(this,o,e)}let n=()=>{this[Co]&&(this[Co](),this[Co]=null),r(null)};this[At]?(this[At].destroy(e,n),this[At]=null):queueMicrotask(n),this[mA]()})}},vte=ih();function aM(t,e){if(t[fA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ki(t[Ks]===t[Di]);let r=t[js].splice(t[Di]);for(let s=0;s<r.length;s++){let n=r[s];ua.errorRequest(t,n,e)}ki(t[hA]===0)}}async function cM(t){ki(!t[jc]),ki(!t[At]);let{host:e,hostname:r,protocol:s,port:n}=t[Tn];if(r[0]==="["){let i=r.indexOf("]");ki(i!==-1);let o=r.substring(1,i);ki(iM.isIP(o)),r=o}t[jc]=!0,Wc.beforeConnect.hasSubscribers&&Wc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[yo],localAddress:t[pA]},connector:t[dA]});try{let i=await new Promise((o,a)=>{t[dA]({host:e,hostname:r,protocol:s,port:n,servername:t[yo],localAddress:t[pA]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){ua.destroy(i.on("error",sM),new cte);return}ki(i);try{t[At]=i.alpnProtocol==="h2"?await Pte(t,i):await Tte(t,i)}catch(o){throw i.destroy().on("error",sM),o}t[jc]=!1,i[bte]=0,i[pb]=t[pb],i[ute]=t,i[mte]=null,Wc.connected.hasSubscribers&&Wc.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[yo],localAddress:t[pA]},connector:t[dA],socket:i}),t.emit("connect",t[Tn],[t])}catch(i){if(t.destroyed)return;if(t[jc]=!1,Wc.connectError.hasSubscribers&&Wc.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[At]?.version,servername:t[yo],localAddress:t[pA]},connector:t[dA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ki(t[fA]===0);t[gA]>0&&t[js][t[Ks]].servername===t[yo];){let o=t[js][t[Ks]++];ua.errorRequest(t,o,i)}else aM(t,i);t.emit("connectionError",t[Tn],[t],i)}t[mA]()}function nM(t){t[Io]=0,t.emit("drain",t[Tn],[t])}function hb(t,e){t[Aa]!==2&&(t[Aa]=2,kte(t,e),t[Aa]=0,t[Di]>256&&(t[js].splice(0,t[Di]),t[Ks]-=t[Di],t[Di]=0))}function kte(t,e){for(;;){if(t.destroyed){ki(t[gA]===0);return}if(t[Co]&&!t[hA]){t[Co](),t[Co]=null;return}if(t[At]&&t[At].resume(),t[db])t[Io]=2;else if(t[Io]===2){e?(t[Io]=1,queueMicrotask(()=>nM(t))):nM(t);continue}if(t[gA]===0||t[fA]>=(oM(t)||1))return;let r=t[js][t[Ks]];if(t[Tn].protocol==="https:"&&t[yo]!==r.servername){if(t[fA]>0)return;t[yo]=r.servername,t[At]?.destroy(new ate("servername changed"),()=>{t[At]=null,hb(t)})}if(t[jc])return;if(!t[At]){cM(t);return}if(t[At].destroyed||t[At].busy(r))return;!r.aborted&&t[At].write(r)?t[Ks]++:t[js].splice(t[Ks],1)}}lM.exports=mb});var fb=m((Kke,uM)=>{"use strict";var ah=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)}};uM.exports=class{constructor(){this.head=this.tail=new ah}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ah),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var dM=m((Xke,AM)=>{var{kFree:Dte,kConnected:_te,kPending:Lte,kQueued:Mte,kRunning:Fte,kSize:Ute}=He(),da=Symbol("pool"),gb=class{constructor(e){this[da]=e}get connected(){return this[da][_te]}get free(){return this[da][Dte]}get pending(){return this[da][Lte]}get queued(){return this[da][Mte]}get running(){return this[da][Fte]}get size(){return this[da][Ute]}};AM.exports=gb});var bb=m((Zke,BM)=>{"use strict";var Ote=_c(),qte=fb(),{kConnected:Eb,kSize:pM,kRunning:mM,kPending:hM,kQueued:EA,kBusy:Gte,kFree:Hte,kUrl:zte,kClose:Vte,kDestroy:Yte,kDispatch:Jte}=He(),$te=dM(),xr=Symbol("clients"),cr=Symbol("needDrain"),yA=Symbol("queue"),yb=Symbol("closed resolve"),Cb=Symbol("onDrain"),fM=Symbol("onConnect"),gM=Symbol("onDisconnect"),EM=Symbol("onConnectionError"),Ib=Symbol( Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};wU.exports=Iw});var wh=m((BDe,RU)=>{"use strict";var xU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:fne}=be(),gne=Zc();SU()===void 0&&NU(new gne);function NU(t){if(!t||typeof t.dispatch!="function")throw new fne("Argument agent must implement Agent");Object.defineProperty(globalThis,xU,{value:t,writable:!0,enumerable:!1,configurable:!1})}function SU(){return globalThis[xU]}RU.exports={setGlobalDispatcher:NU,getGlobalDispatcher:SU}});var Qh=m((wDe,TU)=>{"use strict";TU.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 vU=m((QDe,PU)=>{"use strict";var Ene=sh();PU.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 Ene(r,o,n,i);return r(a,c)}}});var DU=m((xDe,kU)=>{"use strict";var yne=mh();kU.exports=t=>e=>function(s,n){return e(s,new yne({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var LU=m((NDe,_U)=>{"use strict";var Cne=de(),{InvalidArgumentError:Ine,RequestAbortedError:Bne}=be(),bne=Qh(),Bw=class extends bne{#e=1024*1024;#t=null;#n=!1;#s=!1;#r=0;#i=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Ine("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.#s=!0,this.#i=e}onHeaders(e,r,s,n){let o=Cne.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Bne(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#s?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#n||(e=this.#i??e,this.#o.onError(e))}onData(e){return this.#r=this.#r+e.length,this.#r>=this.#e&&(this.#n=!0,this.#s?this.#o.onError(this.#i):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#s){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function wne({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new Bw({maxSize:i},n);return e(s,o)}}_U.exports=wne});var UU=m((SDe,FU)=>{"use strict";var{isIP:Qne}=require("node:net"),{lookup:xne}=require("node:dns"),Nne=Qh(),{InvalidArgumentError:ll,InformationalError:Sne}=be(),MU=Math.pow(2,31)-1,bw=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#s,this.pick=e.pick??this.#r}get full(){return this.#n.size===this.#t}runLookup(e,r,s){let n=this.#n.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 Sne("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),l=this.pick(e,c,i.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#n.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}`)}}#s(e,r,s){xne(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())})}#r(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===MU?(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===MU?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.#n.set(e.hostname,n)}getHandler(e,r){return new ww(this,e,r)}},ww=class extends Nne{#e=null;#t=null;#n=null;#s=null;#r=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#r=r,this.#s=s,this.#t={...i},this.#e=e,this.#n=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#r,this.#t,(r,s)=>{if(r)return this.#s.o Line truncated
${i}`;break;case"retry":E1(i)&&(r[n]=i);break;case"id":y1(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&E1(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&y1(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}}};C1.exports={EventSourceStream:lQ}});var R1=m((i_e,S1)=>{"use strict";var{pipeline:Lce}=require("node:stream"),{fetching:Mce}=vA(),{makeRequest:Fce}=dl(),{webidl:Ui}=Gt(),{EventSourceStream:Uce}=I1(),{parseMIMEType:Oce}=br(),{createFastMessageEvent:qce}=El(),{isNetworkError:B1}=TA(),{delay:Gce}=aQ(),{kEnumerableProperty:Na}=de(),{environmentSettingsObject:b1}=qr(),w1=!1,Q1=3e3,zA=0,x1=1,VA=2,Hce="anonymous",zce="use-credentials",bl=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#s=zA;#r=null;#i=null;#o;#a;constructor(e,r={}){super(),Ui.util.markAsUncloneable(this);let s="EventSource constructor";Ui.argumentLengthCheck(arguments,1,s),w1||(w1=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ui.converters.USVString(e,s,"url"),r=Ui.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Q1};let n=b1,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=Hce;r.withCredentials&&(o=zce,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=b1.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#r=Fce(a),this.#c()}get readyState(){return this.#s}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#s===VA)return;this.#s=zA;let e={request:this.#r,dispatcher:this.#o},r=s=>{B1(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(B1(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?Oce(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.#s=x1,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new Uce({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(qce(c.type,c.options))}});Lce(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Mce(e)}async#l(){this.#s!==VA&&(this.#s=zA,this.dispatchEvent(new Event("error")),await Gce(this.#a.reconnectionTime),this.#s===zA&&(this.#a.lastEventId.length&&this.#r.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Ui.brandCheck(this,t),this.#s!==VA&&(this.#s=VA,this.#i.abort(),this.#r=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}},N1={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:zA,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:x1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:VA,writable:!1}};Object.defineProperties(bl,N1);Object.defineProperties(bl.prototype,N1);Object.defineProperties(bl.prototype,{close:Na,onerror:Na,onmessage:Na,onopen:Na,readyState:Na,url:Na,withCredentials:Na});Ui.converters.EventSourceInitDict=Ui.dictionaryConverter([{key:"withCredentials",converter:Ui.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ui.converters.any}]);S1.exports={EventSource:bl,defaultReconnectionTime:Q1}});var hf=m((o_e,Z)=>{"use strict";var Vce=Kc(),T1=ju(),Yce=Xc(),Jce=NM(),$ce=Zc(),Wce=Db(),jce=KM(),Kce=sF(),P1=be(),mf=de(),{InvalidArgumentError:pf}=P1,wl=HF(),Xce=Xu(),Zce=hw(),ele=QU(),tle=Ew(),rle=rw(),sle=mh(),{getGlobalDispatcher:v1,setGlobalDispatcher:nle}=wh(),ile=Qh(),ole=sh(),ale=nh();Object.assign(T1.prototype,wl);Z.exports.Dispatcher=T1;Z.exports.Client=Vce;Z.exports.Pool=Yce;Z.exports.BalancedPool=Jce;Z.exports.Agent=$ce;Z.exports.ProxyAgent=Wce;Z.exports.EnvHttpProxyAgent=jce;Z.exports.RetryAgent=Kce;Z.exports.RetryHandler=sl Line truncated
%s`,v,v,E,s);var Y=E.type==="*"?nx:E.type==="?"?sx:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+Y+"\\("+v}h(),i&&(s+="\\\\");var H=!1;switch(s.charAt(0)){case"[":case".":case"(":H=!0}for(var ge=a.length-1;ge>-1;ge--){var Be=a[ge],Re=s.slice(0,Be.reStart),z=s.slice(Be.reStart,Be.reEnd-8),ce=s.slice(Be.reEnd-8,Be.reEnd),U=s.slice(Be.reEnd);ce+=U;var Ne=Re.split("(").length-1,Ct=U;for(f=0;f<Ne;f++)Ct=Ct.replace(/\)[+*?]?/,"");U=Ct;var $e="";U===""&&e!==qf&&($e="$");var lt=Re+z+U+$e+ce;s=lt}if(s!==""&&n&&(s="(?=.)"+s),H&&(s=d+s),e===qf)return[s,n];if(!n)return ppe(t);var Qi=r.nocase?"i":"";try{var Or=new RegExp("^"+s+"$",Qi)}catch{return new RegExp("$.")}return Or._glob=t,Or._src=s,Or}Kr.makeRe=function(t,e){return new Ht(t,e||{}).makeRe()};Ht.prototype.makeRe=dpe;function dpe(){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?nx:e.dot?npe:ipe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===ix?r:typeof o=="string"?mpe(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 Ht(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Ht.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;cd.sep!=="/"&&(e=e.split(cd.sep).join("/")),e=e.split(CH),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};Ht.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===ix){this.debug("GLOBSTAR",[e,c,l]);var u=n,A=i+1;if(A===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(;u<o;){var d=t[u];if(this.debug(`
`.trim())}};SU.exports=bw});var Qh=m((NDe,kU)=>{"use strict";var TU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Cne}=we(),Ine=Zc();vU()===void 0&&PU(new Ine);function PU(t){if(!t||typeof t.dispatch!="function")throw new Cne("Argument agent must implement Agent");Object.defineProperty(globalThis,TU,{value:t,writable:!0,enumerable:!1,configurable:!1})}function vU(){return globalThis[TU]}kU.exports={setGlobalDispatcher:PU,getGlobalDispatcher:vU}});var xh=m((RDe,DU)=>{"use strict";DU.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 LU=m((TDe,_U)=>{"use strict";var Bne=nh();_U.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 Bne(r,o,n,i);return r(a,c)}}});var FU=m((PDe,MU)=>{"use strict";var bne=hh();MU.exports=t=>e=>function(s,n){return e(s,new bne({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var OU=m((vDe,UU)=>{"use strict";var wne=de(),{InvalidArgumentError:Qne,RequestAbortedError:xne}=we(),Nne=xh(),ww=class extends Nne{#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 Qne("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=wne.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new xne(`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 Sne({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new ww({maxSize:i},n);return e(s,o)}}UU.exports=Sne});var HU=m((kDe,GU)=>{"use strict";var{isIP:Rne}=require("node:net"),{lookup:Tne}=require("node:dns"),Pne=xh(),{InvalidArgumentError:ll,InformationalError:vne}=we(),qU=Math.pow(2,31)-1,Qw=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 vne("No DNS entries found"));return}this.setRecords(e,a);let c=this.#r.get(e.hostname),l=this.pick(e,c,i.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});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){Tne(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===qU?(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===qU?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 xw(this,e,r)}},xw=class extends Pne{#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.o Line truncated
${i}`;break;case"retry":B1(i)&&(r[n]=i);break;case"id":b1(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&B1(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&b1(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}}};w1.exports={EventSourceStream:dQ}});var k1=m((u_e,v1)=>{"use strict";var{pipeline:qce}=require("node:stream"),{fetching:Gce}=vA(),{makeRequest:Hce}=dl(),{webidl:Ui}=Gt(),{EventSourceStream:zce}=Q1(),{parseMIMEType:Vce}=wr(),{createFastMessageEvent:Yce}=El(),{isNetworkError:x1}=TA(),{delay:Jce}=uQ(),{kEnumerableProperty:Na}=de(),{environmentSettingsObject:N1}=Gr(),S1=!1,R1=3e3,VA=0,T1=1,YA=2,$ce="anonymous",Wce="use-credentials",bl=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#r=!1;#i=VA;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),Ui.util.markAsUncloneable(this);let s="EventSource constructor";Ui.argumentLengthCheck(arguments,1,s),S1||(S1=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ui.converters.USVString(e,s,"url"),r=Ui.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:R1};let n=N1,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=$ce;r.withCredentials&&(o=Wce,this.#r=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=N1.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=Hce(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=VA;let e={request:this.#n,dispatcher:this.#o},r=s=>{x1(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(x1(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?Vce(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=T1,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let a=new zce({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(Yce(c.type,c.options))}});qce(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Gce(e)}async#l(){this.#i!==YA&&(this.#i=VA,this.dispatchEvent(new Event("error")),await Jce(this.#a.reconnectionTime),this.#i===VA&&(this.#a.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){Ui.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}},P1={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:VA,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:T1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:YA,writable:!1}};Object.defineProperties(bl,P1);Object.defineProperties(bl.prototype,P1);Object.defineProperties(bl.prototype,{close:Na,onerror:Na,onmessage:Na,onopen:Na,readyState:Na,url:Na,withCredentials:Na});Ui.converters.EventSourceInitDict=Ui.dictionaryConverter([{key:"withCredentials",converter:Ui.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ui.converters.any}]);v1.exports={EventSource:bl,defaultReconnectionTime:R1}});var hf=m((A_e,Z)=>{"use strict";var jce=Kc(),D1=ju(),Kce=Xc(),Xce=PM(),Zce=Zc(),ele=Lb(),tle=tF(),rle=aF(),_1=we(),mf=de(),{InvalidArgumentError:pf}=_1,wl=JF(),sle=Xu(),nle=gw(),ile=RU(),ole=Cw(),ale=nw(),cle=hh(),{getGlobalDispatcher:L1,setGlobalDispatcher:lle}=Qh(),ule=xh(),Ale=nh(),dle=ih();Object.assign(D1.prototype,wl);Z.exports.Dispatcher=D1;Z.exports.Client=jce;Z.exports.Pool=Kce;Z.exports.BalancedPool=Xce;Z.exports.Agent=Zce;Z.exports.ProxyAgent=ele;Z.exports.EnvHttpProxyAgent=tle;Z.exports.RetryAgent=rle;Z.exports.RetryHandler=cl Line truncated
%s`,x,x,E,s);var Y=E.type==="*"?ax:E.type==="?"?ox:"\\"+E.type;n=!0,s=s.slice(0,E.reStart)+Y+"\\("+x}h(),i&&(s+="\\\\");var H=!1;switch(s.charAt(0)){case"[":case".":case"(":H=!0}for(var ge=a.length-1;ge>-1;ge--){var be=a[ge],Se=s.slice(0,be.reStart),z=s.slice(be.reStart,be.reEnd-8),se=s.slice(be.reEnd-8,be.reEnd),U=s.slice(be.reEnd);se+=U;var Ee=Se.split("(").length-1,Ct=U;for(f=0;f<Ee;f++)Ct=Ct.replace(/\)[+*?]?/,"");U=Ct;var je="";U===""&&e!==qf&&(je="$");var lt=Se+z+U+je+se;s=lt}if(s!==""&&n&&(s="(?=.)"+s),H&&(s=d+s),e===qf)return[s,n];if(!n)return Epe(t);var Qi=r.nocase?"i":"";try{var qr=new RegExp("^"+s+"$",Qi)}catch{return new RegExp("$.")}return qr._glob=t,qr._src=s,qr}Xr.makeRe=function(t,e){return new Ht(t,e||{}).makeRe()};Ht.prototype.makeRe=gpe;function gpe(){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?ax:e.dot?lpe:upe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===cx?r:typeof o=="string"?ype(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}Xr.match=function(t,e,r){r=r||{};var s=new Ht(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Ht.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;ld.sep!=="/"&&(e=e.split(ld.sep).join("/")),e=e.split(wH),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};Ht.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===cx){this.debug("GLOBSTAR",[e,c,l]);var u=n,A=i+1;if(A===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(;u<o;){var d=t[u];if(this.debug(`
globstar while`,t,u,e,A,d),this.matchOne(t.slice(u),e.slice(A),r))return this.debug("globstar found match!",u,o,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,u,e,A);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,u,e,A),u===o))}var p;if(typeof c=="string"?(p=l===c,this.debug("string match",c,l,p)):(p=l.match(c),this.debug("pattern match",c,l,p)),!p)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 ppe(t){return t.replace(/\\(.)/g,"$1")}function mpe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ad=m((WLe,NH)=>{"use strict";var Bpe="2.0.0",bpe=Number.MAX_SAFE_INTEGER||9007199254740991,wpe=16,Qpe=250,xpe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];NH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:wpe,MAX_SAFE_BUILD_LENGTH:Qpe,MAX_SAFE_INTEGER:bpe,RELEASE_TYPES:xpe,SEMVER_SPEC_VERSION:Bpe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var dd=m((jLe,SH)=>{"use strict";var Npe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};SH.exports=Npe});var Ll=m((Un,RH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ax,MAX_SAFE_BUILD_LENGTH:Spe,MAX_LENGTH:Rpe}=Ad(),Tpe=dd();Un=RH.exports={};var Ppe=Un.re=[],vpe=Un.safeRe=[],_=Un.src=[],kpe=Un.safeSrc=[],L=Un.t={},Dpe=0,cx="[a-zA-Z0-9-]",_pe=[["\\s",1],["\\d",Rpe],[cx,Spe]],Lpe=t=>{for(let[e,r]of _pe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ne=(t,e,r)=>{let s=Lpe(e),n=Dpe++;Tpe(t,n,e),L[t]=n,_[n]=e,kpe[n]=s,Ppe[n]=new RegExp(e,r?"g":void 0),vpe[n]=new RegExp(s,r?"g":void 0)};ne("NUMERICIDENTIFIER","0|[1-9]\\d*");ne("NUMERICIDENTIFIERLOOSE","\\d+");ne("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${cx}*`);ne("MAINVERSION",`(${_[L.NUMERICIDENTIFIER]})\\.(${_[L.NUMERICIDENTIFIER]})\\.(${_[L.NUMERICIDENTIFIER]})`);ne("MAINVERSIONLOOSE",`(${_[L.NUMERICIDENTIFIERLOOSE]})\\.(${_[L.NUMERICIDENTIFIERLOOSE]})\\.(${_[L.NUMERICIDENTIFIERLOOSE]})`);ne("PRERELEASEIDENTIFIER",`(?:${_[L.NONNUMERICIDENTIFIER]}|${_[L.NUMERICIDENTIFIER]})`);ne("PRERELEASEIDENTIFIERLOOSE",`(?:${_[L.NONNUMERICIDENTIFIER]}|${_[L.NUMERICIDENTIFIERLOOSE]})`);ne("PRERELEASE",`(?:-(${_[L.PRERELEASEIDENTIFIER]}(?:\\.${_[L.PRERELEASEIDENTIFIER]})*))`);ne("PRERELEASELOOSE",`(?:-?(${_[L.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${_[L.PRERELEASEIDENTIFIERLOOSE]})*))`);ne("BUILDIDENTIFIER",`${cx}+`);ne("BUILD",`(?:\\+(${_[L.BUILDIDENTIFIER]}(?:\\.${_[L.BUILDIDENTIFIER]})*))`);ne("FULLPLAIN",`v?${_[L.MAINVERSION]}${_[L.PRERELEASE]}?${_[L.BUILD]}?`);ne("FULL",`^${_[L.FULLPLAIN]}$`);ne("LOOSEPLAIN",`[v=\\s]*${_[L.MAINVERSIONLOOSE]}${_[L.PRERELEASELOOSE]}?${_[L.BUILD]}?`);ne("LOOSE",`^${_[L.LOOSEPLAIN]}$`);ne("GTLT","((?:<|>)?=?)");ne("XRANGEIDENTIFIERLOOSE",`${_[L.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ne("XRANGEIDENTIFIER",`${_[L.NUMERICIDENTIFIER]}|x|X|\\*`);ne("XRANGEPLAIN",`[v=\\s]*(${_[L.XRANGEIDENTIFIER]})(?:\\.(${_[L.XRANGEIDENTIFIER]})(?:\\.(${_[L.XRANGEIDENTIFIER]})(?:${_[L.PRERELEASE]})?${_[L.BUILD]}?)?)?`);ne("XRANGEPLAINLOOSE",`[v=\\s]*(${_[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[L.XRANGEIDENTIFIERLOOSE]})(?:${_[L.PRERELEASELOOSE]})?${_[L.BUILD]}?)?)?`);ne("XRANGE",`^${_[L.GTLT]}\\s*${_[L.XRANGEPLAIN]}$`);ne("XRANGELOOSE",`^${_[L.GTLT]}\\s*${_[L.XRANGEPLAINLOOSE]}$`);ne("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ax}})(?:\\.(\\d{1,${ax}}))?(?:\\.(\\d{1,${ax}}))?`);ne("COERCE",`${_[L.COERCEPLAIN]}(?:$|[^\\d])`);ne("COERCEFULL",_[L.COERCEPLAIN]+`(?:${_[L.PRERELEASE]})?(?:${_[L.BUILD]})?(?:$|[^\\d])`);ne("COERCERTL",_[L.COERCE],!0);ne("COERCERTLFULL",_[L.COERCEFULL],!0);ne("LONETILDE","(?:~>?)");ne("TILDETRIM",`(\\s*)${_[L.LONETILDE]}\\s+`,!0);Un.tildeTrimReplace="$1~";ne("TILDE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAIN]}$`);ne("TILDELOOSE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAINLOOSE]}$`);ne("LONECARET","(?:\\^)");ne("CARETTRIM",`(\\s*)${_[L.LONECARET]}\\s+`,!0);Un.caretTrimReplace="$1^";ne("CARET",`^${_[L.LONECARET]}${_[L.XRANGEPLAIN]}$`);ne("CARETLOOSE",`^${_[L.LONECARET]}${_[L.XRANGEPLAINLOOSE]}$`);ne("COMPARATORLOOSE",`^${_[L.GTLT]}\\s*(${_[L.LOOSEPLAIN]})$|^$`);ne("COMPARATOR",`^${_[L.GTLT]}\\s*(${_[L.FULLPLAIN]})$|^$`);ne("COMPARATORTRIM",`(\\s*)${_[L.GTLT]}\\s*(${_[L.LOOSEPLAIN]}|${_[L.XRANGEPLAIN]})`,!0);Un.comparatorTrimReplace="$1$2$3";ne("HYPHENRANGE",`^\\s*(${_[L.XRANGEPLAIN]})\\s+-\\s+(${_[L.XRANGEPLAIN]})\\s*$`);ne("HYPHENRANGELOOSE",`^\\s*(${_[L.XRANGEPLAINLOOSE]})\\s+-\\s+(${_[L.XRANGEPLAINLOOSE]})\\s*$`);ne("STAR","(<|>)?=?\\s*\\*");ne("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ne("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Vf=m((KLe,TH)=>{"use strict";var Mpe=Object.freeze({loose:!0}),Fpe=Object.freeze({}),Upe=t=>t?typeof t!="object"?Mpe:t:Fpe;TH.exports=Upe});var lx=m((XLe,kH)=>{"use strict";var PH=/^[0-9]+$/,vH=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=PH.test(t),s=PH.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Ope=(t,e)=>vH(e,t);kH.exports={compareIdentifiers:vH,rcompareIdentifiers:Ope}});var Zt=m((ZLe,_H)=>{"use strict";var Yf=dd(),{MAX_LENGTH:DH,MAX_SAFE_INTEGER:Jf}=Ad(),{ Line truncated
>>> no match, partial?`,t,u,e,A),u===o))}var p;if(typeof c=="string"?(p=l===c,this.debug("string match",c,l,p)):(p=l.match(c),this.debug("pattern match",c,l,p)),!p)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 Epe(t){return t.replace(/\\(.)/g,"$1")}function ype(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var dd=m((eMe,PH)=>{"use strict";var Npe="2.0.0",Spe=Number.MAX_SAFE_INTEGER||9007199254740991,Rpe=16,Tpe=250,Ppe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];PH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Rpe,MAX_SAFE_BUILD_LENGTH:Tpe,MAX_SAFE_INTEGER:Spe,RELEASE_TYPES:Ppe,SEMVER_SPEC_VERSION:Npe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var pd=m((tMe,vH)=>{"use strict";var vpe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};vH.exports=vpe});var Ll=m((Un,kH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ux,MAX_SAFE_BUILD_LENGTH:kpe,MAX_LENGTH:Dpe}=dd(),_pe=pd();Un=kH.exports={};var Lpe=Un.re=[],Mpe=Un.safeRe=[],_=Un.src=[],Fpe=Un.safeSrc=[],L=Un.t={},Upe=0,Ax="[a-zA-Z0-9-]",Ope=[["\\s",1],["\\d",Dpe],[Ax,kpe]],qpe=t=>{for(let[e,r]of Ope)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ie=(t,e,r)=>{let s=qpe(e),n=Upe++;_pe(t,n,e),L[t]=n,_[n]=e,Fpe[n]=s,Lpe[n]=new RegExp(e,r?"g":void 0),Mpe[n]=new RegExp(s,r?"g":void 0)};ie("NUMERICIDENTIFIER","0|[1-9]\\d*");ie("NUMERICIDENTIFIERLOOSE","\\d+");ie("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ax}*`);ie("MAINVERSION",`(${_[L.NUMERICIDENTIFIER]})\\.(${_[L.NUMERICIDENTIFIER]})\\.(${_[L.NUMERICIDENTIFIER]})`);ie("MAINVERSIONLOOSE",`(${_[L.NUMERICIDENTIFIERLOOSE]})\\.(${_[L.NUMERICIDENTIFIERLOOSE]})\\.(${_[L.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASEIDENTIFIER",`(?:${_[L.NONNUMERICIDENTIFIER]}|${_[L.NUMERICIDENTIFIER]})`);ie("PRERELEASEIDENTIFIERLOOSE",`(?:${_[L.NONNUMERICIDENTIFIER]}|${_[L.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASE",`(?:-(${_[L.PRERELEASEIDENTIFIER]}(?:\\.${_[L.PRERELEASEIDENTIFIER]})*))`);ie("PRERELEASELOOSE",`(?:-?(${_[L.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${_[L.PRERELEASEIDENTIFIERLOOSE]})*))`);ie("BUILDIDENTIFIER",`${Ax}+`);ie("BUILD",`(?:\\+(${_[L.BUILDIDENTIFIER]}(?:\\.${_[L.BUILDIDENTIFIER]})*))`);ie("FULLPLAIN",`v?${_[L.MAINVERSION]}${_[L.PRERELEASE]}?${_[L.BUILD]}?`);ie("FULL",`^${_[L.FULLPLAIN]}$`);ie("LOOSEPLAIN",`[v=\\s]*${_[L.MAINVERSIONLOOSE]}${_[L.PRERELEASELOOSE]}?${_[L.BUILD]}?`);ie("LOOSE",`^${_[L.LOOSEPLAIN]}$`);ie("GTLT","((?:<|>)?=?)");ie("XRANGEIDENTIFIERLOOSE",`${_[L.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ie("XRANGEIDENTIFIER",`${_[L.NUMERICIDENTIFIER]}|x|X|\\*`);ie("XRANGEPLAIN",`[v=\\s]*(${_[L.XRANGEIDENTIFIER]})(?:\\.(${_[L.XRANGEIDENTIFIER]})(?:\\.(${_[L.XRANGEIDENTIFIER]})(?:${_[L.PRERELEASE]})?${_[L.BUILD]}?)?)?`);ie("XRANGEPLAINLOOSE",`[v=\\s]*(${_[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[L.XRANGEIDENTIFIERLOOSE]})(?:${_[L.PRERELEASELOOSE]})?${_[L.BUILD]}?)?)?`);ie("XRANGE",`^${_[L.GTLT]}\\s*${_[L.XRANGEPLAIN]}$`);ie("XRANGELOOSE",`^${_[L.GTLT]}\\s*${_[L.XRANGEPLAINLOOSE]}$`);ie("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ux}})(?:\\.(\\d{1,${ux}}))?(?:\\.(\\d{1,${ux}}))?`);ie("COERCE",`${_[L.COERCEPLAIN]}(?:$|[^\\d])`);ie("COERCEFULL",_[L.COERCEPLAIN]+`(?:${_[L.PRERELEASE]})?(?:${_[L.BUILD]})?(?:$|[^\\d])`);ie("COERCERTL",_[L.COERCE],!0);ie("COERCERTLFULL",_[L.COERCEFULL],!0);ie("LONETILDE","(?:~>?)");ie("TILDETRIM",`(\\s*)${_[L.LONETILDE]}\\s+`,!0);Un.tildeTrimReplace="$1~";ie("TILDE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAIN]}$`);ie("TILDELOOSE",`^${_[L.LONETILDE]}${_[L.XRANGEPLAINLOOSE]}$`);ie("LONECARET","(?:\\^)");ie("CARETTRIM",`(\\s*)${_[L.LONECARET]}\\s+`,!0);Un.caretTrimReplace="$1^";ie("CARET",`^${_[L.LONECARET]}${_[L.XRANGEPLAIN]}$`);ie("CARETLOOSE",`^${_[L.LONECARET]}${_[L.XRANGEPLAINLOOSE]}$`);ie("COMPARATORLOOSE",`^${_[L.GTLT]}\\s*(${_[L.LOOSEPLAIN]})$|^$`);ie("COMPARATOR",`^${_[L.GTLT]}\\s*(${_[L.FULLPLAIN]})$|^$`);ie("COMPARATORTRIM",`(\\s*)${_[L.GTLT]}\\s*(${_[L.LOOSEPLAIN]}|${_[L.XRANGEPLAIN]})`,!0);Un.comparatorTrimReplace="$1$2$3";ie("HYPHENRANGE",`^\\s*(${_[L.XRANGEPLAIN]})\\s+-\\s+(${_[L.XRANGEPLAIN]})\\s*$`);ie("HYPHENRANGELOOSE",`^\\s*(${_[L.XRANGEPLAINLOOSE]})\\s+-\\s+(${_[L.XRANGEPLAINLOOSE]})\\s*$`);ie("STAR","(<|>)?=?\\s*\\*");ie("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ie("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Vf=m((rMe,DH)=>{"use strict";var Gpe=Object.freeze({loose:!0}),Hpe=Object.freeze({}),zpe=t=>t?typeof t!="object"?Gpe:t:Hpe;DH.exports=zpe});var dx=m((sMe,MH)=>{"use strict";var _H=/^[0-9]+$/,LH=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=_H.test(t),s=_H.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Vpe=(t,e)=>LH(e,t);MH.exports={compareIdentifiers:LH,rcompareIdentifiers:Vpe}});var er=m((nMe,UH)=>{"use strict";var Yf=pd(),{MAX_LENGTH:FH,MAX_SAFE_INTEGER:Jf}=dd(),{ Line truncated
`).join(`
`+i),t.push(n+"m+"+Rg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=oge()+e+" "+t[0]}function oge(){return zt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function age(...t){return process.stderr.write(Sg.format(...t)+`
`)}function cge(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function lge(){return process.env.DEBUG}function uge(t){t.inspectOpts={};let e=Object.keys(zt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zt.inspectOpts[e[r]]}Rg.exports=Jx()(zt);var{formatters:uY}=Rg.exports;uY.o=function(t){return this.inspectOpts.colors=this.useColors,Sg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};uY.O=function(t){return this.inspectOpts.colors=this.useColors,Sg.inspect(t,this.inspectOpts)}});var Tg=m((dUe,jx)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jx.exports=nY():jx.exports=AY()});var mY=m(Pr=>{"use strict";var Age=Pr&&Pr.__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]})),dge=Pr&&Pr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dY=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)&&Age(e,t,r);return dge(e,t),e};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.req=Pr.json=Pr.toBuffer=void 0;var pge=dY(require("http")),mge=dY(require("https"));async function pY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Pr.toBuffer=pY;async function hge(t){let r=(await pY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Pr.json=hge;function fge(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?mge:pge).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Pr.req=fge});var Xx=m(ts=>{"use strict";var fY=ts&&ts.__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]})),gge=ts&&ts.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gY=ts&&ts.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&fY(e,t,r);return gge(e,t),e},Ege=ts&&ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fY(e,t,r)};Object.defineProperty(ts,"__esModule",{value:!0});ts.Agent=void 0;var yge=gY(require("net")),hY=gY(require("http")),Cge=require("https");Ege(mY(),ts);var Gn=Symbol("AgentBaseInternalState"),Kx=class extends hY.Agent{constructor(e){super(e),this[Gn]={}}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 yge.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))?Cge.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 hY.Agent)return a.addRequest(e,n);this[Gn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Gn].currentSocket;if(this[Gn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gn]&&(this[Gn].defaultPort=e)}get protocol(){return this[Gn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gn]&&(this[Gn].protocol=e)}};ts.Agent=Kx});var EY=m(Vl=>{"use strict";var Ige=Vl&&Vl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.parseProxyResponse=void 0;var Bge=Ige(Tg()),Pg=(0,Bge.default)("https-proxy-agent:parse-proxy-response");function bge(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?l(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Pg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Pg("onerror %o",u),r(u)}function l(u){n.push(u),s+=u.length;let A=Buffer.concat(n,s),d=A.indexOf(`\r
`+i),t.push(n+"m+"+Rg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Age()+e+" "+t[0]}function Age(){return zt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dge(...t){return process.stderr.write(Sg.format(...t)+`
`)}function pge(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function mge(){return process.env.DEBUG}function hge(t){t.inspectOpts={};let e=Object.keys(zt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=zt.inspectOpts[e[r]]}Rg.exports=jx()(zt);var{formatters:mY}=Rg.exports;mY.o=function(t){return this.inspectOpts.colors=this.useColors,Sg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};mY.O=function(t){return this.inspectOpts.colors=this.useColors,Sg.inspect(t,this.inspectOpts)}});var Tg=m((gUe,Zx)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zx.exports=cY():Zx.exports=hY()});var EY=m(vr=>{"use strict";var fge=vr&&vr.__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]})),gge=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fY=vr&&vr.__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)&&fge(e,t,r);return gge(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var Ege=fY(require("http")),yge=fY(require("https"));async function gY(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}vr.toBuffer=gY;async function Cge(t){let r=(await gY(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}vr.json=Cge;function Ige(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?yge:Ege).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}vr.req=Ige});var tN=m(rs=>{"use strict";var CY=rs&&rs.__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]})),Bge=rs&&rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),IY=rs&&rs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&CY(e,t,r);return Bge(e,t),e},bge=rs&&rs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&CY(e,t,r)};Object.defineProperty(rs,"__esModule",{value:!0});rs.Agent=void 0;var wge=IY(require("net")),yY=IY(require("http")),Qge=require("https");bge(EY(),rs);var Gn=Symbol("AgentBaseInternalState"),eN=class extends yY.Agent{constructor(e){super(e),this[Gn]={}}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 wge.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))?Qge.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 yY.Agent)return a.addRequest(e,n);this[Gn].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Gn].currentSocket;if(this[Gn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gn].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gn]&&(this[Gn].defaultPort=e)}get protocol(){return this[Gn].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gn]&&(this[Gn].protocol=e)}};rs.Agent=eN});var BY=m(Vl=>{"use strict";var xge=Vl&&Vl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.parseProxyResponse=void 0;var Nge=xge(Tg()),Pg=(0,Nge.default)("https-proxy-agent:parse-proxy-response");function Sge(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?l(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Pg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Pg("onerror %o",u),r(u)}function l(u){n.push(u),s+=u.length;let A=Buffer.concat(n,s),d=A.indexOf(`\r
\r
`);if(d===-1){Pg("have not received end of HTTP headers yet..."),i();return}let p=A.slice(0,d).toString("ascii").split(`\r
`),h=p.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),y=+f[1],g=f.slice(2).join(" "),E={};for(let C of p){if(!C)continue;let B=C.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let v=C.slice(0,B).toLowerCase(),Y=C.slice(B+1).trimStart(),H=E[v];typeof H=="string"?E[v]=[H,Y]:Array.isArray(H)?H.push(Y):E[v]=Y}Pg("got proxy server response: %o %o",h,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:A})}t.on("error",c),t.on("end",a),i()})}Vl.parseProxyResponse=bge});var bY=m(Ss=>{"use strict";var wge=Ss&&Ss.__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]})),Qge=Ss&&Ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),IY=Ss&&Ss.__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)&&wge(e,t,r);return Qge(e,t),e},BY=Ss&&Ss.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.HttpsProxyAgent=void 0;var xd=IY(require("net")),yY=IY(require("tls")),xge=BY(require("assert")),Nge=BY(Tg()),Sge=Xx(),Rge=require("url"),Tge=EY(),Nd=(0,Nge.default)("https-proxy-agent"),vg=class extends Sge.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Rge.URL(e):e,this.proxyHeaders=r?.headers??{},Nd("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?CY(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;if(s.protocol==="https:"){Nd("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=yY.connect({...this.connectOpts,servername:d&&xd.isIP(d)?void 0:d})}else Nd("Creating `net.Socket`: %o",this.connectOpts),n=xd.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xd.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`),h=p.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),y=+f[1],g=f.slice(2).join(" "),E={};for(let C of p){if(!C)continue;let B=C.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let x=C.slice(0,B).toLowerCase(),Y=C.slice(B+1).trimStart(),H=E[x];typeof H=="string"?E[x]=[H,Y]:Array.isArray(H)?H.push(Y):E[x]=Y}Pg("got proxy server response: %o %o",h,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:A})}t.on("error",c),t.on("end",a),i()})}Vl.parseProxyResponse=Sge});var NY=m(Ss=>{"use strict";var Rge=Ss&&Ss.__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]})),Tge=Ss&&Ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QY=Ss&&Ss.__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)&&Rge(e,t,r);return Tge(e,t),e},xY=Ss&&Ss.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ss,"__esModule",{value:!0});Ss.HttpsProxyAgent=void 0;var Nd=QY(require("net")),bY=QY(require("tls")),Pge=xY(require("assert")),vge=xY(Tg()),kge=tN(),Dge=require("url"),_ge=BY(),Sd=(0,vge.default)("https-proxy-agent"),vg=class extends kge.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Dge.URL(e):e,this.proxyHeaders=r?.headers??{},Sd("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?wY(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;if(s.protocol==="https:"){Sd("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=bY.connect({...this.connectOpts,servername:d&&Nd.isIP(d)?void 0:d})}else Sd("Creating `net.Socket`: %o",this.connectOpts),n=Nd.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Nd.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,Tge.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Pge),r.secureEndpoint){Nd("Upgrading socket connection to TLS");let d=r.servername||r.host;return yY.connect({...CY(r,"host","path","port"),socket:n,servername:xd.isIP(d)?void 0:d})}return n}n.destroy();let A=new xd.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{Nd("Replaying proxy buffer for failed request"),(0,xge.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),A}};vg.protocols=["http","https"];Ss.HttpsProxyAgent=vg;function Pge(t){t.resume()}function CY(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var xY=m(Rs=>{"use strict";var vge=Rs&&Rs.__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]})),kge=Rs&&Rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QY=Rs&&Rs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vge(e,t,r);return kge(e,t),e},Dge=Rs&&Rs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HttpProxyAgent=void 0;var _ge=QY(require("net")),Lge=QY(require("tls")),Mge=Dge(Tg()),Fge=require("events"),Uge=Xx(),wY=require("url"),Yl=(0,Mge.default)("http-proxy-agent"),kg=class extends Uge.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new wY.URL(e):e,this.proxyHeaders=r?.headers??{},Yl("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?Oge(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 wY.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 u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Yl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Yl("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let c=(0,_ge.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Lge),r.secureEndpoint){Sd("Upgrading socket connection to TLS");let d=r.servername||r.host;return bY.connect({...wY(r,"host","path","port"),socket:n,servername:Nd.isIP(d)?void 0:d})}return n}n.destroy();let A=new Nd.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{Sd("Replaying proxy buffer for failed request"),(0,Pge.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),A}};vg.protocols=["http","https"];Ss.HttpsProxyAgent=vg;function Lge(t){t.resume()}function wY(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var TY=m(Rs=>{"use strict";var Mge=Rs&&Rs.__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]})),Fge=Rs&&Rs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),RY=Rs&&Rs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Mge(e,t,r);return Fge(e,t),e},Uge=Rs&&Rs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.HttpProxyAgent=void 0;var Oge=RY(require("net")),qge=RY(require("tls")),Gge=Uge(Tg()),Hge=require("events"),zge=tN(),SY=require("url"),Yl=(0,Gge.default)("http-proxy-agent"),kg=class extends zge.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new SY.URL(e):e,this.proxyHeaders=r?.headers??{},Yl("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?Vge(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 SY.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 u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Yl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Yl("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Yl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Yl("Creating `tls.Socket`: %o",this.connectOpts),i=Lge.connect(this.connectOpts)):(Yl("Creating `net.Socket`: %o",this.connectOpts),i=_ge.connect(this.connectOpts)),await(0,Fge.once)(i,"connect"),i}};kg.protocols=["http","https"];Rs.HttpProxyAgent=kg;function Oge(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var $Y=m(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.state=void 0;Jg.state={instrumenterImplementation:void 0}});var AJ=m(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.state=void 0;Xg.state={operationRequestMap:new WeakMap}});var w3=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var OBe=require("os"),qBe=require("util");function GBe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var HBe=GBe(qBe);function zBe(t,...e){process.stderr.write(`${HBe.default.format(t,...e)}${OBe.EOL}`)}var m3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,f3,IT=[],BT=[],dy=[];m3&&bT(m3);var g3=Object.assign(t=>E3(t),{enable:bT,enabled:wT,disable:VBe,log:zBe});function bT(t){f3=t,IT=[],BT=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?BT.push(new RegExp(`^${s.substr(1)}$`)):IT.push(new RegExp(`^${s}$`));for(let s of dy)s.enabled=wT(s.namespace)}function wT(t){if(t.endsWith("*"))return!0;for(let e of BT)if(e.test(t))return!1;for(let e of IT)if(e.test(t))return!0;return!1}function VBe(){let t=f3||"";return bT(""),t}function E3(t){let e=Object.assign(r,{enabled:wT(t),destroy:YBe,log:g3.log,namespace:t,extend:JBe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return dy.push(e),e}function YBe(){let t=dy.indexOf(this);return t>=0?(dy.splice(t,1),!0):!1}function JBe(t){let e=E3(`${this.namespace}:${t}`);return e.log=this.log,e}var dp=g3,y3=new Set,uy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,py,my=dp("azure");my.log=(...t)=>{dp.log(...t)};var QT=["verbose","info","warning","error"];uy&&(b3(uy)?C3(uy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${uy}'; logging is not enabled. Acceptable values: ${QT.join(", ")}.`));function C3(t){if(t&&!b3(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${QT.join(",")}`);py=t;let e=[];for(let r of y3)B3(r)&&e.push(r.namespace);dp.enable(e.join(","))}function $Be(){return py}var h3={verbose:400,info:300,warning:200,error:100};function WBe(t){let e=my.extend(t);return I3(my,e),{error:Ay(e,"error"),warning:Ay(e,"warning"),info:Ay(e,"info"),verbose:Ay(e,"verbose")}}function I3(t,e){e.log=(...r)=>{t.log(...r)}}function Ay(t,e){let r=Object.assign(t.extend(e),{level:e});if(I3(t,r),B3(r)){let s=dp.disable();dp.enable(s+","+r.namespace)}return y3.add(r),r}function B3(t){return!!(py&&h3[t.level]<=h3[py])}function b3(t){return QT.includes(t)}cu.AzureLogger=my;cu.createClientLogger=WBe;cu.getLogLevel=$Be;cu.setLogLevel=C3});var ST=m(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var lu=new WeakMap,hy=new WeakMap,pp=class t{constructor(){this.onabort=null,lu.set(this,[]),hy.set(this,!1)}get aborted(){if(!hy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return hy.get(this)}static get none(){return new t}addEventListener(e,r){if(!lu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");lu.get(this).push(r)}removeEventListener(e,r){if(!lu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=lu.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 Q3(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=lu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),hy.set(t,!0)}var xT=class extends Error{constructor(e){super(e),this.name="AbortError"}},NT=class{constructor(e){if(this._signal=new pp,!!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(){Q3(this._signal)}static timeout(e){let r=new pp,s=setTimeout(Q3,e,r);return typeof s.unref=="function"&&s.unref(),r}};mp.AbortController=NT;mp.AbortError=xT;mp.AbortSignal=pp});var T3=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var jBe=ST(),_T=require("crypto");function x3(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new jBe.AbortError(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var KBe="The delay was aborted.";function XBe(t,e){let r,{ab Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),Yl("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Yl("Creating `tls.Socket`: %o",this.connectOpts),i=qge.connect(this.connectOpts)):(Yl("Creating `net.Socket`: %o",this.connectOpts),i=Oge.connect(this.connectOpts)),await(0,Hge.once)(i,"connect"),i}};kg.protocols=["http","https"];Rs.HttpProxyAgent=kg;function Vge(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var XY=m(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.state=void 0;Jg.state={instrumenterImplementation:void 0}});var hJ=m(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.state=void 0;Xg.state={operationRequestMap:new WeakMap}});var S3=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var VBe=require("os"),YBe=require("util");function JBe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var $Be=JBe(YBe);function WBe(t,...e){process.stderr.write(`${$Be.default.format(t,...e)}${VBe.EOL}`)}var E3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,C3,wT=[],QT=[],dy=[];E3&&xT(E3);var I3=Object.assign(t=>B3(t),{enable:xT,enabled:NT,disable:jBe,log:WBe});function xT(t){C3=t,wT=[],QT=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?QT.push(new RegExp(`^${s.substr(1)}$`)):wT.push(new RegExp(`^${s}$`));for(let s of dy)s.enabled=NT(s.namespace)}function NT(t){if(t.endsWith("*"))return!0;for(let e of QT)if(e.test(t))return!1;for(let e of wT)if(e.test(t))return!0;return!1}function jBe(){let t=C3||"";return xT(""),t}function B3(t){let e=Object.assign(r,{enabled:NT(t),destroy:KBe,log:I3.log,namespace:t,extend:XBe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return dy.push(e),e}function KBe(){let t=dy.indexOf(this);return t>=0?(dy.splice(t,1),!0):!1}function XBe(t){let e=B3(`${this.namespace}:${t}`);return e.log=this.log,e}var pp=I3,b3=new Set,uy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,py,my=pp("azure");my.log=(...t)=>{pp.log(...t)};var ST=["verbose","info","warning","error"];uy&&(N3(uy)?w3(uy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${uy}'; logging is not enabled. Acceptable values: ${ST.join(", ")}.`));function w3(t){if(t&&!N3(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${ST.join(",")}`);py=t;let e=[];for(let r of b3)x3(r)&&e.push(r.namespace);pp.enable(e.join(","))}function ZBe(){return py}var y3={verbose:400,info:300,warning:200,error:100};function ebe(t){let e=my.extend(t);return Q3(my,e),{error:Ay(e,"error"),warning:Ay(e,"warning"),info:Ay(e,"info"),verbose:Ay(e,"verbose")}}function Q3(t,e){e.log=(...r)=>{t.log(...r)}}function Ay(t,e){let r=Object.assign(t.extend(e),{level:e});if(Q3(t,r),x3(r)){let s=pp.disable();pp.enable(s+","+r.namespace)}return b3.add(r),r}function x3(t){return!!(py&&y3[t.level]<=y3[py])}function N3(t){return ST.includes(t)}cu.AzureLogger=my;cu.createClientLogger=ebe;cu.getLogLevel=ZBe;cu.setLogLevel=w3});var PT=m(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});var lu=new WeakMap,hy=new WeakMap,mp=class t{constructor(){this.onabort=null,lu.set(this,[]),hy.set(this,!1)}get aborted(){if(!hy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return hy.get(this)}static get none(){return new t}addEventListener(e,r){if(!lu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");lu.get(this).push(r)}removeEventListener(e,r){if(!lu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=lu.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 R3(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=lu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),hy.set(t,!0)}var RT=class extends Error{constructor(e){super(e),this.name="AbortError"}},TT=class{constructor(e){if(this._signal=new mp,!!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(){R3(this._signal)}static timeout(e){let r=new mp,s=setTimeout(R3,e,r);return typeof s.unref=="function"&&s.unref(),r}};hp.AbortController=TT;hp.AbortError=RT;hp.AbortSignal=mp});var D3=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var tbe=PT(),FT=require("crypto");function T3(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new tbe.AbortError(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var rbe="The delay was aborted.";function sbe(t,e){let r,{ab Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${D3.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let A=o(l,r);if(A!==void 0)return{response:await e(A).catch(v3({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function F3(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:A,getError:d,updateState:p,setDelay:h,isDone:f,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await Qbe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(L3({status:C,response:E,state:r,stateProxy:s,isDone:f,processResult:A,getError:d,setErrorAsResult:y}),!D3.includes(C)){let B=u?.(E);B&&h(B);let v=a?.(E,r);if(v!==void 0){let Y=g!==v;r.config.operationLocation=v,l?.(v,Y)}else l?.(g,!1)}p?.(r,E)}}function U3(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function O3(t){return t.headers.location}function q3(t){return t.headers["operation-location"]}function G3(t){return t.headers["azure-asyncoperation"]}function xbe(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 H3(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=q3(e),o=G3(e),a=U3({operationLocation:i,azureAsyncOperation:o}),c=O3(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:xbe({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 z3(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 UT(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 oc.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Nbe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return z3({status:r,statusCode:t.statusCode})}function Sbe(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 z3({status:i,statusCode:t.statusCode})}function UT(t){return t===202?"running":t<300?"succeeded":"failed"}function V3({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Rbe(new Date(e)):r*1e3}}function Y3(t){let e=t.flatResponse.error;if(!e){oc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){oc.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 Rbe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function J3(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 UT(e.rawResponse.statusCode);case"Body":return OT(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function Tbe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return M3({init:async()=>{let o=await n.sendInitialRequest(),a=H3({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:J3,setErrorAsResult:i})}function $3({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return U3({operationLocation:q3(t),azureAsyncOperation:G3(t)});case"ResourceLocation":return O3(t);default:return}}function OT({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return Nbe(t);case"ResourceLocation":return UT(t.statusCode);case"Body":return Sbe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function W3({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)}hu.base64decode=pwe;function mwe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}hu.base64encode=mwe});var w4=m(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.utf8read=void 0;var jT=t=>String.fromCharCode.apply(String,t);function hwe(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(jT(s)),n=0);return r.length?(n&&r.push(jT(s.slice(0,n))),r.join("")):jT(s.slice(0,n))}Dy.utf8read=hwe});var Bp=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.WireType=mi.mergeBinaryOptions=mi.UnknownFieldHandler=void 0;var fwe;(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])})(fwe=mi.UnknownFieldHandler||(mi.UnknownFieldHandler={}));function gwe(t,e){return Object.assign(Object.assign({},t),e)}mi.mergeBinaryOptions=gwe;var Ewe;(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"})(Ewe=mi.WireType||(mi.WireType={}))});var Ly=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.varint32read=Lr.varint32write=Lr.int64toString=Lr.int64fromString=Lr.varint64write=Lr.varint64read=void 0;function ywe(){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")}Lr.varint64read=ywe;function Cwe(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)}}Lr.varint64write=Cwe;var _y=65536*65536;function Iwe(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>=_y&&(n=n+(s/_y|0),s=s%_y)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Lr.int64fromString=Iwe;function Bwe(t,e){if(e>>>0<=2097151)return""+(_y*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(u,A){let d=u?String(u):"";return A?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(i,1)}Lr.int64toString=Bwe;function bwe(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)}}Lr.varint32write=bwe;function wwe(){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}Lr.varint32read=wwe});var Xo=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.PbLong=Ko.PbULong=Ko.detectBi=void 0;var bp=Ly(),ke;function Q4(){let t=new DataView(new ArrayBuffer(8));ke=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}Ko.detectBi=Q4;Q4();function x4(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var N4=/^-?[0-9]+$/,Fy=4294967296,My=2147483648,Uy=class{c Line truncated
`)}};lC.RpcError=bP});var QP=m(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.mergeRpcOptions=void 0;var sW=gt();function YQe(t,e){if(!e)return t;let r={};uC(t,r),uC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=sW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=sW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},uC(t.meta,r.meta),uC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}AC.mergeRpcOptions=YQe;function uC(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 NP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.Deferred=Ac.DeferredState=void 0;var gi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(gi=Ac.DeferredState||(Ac.DeferredState={}));var xP=class{constructor(e=!0){this._state=gi.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!==gi.PENDING)throw new Error(`cannot resolve ${gi[this.state].toLowerCase()}`);this._resolve(e),this._state=gi.RESOLVED}reject(e){if(this.state!==gi.PENDING)throw new Error(`cannot reject ${gi[this.state].toLowerCase()}`);this._reject(e),this._state=gi.REJECTED}resolvePending(e){this._state===gi.PENDING&&this.resolve(e)}rejectPending(e){this._state===gi.PENDING&&this.reject(e)}};Ac.Deferred=xP});var RP=m(dC=>{"use strict";Object.defineProperty(dC,"__esModule",{value:!0});dC.RpcOutputStreamController=void 0;var nW=NP(),dc=gt(),SP=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){dc.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){dc.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){dc.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(){dc.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;dc.assert(e,"bad state"),dc.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 nW.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;dc.assert(s.state==nW.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};dC.RpcOutputStreamController=SP});var PP=m(Bu=>{"use strict";var JQe=Bu&&Bu.__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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.UnaryCall=void 0;var TP=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 JQe(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}})}};Bu.UnaryCall=TP});var kP=m(bu=>{"use strict";var $Qe=bu&&bu.__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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(bu,"__esModule",{value:!0});bu.ServerStreamingCall=void 0;var vP=class{constructor(e,r,s,n Line truncated
Polling status: ${F3.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let A=o(l,r);if(A!==void 0)return{response:await e(A).catch(L3({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function G3(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:A,getError:d,updateState:p,setDelay:h,isDone:f,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:C}=await Tbe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(O3({status:C,response:E,state:r,stateProxy:s,isDone:f,processResult:A,getError:d,setErrorAsResult:y}),!F3.includes(C)){let B=u?.(E);B&&h(B);let x=a?.(E,r);if(x!==void 0){let Y=g!==x;r.config.operationLocation=x,l?.(x,Y)}else l?.(g,!1)}p?.(r,E)}}function H3(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function z3(t){return t.headers.location}function V3(t){return t.headers["operation-location"]}function Y3(t){return t.headers["azure-asyncoperation"]}function Pbe(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 J3(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=V3(e),o=Y3(e),a=H3({operationLocation:i,azureAsyncOperation:o}),c=z3(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Pbe({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 $3(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 GT(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 oc.verbose(`LRO: unrecognized operation status: ${e}`),e}}function vbe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return $3({status:r,statusCode:t.statusCode})}function kbe(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 $3({status:i,statusCode:t.statusCode})}function GT(t){return t===202?"running":t<300?"succeeded":"failed"}function W3({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Dbe(new Date(e)):r*1e3}}function j3(t){let e=t.flatResponse.error;if(!e){oc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){oc.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 Dbe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function K3(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 GT(e.rawResponse.statusCode);case"Body":return HT(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function _be(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return q3({init:async()=>{let o=await n.sendInitialRequest(),a=J3({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:K3,setErrorAsResult:i})}function X3({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return H3({operationLocation:V3(t),azureAsyncOperation:Y3(t)});case"ResourceLocation":return z3(t);default:return}}function HT({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return vbe(t);case"ResourceLocation":return GT(t.statusCode);case"Body":return kbe(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function Z3({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)}hu.base64decode=Ewe;function ywe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=so[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=so[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=so[n|s>>6],e+=so[s&63],r=0;break}return r&&(e+=so[n],e+="=",r==1&&(e+="=")),e}hu.base64encode=ywe});var S4=m(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.utf8read=void 0;var ZT=t=>String.fromCharCode.apply(String,t);function Cwe(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(ZT(s)),n=0);return r.length?(n&&r.push(ZT(s.slice(0,n))),r.join("")):ZT(s.slice(0,n))}Dy.utf8read=Cwe});var bp=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.WireType=mi.mergeBinaryOptions=mi.UnknownFieldHandler=void 0;var Iwe;(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])})(Iwe=mi.UnknownFieldHandler||(mi.UnknownFieldHandler={}));function Bwe(t,e){return Object.assign(Object.assign({},t),e)}mi.mergeBinaryOptions=Bwe;var bwe;(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"})(bwe=mi.WireType||(mi.WireType={}))});var Ly=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.varint32read=Mr.varint32write=Mr.int64toString=Mr.int64fromString=Mr.varint64write=Mr.varint64read=void 0;function wwe(){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")}Mr.varint64read=wwe;function Qwe(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)}}Mr.varint64write=Qwe;var _y=65536*65536;function xwe(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>=_y&&(n=n+(s/_y|0),s=s%_y)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Mr.int64fromString=xwe;function Nwe(t,e){if(e>>>0<=2097151)return""+(_y*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(u,A){let d=u?String(u):"";return A?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(i,1)}Mr.int64toString=Nwe;function Swe(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)}}Mr.varint32write=Swe;function Rwe(){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}Mr.varint32read=Rwe});var Xo=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.PbLong=Ko.PbULong=Ko.detectBi=void 0;var wp=Ly(),ke;function R4(){let t=new DataView(new ArrayBuffer(8));ke=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}Ko.detectBi=R4;R4();function T4(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var P4=/^-?[0-9]+$/,Fy=4294967296,My=2147483648,Uy=class{c Line truncated
`)}};lC.RpcError=xP});var SP=m(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.mergeRpcOptions=void 0;var aW=gt();function KQe(t,e){if(!e)return t;let r={};uC(t,r),uC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=aW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=aW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},uC(t.meta,r.meta),uC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}AC.mergeRpcOptions=KQe;function uC(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 TP=m(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.Deferred=Ac.DeferredState=void 0;var gi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(gi=Ac.DeferredState||(Ac.DeferredState={}));var RP=class{constructor(e=!0){this._state=gi.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!==gi.PENDING)throw new Error(`cannot resolve ${gi[this.state].toLowerCase()}`);this._resolve(e),this._state=gi.RESOLVED}reject(e){if(this.state!==gi.PENDING)throw new Error(`cannot reject ${gi[this.state].toLowerCase()}`);this._reject(e),this._state=gi.REJECTED}resolvePending(e){this._state===gi.PENDING&&this.resolve(e)}rejectPending(e){this._state===gi.PENDING&&this.reject(e)}};Ac.Deferred=RP});var vP=m(dC=>{"use strict";Object.defineProperty(dC,"__esModule",{value:!0});dC.RpcOutputStreamController=void 0;var cW=TP(),dc=gt(),PP=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){dc.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){dc.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){dc.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(){dc.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;dc.assert(e,"bad state"),dc.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 cW.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;dc.assert(s.state==cW.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};dC.RpcOutputStreamController=PP});var DP=m(Bu=>{"use strict";var XQe=Bu&&Bu.__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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.UnaryCall=void 0;var kP=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 XQe(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}})}};Bu.UnaryCall=kP});var LP=m(bu=>{"use strict";var ZQe=bu&&bu.__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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(bu,"__esModule",{value:!0});bu.ServerStreamingCall=void 0;var _P=class{constructor(e,r,s,n 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 RNe(){Object.keys(vC).forEach(function(t){delete vC[t]})}});var DC=m(Ci=>{"use strict";Ci.__esModule=!0;Ci.HandlebarsEnvironment=Nv;function i8(t){return t&&t.__esModule?t:{default:t}}var Ec=Er(),TNe=Os(),Qv=i8(TNe),PNe=Cv(),vNe=e8(),kNe=Bv(),kC=i8(kNe),DNe=wv(),_Ne="4.7.8";Ci.VERSION=_Ne;var LNe=8;Ci.COMPILER_REVISION=LNe;var MNe=7;Ci.LAST_COMPATIBLE_COMPILER_REVISION=MNe;var FNe={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"};Ci.REVISION_CHANGES=FNe;var xv="[object Object]";function Nv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},PNe.registerDefaultHelpers(this),vNe.registerDefaultDecorators(this)}Nv.prototype={constructor:Nv,logger:kC.default,log:kC.default.log,registerHelper:function(e,r){if(Ec.toString.call(e)===xv){if(r)throw new Qv.default("Arg not supported with multiple helpers");Ec.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Ec.toString.call(e)===xv)Ec.extend(this.partials,e);else{if(typeof r>"u")throw new Qv.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(Ec.toString.call(e)===xv){if(r)throw new Qv.default("Arg not supported with multiple decorators");Ec.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){DNe.resetLoggedProperties()}};var UNe=kC.default.log;Ci.log=UNe;Ci.createFrame=Ec.createFrame;Ci.logger=kC.default});var a8=m((_C,o8)=>{"use strict";_C.__esModule=!0;function Sv(t){this.string=t}Sv.prototype.toString=Sv.prototype.toHTML=function(){return""+this.string};_C.default=Sv;o8.exports=_C.default});var c8=m(Rv=>{"use strict";Rv.__esModule=!0;Rv.wrapHelper=ONe;function ONe(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var p8=m(ta=>{"use strict";ta.__esModule=!0;ta.checkRevision=YNe;ta.template=JNe;ta.wrapProgram=LC;ta.resolvePartial=$Ne;ta.invokePartial=WNe;ta.noop=A8;function qNe(t){return t&&t.__esModule?t:{default:t}}function GNe(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 HNe=Er(),io=GNe(HNe),zNe=Os(),oo=qNe(zNe),ao=DC(),l8=Cv(),VNe=c8(),u8=wv();function YNe(t){var e=t&&t[0]||1,r=ao.COMPILER_REVISION;if(!(e>=ao.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ao.COMPILER_REVISION))if(e<ao.LAST_COMPATIBLE_COMPILER_REVISION){var s=ao.REVISION_CHANGES[r],n=ao.REVISION_CHANGES[e];throw new oo.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new oo.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 JNe(t,e){if(!e)throw new oo.default("No environment passed to template");if(!t||!t.main)throw new oo.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=io.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c);var l=io.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=e.VM.invokePartial.call(this,o,a,l);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,l)),u!=null){if(c.indent){for(var A=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function DNe(){Object.keys(vC).forEach(function(t){delete vC[t]})}});var DC=m(Ci=>{"use strict";Ci.__esModule=!0;Ci.HandlebarsEnvironment=Tv;function l8(t){return t&&t.__esModule?t:{default:t}}var Ec=yr(),_Ne=Os(),Sv=l8(_Ne),LNe=bv(),MNe=n8(),FNe=Qv(),kC=l8(FNe),UNe=Nv(),ONe="4.7.8";Ci.VERSION=ONe;var qNe=8;Ci.COMPILER_REVISION=qNe;var GNe=7;Ci.LAST_COMPATIBLE_COMPILER_REVISION=GNe;var HNe={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"};Ci.REVISION_CHANGES=HNe;var Rv="[object Object]";function Tv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},LNe.registerDefaultHelpers(this),MNe.registerDefaultDecorators(this)}Tv.prototype={constructor:Tv,logger:kC.default,log:kC.default.log,registerHelper:function(e,r){if(Ec.toString.call(e)===Rv){if(r)throw new Sv.default("Arg not supported with multiple helpers");Ec.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Ec.toString.call(e)===Rv)Ec.extend(this.partials,e);else{if(typeof r>"u")throw new Sv.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(Ec.toString.call(e)===Rv){if(r)throw new Sv.default("Arg not supported with multiple decorators");Ec.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){UNe.resetLoggedProperties()}};var zNe=kC.default.log;Ci.log=zNe;Ci.createFrame=Ec.createFrame;Ci.logger=kC.default});var A8=m((_C,u8)=>{"use strict";_C.__esModule=!0;function Pv(t){this.string=t}Pv.prototype.toString=Pv.prototype.toHTML=function(){return""+this.string};_C.default=Pv;u8.exports=_C.default});var d8=m(vv=>{"use strict";vv.__esModule=!0;vv.wrapHelper=VNe;function VNe(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var g8=m(ta=>{"use strict";ta.__esModule=!0;ta.checkRevision=KNe;ta.template=XNe;ta.wrapProgram=LC;ta.resolvePartial=ZNe;ta.invokePartial=e0e;ta.noop=h8;function YNe(t){return t&&t.__esModule?t:{default:t}}function JNe(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 $Ne=yr(),io=JNe($Ne),WNe=Os(),oo=YNe(WNe),ao=DC(),p8=bv(),jNe=d8(),m8=Nv();function KNe(t){var e=t&&t[0]||1,r=ao.COMPILER_REVISION;if(!(e>=ao.LAST_COMPATIBLE_COMPILER_REVISION&&e<=ao.COMPILER_REVISION))if(e<ao.LAST_COMPATIBLE_COMPILER_REVISION){var s=ao.REVISION_CHANGES[r],n=ao.REVISION_CHANGES[e];throw new oo.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new oo.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 XNe(t,e){if(!e)throw new oo.default("No environment passed to template");if(!t||!t.main)throw new oo.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=io.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c);var l=io.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=e.VM.invokePartial.call(this,o,a,l);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,l)),u!=null){if(c.indent){for(var A=u.split(`
`),d=0,p=A.length;d<p&&!(!A[d]&&d+1===p);d++)A[d]=c.indent+A[d];u=A.join(`
`)}return u}else throw new oo.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,l){if(!a||!(c in a))throw new oo.default('"'+c+'" not defined in '+a,{loc:l});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||u8.resultIsAllowed(l,n.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var A=a[u]&&n.lookupProperty(a[u],c);if(A!=null)return a[u][c]}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:io.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,A){var d=this.programs[a],p=this.fn(a);return c||A||u||l?d=LC(this,a,p,c,l,u,A):d||(d=this.programs[a]=LC(this,a,p)),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=io.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=jNe(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function A(d){return""+t.main(n,d,n.helpers,n.partials,c,u,l)}return A=d8(t.main,A,n,a.depths||[],c,u),A(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a=io.extend({},e.helpers,o.helpers);KNe(a,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=io.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=u8.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;l8.moveHelperToHooks(n,"helperMissing",c),l8.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new oo.default("must pass block params");if(t.useDepths&&!l)throw new oo.default("must pass parent depths");return LC(n,o,t[o],a,0,c,l)},i}function LC(t,e,r,s,n,i,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,i&&[l.blockParams].concat(i),u)}return a=d8(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function $Ne(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=r.partials[t]):r.name==="@partial-block"?t=r.data["partial-block"]:t=r.partials[r.name],t}function WNe(t,e,r){var s=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==A8&&(function(){r.data=ao.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=ao.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=io.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new oo.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function A8(){return""}function jNe(t,e){return(!e||!("root"in e))&&(e=e?ao.createFrame(e):{},e.root=t),e}function d8(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),io.extend(e,o)}return e}function KNe(t,e){Object.keys(t).forEach(function(r){var s=t[r];t[r]=XNe(s,e)})}function XNe(t,e){var r=e.lookupProperty;return VNe.wrapHelper(t,function(s){return io.extend({lookupProperty:r},s)})}});var Tv=m((MC,m8)=>{"use strict";MC.__esModule=!0;MC.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}};m8.exports=MC.default});var y8=m((FC,E8)=>{"use strict";FC.__esModule=!0;function vv(t){return t&&t.__esModule?t:{default:t}}function kv(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 ZNe=DC(),h8=kv(ZNe),e0e=a8(),t0e=vv(e0e),r0e=Os(),s0e=vv(r0e),n0e=Er(),Pv=kv(n0e),i0e=p8(),f8=kv(i0e),o0e=Tv(),a0e=vv(o0e);function g8(){var t=new h8.HandlebarsEnvironment;return Pv.extend(t,h8),t.SafeString=t0e.default,t.Exception=s0e.default,t.Utils=Pv,t.escapeExpression=Pv.escapeExpression,t.VM=f8,t.template=function(e){return f8.template(e,t)},t}var qp=g8();qp.create=g8;a0e.default(qp);qp.default=qp;FC.default=qp;E8.exports=FC.default});var Dv=m((UC,I8)=>{"use strict";UC.__esModule=!0;var C8={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.para Line truncated
`)}return u}else throw new oo.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,l){if(!a||!(c in a))throw new oo.default('"'+c+'" not defined in '+a,{loc:l});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||m8.resultIsAllowed(l,n.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var A=a[u]&&n.lookupProperty(a[u],c);if(A!=null)return a[u][c]}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:io.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,A){var d=this.programs[a],p=this.fn(a);return c||A||u||l?d=LC(this,a,p,c,l,u,A):d||(d=this.programs[a]=LC(this,a,p)),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=io.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=t0e(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function A(d){return""+t.main(n,d,n.helpers,n.partials,c,u,l)}return A=f8(t.main,A,n,a.depths||[],c,u),A(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a=io.extend({},e.helpers,o.helpers);r0e(a,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=io.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=m8.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;p8.moveHelperToHooks(n,"helperMissing",c),p8.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new oo.default("must pass block params");if(t.useDepths&&!l)throw new oo.default("must pass parent depths");return LC(n,o,t[o],a,0,c,l)},i}function LC(t,e,r,s,n,i,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,i&&[l.blockParams].concat(i),u)}return a=f8(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function ZNe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=r.partials[t]):r.name==="@partial-block"?t=r.data["partial-block"]:t=r.partials[r.name],t}function e0e(t,e,r){var s=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==h8&&(function(){r.data=ao.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=ao.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=io.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new oo.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function h8(){return""}function t0e(t,e){return(!e||!("root"in e))&&(e=e?ao.createFrame(e):{},e.root=t),e}function f8(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),io.extend(e,o)}return e}function r0e(t,e){Object.keys(t).forEach(function(r){var s=t[r];t[r]=s0e(s,e)})}function s0e(t,e){var r=e.lookupProperty;return jNe.wrapHelper(t,function(s){return io.extend({lookupProperty:r},s)})}});var kv=m((MC,E8)=>{"use strict";MC.__esModule=!0;MC.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}};E8.exports=MC.default});var b8=m((FC,B8)=>{"use strict";FC.__esModule=!0;function _v(t){return t&&t.__esModule?t:{default:t}}function Lv(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 n0e=DC(),y8=Lv(n0e),i0e=A8(),o0e=_v(i0e),a0e=Os(),c0e=_v(a0e),l0e=yr(),Dv=Lv(l0e),u0e=g8(),C8=Lv(u0e),A0e=kv(),d0e=_v(A0e);function I8(){var t=new y8.HandlebarsEnvironment;return Dv.extend(t,y8),t.SafeString=o0e.default,t.Exception=c0e.default,t.Utils=Dv,t.escapeExpression=Dv.escapeExpression,t.VM=C8,t.template=function(e){return C8.template(e,t)},t}var Gp=I8();Gp.create=I8;d0e.default(Gp);Gp.default=Gp;FC.default=Gp;B8.exports=FC.default});var Mv=m((UC,Q8)=>{"use strict";UC.__esModule=!0;var w8={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.para Line truncated
`+this.lexer.showPosition()+`
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:Ne})}}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+B);switch(H[0]){case 1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(H[1]),B=null,v?(B=v,v=null):(d=this.lexer.yyleng,u=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,p>0&&p--);break;case 2:if(ce=this.productions_[H[1]][1],Re.$=a[a.length-ce],Re._$={first_line:c[c.length-(ce||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ce||1)].first_column,last_column:c[c.length-1].last_column},g&&(Re._$.range=[c[c.length-(ce||1)].range[0],c[c.length-1].range[1]]),Be=this.performAction.call(Re,u,d,A,this.yy,H[1],a,c),typeof Be<"u")return Be;ce&&(o=o.slice(0,-1*ce*2),a=a.slice(0,-1*ce),c=c.slice(0,-1*ce)),o.push(this.productions_[H[1]][0]),a.push(Re.$),c.push(Re._$),U=l[o[o.length-2]][o[o.length-1]],o.push(U);break;case 3:return!0}}return!0}},e=(function(){var s={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()+`
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(A+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:y,expected:Ee})}}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+B);switch(H[0]){case 1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(H[1]),B=null,x?(B=x,x=null):(d=this.lexer.yyleng,u=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,p>0&&p--);break;case 2:if(se=this.productions_[H[1]][1],Se.$=a[a.length-se],Se._$={first_line:c[c.length-(se||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(se||1)].first_column,last_column:c[c.length-1].last_column},g&&(Se._$.range=[c[c.length-(se||1)].range[0],c[c.length-1].range[1]]),be=this.performAction.call(Se,u,d,A,this.yy,H[1],a,c),typeof be<"u")return be;se&&(o=o.slice(0,-1*se*2),a=a.slice(0,-1*se),c=c.slice(0,-1*se)),o.push(this.productions_[H[1]][0]),a.push(Se.$),c.push(Se._$),U=l[o[o.length-2]][o[o.length-1]],o.push(U);break;case 3:return!0}}return!0}},e=(function(){var s={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,u;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(a=this._input.match(this.rules[A[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.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,A[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 s.options={},s.performAction=function(i,o,a,c){function l(A,d){return o.yytext=o.yytext.substring(A,o.yyleng-d+A)}var u=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}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();OC.default=c0e;B8.exports=OC.default});var zC=m((HC,x8)=>{"use strict";HC.__esModule=!0;function l0e(t){return t&&t.__esModule?t:{default:t}}var u0e=Os(),_v=l0e(u0e);function qC(){this.parents=[]}qC.prototype={constructor:qC,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!qC.prototype[s.type])throw new _v.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new _v.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new _v.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:GC,Decorator:GC,BlockStatement:w8,DecoratorBlock:w8,PartialStatement:Q8,PartialBlockStatement:function(e){Q8.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:GC,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 GC(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function w8(t){GLine truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Bc(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 Bc?e:(e=tk(e,this,r),new Bc(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},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,s=[];Object.keys(e).forEach(function(i){var o=tk(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(tk(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};XC.default=c5;l5.exports=XC.default});var h5=m((ZC,m5)=>{"use strict";ZC.__esModule=!0;function p5(t){return t&&t.__esModule?t:{default:t}}var A5=DC(),nSe=Os(),sk=p5(nSe),iSe=Er(),oSe=u5(),d5=p5(oSe);function Mu(t){this.value=t}function Fu(){}Fu.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=A5.COMPILER_REVISION,r=A5.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return iSe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var 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 sk.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},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 s.options={},s.performAction=function(i,o,a,c){function l(A,d){return o.yytext=o.yytext.substring(A,o.yyleng-d+A)}var u=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}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();OC.default=p0e;x8.exports=OC.default});var zC=m((HC,T8)=>{"use strict";HC.__esModule=!0;function m0e(t){return t&&t.__esModule?t:{default:t}}var h0e=Os(),Fv=m0e(h0e);function qC(){this.parents=[]}qC.prototype={constructor:qC,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!qC.prototype[s.type])throw new Fv.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Fv.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new Fv.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:GC,Decorator:GC,BlockStatement:S8,DecoratorBlock:S8,PartialStatement:R8,PartialBlockStatement:function(e){R8.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:GC,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 GC(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function S8(t){GLine truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Bc(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 Bc?e:(e=nk(e,this,r),new Bc(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},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,s=[];Object.keys(e).forEach(function(i){var o=nk(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(nk(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};XC.default=d5;p5.exports=XC.default});var y5=m((ZC,E5)=>{"use strict";ZC.__esModule=!0;function g5(t){return t&&t.__esModule?t:{default:t}}var h5=DC(),lSe=Os(),ok=g5(lSe),uSe=yr(),ASe=m5(),f5=g5(ASe);function Mu(t){this.value=t}function Fu(){}Fu.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=h5.COMPILER_REVISION,r=h5.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return uSe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var 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 ok.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var A={compiler:this.compilerInfo(),main:u};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,p=d.programs,h=d.decorators;for(c=0,l=p.length;c<l;c++)p[c]&&(A[c]=p[c],h[c]&&(A[c+"_d"]=h[c],A.useDecorators=!0));return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new d5.default(this.options.srcName),this.decorators=new d5.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++i+"="+c,l.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var A={compiler:this.compilerInfo(),main:u};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,p=d.programs,h=d.decorators;for(c=0,l=p.length;c<l;c++)p[c]&&(A[c]=p[c],h[c]&&(A[c+"_d"]=h[c],A.useDecorators=!0));return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new f5.default(this.options.srcName),this.decorators=new f5.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++i+"="+c,l.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=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 += "):n=!0,a.add(";"),o=a=void 0),i=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -85,51 +85,51 @@ Expecting `+Ne.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,n,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(aSe(this.options.strict&&i,this,r,s,e));return}for(var a=r.length;s<a;s++)this.replaceStack(function(c){var l=o.nameLookup(c,r[s],e);return n?[" && ",l]:[" != null ? ",l," : ",c]})},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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["fn = ",this.decorators.functionCall(s,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),o=[];s&&o.push(i.name),o.push(n),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 s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",i," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,s){var n=[],i=this.setupParams(r,1,n);e&&(r=this.popStack(),delete i.name),s&&(i.indent=JSON.stringify(s)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var r=this.popStack(),s=void 0,n=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(n=this.popStack(),s=this.popStack());var o=this.hash;s&&(o.contexts[e]=s),n&&(o.types[e]=n),i&&(o.id Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.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};ct.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+" }}")};ct.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+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var b5=m((hje,B5)=>{var rI=E5().default,I5=y5();rI.PrintVisitor=I5.PrintVisitor;rI.print=I5.print;B5.exports=rI;function C5(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=rI.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=C5,require.extensions[".hbs"]=C5)});var q5=m((fje,lo)=>{var ve=require("fs"),nI=require("os"),Yt=require("path"),w5=require("crypto"),Bi={fs:ve.constants,os:nI.constants},Q5="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",R5=/XXXXXX/,bSe=3,T5=(Bi.O_CREAT||Bi.fs.O_CREAT)|(Bi.O_EXCL||Bi.fs.O_EXCL)|(Bi.O_RDWR||Bi.fs.O_RDWR),wSe=nI.platform()==="win32",QSe=Bi.EBADF||Bi.os.errno.EBADF,xSe=Bi.ENOENT||Bi.os.errno.ENOENT,P5=448,v5=384,NSe="exit",Ou=[],k5=ve.rmdirSync.bind(ve),D5=!1;function SSe(t,e){return ve.rm(t,{recursive:!0},e)}function _5(t){return ve.rmSync(t,{recursive:!0})}function ck(t,e){let r=qu(t,e),s=r[0],n=r[1];FSe(s,function(i,o){if(i)return n(i);let a=o.tries;(function c(){try{let l=M5(o);ve.stat(l,function(u){if(!u)return a-- >0?c():n(new Error("Could not get a unique tmp filename, max tries reached "+l));n(null,l)})}catch(l){n(l)}})()})}function lk(t){let e=qu(t),r=e[0],s=USe(r),n=s.tries;do{let i=M5(s);try{ve.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function RSe(t,e){let r=qu(t,e),s=r[0],n=r[1];ck(s,function(o,a){if(o)return n(o);ve.open(a,T5,s.mode||v5,function(l,u){if(l)return n(l);if(s.discardDescriptor)return ve.close(u,function(d){return n(d,a,void 0,ok(a,-1,s,!1))});{let A=s.discardDescriptor||s.detachDescriptor;n(null,a,u,ok(a,A?-1:u,s,!1))}})})}function TSe(t){let e=qu(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=lk(r),i=ve.openSync(n,T5,r.mode||v5);return r.discardDescriptor&&(ve.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:ok(n,s?-1:i,r,!0)}}function PSe(t,e){let r=qu(t,e),s=r[0],n=r[1];ck(s,function(o,a){if(o)return n(o);ve.mkdir(a,s.mode||P5,function(l){if(l)return n(l);n(null,a,L5(a,s,!1))})})}function vSe(t){let e=qu(t),r=e[0],s=lk(r);return ve.mkdirSync(s,r.mode||P5),{name:s,removeCallback:L5(s,r,!0)}}function kSe(t,e){let r=function(s){if(s&&!ak(s))return e(s);e()};0<=t[0]?ve.close(t[0],function(){ve.unlink(t[1],r)}):ve.unlink(t[1],r)}function DSe(t){let e=null;try{0<=t[0]&&ve.closeSync(t[0])}catch(r){if(!OSe(r)&&!ak(r))throw r}finally{try{ve.unlinkSync(t[1])}catch(r){ak(r)||(e=r)}}if(e!==null)throw e}function ok(t,e,r,s){let n=sI(DSe,[e,t],s),i=sI(kSe,[e,t],s,n);return r.keep||Ou.unshift(n),s?n:i}function L5(t,e,r){let s=e.unsafeCleanup?SSe:ve.rmdir. Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function SQ(t,e){if(process.env.GITHUB_OUTPUT||"")return $u("OUTPUT",gm(t,e));process.stdout.write(xQ.EOL),Bn("set-output",{name:t},In(e))}function rq(t){process.exitCode=QQ.Failure,Sl(t)}function Ln(){return process.env.RUNNER_DEBUG==="1"}function I(t){Bn("debug",{},t)}function Sl(t,e={}){Bn("error",UI(e),t instanceof Error?t.toString():t)}function Ke(t,e={}){Bn("warning",UI(e),t instanceof Error?t.toString():t)}function x(t){process.stdout.write(t+xQ.EOL)}function Ule(t){qI("group",t)}function Ole(){qI("endgroup")}function pe(t,e){return Fle(this,void 0,void 0,function*(){Ule(t);let r;try{r=yield e()}finally{Ole()}return r})}function Rl(t,e){if(process.env.GITHUB_STATE||"")return $u("STATE",gm(t,e));Bn("save-state",{name:t},In(e))}function sq(t){return process.env[`STATE_${t}`]||""}var CC=b(require("fs"),1),pv=b(require("os"),1),mv=b(require("path"),1);var jQ=b(require("crypto"),1),Xt=b(require("fs"),1);var Lde=b($Q(),1);var _f=b(require("os"),1),sn=b(require("path"),1);var bs=b($Q(),1),JG=b(require("stream"),1),$G=b(require("util"),1),KQ=require("assert");var YG=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},kf=class{constructor(e,r,s){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return YG(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;x(i.message)}let n=this.getSleepAmount();x(`Waiting ${n} seconds before trying again`),yield this.sleep(n),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return YG(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Fn=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Df=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},WG=process.platform==="win32",RLe=process.platform==="darwin",Fde="actions/tool-cache";function ka(t,e,r,s){return Fn(this,void 0,void 0,function*(){e=e||sn.join(ZG(),jQ.randomUUID()),yield Cs(sn.dirname(e)),I(`Downloading ${t}`),I(`Destination ${e}`);let n=3,i=WQ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=WQ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new kf(n,i,o).execute(()=>Fn(this,void 0,void 0,function*(){return yield Ude(t,e||"",r,s)}),c=>!(c instanceof Df&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Ude(t,e,r,s){return Fn(this,void 0,void 0,function*(){if(Xt.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let n=new Rr(Fde,[],{allowRetries:!1});r&&(I("set auth"),s===void 0&&(s={}),s.authorization=r);let i=yield n.get(t,s);if(i.message.statusCode!==200){let u=new Df(i.message.statusCode);throw I(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=$G.promisify(JG.pipeline),c=WQ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),l=!1;try{return yield o(c,Xt.createWriteStream(e)),I("download complete"),l=!0,e}finally{if(!l){I("download failed");try{yield Ef(e)}catch(u){I(`Failed to delete '${e}'. ${u.message}`)}}}})}function Lf(t,e){return Fn(this,arguments,void 0,function*(r,s,n="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield KG(s),I("Checking tar --version");let i="";yield jr("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>i+=u.toString(),stderr:u=>i+=u.toString()}}),I(i.trim());let o=i.toUpperCase().includes("GNU TAR"),a;n instanceof Array?a=n:a=[n],Ln()&&!n.includes("v")&&a.push("-v");let c=s,l=r;return WG&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield jr("tar",a),s})}function Mf(t,e){return Fn(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield KG(e),WG?yield Ode(t,e):yield qde(t,e),e})}function Ode(t,e){return Fn(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield pt("pwsh",!1);if(n){let o=["-NoLogo","-NoProfile","Line truncated
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,n,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(dSe(this.options.strict&&i,this,r,s,e));return}for(var a=r.length;s<a;s++)this.replaceStack(function(c){var l=o.nameLookup(c,r[s],e);return n?[" && ",l]:[" != null ? ",l," : ",c]})},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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["fn = ",this.decorators.functionCall(s,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),o=[];s&&o.push(i.name),o.push(n),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 s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",i," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,s){var n=[],i=this.setupParams(r,1,n);e&&(r=this.popStack(),delete i.name),s&&(i.indent=JSON.stringify(s)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),n.push(i),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(e){var r=this.popStack(),s=void 0,n=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(n=this.popStack(),s=this.popStack());var o=this.hash;s&&(o.contexts[e]=s),n&&(o.types[e]=n),i&&(o.id Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.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};ct.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+" }}")};ct.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+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var N5=m((Cje,x5)=>{var rI=B5().default,Q5=b5();rI.PrintVisitor=Q5.PrintVisitor;rI.print=Q5.print;x5.exports=rI;function w5(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=rI.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=w5,require.extensions[".hbs"]=w5)});var V5=m((Ije,lo)=>{var ve=require("fs"),nI=require("os"),Yt=require("path"),S5=require("crypto"),Bi={fs:ve.constants,os:nI.constants},R5="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",k5=/XXXXXX/,SSe=3,D5=(Bi.O_CREAT||Bi.fs.O_CREAT)|(Bi.O_EXCL||Bi.fs.O_EXCL)|(Bi.O_RDWR||Bi.fs.O_RDWR),RSe=nI.platform()==="win32",TSe=Bi.EBADF||Bi.os.errno.EBADF,PSe=Bi.ENOENT||Bi.os.errno.ENOENT,_5=448,L5=384,vSe="exit",Ou=[],M5=ve.rmdirSync.bind(ve),F5=!1;function kSe(t,e){return ve.rm(t,{recursive:!0},e)}function U5(t){return ve.rmSync(t,{recursive:!0})}function Ak(t,e){let r=qu(t,e),s=r[0],n=r[1];HSe(s,function(i,o){if(i)return n(i);let a=o.tries;(function c(){try{let l=q5(o);ve.stat(l,function(u){if(!u)return a-- >0?c():n(new Error("Could not get a unique tmp filename, max tries reached "+l));n(null,l)})}catch(l){n(l)}})()})}function dk(t){let e=qu(t),r=e[0],s=zSe(r),n=s.tries;do{let i=q5(s);try{ve.statSync(i)}catch{return i}}while(n-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function DSe(t,e){let r=qu(t,e),s=r[0],n=r[1];Ak(s,function(o,a){if(o)return n(o);ve.open(a,D5,s.mode||L5,function(l,u){if(l)return n(l);if(s.discardDescriptor)return ve.close(u,function(d){return n(d,a,void 0,lk(a,-1,s,!1))});{let A=s.discardDescriptor||s.detachDescriptor;n(null,a,u,lk(a,A?-1:u,s,!1))}})})}function _Se(t){let e=qu(t),r=e[0],s=r.discardDescriptor||r.detachDescriptor,n=dk(r),i=ve.openSync(n,D5,r.mode||L5);return r.discardDescriptor&&(ve.closeSync(i),i=void 0),{name:n,fd:i,removeCallback:lk(n,s?-1:i,r,!0)}}function LSe(t,e){let r=qu(t,e),s=r[0],n=r[1];Ak(s,function(o,a){if(o)return n(o);ve.mkdir(a,s.mode||_5,function(l){if(l)return n(l);n(null,a,O5(a,s,!1))})})}function MSe(t){let e=qu(t),r=e[0],s=dk(r);return ve.mkdirSync(s,r.mode||_5),{name:s,removeCallback:O5(s,r,!0)}}function FSe(t,e){let r=function(s){if(s&&!uk(s))return e(s);e()};0<=t[0]?ve.close(t[0],function(){ve.unlink(t[1],r)}):ve.unlink(t[1],r)}function USe(t){let e=null;try{0<=t[0]&&ve.closeSync(t[0])}catch(r){if(!VSe(r)&&!uk(r))throw r}finally{try{ve.unlinkSync(t[1])}catch(r){uk(r)||(e=r)}}if(e!==null)throw e}function lk(t,e,r,s){let n=sI(USe,[e,t],s),i=sI(FSe,[e,t],s,n);return r.keep||Ou.unshift(n),s?n:i}function O5(t,e,r){let s=e.unsafeCleanup?kSe:ve.rmdir. Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function PQ(t,e){if(process.env.GITHUB_OUTPUT||"")return $u("OUTPUT",Em(t,e));process.stdout.write(RQ.EOL),Bn("set-output",{name:t},In(e))}function oq(t){process.exitCode=SQ.Failure,Sl(t)}function Ln(){return process.env.RUNNER_DEBUG==="1"}function I(t){Bn("debug",{},t)}function Sl(t,e={}){Bn("error",UI(e),t instanceof Error?t.toString():t)}function Ke(t,e={}){Bn("warning",UI(e),t instanceof Error?t.toString():t)}function N(t){process.stdout.write(t+RQ.EOL)}function zle(t){qI("group",t)}function Vle(){qI("endgroup")}function pe(t,e){return Hle(this,void 0,void 0,function*(){zle(t);let r;try{r=yield e()}finally{Vle()}return r})}function Rl(t,e){if(process.env.GITHUB_STATE||"")return $u("STATE",Em(t,e));Bn("save-state",{name:t},In(e))}function aq(t){return process.env[`STATE_${t}`]||""}var CC=b(require("fs"),1),fv=b(require("os"),1),gv=b(require("path"),1);var ZQ=b(require("crypto"),1),Zt=b(require("fs"),1);var qde=b(KQ(),1);var _f=b(require("os"),1),sn=b(require("path"),1);var bs=b(KQ(),1),KG=b(require("stream"),1),XG=b(require("util"),1),ex=require("assert");var jG=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},kf=class{constructor(e,r,s){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return jG(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;N(i.message)}let n=this.getSleepAmount();N(`Waiting ${n} seconds before trying again`),yield this.sleep(n),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return jG(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Fn=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Df=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},ZG=process.platform==="win32",DLe=process.platform==="darwin",Hde="actions/tool-cache";function ka(t,e,r,s){return Fn(this,void 0,void 0,function*(){e=e||sn.join(sH(),ZQ.randomUUID()),yield Cs(sn.dirname(e)),I(`Downloading ${t}`),I(`Destination ${e}`);let n=3,i=XQ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=XQ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new kf(n,i,o).execute(()=>Fn(this,void 0,void 0,function*(){return yield zde(t,e||"",r,s)}),c=>!(c instanceof Df&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function zde(t,e,r,s){return Fn(this,void 0,void 0,function*(){if(Zt.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let n=new Tr(Hde,[],{allowRetries:!1});r&&(I("set auth"),s===void 0&&(s={}),s.authorization=r);let i=yield n.get(t,s);if(i.message.statusCode!==200){let u=new Df(i.message.statusCode);throw I(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=XG.promisify(KG.pipeline),c=XQ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),l=!1;try{return yield o(c,Zt.createWriteStream(e)),I("download complete"),l=!0,e}finally{if(!l){I("download failed");try{yield Ef(e)}catch(u){I(`Failed to delete '${e}'. ${u.message}`)}}}})}function Lf(t,e){return Fn(this,arguments,void 0,function*(r,s,n="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield tH(s),I("Checking tar --version");let i="";yield Kr("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>i+=u.toString(),stderr:u=>i+=u.toString()}}),I(i.trim());let o=i.toUpperCase().includes("GNU TAR"),a;n instanceof Array?a=n:a=[n],Ln()&&!n.includes("v")&&a.push("-v");let c=s,l=r;return ZG&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield Kr("tar",a),s})}function Mf(t,e){return Fn(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield tH(e),ZG?yield Vde(t,e):yield Yde(t,e),e})}function Vde(t,e){return Fn(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield pt("pwsh",!1);if(n){let o=["-NoLogo","-NoProfile","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 ld(i));return s.searchPaths.push(...ex(s.patterns)),s})}static stat(e,r,s){return ox(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield _l.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){I(`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 _l.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield _l.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){I(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Cpe=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function xH(t,e){return Cpe(this,void 0,void 0,function*(){return yield Hf.create(t,e)})}var ig=b(require("crypto"),1),Fl=b(require("fs"),1),Ma=b(require("path"),1),gV=b(hV(),1),EV=b(require("util"),1);var Ed;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ed||(Ed={}));var pr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(pr||(pr={}));var Xr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Xr||(Xr={}));var sg=2,ng=5e3,xx=5e3,Nx=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,fV=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,yd="cache.tar",Sx="manifest.txt",UMe=10*Math.pow(1024,3);var Ml=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},gfe=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)}},Efe="1.0";function Cd(){return Ml(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=Ma.join(s,"actions","temp")}let r=Ma.join(e,ig.randomUUID());return yield Cs(r),r})}function On(t){return Fl.statSync(t).size}function Rx(t){return Ml(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 xH(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=gfe(c.globGenerator()),A;A=yield u.next(),e=A.done,!e;l=!0){n=A.value,l=!1;let p=Ma.relative(a,n).replace(new RegExp(`\\${Ma.sep}`,"g"),"/");I(`Matched: ${p}`),p===""?o.push("."):o.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function Id(t){return Ml(this,void 0,void 0,function*(){return EV.promisify(Fl.unlink)(t)})}function yV(t){return Ml(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),I(`Checking ${e} ${r.join(" ")}`);try{yield jr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){I(n.message)}return s=s.trim(),I(s),s})}function Bd(){return Ml(this,void 0,void 0,function*(){let t=yield yV("zstd",["--quiet"]),e=gV.clean(t);return I(`zstd version: ${e}`),t===""?pr.Gzip:pr.ZstdWithoutLong})}function Uo(t){return t===pr.Gzip?Ed.Gzip:Ed.Zstd}function CV(){return Ml(this,void 0,void 0,function*(){return Fl.existsSync(Nx)?Nx:(yield yV("tar")).toLowerCase().includes("gnu tar")?pt("tar"):""})}function Tx(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ul(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(Efe),ig.createHash("sha256").update(s.join("|")).digest("hex")}function IV(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var pu=b(require("fs"),1),I4=require("url");var qn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var BV=require("node:os"),bV=b(require("node:util"),1),wV=b(require("node:process"),1);function QV(t,...e){wV.default.stderr.write(`${bV.default.format(t,...e)}${BV.EOL}`)}var xV=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,SV,Px=[],vx=[],ag=[];xV&&kx(xV);var RV=Object.assign(t=>TV(t),{enable:kx,enabled:Dx,disable:yfe,log:QV});function kx(t){SV=t,Px=[],vx=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?vx.push(r.substring(1)):Px.push(r);for(let r of ag)r.enabled=Dx(r.namespace)}function Dx(t){if(t.endsWith("*"))return!0;for(let e of vx)if(NV(t,e))return!1;for(let e of Px)if(NV(t,e))return!0;return!1}function NV(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],p="";for(let h of e)h==="*"&&p==="*"||(p=h,d.push(h));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,u=n===r.length,A=n===r.length-1&&r[n]==="*";return l&&(u||A)}function yfe(){let t=SV||"";return kx(""),t}function TV(t){let e=Object.assign(r,{enabled:Dx(t),destroy:Cfe,log:RV.log,namespace:t,extend:Ife});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return ag.push(e),e}function Cfe(){let t=ag.indexOf(this);return t>=0?(ag.splice(t,1),!0):!1}function Ife(t){let e=TV(`${this.namespace}:${t}`);return e.log=this.log,e}var Ol=RV;var _x=["verbose","info","warning","error"],PV={verbose:400,info:300,warning:200,error:100};function vV(t,e){e.log=(...r)=>{t.log(...r)}}function kV(t){return _x.includes(t)}function cg(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Ol(t.namespace);n.log=(...u)=>{Ol.log(...u)};function i(u){if(u&&!kV(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${_x.join(",")}`);s=u;let A=[];for(let d of e)o(d)&&A.push(d.namespace);Ol.enable(A.join(","))}r&&(kV(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${_x.join(", ")}.`));function o(u){return!!(s&&PV[u.level]<=PV[s])}function a(u,A){let d=Object.assign(u.extend(A),{level:A});if(vV(u,d),o(d)){let p=Ol.disable();Ol.enable(p+","+d.namespace)}return e.add(d),d}function c(){return s}function l(u){let A=n.extend(u);return vV(n,A),{error:a(A,"error"),warning:a(A,"warning"),info:a(A,"info"),verbose:a(A,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:l,logger:n}}var DV=cg({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Bfe=DV.logger;function bd(t){return DV.createClientLogger(t)}function lg(t){return t.toLowerCase()}function*bfe(t){for(let e of t.values())yield[e.name,e.value]}var Lx=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(lg(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(lg(e))?.value}has(e){return this._headersMap.has(lg(e))}delete(e){this._headersMap.delete(lg(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
${xfe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function dg(t){return t instanceof mr?!0:Ua(t)&&t.name==="RestError"}function Tr(t,e){return Buffer.from(t,e)}var pg=b(require("node:http"),1),mg=b(require("node:https"),1),Ox=b(require("node:zlib"),1),UV=require("node:stream");var xs=bd("ts-http-runtime");var Nfe={};function wd(t){return t&&typeof t.pipe=="function"}function FV(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 OV(t){return t&&typeof t.byteLength=="number"}var hg=class extends UV.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}},qx=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new qn("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 an;xs.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=Pfe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let h=e.onUploadProgress,f=new hg(h);f.on("error",y=>{xs.error("Error in upload progress",y)}),wd(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=Sfe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?Rfe(l,u):l;let p=e.onDownloadProgress;if(p){let h=new hg(p);h.on("error",f=>{xs.error("Error in download progress",f)}),c.pipe(h),c=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Tfe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();wd(a)&&(l=FV(a));let u=Promise.resolve();wd(c)&&(u=FV(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{xs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}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 u=i?pg.default.request(a,c):mg.default.request(a,c);u.once("error",A=>{l(new mr(A.message,{code:A.code??mr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new qn("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(A),l(A)}),s&&wd(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):OV(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(xs.error("Unrecognized body type",s),l(new mr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?pg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new pg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return mg.default.globalAgent;let n=e.tlsSettings??Nfe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(xs.info("No cached TLS Agent exist, creating a new Agent"),i=new mg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Sfe(t){let e=Zr();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 Rfe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Ox.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Ox.default.createInflate();return t.pipe(s),s}return t}function Tfe(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 mr(`Error reading response as text: ${n.message}`,{code:mr.PARSE_ERROR}))})})}function Pfe(t){return t?Buffer.isBuffer(t)?t.length:wd(t)?null:OV(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function qV(){return new qx}function fg(){return qV()}var Gx="logPolicy";function gg(t={}){let e=t.logger??xs.info,r=new an({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function Zge(t){return t instanceof Uint8Array?t.byteLength:Fg(t)?t.size===-1?void 0:t.size:void 0}function eEe(t){let e=0;for(let r of t){let s=Zge(r);if(s===void 0)return;e+=s}return e}async function tEe(t,e,r){let s=[Tr(`--${r}`,"utf-8"),...e.flatMap(i=>[Tr(`\r
`,"utf-8"),Tr(Xge(i.headers),"utf-8"),Tr(`\r
`,"utf-8"),i.body,Tr(`\r
--${r}`,"utf-8")]),Tr(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new ud(i));return s.searchPaths.push(...sx(s.patterns)),s})}static stat(e,r,s){return lx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield _l.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){I(`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 _l.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield _l.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){I(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Qpe=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function TH(t,e){return Qpe(this,void 0,void 0,function*(){return yield Hf.create(t,e)})}var ig=b(require("crypto"),1),Fl=b(require("fs"),1),Ma=b(require("path"),1),IV=b(yV(),1),BV=b(require("util"),1);var yd;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(yd||(yd={}));var mr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(mr||(mr={}));var Zr;(function(t){t.GNU="gnu",t.BSD="bsd"})(Zr||(Zr={}));var sg=2,ng=5e3,Rx=5e3,Tx=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,CV=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Cd="cache.tar",Px="manifest.txt",zMe=10*Math.pow(1024,3);var Ml=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Bfe=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)}},bfe="1.0";function Id(){return Ml(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=Ma.join(s,"actions","temp")}let r=Ma.join(e,ig.randomUUID());return yield Cs(r),r})}function On(t){return Fl.statSync(t).size}function vx(t){return Ml(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 TH(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=Bfe(c.globGenerator()),A;A=yield u.next(),e=A.done,!e;l=!0){n=A.value,l=!1;let p=Ma.relative(a,n).replace(new RegExp(`\\${Ma.sep}`,"g"),"/");I(`Matched: ${p}`),p===""?o.push("."):o.push(`${p}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function Bd(t){return Ml(this,void 0,void 0,function*(){return BV.promisify(Fl.unlink)(t)})}function bV(t){return Ml(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),I(`Checking ${e} ${r.join(" ")}`);try{yield Kr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){I(n.message)}return s=s.trim(),I(s),s})}function bd(){return Ml(this,void 0,void 0,function*(){let t=yield bV("zstd",["--quiet"]),e=IV.clean(t);return I(`zstd version: ${e}`),t===""?mr.Gzip:mr.ZstdWithoutLong})}function Uo(t){return t===mr.Gzip?yd.Gzip:yd.Zstd}function wV(){return Ml(this,void 0,void 0,function*(){return Fl.existsSync(Tx)?Tx:(yield bV("tar")).toLowerCase().includes("gnu tar")?pt("tar"):""})}function kx(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ul(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(bfe),ig.createHash("sha256").update(s.join("|")).digest("hex")}function QV(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var pu=b(require("fs"),1),Q4=require("url");var qn=class extends Error{constructor(e){super(e),this.name="AbortError"}};var xV=require("node:os"),NV=b(require("node:util"),1),SV=b(require("node:process"),1);function RV(t,...e){SV.default.stderr.write(`${NV.default.format(t,...e)}${xV.EOL}`)}var TV=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,vV,Dx=[],_x=[],ag=[];TV&&Lx(TV);var kV=Object.assign(t=>DV(t),{enable:Lx,enabled:Mx,disable:wfe,log:RV});function Lx(t){vV=t,Dx=[],_x=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?_x.push(r.substring(1)):Dx.push(r);for(let r of ag)r.enabled=Mx(r.namespace)}function Mx(t){if(t.endsWith("*"))return!0;for(let e of _x)if(PV(t,e))return!1;for(let e of Dx)if(PV(t,e))return!0;return!1}function PV(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],p="";for(let h of e)h==="*"&&p==="*"||(p=h,d.push(h));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,u=n===r.length,A=n===r.length-1&&r[n]==="*";return l&&(u||A)}function wfe(){let t=vV||"";return Lx(""),t}function DV(t){let e=Object.assign(r,{enabled:Mx(t),destroy:Qfe,log:kV.log,namespace:t,extend:xfe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return ag.push(e),e}function Qfe(){let t=ag.indexOf(this);return t>=0?(ag.splice(t,1),!0):!1}function xfe(t){let e=DV(`${this.namespace}:${t}`);return e.log=this.log,e}var Ol=kV;var Fx=["verbose","info","warning","error"],_V={verbose:400,info:300,warning:200,error:100};function LV(t,e){e.log=(...r)=>{t.log(...r)}}function MV(t){return Fx.includes(t)}function cg(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=Ol(t.namespace);n.log=(...u)=>{Ol.log(...u)};function i(u){if(u&&!MV(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${Fx.join(",")}`);s=u;let A=[];for(let d of e)o(d)&&A.push(d.namespace);Ol.enable(A.join(","))}r&&(MV(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${Fx.join(", ")}.`));function o(u){return!!(s&&_V[u.level]<=_V[s])}function a(u,A){let d=Object.assign(u.extend(A),{level:A});if(LV(u,d),o(d)){let p=Ol.disable();Ol.enable(p+","+d.namespace)}return e.add(d),d}function c(){return s}function l(u){let A=n.extend(u);return LV(n,A),{error:a(A,"error"),warning:a(A,"warning"),info:a(A,"info"),verbose:a(A,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:l,logger:n}}var FV=cg({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Nfe=FV.logger;function wd(t){return FV.createClientLogger(t)}function lg(t){return t.toLowerCase()}function*Sfe(t){for(let e of t.values())yield[e.name,e.value]}var Ux=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(lg(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(lg(e))?.value}has(e){return this._headersMap.has(lg(e))}delete(e){this._headersMap.delete(lg(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
${Pfe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function dg(t){return t instanceof hr?!0:Ua(t)&&t.name==="RestError"}function Pr(t,e){return Buffer.from(t,e)}var pg=b(require("node:http"),1),mg=b(require("node:https"),1),Hx=b(require("node:zlib"),1),HV=require("node:stream");var xs=wd("ts-http-runtime");var vfe={};function Qd(t){return t&&typeof t.pipe=="function"}function GV(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 zV(t){return t&&typeof t.byteLength=="number"}var hg=class extends HV.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}},zx=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new qn("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 an;xs.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=Lfe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let h=e.onUploadProgress,f=new hg(h);f.on("error",y=>{xs.error("Error in upload progress",y)}),Qd(a)?a.pipe(f):f.end(a),a=f}let l=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=kfe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?Dfe(l,u):l;let p=e.onDownloadProgress;if(p){let h=new hg(p);h.on("error",f=>{xs.error("Error in download progress",f)}),c.pipe(h),c=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await _fe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();Qd(a)&&(l=GV(a));let u=Promise.resolve();Qd(c)&&(u=GV(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{xs.warning("Error when cleaning up abortListener on httpRequest",A)})}}}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 u=i?pg.default.request(a,c):mg.default.request(a,c);u.once("error",A=>{l(new hr(A.message,{code:A.code??hr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new qn("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(A),l(A)}),s&&Qd(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):zV(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(xs.error("Unrecognized body type",s),l(new hr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?pg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new pg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return mg.default.globalAgent;let n=e.tlsSettings??vfe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(xs.info("No cached TLS Agent exist, creating a new Agent"),i=new mg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function kfe(t){let e=es();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 Dfe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Hx.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Hx.default.createInflate();return t.pipe(s),s}return t}function _fe(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 hr(`Error reading response as text: ${n.message}`,{code:hr.PARSE_ERROR}))})})}function Lfe(t){return t?Buffer.isBuffer(t)?t.length:Qd(t)?null:zV(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function VV(){return new zx}function fg(){return VV()}var Vx="logPolicy";function gg(t={}){let e=t.logger??xs.info,r=new an({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQue Line truncated
`;return e}function nEe(t){return t instanceof Uint8Array?t.byteLength:Fg(t)?t.size===-1?void 0:t.size:void 0}function iEe(t){let e=0;for(let r of t){let s=nEe(r);if(s===void 0)return;e+=s}return e}async function oEe(t,e,r){let s=[Pr(`--${r}`,"utf-8"),...e.flatMap(i=>[Pr(`\r
`,"utf-8"),Pr(sEe(i.headers),"utf-8"),Pr(`\r
`,"utf-8"),i.body,Pr(`\r
--${r}`,"utf-8")]),Pr(`--\r
\r
`,"utf-8")],n=eEe(s);n&&t.headers.set("Content-Length",n),t.body=await LY(s)}var Sd="multipartPolicy",rEe=70,sEe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function nEe(t){if(t.length>rEe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!sEe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Og(){return{name:Sd,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?nEe(r):r=Kge(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await tEe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function qg(){return Ag()}var MY=cg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),C2e=MY.logger;function Hn(t){return MY.createClientLogger(t)}var zn=Hn("core-rest-pipeline");function iN(t={}){return gg({logger:zn.info,...t})}var oN=Eg;function aN(t={}){return yg(t)}var Gg=b(require("node:os"),1),Hg=b(require("node:process"),1);function FY(){return"User-Agent"}async function UY(t){if(Hg.default&&Hg.default.versions){let e=`${Gg.default.type()} ${Gg.default.release()}; ${Gg.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 zg="1.22.2";function dEe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function OY(){return FY()}async function Vg(t){let e=new Map;e.set("core-rest-pipeline",zg),await UY(e);let r=dEe(e);return t?`${t} ${r}`:r}var qY=OY(),GY="userAgentPolicy";function cN(t={}){let e=Vg(t.userAgentPrefix);return{name:GY,async sendRequest(r,s){return r.headers.has(qY)||r.headers.set(qY,await e),s(r)}}}var rs=class extends Error{constructor(e){super(e),this.name="AbortError"}};function lN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new rs(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var gEe="The delay was aborted.";function Rd(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return lN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??gEe})}function qo(t){if(Ua(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 HY(t){return Ua(t)}function Jl(){return Fa()}var Qe=Ga;var zY=Symbol("rawContent");function AN(t){return typeof t[zY]=="function"}function VY(t){return AN(t)?t[zY]():t}var Yg=Sd;function dN(){let t=Og();return{name:Yg,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)AN(s.body)&&(s.body=VY(s.body));return t.sendRequest(e,r)}}}var pN=Cg;function mN(){return Ig()}function hN(t={}){return wg(t)}function fN(){return Qg()}function Go(t){return eN(t)}function gN(t,e){return _g(t,e)}var YY="setClientRequestIdPolicy";function EN(t="x-ms-client-request-id"){return{name:YY,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function yN(t){return Lg(t)}function CN(t){return Mg(t)}var $l={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function JY(t={}){let e=new IN(t.parentContext);return t.span&&(e=e.setValue($l.span,t.span)),t.namespace&&(e=e.setValue($l.namespace,t.namespace)),e}var IN=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 WY=b($Y(),1),$g=WY.state;function EEe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function yEe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:EEe(),tracingContext:JY({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Td(){return $g.instrumenterImplementation||($g.instrumenterImplementation=yEe()),$g.instrumenterImplementation}function Pd(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,u,A){let d=Td().startSpan(l,{...A,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),p=d.tracingContext,h=d.span;p.getValue($l.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--),!qye(c)){let A;return c.trim().length===0?A="Invalid space after '<'.":A="Tag '"+c+"' is an invalid name.",mt("InvalidTag",A,hr(t,i))}let l=Lye(t,i);if(l===!1)return mt("InvalidAttr","Attributes for '"+c+"' have open quote.",hr(t,i));let u=l.value;if(i=l.index,u[u.length-1]==="/"){let A=i-u.length;u=u.substring(0,u.length-1);let d=TJ(u,e);if(d===!0)s=!0;else return mt(d.err.code,d.err.msg,hr(t,A+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return mt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",hr(t,o));if(r.length===0)return mt("InvalidTag","Closing tag '"+c+"' has not been opened.",hr(t,o));{let A=r.pop();if(c!==A.tagName){let d=hr(t,A.tagStartPos);return mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",hr(t,o))}r.length==0&&(n=!0)}}else return mt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",hr(t,i));else{let A=TJ(u,e);if(A!==!0)return mt(A.err.code,A.err.msg,hr(t,i-u.length+A.err.line));if(n===!0)return mt("InvalidXml","Multiple possible root nodes found.",hr(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=RJ(t,i);continue}else if(t[i+1]==="?"){if(i=SJ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=Uye(t,i);if(A==-1)return mt("InvalidChar","char '&' is not expected.",hr(t,i));i=A}else if(n===!0&&!NJ(t[i]))return mt("InvalidXml","Extra text at the end",hr(t,i));t[i]==="<"&&i--}}else{if(NJ(t[i]))continue;return mt("InvalidChar","char '"+t[i]+"' is not expected.",hr(t,i))}if(s){if(r.length==1)return mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hr(t,r[0].tagStartPos));if(r.length>0)return mt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return mt("InvalidXml","Start tag expected.",1);return!0}function NJ(t){return t===" "||t===" "||t===`
`||t==="\r"}function SJ(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 mt("InvalidXml","XML declaration allowed only at the start of the document.",hr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function RJ(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 Dye='"',_ye="'";function Lye(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===Dye||t[e]===_ye)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 Mye=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function TJ(t,e){let r=sE(t,Mye),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Od(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Od(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return mt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Od(r[n]));let i=r[n][2];if(!Oye(i))return mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",Od(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return mt("InvalidAttr","Attribute '"+i+"' is repeated.",Od(r[n]))}return!0}function Fye(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 Uye(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Fye(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 mt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Oye(t){return Kl(t)}function qye(t){return Kl(t)}function hr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Od(t){return t.startIndex+t[1].length}var Gye={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0};function PJ(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:t.maxEntitySize??1e4,maxExpansionDepth:t.maxExpansionDepth??10,maxTotalExpansions:t.maxTotalExpansions??1e3,maxExpandedLength:t.maxExpandedLength??1e5,allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:PJ(!0)}var vJ=function(t){let e=Object.assign({},Gye,t);return e.processEntities=PJ(e.processEntities),e};var iE;typeof Symbol!="function"?iE="@@xmlMetadata":iE=Symbol("XML Node Metadata");var vr=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][iE]={startIndex:r})}static getMetaDataSymbol(){return iE}};var Gd=class{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,r){let s=Object.create(null);if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let n=1,i=!1,o=!1,a="";for(;r<e.length;r++)if(e[r]==="<"&&!o){if(i&&Ya(e,"!ENTITY",r)){r+=7;let c,l;if([c,l,r]=this.readEntityExp(e,r+1,this.suppressValidationErr),l.indexOf("&")===-1){let u=c.replace(/[.\-+*:]/g,"\\.");s[c]={regx:RegExp(`&${u};`,"g"),val:l}}}else if(i&&Ya(e,"!ELEMENT",r)){r+=8;let{index:c}=this.readElementExp(e,r+1);r=c}else if(i&&Ya(e,"!ATTLIST",r))r+=8;else if(i&&Ya(e,"!NOTATION",r)){r+=9;let{index:c}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=c}else if(Ya(e,"!--",r))o=!0;else throw new Error("Invalid DOCTYPE");n++,a=""}else if(e[r]===">"){if(o?e[r-1]==="-"&&e[r-2]==="-"&&(o=!1,n--):n-Line truncated
`);let e=new vr("!xml"),r=e,s="",n="";this.entityExpansionCount=0,this.currentExpandedLength=0;let i=new Gd(this.options.processEntities);for(let o=0;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="/"){let c=Ja(t,">",o,"Closing Tag is not closed."),l=t.substring(o+2,c).trim();if(this.options.removeNSPrefix){let d=l.indexOf(":");d!==-1&&(l=l.substr(d+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(s=this.saveTextToParentTag(s,r,n));let u=n.substring(n.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);let A=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(A=n.lastIndexOf(".",n.lastIndexOf(".")-1),this.tagsNodeStack.pop()):A=n.lastIndexOf("."),n=n.substring(0,A),r=this.tagsNodeStack.pop(),s="",o=c}else if(t[o+1]==="?"){let c=qN(t,o,!1,"?>");if(!c)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,n),!(this.options.ignoreDeclaration&&c.tagName==="?xml"||this.options.ignorePiTags)){let l=new vr(c.tagName);l.add(this.options.textNodeName,""),c.tagName!==c.tagExp&&c.attrExpPresent&&(l[":@"]=this.buildAttributesMap(c.tagExp,n,c.tagName)),this.addChild(r,l,n,o)}o=c.closeIndex+1}else if(t.substr(o+1,3)==="!--"){let c=Ja(t,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let l=t.substring(o+4,c-2);s=this.saveTextToParentTag(s,r,n),r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}o=c}else if(t.substr(o+1,2)==="!D"){let c=i.readDocType(t,o);this.docTypeEntities=c.entities,o=c.i}else if(t.substr(o+1,2)==="!["){let c=Ja(t,"]]>",o,"CDATA is not closed.")-2,l=t.substring(o+9,c);s=this.saveTextToParentTag(s,r,n);let u=this.parseTextData(l,r.tagname,n,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}]):r.add(this.options.textNodeName,u),o=c+2}else{let c=qN(t,o,this.options.removeNSPrefix),l=c.tagName,u=c.rawTagName,A=c.tagExp,d=c.attrExpPresent,p=c.closeIndex;if(this.options.transformTagName){let y=this.options.transformTagName(l);A===l&&(A=y),l=y}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,n,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),n=n.substring(0,n.lastIndexOf("."))),l!==e.tagname&&(n+=n?"."+l:l);let f=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,n,l)){let y="";if(A.length>0&&A.lastIndexOf("/")===A.length-1)l[l.length-1]==="/"?(l=l.substr(0,l.length-1),n=n.substr(0,n.length-1),A=l):A=A.substr(0,A.length-1),o=c.closeIndex;else if(this.options.unpairedTags.indexOf(l)!==-1)o=c.closeIndex;else{let E=this.readStopNodeData(t,u,p+1);if(!E)throw new Error(`Unexpected end of ${u}`);o=E.i,y=E.tagContent}let g=new vr(l);l!==A&&d&&(g[":@"]=this.buildAttributesMap(A,n,l)),y&&(y=this.parseTextData(y,l,n,!0,d,!0,!0)),n=n.substr(0,n.lastIndexOf(".")),g.add(this.options.textNodeName,y),this.addChild(r,g,n,f)}else{if(A.length>0&&A.lastIndexOf("/")===A.length-1){if(l[l.length-1]==="/"?(l=l.substr(0,l.length-1),n=n.substr(0,n.length-1),A=l):A=A.substr(0,A.length-1),this.options.transformTagName){let g=this.options.transformTagName(l);A===l&&(A=g),l=g}let y=new vr(l);l!==A&&d&&(y[":@"]=this.buildAttributesMap(A,n,l)),this.addChild(r,y,n,f),n=n.substr(0,n.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(l)!==-1){let y=new vr(l);l!==A&&d&&(y[":@"]=this.buildAttributesMap(A,n)),this.addChild(r,y,n,f),n=n.substr(0,n.lastIndexOf(".")),o=c.closeIndex;continue}else{let y=new vr(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),l!==A&&d&&(y[":@"]=this.buildAttributesMap(A,n,l)),this.addChild(r,y,n,f),r=y}s="",o=p}}else s+=t[o];return e.child};function rCe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.updateTag(e.tagname,r,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}var sCe=function(t,e,r){if(t.indexOf("&")===-1)return t;let s=this.options.processEntities;if(!s.enabled||s.allowedTags&&!s.allowedTags.includes(e)||s.tagFilter&&!s.tagFilter(e,r))return t;for(let n in this.docTypeEntities){let i=this.docTypeEntities[n],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,s.maxTotalExpansions&&this.entityExpansionCount>s.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${s.maxTotalExpansions}`);let a=t.length;if(t=t.replace(i.regx,i.val),s.maxExpandedLength&&(this.currentExpandedLength+=t.length-a,this.currentExpandedLength>s.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${s.maxExpandedLength}`)}}if(t.indexOf("&")===-1)return t;for(let n in this.lastEntities){let i=this.lastEntities[n];t=t.replace(i.regex,i.val)}if(t.indexOfLine truncated
`),LJ(t,e,"",r)}function LJ(t,e,r,s){let n="",i=!1;if(!Array.isArray(t)){if(t!=null){let o=t.toString();return o=VN(o,e),o}return""}for(let o=0;o<t.length;o++){let a=t[o],c=ACe(a);if(c===void 0)continue;let l="";if(r.length===0?l=c:l=`${r}.${c}`,c===e.textNodeName){let h=a[c];dCe(l,e)||(h=e.tagValueProcessor(c,h),h=VN(h,e)),i&&(n+=s),n+=h,i=!1;continue}else if(c===e.cdataPropName){i&&(n+=s),n+=`<![CDATA[${a[c][0][e.textNodeName]}]]>`,i=!1;continue}else if(c===e.commentPropName){n+=s+`<!--${a[c][0][e.textNodeName]}-->`,i=!0;continue}else if(c[0]==="?"){let h=_J(a[":@"],e),f=c==="?xml"?"":s,y=a[c][0][e.textNodeName];y=y.length!==0?" "+y:"",n+=f+`<${c}${y}${h}?>`,i=!0;continue}let u=s;u!==""&&(u+=e.indentBy);let A=_J(a[":@"],e),d=s+`<${c}${A}`,p=LJ(a[c],e,l,u);e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?n+=d+">":n+=d+"/>":(!p||p.length===0)&&e.suppressEmptyNode?n+=d+"/>":p&&p.endsWith(">")?n+=d+`>${p}${s}</${c}>`:(n+=d+">",p&&s!==""&&(p.includes("/>")||p.includes("</"))?n+=s+e.indentBy+p+s:n+=p,n+=`</${c}>`),i=!0}return n}function ACe(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 _J(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=e.attributeValueProcessor(s,t[s]);n=VN(n,e),n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function dCe(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+r)return!0;return!1}function VN(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 JN(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 pCe={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};function Jn(t){this.options=Object.assign({},pCe,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=JN(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=fCe),this.processTextOrObjNode=mCe,this.options.format?(this.indentate=hCe,this.tagEndChar=`>
`,"utf-8")],n=iEe(s);n&&t.headers.set("Content-Length",n),t.body=await OY(s)}var Rd="multipartPolicy",aEe=70,cEe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function lEe(t){if(t.length>aEe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!cEe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Og(){return{name:Rd,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?lEe(r):r=rEe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await oEe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function qg(){return Ag()}var qY=cg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Q2e=qY.logger;function Hn(t){return qY.createClientLogger(t)}var zn=Hn("core-rest-pipeline");function cN(t={}){return gg({logger:zn.info,...t})}var lN=Eg;function uN(t={}){return yg(t)}var Gg=b(require("node:os"),1),Hg=b(require("node:process"),1);function GY(){return"User-Agent"}async function HY(t){if(Hg.default&&Hg.default.versions){let e=`${Gg.default.type()} ${Gg.default.release()}; ${Gg.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 zg="1.22.2";function gEe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function zY(){return GY()}async function Vg(t){let e=new Map;e.set("core-rest-pipeline",zg),await HY(e);let r=gEe(e);return t?`${t} ${r}`:r}var VY=zY(),YY="userAgentPolicy";function AN(t={}){let e=Vg(t.userAgentPrefix);return{name:YY,async sendRequest(r,s){return r.headers.has(VY)||r.headers.set(VY,await e),s(r)}}}var ss=class extends Error{constructor(e){super(e),this.name="AbortError"}};function dN(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new ss(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var BEe="The delay was aborted.";function Td(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return dN(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??BEe})}function qo(t){if(Ua(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 JY(t){return Ua(t)}function Jl(){return Fa()}var xe=Ga;var $Y=Symbol("rawContent");function mN(t){return typeof t[$Y]=="function"}function WY(t){return mN(t)?t[$Y]():t}var Yg=Rd;function hN(){let t=Og();return{name:Yg,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)mN(s.body)&&(s.body=WY(s.body));return t.sendRequest(e,r)}}}var fN=Cg;function gN(){return Ig()}function EN(t={}){return wg(t)}function yN(){return Qg()}function Go(t){return sN(t)}function CN(t,e){return _g(t,e)}var jY="setClientRequestIdPolicy";function IN(t="x-ms-client-request-id"){return{name:jY,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function BN(t){return Lg(t)}function bN(t){return Mg(t)}var $l={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function KY(t={}){let e=new wN(t.parentContext);return t.span&&(e=e.setValue($l.span,t.span)),t.namespace&&(e=e.setValue($l.namespace,t.namespace)),e}var wN=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 ZY=b(XY(),1),$g=ZY.state;function bEe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function wEe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:bEe(),tracingContext:KY({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Pd(){return $g.instrumenterImplementation||($g.instrumenterImplementation=wEe()),$g.instrumenterImplementation}function vd(t){let{namespace:e,packageName:r,packageVersion:s}=t;function n(l,u,A){let d=Pd().startSpan(l,{...A,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),p=d.tracingContext,h=d.span;p.getValue($l.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--),!Yye(c)){let A;return c.trim().length===0?A="Invalid space after '<'.":A="Tag '"+c+"' is an invalid name.",mt("InvalidTag",A,fr(t,i))}let l=qye(t,i);if(l===!1)return mt("InvalidAttr","Attributes for '"+c+"' have open quote.",fr(t,i));let u=l.value;if(i=l.index,u[u.length-1]==="/"){let A=i-u.length;u=u.substring(0,u.length-1);let d=DJ(u,e);if(d===!0)s=!0;else return mt(d.err.code,d.err.msg,fr(t,A+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return mt("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",fr(t,o));if(r.length===0)return mt("InvalidTag","Closing tag '"+c+"' has not been opened.",fr(t,o));{let A=r.pop();if(c!==A.tagName){let d=fr(t,A.tagStartPos);return mt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",fr(t,o))}r.length==0&&(n=!0)}}else return mt("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",fr(t,i));else{let A=DJ(u,e);if(A!==!0)return mt(A.err.code,A.err.msg,fr(t,i-u.length+A.err.line));if(n===!0)return mt("InvalidXml","Multiple possible root nodes found.",fr(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=kJ(t,i);continue}else if(t[i+1]==="?"){if(i=vJ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=zye(t,i);if(A==-1)return mt("InvalidChar","char '&' is not expected.",fr(t,i));i=A}else if(n===!0&&!PJ(t[i]))return mt("InvalidXml","Extra text at the end",fr(t,i));t[i]==="<"&&i--}}else{if(PJ(t[i]))continue;return mt("InvalidChar","char '"+t[i]+"' is not expected.",fr(t,i))}if(s){if(r.length==1)return mt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",fr(t,r[0].tagStartPos));if(r.length>0)return mt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return mt("InvalidXml","Start tag expected.",1);return!0}function PJ(t){return t===" "||t===" "||t===`
`||t==="\r"}function vJ(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 mt("InvalidXml","XML declaration allowed only at the start of the document.",fr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function kJ(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 Uye='"',Oye="'";function qye(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===Uye||t[e]===Oye)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 Gye=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function DJ(t,e){let r=sE(t,Gye),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",qd(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return mt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",qd(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return mt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",qd(r[n]));let i=r[n][2];if(!Vye(i))return mt("InvalidAttr","Attribute '"+i+"' is an invalid name.",qd(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return mt("InvalidAttr","Attribute '"+i+"' is repeated.",qd(r[n]))}return!0}function Hye(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 zye(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Hye(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 mt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Vye(t){return Kl(t)}function Yye(t){return Kl(t)}function fr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function qd(t){return t.startIndex+t[1].length}var Jye={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0};function _J(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:t.maxEntitySize??1e4,maxExpansionDepth:t.maxExpansionDepth??10,maxTotalExpansions:t.maxTotalExpansions??1e3,maxExpandedLength:t.maxExpandedLength??1e5,allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:_J(!0)}var LJ=function(t){let e=Object.assign({},Jye,t);return e.processEntities=_J(e.processEntities),e};var iE;typeof Symbol!="function"?iE="@@xmlMetadata":iE=Symbol("XML Node Metadata");var kr=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),r!==void 0&&(this.child[this.child.length-1][iE]={startIndex:r})}static getMetaDataSymbol(){return iE}};var Hd=class{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,r){let s=Object.create(null);if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let n=1,i=!1,o=!1,a="";for(;r<e.length;r++)if(e[r]==="<"&&!o){if(i&&Ya(e,"!ENTITY",r)){r+=7;let c,l;if([c,l,r]=this.readEntityExp(e,r+1,this.suppressValidationErr),l.indexOf("&")===-1){let u=c.replace(/[.\-+*:]/g,"\\.");s[c]={regx:RegExp(`&${u};`,"g"),val:l}}}else if(i&&Ya(e,"!ELEMENT",r)){r+=8;let{index:c}=this.readElementExp(e,r+1);r=c}else if(i&&Ya(e,"!ATTLIST",r))r+=8;else if(i&&Ya(e,"!NOTATION",r)){r+=9;let{index:c}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=c}else if(Ya(e,"!--",r))o=!0;else throw new Error("Invalid DOCTYPE");n++,a=""}else if(e[r]===">"){if(o?e[r-1]==="-"&&e[r-2]==="-"&&(o=!1,n--):n-Line truncated
`);let e=new kr("!xml"),r=e,s="",n="";this.entityExpansionCount=0,this.currentExpandedLength=0;let i=new Hd(this.options.processEntities);for(let o=0;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="/"){let c=Ja(t,">",o,"Closing Tag is not closed."),l=t.substring(o+2,c).trim();if(this.options.removeNSPrefix){let d=l.indexOf(":");d!==-1&&(l=l.substr(d+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(s=this.saveTextToParentTag(s,r,n));let u=n.substring(n.lastIndexOf(".")+1);if(l&&this.options.unpairedTags.indexOf(l)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);let A=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(A=n.lastIndexOf(".",n.lastIndexOf(".")-1),this.tagsNodeStack.pop()):A=n.lastIndexOf("."),n=n.substring(0,A),r=this.tagsNodeStack.pop(),s="",o=c}else if(t[o+1]==="?"){let c=zN(t,o,!1,"?>");if(!c)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,n),!(this.options.ignoreDeclaration&&c.tagName==="?xml"||this.options.ignorePiTags)){let l=new kr(c.tagName);l.add(this.options.textNodeName,""),c.tagName!==c.tagExp&&c.attrExpPresent&&(l[":@"]=this.buildAttributesMap(c.tagExp,n,c.tagName)),this.addChild(r,l,n,o)}o=c.closeIndex+1}else if(t.substr(o+1,3)==="!--"){let c=Ja(t,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let l=t.substring(o+4,c-2);s=this.saveTextToParentTag(s,r,n),r.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}o=c}else if(t.substr(o+1,2)==="!D"){let c=i.readDocType(t,o);this.docTypeEntities=c.entities,o=c.i}else if(t.substr(o+1,2)==="!["){let c=Ja(t,"]]>",o,"CDATA is not closed.")-2,l=t.substring(o+9,c);s=this.saveTextToParentTag(s,r,n);let u=this.parseTextData(l,r.tagname,n,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}]):r.add(this.options.textNodeName,u),o=c+2}else{let c=zN(t,o,this.options.removeNSPrefix),l=c.tagName,u=c.rawTagName,A=c.tagExp,d=c.attrExpPresent,p=c.closeIndex;if(this.options.transformTagName){let y=this.options.transformTagName(l);A===l&&(A=y),l=y}if(this.options.strictReservedNames&&(l===this.options.commentPropName||l===this.options.cdataPropName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,n,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),n=n.substring(0,n.lastIndexOf("."))),l!==e.tagname&&(n+=n?"."+l:l);let f=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,n,l)){let y="";if(A.length>0&&A.lastIndexOf("/")===A.length-1)l[l.length-1]==="/"?(l=l.substr(0,l.length-1),n=n.substr(0,n.length-1),A=l):A=A.substr(0,A.length-1),o=c.closeIndex;else if(this.options.unpairedTags.indexOf(l)!==-1)o=c.closeIndex;else{let E=this.readStopNodeData(t,u,p+1);if(!E)throw new Error(`Unexpected end of ${u}`);o=E.i,y=E.tagContent}let g=new kr(l);l!==A&&d&&(g[":@"]=this.buildAttributesMap(A,n,l)),y&&(y=this.parseTextData(y,l,n,!0,d,!0,!0)),n=n.substr(0,n.lastIndexOf(".")),g.add(this.options.textNodeName,y),this.addChild(r,g,n,f)}else{if(A.length>0&&A.lastIndexOf("/")===A.length-1){if(l[l.length-1]==="/"?(l=l.substr(0,l.length-1),n=n.substr(0,n.length-1),A=l):A=A.substr(0,A.length-1),this.options.transformTagName){let g=this.options.transformTagName(l);A===l&&(A=g),l=g}let y=new kr(l);l!==A&&d&&(y[":@"]=this.buildAttributesMap(A,n,l)),this.addChild(r,y,n,f),n=n.substr(0,n.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(l)!==-1){let y=new kr(l);l!==A&&d&&(y[":@"]=this.buildAttributesMap(A,n)),this.addChild(r,y,n,f),n=n.substr(0,n.lastIndexOf(".")),o=c.closeIndex;continue}else{let y=new kr(l);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),l!==A&&d&&(y[":@"]=this.buildAttributesMap(A,n,l)),this.addChild(r,y,n,f),r=y}s="",o=p}}else s+=t[o];return e.child};function aCe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.updateTag(e.tagname,r,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}var cCe=function(t,e,r){if(t.indexOf("&")===-1)return t;let s=this.options.processEntities;if(!s.enabled||s.allowedTags&&!s.allowedTags.includes(e)||s.tagFilter&&!s.tagFilter(e,r))return t;for(let n in this.docTypeEntities){let i=this.docTypeEntities[n],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,s.maxTotalExpansions&&this.entityExpansionCount>s.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${s.maxTotalExpansions}`);let a=t.length;if(t=t.replace(i.regx,i.val),s.maxExpandedLength&&(this.currentExpandedLength+=t.length-a,this.currentExpandedLength>s.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${s.maxExpandedLength}`)}}if(t.indexOf("&")===-1)return t;for(let n in this.lastEntities){let i=this.lastEntities[n];t=t.replace(i.regex,i.val)}if(t.indexOfLine truncated
`),OJ(t,e,"",r)}function OJ(t,e,r,s){let n="",i=!1;if(!Array.isArray(t)){if(t!=null){let o=t.toString();return o=$N(o,e),o}return""}for(let o=0;o<t.length;o++){let a=t[o],c=fCe(a);if(c===void 0)continue;let l="";if(r.length===0?l=c:l=`${r}.${c}`,c===e.textNodeName){let h=a[c];gCe(l,e)||(h=e.tagValueProcessor(c,h),h=$N(h,e)),i&&(n+=s),n+=h,i=!1;continue}else if(c===e.cdataPropName){i&&(n+=s),n+=`<![CDATA[${a[c][0][e.textNodeName]}]]>`,i=!1;continue}else if(c===e.commentPropName){n+=s+`<!--${a[c][0][e.textNodeName]}-->`,i=!0;continue}else if(c[0]==="?"){let h=UJ(a[":@"],e),f=c==="?xml"?"":s,y=a[c][0][e.textNodeName];y=y.length!==0?" "+y:"",n+=f+`<${c}${y}${h}?>`,i=!0;continue}let u=s;u!==""&&(u+=e.indentBy);let A=UJ(a[":@"],e),d=s+`<${c}${A}`,p=OJ(a[c],e,l,u);e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?n+=d+">":n+=d+"/>":(!p||p.length===0)&&e.suppressEmptyNode?n+=d+"/>":p&&p.endsWith(">")?n+=d+`>${p}${s}</${c}>`:(n+=d+">",p&&s!==""&&(p.includes("/>")||p.includes("</"))?n+=s+e.indentBy+p+s:n+=p,n+=`</${c}>`),i=!0}return n}function fCe(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 UJ(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=e.attributeValueProcessor(s,t[s]);n=$N(n,e),n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function gCe(t,e){t=t.substr(0,t.length-e.textNodeName.length-1);let r=t.substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+r)return!0;return!1}function $N(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 jN(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 ECe={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};function Jn(t){this.options=Object.assign({},ECe,t),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=jN(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ICe),this.processTextOrObjNode=yCe,this.options.format?(this.indentate=CCe,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Jn.prototype.build=function(t){return this.options.preserveOrder?YN(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};Jn.prototype.j2x=function(t,e,r){let s="",n="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(n+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?n+="":o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)n+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))s+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+t[o]);n+=this.replaceEntitiesValue(c)}else n+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,c="",l="";for(let u=0;u<a;u++){let A=t[o][u];if(!(typeof A>"u"))if(A===null)o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){let d=this.j2x(A,e+1,r.concat(o));c+=d.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(l+=d.attrStr)}else c+=this.processTextOrObjNode(A,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,A);d=this.replaceEntitiesValue(d),c+=d}else c+=this.buildTextValNode(A,o,"",e)}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,l,e)),n+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),c=a.length;for(let l=0;l<c;l++)s+=this.buildAttrPairStr(a[l],""+t[o][a[l]])}else n+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:s,val:n}};Jn.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function mCe(t,e,r,s){let n=this.j2x(t,r+1,s.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}Jn.prototype.buildObjectNode=function(t,e,r,s){if(t==="")return e[0]==="?"?this.indentate(s)+"<"+e+r+"?"+this.tagEndChar:this.indentate(s)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",n=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(s)+"<"+e+r+i+">"+t+n:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(s)+`<!--${t}-->`+this.newLine:this.indentate(s)+"<"+e+r+i+this.tagEndChar+t+this.indentate(s)+n}};Jn.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};Jn.prototype.buildTextValNode=function(t,e,r,s){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(s)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(s)+"<"+e+r+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),n===""?this.indentate(s)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+r+">"+n+"</"+e+this.tagEndChar}};Jn.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function hCe(t){return this.options.indentBy.repeat(t)}function fCe(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var $N=Jn;var MJ={validate:nE};function OJ(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function gCe(t={}){var e,r;return Object.assign(Object.assign({},OJ(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function ECe(t={}){return Object.assign(Object.assign({},OJ(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function oE(t,e={}){let r=gCe(e),s=new $N(r),n={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${s.build(n)}`.replace(/\n/g,"")}async function WN(t,e={}){if(!t)throw new Error("Document is empty");let r=MJ.validate(t);if(r!==!0)throw r;let n=new Xl(ECe(e)).parse(tLine truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Jn.prototype.build=function(t){return this.options.preserveOrder?WN(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)};Jn.prototype.j2x=function(t,e,r){let s="",n="",i=r.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(n+="");else if(t[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?n+="":o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)n+=this.buildTextValNode(t[o],o,"",e);else if(typeof t[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,i))s+=this.buildAttrPairStr(a,""+t[o]);else if(!a)if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+t[o]);n+=this.replaceEntitiesValue(c)}else n+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){let a=t[o].length,c="",l="";for(let u=0;u<a;u++){let A=t[o][u];if(!(typeof A>"u"))if(A===null)o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){let d=this.j2x(A,e+1,r.concat(o));c+=d.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(l+=d.attrStr)}else c+=this.processTextOrObjNode(A,o,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(o,A);d=this.replaceEntitiesValue(d),c+=d}else c+=this.buildTextValNode(A,o,"",e)}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,l,e)),n+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(t[o]),c=a.length;for(let l=0;l<c;l++)s+=this.buildAttrPairStr(a[l],""+t[o][a[l]])}else n+=this.processTextOrObjNode(t[o],o,e,r);return{attrStr:s,val:n}};Jn.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function yCe(t,e,r,s){let n=this.j2x(t,r+1,s.concat(e));return t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}Jn.prototype.buildObjectNode=function(t,e,r,s){if(t==="")return e[0]==="?"?this.indentate(s)+"<"+e+r+"?"+this.tagEndChar:this.indentate(s)+"<"+e+r+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,i="";return e[0]==="?"&&(i="?",n=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(s)+"<"+e+r+i+">"+t+n:this.options.commentPropName!==!1&&e===this.options.commentPropName&&i.length===0?this.indentate(s)+`<!--${t}-->`+this.newLine:this.indentate(s)+"<"+e+r+i+this.tagEndChar+t+this.indentate(s)+n}};Jn.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};Jn.prototype.buildTextValNode=function(t,e,r,s){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${t}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(s)+`<!--${t}-->`+this.newLine;if(e[0]==="?")return this.indentate(s)+"<"+e+r+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),n===""?this.indentate(s)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+r+">"+n+"</"+e+this.tagEndChar}};Jn.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function CCe(t){return this.options.indentBy.repeat(t)}function ICe(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}var KN=Jn;var qJ={validate:nE};function zJ(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}function BCe(t={}){var e,r;return Object.assign(Object.assign({},zJ(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}function bCe(t={}){return Object.assign(Object.assign({},zJ(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}function oE(t,e={}){let r=BCe(e),s=new KN(r),n={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${s.build(n)}`.replace(/\n/g,"")}async function XN(t,e={}){if(!t)throw new Error("Document is empty");let r=qJ.validate(t);if(r!==!0)throw r;let n=new Xl(bCe(e)).parse(tLine truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===te.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE));r.sort((n,i)=>fE(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=pE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=mE(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 tt=class extends Wa{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Jd(e,r,this)}computeHMACSHA256(e){return(0,zJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var St=Hn("storage-common");var Ts;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ts||(Ts={}));var Yo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ts.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},bCe=new rs("The operation was aborted."),$d=class extends $n{retryOptions;constructor(e,r,s=Yo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Yo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Yo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Yo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Yo.maxRetryDelayInMs):Yo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Yo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Yo.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=dE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Vo(n.url,Ji.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(St.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(St.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 St.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 St.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 St.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return St.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(te.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')?(St.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 Ts.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ts.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return St.info(`RetryPolicy: Delay for ${n}ms`),hE(n,s,bCe)}};var Wd=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new $d(e,r,this.retryOptions)}};var wCe="storageBrowserPolicy";function VJ(){return{name:wCe,async sendRequest(t,e){return Qe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Vo(t.url,Ji.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}var QCe="StorageCorrectContentLengthPolicy";function YJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:QCe,async sendRequest(e,r){return t(e),r(e)}}}var xCe="storageRetryPolicy",Zl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ts.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},NCe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],SCe=new rs("The operation was aborted.");function JJ(t={}){let e=t.retryPolicyType??Zl.retryPolicyType,r=t.maxTries??Zl.maxTries,s=t.retryDelayInMs??Zl.retryDelayInMs,n=t.maxRetryDelayInMs??Zl.maxRetryDelayInMs,i=t.secondaryHost??Zl.secondaryHost,o=t.tryTimeoutInMs??Zl.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:A,error:d}){if(u>=r)return St.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let p of NCe)if(d.name.toUpperCase().includes(p)||d.message.toUpperCase().includes(p)||d.code&&d.code.toString().toUpperCase()===p)return St.i Line truncated
${a}:${decodeURIComponent(i[a])}`}return s}};var tt=class extends Wa{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new $d(e,r,this)}computeHMACSHA256(e){return(0,$J.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var St=Hn("storage-common");var Ts;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ts||(Ts={}));var Yo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ts.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},SCe=new ss("The operation was aborted."),Wd=class extends $n{retryOptions;constructor(e,r,s=Yo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Yo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Yo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Yo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Yo.maxRetryDelayInMs):Yo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Yo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Yo.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=dE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Vo(n.url,Ji.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(St.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(St.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 St.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 St.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 St.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return St.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(te.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')?(St.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 Ts.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ts.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return St.info(`RetryPolicy: Delay for ${n}ms`),hE(n,s,SCe)}};var jd=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Wd(e,r,this.retryOptions)}};var RCe="storageBrowserPolicy";function WJ(){return{name:RCe,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Vo(t.url,Ji.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}var TCe="StorageCorrectContentLengthPolicy";function jJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:TCe,async sendRequest(e,r){return t(e),r(e)}}}var PCe="storageRetryPolicy",Zl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ts.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},vCe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],kCe=new ss("The operation was aborted.");function KJ(t={}){let e=t.retryPolicyType??Zl.retryPolicyType,r=t.maxTries??Zl.maxTries,s=t.retryDelayInMs??Zl.retryDelayInMs,n=t.maxRetryDelayInMs??Zl.maxRetryDelayInMs,i=t.secondaryHost??Zl.secondaryHost,o=t.tryTimeoutInMs??Zl.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:A,error:d}){if(u>=r)return St.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let p of vCe)if(d.name.toUpperCase().includes(p)||d.message.toUpperCase().includes(p)||d.code&&d.code.toString().toUpperCase()===p)return St.i Line truncated
`)+`
`+s(i)+n(i),a=(0,$J.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===te.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,l]of i.headers)c.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>fE(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`+s(i)+n(i),a=(0,XJ.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===te.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,l]of i.headers)c.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>fE(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(i){let o=pE(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=mE(i.url),l={};if(c){let u=[];for(let A in c)if(Object.prototype.hasOwnProperty.call(c,A)){let d=A.toLowerCase();l[d]=c[A],u.push(d)}u.sort();for(let A of u)a+=`
${A}:${decodeURIComponent(l[A])}`}return a}return{name:RCe,async sendRequest(i,o){return e(i),o(i)}}}var TCe="storageRequestFailureDetailsParserPolicy";function WJ(){return{name:TCe,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 jJ=require("node:crypto"),gE=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,jJ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var EE="12.31.0",yE="2026-02-06";var CE="https://storage.azure.com/.default",$i={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var cn="",ZN="*",PCe=1*1024*1024;var vCe=4*PCe;var KJ="AES256",XJ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",ZJ=["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"],e$=["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"],t$="BlobUsesCustomerSpecifiedEncryption",r$="BlobDoesNotUseCustomerSpecifiedEncryption",s$=["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 jd=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ht(t,e={}){t||(t=new ze);let r=new jd([],e);return r._credential=t,r}function kCe(t){let e=[DCe,n$,_Ce,LCe,MCe,FCe,OCe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>UCe(n));return{wrappedPolicies:MN(r),afterRetry:s}}}}function e0(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?FN(e):KN(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${EE}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Dd({...r,loggingOptions:{additionalAllowedHeaderNames:ZJ,additionalAllowedQueryParameters:e$,logger:aE.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:oE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:WN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:pN}),n.addPolicy(YJ()),n.addPolicy(JJ(r.retryOptions),{phase:"Retry"}),n.addPolicy(WJ()),n.addPolicy(VJ());let a=kCe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=t0(t);ss(c)?n.addPolicy(Wl({credential:c,scopes:r.audience??CE,challengeCallba Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new pn(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 DBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?xe(t.startsOn,!1):"",t.expiresOn?xe(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?dn(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 pn(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 _Be(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?xe(t.startsOn,!1):"",t.expiresOn?xe(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?dn(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 pn(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 LBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?xe(t.startsOn,!1):"",t.expiresOn?xe(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?dn(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 pn(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 MBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?xe(t.startsOn,!1):"",t.expiresOn?xe(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?dn(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 pn(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 FBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?xe(t.startsOn,!1):"",t.expiresOn?xe(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?dn(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 pn(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 UBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?xe(t.startsOn,!1):"",t.expiresOn?xe(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?xe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?xe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?dn(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 pn(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 sc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function nc(t){let e=t.version?t.version:yE;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 cp=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=Jl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==cn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-acquireLease",r,async s=>$(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!==cn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=$(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!==cn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-releaseLease",e,async r=>$(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!==cn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSign Line truncated
${A}:${decodeURIComponent(l[A])}`}return a}return{name:DCe,async sendRequest(i,o){return e(i),o(i)}}}var _Ce="storageRequestFailureDetailsParserPolicy";function ZJ(){return{name:_Ce,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 e$=require("node:crypto"),gE=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,e$.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var EE="12.31.0",yE="2026-02-06";var CE="https://storage.azure.com/.default",$i={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var cn="",r0="*",LCe=1*1024*1024;var MCe=4*LCe;var t$="AES256",r$="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",s$=["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"],n$=["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"],i$="BlobUsesCustomerSpecifiedEncryption",o$="BlobDoesNotUseCustomerSpecifiedEncryption",a$=["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 Kd=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function ht(t,e={}){t||(t=new Ye);let r=new Kd([],e);return r._credential=t,r}function FCe(t){let e=[UCe,c$,OCe,qCe,GCe,HCe,VCe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>zCe(n));return{wrappedPolicies:ON(r),afterRetry:s}}}}function s0(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?qN(e):e0(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${EE}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=_d({...r,loggingOptions:{additionalAllowedHeaderNames:s$,additionalAllowedQueryParameters:n$,logger:aE.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:oE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:XN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:fN}),n.addPolicy(jJ()),n.addPolicy(KJ(r.retryOptions),{phase:"Retry"}),n.addPolicy(ZJ()),n.addPolicy(WJ());let a=FCe(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=n0(t);ns(c)?n.addPolicy(Wl({credential:c,scopes:r.audience??CE,challengeCallba Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new pn(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 UBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?dn(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 pn(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 OBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?dn(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 pn(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 qBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?dn(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 pn(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 GBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?dn(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 pn(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 HBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?dn(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 pn(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 zBe(t,e){if(t=nc(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=Ai.parse(t.permissions.toString()).toString():n=di.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",sc(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?dn(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 pn(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 sc(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function nc(t){let e=t.version?t.version:yE;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 lp=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=Jl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==cn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-acquireLease",r,async s=>$(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!==cn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=$(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!==cn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==cn||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 G.withSpan("BlobLeaseClient-releaseLease",e,async r=>$(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!==cn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==cn||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 G.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"}};Au.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var cc=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"}};cc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Ep=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Wbe=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},zT=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);x(`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 a4(t,e,r){return Wbe(this,void 0,void 0,function*(){var s;let n=new ro(t),i=n.getBlockBlobClient(),o=new zT((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(),I(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new wy(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var l4=b(require("buffer"),1),pi=b(require("fs"),1),u4=b(require("stream"),1),A4=b(require("util"),1);var Qy=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function xy(t){return t?t>=200&&t<300:!1}function jbe(t){return t?t>=500:!0}function Kbe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}function Xbe(t){return Qy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function c4(t,e,r){return Qy(this,arguments,void 0,function*(s,n,i,o=sg,a=ng,c=void 0){let l="",u=1;for(;u<=o;){let A,d,p=!1;try{A=yield n()}catch(h){c&&(A=c(h)),p=!0,l=h.message}if(A&&(d=i(A),!jbe(d)))return A;if(d&&(p=Kbe(d),l=`Cache service responded with ${d}`),I(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!p){I(`${s} - Error is not retryable`);break}yield Xbe(a),u++}throw Error(`${s} failed: ${l}`)})}function yp(t,e){return Qy(this,arguments,void 0,function*(r,s,n=sg,i=ng){return yield c4(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Dn)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function du(t,e){return Qy(this,arguments,void 0,function*(r,s,n=sg,i=ng){return yield c4(r,s,o=>o.message.statusCode,n,i)})}var _s=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Zbe(t,e){return _s(this,void 0,void 0,function*(){yield A4.promisify(u4.pipeline)(t.message,e)})}var Ny=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,I(`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);x(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])I(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function $T(t,e,r){return _r(this,void 0,void 0,function*(){let s=new I4.URL(t),n=h4(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield p4(t,e,n):n.concurrentBlobDownloads?yield d4(t,e,n):yield Sy(t,e):yield Sy(t,e)})}function b4(t,e,r){return _r(this,void 0,void 0,function*(){let s=JT(),n=Ul(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield yp("reserveCache",()=>_r(this,void 0,void 0,function*(){return s.postJson(Ip("caches"),i)}))})}function C4(t,e){return`bytes ${t}-${e}/*`}function awe(t,e,r,s,n){return _r(this,void 0,void 0,function*(){I(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${C4(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":C4(s,n)},o=yield du(`uploadChunk (start: ${s}, end: ${n})`,()=>_r(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!xy(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function cwe(t,e,r,s){return _r(this,void 0,void 0,function*(){let n=On(r),i=Ip(`caches/${e.toString()}`),o=pu.openSync(r,"r"),a=VT(s),c=Tx("uploadConcurrency",a.uploadConcurrency),l=Tx("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];I("Awaiting all uploads");let A=0;try{yield Promise.all(u.map(()=>_r(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,l),p=A,h=A+d-1;A+=l,yield awe(t,i,()=>pu.createReadStream(r,{fd:o,start:p,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,h)}})))}finally{pu.closeSync(o)}})}function lwe(t,e,r){return _r(this,void 0,void 0,function*(){let s={size:r};return yield yp("commitCache",()=>_r(this,void 0,void 0,function*(){return t.postJson(Ip(`caches/${e.toString()}`),s)}))})}function WT(t,e,r,s){return _r(this,void 0,void 0,function*(){if(VT(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield a4(r,e,s)}else{let i=JT();I("Upload cache"),yield cwe(i,t,e,s),I("Commiting cache");let o=On(e);x(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield lwe(i,t,o);if(!xy(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);x("Cache saved successfully")}})}var gW=b(uW(),1),Et=b(gt(),1),as=b(gt(),1),pc=b(gt(),1),mc=b(gt(),1),hc=b(gt(),1);var HP=b(gt(),1),zP=b(gt(),1),mW=b(gt(),1),hW=b(gt(),1),fW=b(gt(),1);var OP=b(gt(),1),qP=b(gt(),1),AW=b(gt(),1),dW=b(gt(),1),pW=b(gt(),1),GP=class extends pW.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,dW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,AW.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 u=e.skip(c);l!==!1&&(l===!0?qP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,OP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,OP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?qP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},hC=new GP;var VP=class extends fW.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:()=>hC}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,hW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,mW.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(hC.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 u=e.skip(c);l!==!1&&(l===!0?zP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,HP.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)hC.internalBinaryWrite(e.scope[i],r.tag(2,HP.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?zP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ei=new VP Line truncated
`));let s=yield ov(r,"create");yield av(s,t)})}var Tu=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},fn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ru=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},yC=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function IW(t){if(!t||t.length===0)throw new fn("Path Validation Error: At least one directory or file path is required")}function uv(t){if(t.length>512)throw new fn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new fn(`Key Validation Error: ${t} cannot contain commas.`)}function Av(){return Cp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function BW(t,e,r,s){return Tu(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Cp();return I(`Cache service version: ${l}`),IW(n),l==="v2"?yield wxe(n,i,o,a,c):yield bxe(n,i,o,a,c)})}function bxe(t,e,r,s){return Tu(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(I("Resolved Keys:"),I(JSON.stringify(l)),l.length>10)throw new fn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)uv(d);let u=yield Bd(),A="";try{let d=yield B4(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return x("Lookup only - skipping download"),d.cacheKey;A=Mp.join(yield Cd(),Uo(u)),I(`Archive Path: ${A}`),yield $T(d.archiveLocation,A,a),Ln()&&(yield Lp(A,u));let p=On(A);return x(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield cv(A,u),x("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===fn.name)throw d;p instanceof Dn&&typeof p.statusCode=="number"&&p.statusCode>=500?Sl(`Failed to restore: ${d.message}`):Ke(`Failed to restore: ${d.message}`)}finally{try{yield Id(A)}catch(d){I(`Failed to delete archive: ${d}`)}}})}function wxe(t,e,r,s){return Tu(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(I("Resolved Keys:"),I(JSON.stringify(l)),l.length>10)throw new fn("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of l)uv(A);let u="";try{let A=iv(),d=yield Bd(),p={key:i,restoreKeys:o,version:Ul(n,d,c)},h=yield A.GetCacheEntryDownloadURL(p);if(!h.ok){I(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==h.matchedKey?x(`Cache hit for restore-key: ${h.matchedKey}`):x(`Cache hit for: ${h.matchedKey}`),a?.lookupOnly)return x("Lookup only - skipping download"),h.matchedKey;u=Mp.join(yield Cd(),Uo(d)),I(`Archive path: ${u}`),I(`Starting download of archive to: ${u}`),yield $T(h.signedDownloadUrl,u,a);let y=On(u);return x(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ln()&&(yield Lp(u,d)),yield cv(u,d),x("Cache restored successfully"),h.matchedKey}catch(A){let d=A;if(d.name===fn.name)throw A;d instanceof Dn&&typeof d.statusCode=="number"&&d.statusCode>=500?Sl(`Failed to restore: ${A.message}`):Ke(`Failed to restore: ${A.message}`)}finally{try{u&&(yield Id(u))}catch(A){I(`Failed to delete archive: ${A}`)}}})}function dv(t,e,r){return Tu(this,arguments,void 0,function*(s,n,i,o=!1){let a=Cp();return I(`Cache service version: ${a}`),IW(s),uv(n),a==="v2"?yield xxe(s,n,i,o):yield Qxe(s,n,i,o)})}function Qxe(t,e,r){return Tu(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,u,A;let d=yield Bd(),p=-1,h=yield Rx(s);if(I("Cache Paths:"),I(`${JSON.stringify(h)}`),h.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 Cd(),y=Mp.join(f,Uo(d));I(`Archive Path: ${y}`);try{yield lv(f,h,d),Ln()&&(yield Lp(y,d));let g=10*1024*1024*1024,E=On(y);if(I(`File Size: ${E}`),E>g&&!YT())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);I("Reserving Cache");let C=yield b4(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)p=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((u=(l=C?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new Ru(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(A=C?.error)===null||A===void 0?void 0:A.message}`);I(`Saving Cache (ID: ${p})`),yield WT(p,y,"",i)}catch(g){let E=g;if(E.name===fn.name)throw g;E.name===Ru.name?x(`FaLine truncated
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"}};cc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var yp=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var ewe=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},JT=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);N(`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 A4(t,e,r){return ewe(this,void 0,void 0,function*(){var s;let n=new ro(t),i=n.getBlockBlobClient(),o=new JT((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(),I(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new wy(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var p4=b(require("buffer"),1),pi=b(require("fs"),1),m4=b(require("stream"),1),h4=b(require("util"),1);var Qy=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function xy(t){return t?t>=200&&t<300:!1}function twe(t){return t?t>=500:!0}function rwe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}function swe(t){return Qy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function d4(t,e,r){return Qy(this,arguments,void 0,function*(s,n,i,o=sg,a=ng,c=void 0){let l="",u=1;for(;u<=o;){let A,d,p=!1;try{A=yield n()}catch(h){c&&(A=c(h)),p=!0,l=h.message}if(A&&(d=i(A),!twe(d)))return A;if(d&&(p=rwe(d),l=`Cache service responded with ${d}`),I(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!p){I(`${s} - Error is not retryable`);break}yield swe(a),u++}throw Error(`${s} failed: ${l}`)})}function Cp(t,e){return Qy(this,arguments,void 0,function*(r,s,n=sg,i=ng){return yield d4(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Dn)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function du(t,e){return Qy(this,arguments,void 0,function*(r,s,n=sg,i=ng){return yield d4(r,s,o=>o.message.statusCode,n,i)})}var _s=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function nwe(t,e){return _s(this,void 0,void 0,function*(){yield h4.promisify(m4.pipeline)(t.message,e)})}var Ny=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,I(`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);N(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])I(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function KT(t,e,r){return Lr(this,void 0,void 0,function*(){let s=new Q4.URL(t),n=y4(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield g4(t,e,n):n.concurrentBlobDownloads?yield f4(t,e,n):yield Sy(t,e):yield Sy(t,e)})}function N4(t,e,r){return Lr(this,void 0,void 0,function*(){let s=jT(),n=Ul(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Cp("reserveCache",()=>Lr(this,void 0,void 0,function*(){return s.postJson(Bp("caches"),i)}))})}function w4(t,e){return`bytes ${t}-${e}/*`}function dwe(t,e,r,s,n){return Lr(this,void 0,void 0,function*(){I(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${w4(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":w4(s,n)},o=yield du(`uploadChunk (start: ${s}, end: ${n})`,()=>Lr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!xy(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function pwe(t,e,r,s){return Lr(this,void 0,void 0,function*(){let n=On(r),i=Bp(`caches/${e.toString()}`),o=pu.openSync(r,"r"),a=$T(s),c=kx("uploadConcurrency",a.uploadConcurrency),l=kx("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];I("Awaiting all uploads");let A=0;try{yield Promise.all(u.map(()=>Lr(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,l),p=A,h=A+d-1;A+=l,yield dwe(t,i,()=>pu.createReadStream(r,{fd:o,start:p,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,h)}})))}finally{pu.closeSync(o)}})}function mwe(t,e,r){return Lr(this,void 0,void 0,function*(){let s={size:r};return yield Cp("commitCache",()=>Lr(this,void 0,void 0,function*(){return t.postJson(Bp(`caches/${e.toString()}`),s)}))})}function XT(t,e,r,s){return Lr(this,void 0,void 0,function*(){if($T(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield A4(r,e,s)}else{let i=jT();I("Upload cache"),yield pwe(i,t,e,s),I("Commiting cache");let o=On(e);N(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield mwe(i,t,o);if(!xy(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);N("Cache saved successfully")}})}var IW=b(mW(),1),Et=b(gt(),1),cs=b(gt(),1),pc=b(gt(),1),mc=b(gt(),1),hc=b(gt(),1);var YP=b(gt(),1),JP=b(gt(),1),EW=b(gt(),1),yW=b(gt(),1),CW=b(gt(),1);var HP=b(gt(),1),zP=b(gt(),1),hW=b(gt(),1),fW=b(gt(),1),gW=b(gt(),1),VP=class extends gW.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,fW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,hW.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 u=e.skip(c);l!==!1&&(l===!0?zP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,HP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,HP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?zP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},hC=new VP;var $P=class extends CW.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:()=>hC}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,yW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,EW.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(hC.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 u=e.skip(c);l!==!1&&(l===!0?JP.UnknownFieldHandler.onRead:l)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,YP.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)hC.internalBinaryWrite(e.scope[i],r.tag(2,YP.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?JP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Ei=new $P Line truncated
`));let s=yield lv(r,"create");yield uv(s,t)})}var Tu=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(u){try{l(s.next(u))}catch(A){o(A)}}function c(u){try{l(s.throw(u))}catch(A){o(A)}}function l(u){u.done?i(u.value):n(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},fn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Ru=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},yC=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function QW(t){if(!t||t.length===0)throw new fn("Path Validation Error: At least one directory or file path is required")}function pv(t){if(t.length>512)throw new fn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new fn(`Key Validation Error: ${t} cannot contain commas.`)}function mv(){return Ip()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function xW(t,e,r,s){return Tu(this,arguments,void 0,function*(n,i,o,a,c=!1){let l=Ip();return I(`Cache service version: ${l}`),QW(n),l==="v2"?yield Rxe(n,i,o,a,c):yield Sxe(n,i,o,a,c)})}function Sxe(t,e,r,s){return Tu(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let l=[i,...o];if(I("Resolved Keys:"),I(JSON.stringify(l)),l.length>10)throw new fn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)pv(d);let u=yield bd(),A="";try{let d=yield x4(l,n,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return N("Lookup only - skipping download"),d.cacheKey;A=Fp.join(yield Id(),Uo(u)),I(`Archive Path: ${A}`),yield KT(d.archiveLocation,A,a),Ln()&&(yield Mp(A,u));let p=On(A);return N(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield Av(A,u),N("Cache restored successfully"),d.cacheKey}catch(d){let p=d;if(p.name===fn.name)throw d;p instanceof Dn&&typeof p.statusCode=="number"&&p.statusCode>=500?Sl(`Failed to restore: ${d.message}`):Ke(`Failed to restore: ${d.message}`)}finally{try{yield Bd(A)}catch(d){I(`Failed to delete archive: ${d}`)}}})}function Rxe(t,e,r,s){return Tu(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(I("Resolved Keys:"),I(JSON.stringify(l)),l.length>10)throw new fn("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of l)pv(A);let u="";try{let A=cv(),d=yield bd(),p={key:i,restoreKeys:o,version:Ul(n,d,c)},h=yield A.GetCacheEntryDownloadURL(p);if(!h.ok){I(`Cache not found for version ${p.version} of keys: ${l.join(", ")}`);return}if(p.key!==h.matchedKey?N(`Cache hit for restore-key: ${h.matchedKey}`):N(`Cache hit for: ${h.matchedKey}`),a?.lookupOnly)return N("Lookup only - skipping download"),h.matchedKey;u=Fp.join(yield Id(),Uo(d)),I(`Archive path: ${u}`),I(`Starting download of archive to: ${u}`),yield KT(h.signedDownloadUrl,u,a);let y=On(u);return N(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ln()&&(yield Mp(u,d)),yield Av(u,d),N("Cache restored successfully"),h.matchedKey}catch(A){let d=A;if(d.name===fn.name)throw A;d instanceof Dn&&typeof d.statusCode=="number"&&d.statusCode>=500?Sl(`Failed to restore: ${A.message}`):Ke(`Failed to restore: ${A.message}`)}finally{try{u&&(yield Bd(u))}catch(A){I(`Failed to delete archive: ${A}`)}}})}function hv(t,e,r){return Tu(this,arguments,void 0,function*(s,n,i,o=!1){let a=Ip();return I(`Cache service version: ${a}`),QW(s),pv(n),a==="v2"?yield Pxe(s,n,i,o):yield Txe(s,n,i,o)})}function Txe(t,e,r){return Tu(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,l,u,A;let d=yield bd(),p=-1,h=yield vx(s);if(I("Cache Paths:"),I(`${JSON.stringify(h)}`),h.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 Id(),y=Fp.join(f,Uo(d));I(`Archive Path: ${y}`);try{yield dv(f,h,d),Ln()&&(yield Mp(y,d));let g=10*1024*1024*1024,E=On(y);if(I(`File Size: ${E}`),E>g&&!WT())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);I("Reserving Cache");let C=yield N4(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:E});if(!((a=C?.result)===null||a===void 0)&&a.cacheId)p=(c=C?.result)===null||c===void 0?void 0:c.cacheId;else throw C?.statusCode===400?new Error((u=(l=C?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new Ru(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(A=C?.error)===null||A===void 0?void 0:A.message}`);I(`Saving Cache (ID: ${p})`),yield XT(p,y,"",i)}catch(g){let E=g;if(E.name===fn.name)throw g;E.name===Ru.name?N(`FaLine truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var SRe=class extends Error{constructor(t,e,r){super(NRe(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},RRe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],TRe=["query","method","url"],bj=/\/api\/v3\/?$/;function PRe(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(TRe.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)=>RRe.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 bj.test(i)&&(n.url=i.replace(bj,"/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 SRe(n,a,o.data)}return o.data.data})}function yk(t,e){let r=t.defaults(e);return Object.assign((n,i)=>PRe(r,n,i),{defaults:yk.bind(null,r),endpoint:r.endpoint})}var Uje=yk(em,{headers:{"user-agent":`octokit-graphql.js/${xRe} ${sa()}`},method:"POST",url:"/graphql"});function wj(t){return yk(t,{method:"POST",url:"/graphql"})}var Ck="(?:[a-zA-Z0-9_-]+)",Qj="\\.",xj=new RegExp(`^${Ck}${Qj}${Ck}${Qj}${Ck}$`),vRe=xj.test.bind(xj);async function kRe(t){let e=vRe(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 DRe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function _Re(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=DRe(t),e(n)}var Nj=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(kRe.bind(null,e),{hook:_Re.bind(null,e)})};var Ik="7.0.6";var Sj=()=>{},LRe=console.warn.bind(console),MRe=console.error.bind(console);function FRe(t={}){return typeof t.debug!="function"&&(t.debug=Sj),typeof t.info!="function"&&(t.info=Sj),typeof t.warn!="function"&&(t.warn=LRe),typeof t.error!="function"&&(t.error=MRe),t}var Rj=`octokit-core.js/${Ik} ${sa()}`,fI=class{static VERSION=Ik;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 nj.Collection,s={baseUrl:em.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} ${Rj}`:Rj,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=em.defaults(s),this.graphql=wj(this.request).defaults(s),this.log=FRe(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=Nj(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 Bk="17.0.0";var URe={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:A,l?(a===null?0:a.length)+c.length:0,l?c.length+A:0);return d<p},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:A,max_record_size:d,raw:p,relax_quotes:h,rtrim:f,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:B,quote:v,record_delimiter:Y}=this.options,{bomSkipped:H,previousBuf:ge,rawBuffer:Be,escapeIsQuote:Re}=this.state,z;if(ge===void 0)if(s===void 0){o();return}else z=s;else ge!==void 0&&s===void 0?z=ge:z=Buffer.concat([ge,s]);if(H===!1)if(a===!1)this.state.bomSkipped=!0;else if(z.length<3){if(n===!1){this.state.previousBuf=z;return}}else{for(let Ne in Vu)if(Vu[Ne].compare(z,0,Vu[Ne].length)===0){let Ct=Vu[Ne].length;this.state.bufBytesStart+=Ct,z=z.slice(Ct);let $e=Pk({...this.original_options,encoding:Ne});for(let lt in $e)this.options[lt]=$e[lt];({comment:C,escape:B,quote:v}=this.options);break}this.state.bomSkipped=!0}let ce=z.length,U;for(U=0;U<ce&&!this.__needMoreData(U,ce,n);U++){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&&Y.length===0&&this.__autoDiscoverRecordDelimiter(z,U)&&(Y=this.options.record_delimiter);let Ne=z[U];if(p===!0&&Be.append(Ne),(Ne===ZRe||Ne===eTe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(z,U,Ne)&&U+B.length<ce)if(Re){if(this.__isQuote(z,U+B.length)){this.state.escaping=!0,U+=B.length-1;continue}}else{this.state.escaping=!0,U+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(z,U))if(this.state.quoting===!0){let lt=z[U+v.length],Qi=f&&this.__isCharTrimable(z,U+v.length),Or=C!==null&&this.__compareBytes(C,z,U+v.length,lt),Cn=this.__isDelimiter(z,U+v.length,lt),na=Y.length===0?this.__autoDiscoverRecordDelimiter(z,U+v.length):this.__isRecordDelimiter(lt,z,U+v.length);if(B!==null&&this.__isEscape(z,U,Ne)&&this.__isQuote(z,U+B.length))U+=B.length-1;else if(!lt||Cn||na||Or||Qi){this.state.quoting=!1,this.state.wasQuoting=!0,U+=v.length-1;continue}else if(h===!1){let Sc=this.__error(new Ie("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(lt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Sc!==void 0)return Sc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(v),U+=v.length-1}else if(this.state.field.length!==0){if(h===!1){let lt=this.__infoField(),Qi=Object.keys(Vu).map(Cn=>Vu[Cn].equals(this.state.field.toString())?Cn:!1).filter(Boolean)[0],Or=this.__error(new Ie("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(lt.column)} at line ${lt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Qi?`(${Qi} bom)`:void 0],this.options,lt,{field:this.state.field}));if(Or!==void 0)return Or}}else{this.state.quoting=!0,U+=v.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(Ne,z,U);if(lt!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),U+=lt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,U+=lt-1;continue}this.info.bytes=this.state.bufBytesStart+U;let Cn=this.__onField();if(Cn!==void 0)return Cn;this.info.bytes=this.state.bufBytesStart+U+lt;let na=this.__onRecord(i);if(na!==void 0)return na;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,U+=lt-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,z,U,Ne)!==0){this.state.commenting=!0;continue}let Qi=this.__isDelimiter(z,U,Ne);if(Qi!==0){this.info.bytes=this.state.bufBytesStart+U;let Or=this.__onField();if(Or!==void 0)return Or;U+=Qi-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new Ie("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 Ct=A===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(z,U),$e=f===!1||this.state.wasQuoting===!1;if(Ct===!0&&$e===!0)this.state.field.append(Ne);else{if(f===!0&&!this.__isCharTrimable(z,U))return this.__error(new Ie("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()));Ct===!1&&(U+=this.__isCharTrimable(z,U)-1);continue}}if(n===!0 Line truncated
`)}var kRe=class extends Error{constructor(t,e,r){super(vRe(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},DRe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],_Re=["query","method","url"],Nj=/\/api\/v3\/?$/;function LRe(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(_Re.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)=>DRe.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 Nj.test(i)&&(n.url=i.replace(Nj,"/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 kRe(n,a,o.data)}return o.data.data})}function Bk(t,e){let r=t.defaults(e);return Object.assign((n,i)=>LRe(r,n,i),{defaults:Bk.bind(null,r),endpoint:r.endpoint})}var zje=Bk(tm,{headers:{"user-agent":`octokit-graphql.js/${PRe} ${sa()}`},method:"POST",url:"/graphql"});function Sj(t){return Bk(t,{method:"POST",url:"/graphql"})}var bk="(?:[a-zA-Z0-9_-]+)",Rj="\\.",Tj=new RegExp(`^${bk}${Rj}${bk}${Rj}${bk}$`),MRe=Tj.test.bind(Tj);async function FRe(t){let e=MRe(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 URe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function ORe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=URe(t),e(n)}var Pj=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(FRe.bind(null,e),{hook:ORe.bind(null,e)})};var wk="7.0.6";var vj=()=>{},qRe=console.warn.bind(console),GRe=console.error.bind(console);function HRe(t={}){return typeof t.debug!="function"&&(t.debug=vj),typeof t.info!="function"&&(t.info=vj),typeof t.warn!="function"&&(t.warn=qRe),typeof t.error!="function"&&(t.error=GRe),t}var kj=`octokit-core.js/${wk} ${sa()}`,fI=class{static VERSION=wk;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 cj.Collection,s={baseUrl:tm.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} ${kj}`:kj,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=tm.defaults(s),this.graphql=Sj(this.request).defaults(s),this.log=HRe(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=Pj(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 Qk="17.0.0";var zRe={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:A,l?(a===null?0:a.length)+c.length:0,l?c.length+A:0);return d<p},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:A,max_record_size:d,raw:p,relax_quotes:h,rtrim:f,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:C,escape:B,quote:x,record_delimiter:Y}=this.options,{bomSkipped:H,previousBuf:ge,rawBuffer:be,escapeIsQuote:Se}=this.state,z;if(ge===void 0)if(s===void 0){o();return}else z=s;else ge!==void 0&&s===void 0?z=ge:z=Buffer.concat([ge,s]);if(H===!1)if(a===!1)this.state.bomSkipped=!0;else if(z.length<3){if(n===!1){this.state.previousBuf=z;return}}else{for(let Ee in Vu)if(Vu[Ee].compare(z,0,Vu[Ee].length)===0){let Ct=Vu[Ee].length;this.state.bufBytesStart+=Ct,z=z.slice(Ct);let je=Dk({...this.original_options,encoding:Ee});for(let lt in je)this.options[lt]=je[lt];({comment:C,escape:B,quote:x}=this.options);break}this.state.bomSkipped=!0}let se=z.length,U;for(U=0;U<se&&!this.__needMoreData(U,se,n);U++){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&&Y.length===0&&this.__autoDiscoverRecordDelimiter(z,U)&&(Y=this.options.record_delimiter);let Ee=z[U];if(p===!0&&be.append(Ee),(Ee===nTe||Ee===iTe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(z,U,Ee)&&U+B.length<se)if(Se){if(this.__isQuote(z,U+B.length)){this.state.escaping=!0,U+=B.length-1;continue}}else{this.state.escaping=!0,U+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(z,U))if(this.state.quoting===!0){let lt=z[U+x.length],Qi=f&&this.__isCharTrimable(z,U+x.length),qr=C!==null&&this.__compareBytes(C,z,U+x.length,lt),Cn=this.__isDelimiter(z,U+x.length,lt),na=Y.length===0?this.__autoDiscoverRecordDelimiter(z,U+x.length):this.__isRecordDelimiter(lt,z,U+x.length);if(B!==null&&this.__isEscape(z,U,Ee)&&this.__isQuote(z,U+B.length))U+=B.length-1;else if(!lt||Cn||na||qr||Qi){this.state.quoting=!1,this.state.wasQuoting=!0,U+=x.length-1;continue}else if(h===!1){let Sc=this.__error(new Be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(lt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Sc!==void 0)return Sc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),U+=x.length-1}else if(this.state.field.length!==0){if(h===!1){let lt=this.__infoField(),Qi=Object.keys(Vu).map(Cn=>Vu[Cn].equals(this.state.field.toString())?Cn:!1).filter(Boolean)[0],qr=this.__error(new Be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(lt.column)} at line ${lt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,Qi?`(${Qi} bom)`:void 0],this.options,lt,{field:this.state.field}));if(qr!==void 0)return qr}}else{this.state.quoting=!0,U+=x.length-1;continue}if(this.state.quoting===!1){let lt=this.__isRecordDelimiter(Ee,z,U);if(lt!==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)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),U+=lt-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,U+=lt-1;continue}this.info.bytes=this.state.bufBytesStart+U;let Cn=this.__onField();if(Cn!==void 0)return Cn;this.info.bytes=this.state.bufBytesStart+U+lt;let na=this.__onRecord(i);if(na!==void 0)return na;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,U+=lt-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,z,U,Ee)!==0){this.state.commenting=!0;continue}let Qi=this.__isDelimiter(z,U,Ee);if(Qi!==0){this.info.bytes=this.state.bufBytesStart+U;let qr=this.__onField();if(qr!==void 0)return qr;U+=Qi-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new Be("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 Ct=A===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(z,U),je=f===!1||this.state.wasQuoting===!1;if(Ct===!0&&je===!0)this.state.field.append(Ee);else{if(f===!0&&!this.__isCharTrimable(z,U))return this.__error(new Be("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()));Ct===!1&&(U+=this.__isCharTrimable(z,U)-1);continue}}if(n===!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 EI=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=Vj(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 Cr=class t{static getInputList(e,r){return this.getList(rn(e),r)}static getList(e,r){let s=[];if(e=="")return s;let n=EI(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,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=rn(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 pt("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 Yj.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 vk.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 vk.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=tm.default.resolve(e);return tm.default.resolve(r).startsWith(s.endsWith(tm.default.sep)?s:`${s}${tm.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 sr=class t{static get configDir(){return process.env.DOCKER_CONFIG||rm.default.join(Jj.default.homedir(),".docker")}static configFile(){let e=rm.default.join(t.configDir,"config.json");if(kk.default.existsSync(e))return JSON.parse(kk.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await pt("docker",!0).then(e=>(I(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(I(`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 Ae.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ae.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)throw new Error(s.stderr);return s.stdo 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]!==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 EI=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=Wj(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 Ir=class t{static getInputList(e,r){return this.getList(rn(e),r)}static getList(e,r){let s=[];if(e=="")return s;let n=EI(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,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=rn(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 pt("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 jj.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 _k.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 _k.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=rm.default.resolve(e);return rm.default.resolve(r).startsWith(s.endsWith(rm.default.sep)?s:`${s}${rm.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 nr=class t{static get configDir(){return process.env.DOCKER_CONFIG||sm.default.join(Kj.default.homedir(),".docker")}static configFile(){let e=sm.default.join(t.configDir,"config.json");if(Lk.default.existsSync(e))return JSON.parse(Lk.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await pt("docker",!0).then(e=>(I(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(I(`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 Ae.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ae.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)throw new Error(s.stderr);return s.stdo Line truncated
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
@@ -218,12 +218,12 @@ While ($true) {
Start-Sleep -Seconds 1
}
Write-Host "Docker daemon started successfully!"
`,Kve=`
`,rke=`
Get-WinEvent -ea SilentlyContinue \`
-FilterHashtable @{ProviderName= "docker"; LogName = "application"} |
Sort-Object @{Expression="TimeCreated";Descending=$false} |
ForEach-Object {"$($_.TimeCreated.ToUniversalTime().ToString("o")) [$($_.LevelDisplayName)] $($_.Message)"}
`,O6=`
`,z6=`
# Source:
# - https://github.com/lima-vm/lima/blob/master/templates/docker-rootful.yaml
# - https://github.com/lima-vm/lima/blob/master/templates/_images/ubuntu-lts.yaml
@@ -409,12 +409,12 @@ audio:
# Choosing "none" will mute the audio output, and not play any sound.
# Builtin default: ""
device: none
`;var Am=class t{runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new PI,this.undock=e.undock||new vI,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Fr.tmpDir()}async download(){let e,r,s=Ur.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,x(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){x(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let a=await this.downloadSourceArchive("docker-rootless-extras",this.source);kt.default.readdirSync(a).forEach(c=>{let l=Qt.default.join(a,c),u=Qt.default.join(e,c);kt.default.copyFileSync(l,u)})}break}}x("Fixing perms"),kt.default.readdir(Qt.default.join(e),function(i,o){if(i)throw i;o.forEach(function(a,c){Cr.isDirectory(Qt.default.join(e,a))||kt.default.chmodSync(Qt.default.join(e,a),"0755")})});let n=await id(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return Nl(n),x("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Qt.default.join(Fr.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(x(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))x(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(I(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){Ke(i),this.gitCommit="master"}I(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else Ke(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),I(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);x(`Downloading ${n}`);let i=await ka(n);I(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let o;return Ur.default.platform()=="win32"?o=await Mf(i,o):o=await Lf(i,o),Cr.isDirectory(Qt.default.join(o,e))&&(o=Qt.default.join(o,e)),I(`docker.Install.downloadSourceArchive extractFolder: ${o}`),o}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=Ur.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${Ur.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=Qt.default.join(Ur.default.homedir(),".lima",this.limaInstanceName);await Cs(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await pe("Lima version",async()=>{await Ae.exec("lima",["--version"])}),await pe("Creating lima config",async()=>{let o={};this.daemonConfig&&(o=JSON.parse(this.daemonConfig)),Ju.registerHelper("stringify",function(l){return new Ju.SafeString(JSON.stringify(l))});let a=e,c=Ju.compile(O6)({customImages:t.limaCustomImages(),daemonConfig:o,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:a.channel,srcImageTag:e.tag});x(`Writing lima config to ${Qt.default.join(r,"lima.yaml")}`),kt.default.writeFileSync(Qt.default.join(r,"lima.yaml"),c),x(c)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await pe("QEMU version",async()=>{await Ae.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await pe("Starting lima instance",async()=>{let o=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.env.LIMA_START_ARGS&&o.push(process.env.LIMA_START_ARGS);try{await Ae.exec(`limactl ${o.j Line truncated
${A}`)})}).catch(()=>{}),a}}),await pe("Create Docker context",async()=>{await sr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await sr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Qt.default.join(this.runDir,"docker.sock")}`;await Cs(this.runDir);let r=Qt.default.join(this.runDir,"daemon.json");await kt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(kt.default.existsSync(n)&&(await pe("Default Docker daemon config found",async()=>{x(JSON.stringify(JSON.parse(kt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(kt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let o=JSON.stringify(s,null,2);await pe("Writing Docker daemon config",async()=>{kt.default.writeFileSync(r,o),x(o)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await pe("Start Docker daemon",async()=>{let o=await pt("bash",!0),a=`${this.toolDir}/dockerd`;this.rootless&&(a=`${this.toolDir}/dockerd-rootless.sh`,kt.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await Ae.exec("sudo",["sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"]));let c=`${a} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(c+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),x(`[command] ${c}`);let l="sudo";this.rootless&&(l+=" -u \\#1001"),(await q6.spawn(`${l} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${o} << EOF
`;var dm=class t{runDir;source;contextName;daemonConfig;rootless;localTCPPort;regctl;undock;githubToken;_version;_toolDir;gitCommit;limaInstanceName="docker-actions-toolkit";constructor(e){this.runDir=e.runDir,this.source=e.source||{type:"archive",version:"latest",channel:"stable"},this.contextName=e.contextName||"setup-docker-action",this.daemonConfig=e.daemonConfig,this.rootless=e.rootless||!1,this.localTCPPort=e.localTCPPort,this.regctl=e.regctl||new PI,this.undock=e.undock||new vI,this.githubToken=e.githubToken||process.env.GITHUB_TOKEN}get toolDir(){return this._toolDir||Ur.tmpDir()}async download(){let e,r,s=Or.default.platform();switch(this.source.type){case"image":{this._version=this.source.tag,r="docker-image",e=await this.downloadSourceImage(s);break}case"archive":{let i=this.source.version;if(r=`docker-archive-${this.source.channel}`,this._version=i,N(`Downloading Docker ${i} from ${this.source.channel} at download.docker.com`),e=await this.downloadSourceArchive("docker",this.source),this.rootless){N(`Downloading Docker rootless extras ${i} from ${this.source.channel} at download.docker.com`);let a=await this.downloadSourceArchive("docker-rootless-extras",this.source);kt.default.readdirSync(a).forEach(c=>{let l=Qt.default.join(a,c),u=Qt.default.join(e,c);kt.default.copyFileSync(l,u)})}break}}N("Fixing perms"),kt.default.readdir(Qt.default.join(e),function(i,o){if(i)throw i;o.forEach(function(a,c){Ir.isDirectory(Qt.default.join(e,a))||kt.default.chmodSync(Qt.default.join(e,a),"0755")})});let n=await od(e,r,this._version.replace(/(0+)([1-9]+)/,"$2"));return Nl(n),N("Added Docker to PATH"),this._toolDir=n,n}async downloadSourceImage(e){let r=Qt.default.join(Ur.tmpDir(),"docker-install-image"),s=`dockereng/cli-bin:${this._version}`,n=`moby/moby-bin:${this._version}`;if(N(`Downloading Docker CLI from ${s}`),await this.undock.run({source:s,dist:r}),["win32","linux"].includes(e))N(`Downloading Docker engine from ${n}`),await this.undock.run({source:n,dist:r});else if(e=="darwin"){try{let i=await this.imageConfig(n,"linux/arm64");if(I(`docker.Install.downloadSourceImage engineImageConfig: ${JSON.stringify(i)}`),this.gitCommit=i.config?.Labels?.["org.opencontainers.image.revision"],!this.gitCommit)throw new Error("No git revision can be determined from the image")}catch(i){Ke(i),this.gitCommit="master"}I(`docker.Install.downloadSourceImage gitCommit: ${this.gitCommit}`)}else Ke(`Docker engine not supported on ${e}, only the Docker cli will be available`);return r}async downloadSourceArchive(e,r){let s=await t.getRelease(r.version,this.githubToken);this._version=s.tag_name.replace(/^(docker-)?v+/,""),I(`docker.Install.downloadSourceArchive version: ${this._version}`);let n=this.downloadURL(e,this._version,r.channel);N(`Downloading ${n}`);let i=await ka(n);I(`docker.Install.downloadSourceArchive downloadPath: ${i}`);let o;return Or.default.platform()=="win32"?o=await Mf(i,o):o=await Lf(i,o),Ir.isDirectory(Qt.default.join(o,e))&&(o=Qt.default.join(o,e)),I(`docker.Install.downloadSourceArchive extractFolder: ${o}`),o}async install(){if(!this.toolDir)throw new Error("toolDir must be set. Run download first.");if(!this.runDir)throw new Error("runDir must be set");let e=Or.default.platform();if(this.rootless&&e!="linux")throw new Error("rootless is only supported on linux");switch(e){case"darwin":return await this.installDarwin();case"linux":return await this.installLinux();case"win32":return await this.installWindows();default:throw new Error(`Unsupported platform: ${Or.default.platform()}`)}}async installDarwin(){if(this.source.type=="image"&&!this.gitCommit)throw new Error("gitCommit must be set. Run download first.");let e=this.source,r=Qt.default.join(Or.default.homedir(),".lima",this.limaInstanceName);await Cs(r);let s=`unix://${r}/docker.sock`;await t.limaInstalled()||await this.brewInstall("lima"),await pe("Lima version",async()=>{await Ae.exec("lima",["--version"])}),await pe("Creating lima config",async()=>{let o={};this.daemonConfig&&(o=JSON.parse(this.daemonConfig)),Ju.registerHelper("stringify",function(l){return new Ju.SafeString(JSON.stringify(l))});let a=e,c=Ju.compile(z6)({customImages:t.limaCustomImages(),daemonConfig:o,dockerSock:`${r}/docker.sock`,localTCPPort:this.localTCPPort,gitCommit:this.gitCommit,srcType:e.type,srcArchiveVersion:this._version,srcArchiveChannel:a.channel,srcImageTag:e.tag});N(`Writing lima config to ${Qt.default.join(r,"lima.yaml")}`),kt.default.writeFileSync(Qt.default.join(r,"lima.yaml"),c),N(c)}),await t.qemuInstalled()||await this.brewInstall("qemu");let n=await t.qemuBin();await pe("QEMU version",async()=>{await Ae.exec(n,["--version"])});let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`});return await pe("Starting lima instance",async()=>{let o=["start",`--name=${this.limaInstanceName}`,`--timeout=${process.env.LIMA_START_TIMEOUT??"15m"}`];process.env.LIMA_START_ARGS&&o.push(process.env.LIMA_START_ARGS);try{await Ae.exec(`limactl ${o.j Line truncated
${A}`)})}).catch(()=>{}),a}}),await pe("Create Docker context",async()=>{await nr.exec(["context","create",this.contextName,"--docker",`host=${s}`]),await nr.exec(["context","use",this.contextName])}),s}async installLinux(){let e=`unix://${Qt.default.join(this.runDir,"docker.sock")}`;await Cs(this.runDir);let r=Qt.default.join(this.runDir,"daemon.json");await kt.default.writeFileSync(r,"{}");let s,n="/etc/docker/daemon.json";if(kt.default.existsSync(n)&&(await pe("Default Docker daemon config found",async()=>{N(JSON.stringify(JSON.parse(kt.default.readFileSync(n,{encoding:"utf8"})),null,2))}),s=JSON.parse(kt.default.readFileSync(n,{encoding:"utf8"}))),this.daemonConfig&&(s=Object.assign(s||{},JSON.parse(this.daemonConfig))),s){let o=JSON.stringify(s,null,2);await pe("Writing Docker daemon config",async()=>{kt.default.writeFileSync(r,o),N(o)})}let i=Object.assign({},process.env,{PATH:`${this.toolDir}:${process.env.PATH}`,XDG_RUNTIME_DIR:this.rootless&&this.runDir||void 0});return await pe("Start Docker daemon",async()=>{let o=await pt("bash",!0),a=`${this.toolDir}/dockerd`;this.rootless&&(a=`${this.toolDir}/dockerd-rootless.sh`,kt.default.existsSync("/proc/sys/kernel/apparmor_restrict_unprivileged_userns")&&await Ae.exec("sudo",["sh","-c","echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns"]));let c=`${a} --host="${e}" --config-file="${r}" --exec-root="${this.runDir}/execroot" --data-root="${this.runDir}/data" --pidfile="${this.runDir}/docker.pid"`;this.localTCPPort&&(c+=` --host="tcp://127.0.0.1:${this.localTCPPort}"`),N(`[command] ${c}`);let l="sudo";this.rootless&&(l+=" -u \\#1001"),(await V6.spawn(`${l} env "PATH=$PATH" "XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" ${o} << EOF
( ${c} 2>&1 | tee "${this.runDir}/dockerd.log" ) &
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Cr.sleep(3);let A=10;await(0,H6.default)(async d=>{try{await Ae.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(p){d(p)}},{retries:A,minTimeout:1e3,onRetry:(d,p)=>{x(`${d}. Retrying (${p}/${A})...`)}}),x("Docker daemon started started successfully")}),await pe("Create Docker context",async()=>{await sr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await sr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Qt.default.join(this.runDir,"daemon.json");kt.default.existsSync(s)&&(await pe("Default Docker daemon config found",async()=>{x(JSON.stringify(JSON.parse(kt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(kt.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await pe("Docker daemon config",async()=>{x(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await pe("Install Docker daemon service",async()=>{let o=await Cr.powershellCommand(F6(),i);await Ae.exec(o.command,o.args);let a=await Cr.powershellCommand(eD());await Ae.exec(a.command,a.args)}),await pe("Create Docker context",async()=>{await sr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await sr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Ur.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${Ur.default.platform()}`)}await pe("Cleaning up toolDir",async()=>{this._toolDir&&kt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await pe("Docker daemon logs",async()=>{await Ae.exec("limactl",["shell","--tty=false",this.limaInstanceName,"sudo","journalctl","-u","docker.service","-l","--no-pager"]).catch(()=>{Ke("Failed to get Docker daemon logs")})}),await pe("Stopping lima instance",async()=>{await Ae.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await pe("Removing lima instance",async()=>{await Ae.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await pe("Removing Docker context",async()=>{await sr.exec(["context","rm","-f",this.contextName])}),await pe("Cleaning up runDir",async()=>{await Ae.exec("sudo",["rm","-rf",this.runDir])})}async tearDownLinux(){await pe("Docker daemon logs",async()=>{x(kt.default.readFileSync(Qt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await pe("Stopping Docker daemon",async()=>{await Ae.exec("sudo",["kill","-s","SIGTERM",kt.default.readFileSync(Qt.default.join(this.runDir,"docker.pid")).toString().trim()]),await Cr.sleep(5)}),await pe("Removing Docker context",async()=>{await sr.exec(["context","rm","-f",this.contextName])}),await pe("Cleaning up runDir",async()=>{await Ae.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await pe("Docker daemon logs",async()=>{let e=await Cr.powershellCommand(eD());await Ae.exec(e.command,e.args)}),await pe("Removing Docker context",async()=>{await sr.exec(["context","rm","-f",this.contextName])}),await pe("Stopping Docker daemon service",async()=>{await Ae.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(Ur.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Ur.default.platform()}}static platformArch(){switch(Ur.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return Ur.default.arch()}}static async limaInstalled(){return await pt("lima",!0).then(e=>(I(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(I(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Ur.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Ur.default.arch()}`}}static async qemuInstalled(){return await pt(await t.qemuBin(),!0).then(e=>(I(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(I(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new bi({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/ Line truncated
EOF`,[],{env:i,detached:!0,shell:!0,stdio:["ignore",process.stdout,process.stderr]})).unref(),await Ir.sleep(3);let A=10;await(0,J6.default)(async d=>{try{await Ae.getExecOutput("docker version",void 0,{silent:!0,env:Object.assign({},i,{DOCKER_HOST:e,DOCKER_CONTENT_TRUST:"false"})})}catch(p){d(p)}},{retries:A,minTimeout:1e3,onRetry:(d,p)=>{N(`${d}. Retrying (${p}/${A})...`)}}),N("Docker daemon started started successfully")}),await pe("Create Docker context",async()=>{await nr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await nr.exec(["context","use",this.contextName])}),e}async installWindows(){let e="npipe:////./pipe/setup_docker_action",r,s=Qt.default.join(this.runDir,"daemon.json");kt.default.existsSync(s)&&(await pe("Default Docker daemon config found",async()=>{N(JSON.stringify(JSON.parse(kt.default.readFileSync(s,{encoding:"utf8"})),null,2))}),r=JSON.parse(kt.default.readFileSync(s,{encoding:"utf8"}))),this.daemonConfig&&(r=Object.assign(r||{},JSON.parse(this.daemonConfig)));let n="{}";r&&(n=JSON.stringify(r,null,2),await pe("Docker daemon config",async()=>{N(n)}));let i={ToolDir:this.toolDir,RunDir:this.runDir,DockerHostSocket:e,DaemonConfig:n};return this.localTCPPort&&(i.DockerHostTCP=`tcp://127.0.0.1:${this.localTCPPort}`),await pe("Install Docker daemon service",async()=>{let o=await Ir.powershellCommand(G6(),i);await Ae.exec(o.command,o.args);let a=await Ir.powershellCommand(sD());await Ae.exec(a.command,a.args)}),await pe("Create Docker context",async()=>{await nr.exec(["context","create",this.contextName,"--docker",`host=${e}`]),await nr.exec(["context","use",this.contextName])}),e}async tearDown(){if(!this.runDir)throw new Error("runDir must be set");switch(Or.default.platform()){case"darwin":{await this.tearDownDarwin();break}case"linux":{await this.tearDownLinux();break}case"win32":{await this.tearDownWindows();break}default:throw new Error(`Unsupported platform: ${Or.default.platform()}`)}await pe("Cleaning up toolDir",async()=>{this._toolDir&&kt.default.rmSync(this._toolDir,{recursive:!0,force:!0})})}async tearDownDarwin(){await pe("Docker daemon logs",async()=>{await Ae.exec("limactl",["shell","--tty=false",this.limaInstanceName,"sudo","journalctl","-u","docker.service","-l","--no-pager"]).catch(()=>{Ke("Failed to get Docker daemon logs")})}),await pe("Stopping lima instance",async()=>{await Ae.exec("limactl",["stop","--tty=false",this.limaInstanceName,"--force"])}),await pe("Removing lima instance",async()=>{await Ae.exec("limactl",["delete","--tty=false",this.limaInstanceName,"--force"])}),await pe("Removing Docker context",async()=>{await nr.exec(["context","rm","-f",this.contextName])}),await pe("Cleaning up runDir",async()=>{await Ae.exec("sudo",["rm","-rf",this.runDir])})}async tearDownLinux(){await pe("Docker daemon logs",async()=>{N(kt.default.readFileSync(Qt.default.join(this.runDir,"dockerd.log"),{encoding:"utf8"}))}),await pe("Stopping Docker daemon",async()=>{await Ae.exec("sudo",["kill","-s","SIGTERM",kt.default.readFileSync(Qt.default.join(this.runDir,"docker.pid")).toString().trim()]),await Ir.sleep(5)}),await pe("Removing Docker context",async()=>{await nr.exec(["context","rm","-f",this.contextName])}),await pe("Cleaning up runDir",async()=>{await Ae.exec("sudo",["rm","-rf",this.runDir],{ignoreReturnCode:!0,failOnStdErr:!1})})}async tearDownWindows(){await pe("Docker daemon logs",async()=>{let e=await Ir.powershellCommand(sD());await Ae.exec(e.command,e.args)}),await pe("Removing Docker context",async()=>{await nr.exec(["context","rm","-f",this.contextName])}),await pe("Stopping Docker daemon service",async()=>{await Ae.exec("powershell",["-Command","Stop-Service -Name docker -Force"])})}downloadURL(e,r,s){let n=t.platformOS(),i=t.platformArch();return`https://download.docker.com/${n}/static/${s}/${i}/${e}-${r}${n==="win"?".zip":".tgz"}`}static platformOS(){switch(Or.default.platform()){case"darwin":return"mac";case"linux":return"linux";case"win32":return"win";default:return Or.default.platform()}}static platformArch(){switch(Or.default.arch()){case"x64":return"x86_64";case"ppc64":return"ppc64le";case"arm64":return"aarch64";case"arm":{let e=process.config.variables.arm_version;switch(e){case 6:return"armel";case 7:return"armhf";default:return`v${e}`}}default:return Or.default.arch()}}static async limaInstalled(){return await pt("lima",!0).then(e=>(I(`docker.Install.limaInstalled ok: ${e}`),!0)).catch(e=>(I(`docker.Install.limaInstalled error: ${e}`),!1))}static async qemuBin(){switch(Or.default.arch()){case"x64":return"qemu-system-x86_64";case"arm64":return"qemu-system-aarch64";default:return`qemu-system-${Or.default.arch()}`}}static async qemuInstalled(){return await pt(await t.qemuBin(),!0).then(e=>(I(`docker.Install.qemuInstalled ok: ${e}`),!0)).catch(e=>(I(`docker.Install.qemuInstalled error: ${e}`),!1))}static async getRelease(e,r){let n=await new bi({token:r}).releases("Docker",{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/ Line truncated
`))if(u.includes(n))return!0;return!1})||await Ae.exec("brew",["tap-new",n],{env:s});let o=await Ae.getExecOutput("brew",["--repo",n],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);return l.stdout.trim()}),a=`https://raw.githubusercontent.com/Homebrew/homebrew-core/${r}/Formula/${e.charAt(0)}/${e}.rb`;await ka(a,Qt.default.join(o,"Formula",`${e}.rb`)),await Ae.getExecOutput("brew",["ls","-1"],{ignoreReturnCode:!0,silent:!0,env:s}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);for(let u of l.stdout.trim().split(`
`))if(u.trim()==e)return!0;return!1})&&await Ae.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await Ae.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var dm=b(require("fs"),1),Ao=b(require("os"),1),kI=b(require("path"),1);var _I=b(um(),1),tD=b(require("util"),1);var DI=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);I(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);I(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);I(`Install.download vspec: ${i}`);let o=_I.clean(i)||"";if(!_I.valid(o))throw new Error(`Invalid regclient version "${i}".`);let a=new yi({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:kI.default.join(Ao.default.homedir(),".bin"),cacheFile:Ao.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),c=await a.find();if(c)return x(`regctl binary found in ${c}`),c;let l=tD.format(s.downloadURL,i,this.filename());x(`Downloading ${l}`);let u=await ka(l,void 0,this.githubToken);I(`Install.download htcDownloadPath: ${u}`);let A=await a.save(u);return x(`Cached to ${A}`),A}async install(e,r){r=r||Fr.tmpDir();let s=kI.default.join(r,"regctl-bin");dm.default.existsSync(s)||dm.default.mkdirSync(s,{recursive:!0});let n=Ao.default.platform()=="win32"?"regctl.exe":"regctl",i=kI.default.join(s,n);return dm.default.copyFileSync(e,i),x("Fixing perms"),dm.default.chmodSync(i,"0755"),Nl(s),x("Added regctl to PATH"),x(`Binary path: ${i}`),i}filename(){let e;switch(Ao.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=Ao.default.arch();break}}let r=Ao.default.platform()=="win32"?"windows":Ao.default.platform(),s=Ao.default.platform()=="win32"?".exe":"";return tD.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return x(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new bi({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var pm=b(require("fs"),1),yn=b(require("os"),1),mm=b(require("path"),1);var MI=b(um(),1),rD=b(require("util"),1);var LI=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);I(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);I(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);I(`Install.download vspec: ${i}`);let o=MI.clean(i)||"";if(!MI.valid(o))throw new Error(`Invalid Undock version "${i}".`);let a=new yi({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:mm.default.join(yn.default.homedir(),".bin"),cacheFile:yn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),c=await a.find();if(c)return x(`Undock binary found in ${c}`),c;let l=rD.format(s.downloadURL,i,this.filename(i));x(`Downloading ${l}`);let u=await ka(l,void 0,this.githubToken);I(`Install.download htcDownloadPath: ${u}`);let A;yn.default.platform()=="win32"?A=await Mf(u):A=await Lf(u),x(`Extracted to ${A}`);let d=mm.default.join(A,yn.default.platform()=="win32"?"undock.exe":"undock");I(`Install.download exePath: ${d}`);let p=await a.save(d);return x(`Cached to ${p}`),p}async install(e,r){r=r||Fr.tmpDir();let s=mm.default.join(r,"undock-bin");pm.default.existsSync(s)||pm.default.mkdirSync(s,{recursive:!0});let n=yn.default.platform()=="win32"?"undock.exe":"undock",i=mm.default.join(s,n);return pm.default.copyFileSync(e,i),x("Fixing perms"),pm.default.chmodSync(i,"0755"),Nl(s),x("Added Undock to PATH"),x(`Binary path: ${i}`),i}filename(e){let r;switch(yn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=yn.default.arch();break}}let s=yn.default.platform()=="win32"?"windows":yn.default.platform(),n=yn.default.platform()=="win32"?".zip":".tar.gz";return rD.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return x(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new bi({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return n[e.version]}};var z6=b(r Line truncated
`))if(u.trim()==e)return!0;return!1})&&await Ae.exec("brew",["uninstall",e,"--ignore-dependencies"],{env:s}),await Ae.exec("brew",["install",`${n}/${e}`],{env:s})}})}};var pm=b(require("fs"),1),Ao=b(require("os"),1),kI=b(require("path"),1);var _I=b(Am(),1),nD=b(require("util"),1);var DI=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);I(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);I(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);I(`Install.download vspec: ${i}`);let o=_I.clean(i)||"";if(!_I.valid(o))throw new Error(`Invalid regclient version "${i}".`);let a=new yi({htcName:"regctl-dl-bin",htcVersion:i,baseCacheDir:kI.default.join(Ao.default.homedir(),".bin"),cacheFile:Ao.default.platform()=="win32"?"regctl.exe":"regctl",ghaNoCache:r}),c=await a.find();if(c)return N(`regctl binary found in ${c}`),c;let l=nD.format(s.downloadURL,i,this.filename());N(`Downloading ${l}`);let u=await ka(l,void 0,this.githubToken);I(`Install.download htcDownloadPath: ${u}`);let A=await a.save(u);return N(`Cached to ${A}`),A}async install(e,r){r=r||Ur.tmpDir();let s=kI.default.join(r,"regctl-bin");pm.default.existsSync(s)||pm.default.mkdirSync(s,{recursive:!0});let n=Ao.default.platform()=="win32"?"regctl.exe":"regctl",i=kI.default.join(s,n);return pm.default.copyFileSync(e,i),N("Fixing perms"),pm.default.chmodSync(i,"0755"),Nl(s),N("Added regctl to PATH"),N(`Binary path: ${i}`),i}filename(){let e;switch(Ao.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}case"arm":{let n=process.config.variables.arm_version;e=n?"armv"+n:"arm";break}default:{e=Ao.default.arch();break}}let r=Ao.default.platform()=="win32"?"windows":Ao.default.platform(),s=Ao.default.platform()=="win32"?".exe":"";return nD.format("regctl-%s-%s%s",r,e,s)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return N(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/regclient/regclient/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/regclient-releases.json"}}}static async getRelease(e,r){let n=await new bi({token:r}).releases("regclient",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find regclient release ${e.version} in releases JSON`);return n[e.version]}};var mm=b(require("fs"),1),yn=b(require("os"),1),hm=b(require("path"),1);var MI=b(Am(),1),iD=b(require("util"),1);var LI=class t{githubToken;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);I(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);I(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);I(`Install.download vspec: ${i}`);let o=MI.clean(i)||"";if(!MI.valid(o))throw new Error(`Invalid Undock version "${i}".`);let a=new yi({htcName:"undock-dl-bin",htcVersion:i,baseCacheDir:hm.default.join(yn.default.homedir(),".bin"),cacheFile:yn.default.platform()=="win32"?"undock.exe":"undock",ghaNoCache:r}),c=await a.find();if(c)return N(`Undock binary found in ${c}`),c;let l=iD.format(s.downloadURL,i,this.filename(i));N(`Downloading ${l}`);let u=await ka(l,void 0,this.githubToken);I(`Install.download htcDownloadPath: ${u}`);let A;yn.default.platform()=="win32"?A=await Mf(u):A=await Lf(u),N(`Extracted to ${A}`);let d=hm.default.join(A,yn.default.platform()=="win32"?"undock.exe":"undock");I(`Install.download exePath: ${d}`);let p=await a.save(d);return N(`Cached to ${p}`),p}async install(e,r){r=r||Ur.tmpDir();let s=hm.default.join(r,"undock-bin");mm.default.existsSync(s)||mm.default.mkdirSync(s,{recursive:!0});let n=yn.default.platform()=="win32"?"undock.exe":"undock",i=hm.default.join(s,n);return mm.default.copyFileSync(e,i),N("Fixing perms"),mm.default.chmodSync(i,"0755"),Nl(s),N("Added Undock to PATH"),N(`Binary path: ${i}`),i}filename(e){let r;switch(yn.default.arch()){case"x64":{r="amd64";break}case"ppc64":{r="ppc64le";break}case"arm":{let i=process.config.variables.arm_version;r=i?"armv"+i:"arm";break}default:{r=yn.default.arch();break}}let s=yn.default.platform()=="win32"?"windows":yn.default.platform(),n=yn.default.platform()=="win32"?".zip":".tar.gz";return iD.format("undock_%s_%s_%s%s",e,s,r,n)}async vspec(e){let r=e.replace(/^v+|v+$/g,"");return N(`Use ${r} version spec cache key for ${e}`),r}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/crazy-max/undock/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/undock-releases.json"}}}static async getRelease(e,r){let n=await new bi({token:r}).releases("Undock",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Undock release ${e.version} in releases JSON`);return n[e.version]}};var $6=b(r Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "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", "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", "handler", "rState", "err", "i", "processHeader", "headeLine 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
+3 -3
View File
@@ -3117,7 +3117,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
The following npm package may be included in this product:
- lodash@4.17.23
- lodash@4.18.1
This package contains the following license:
@@ -3341,7 +3341,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm packages may be included in this product:
- brace-expansion@1.1.12
- brace-expansion@1.1.14
- brace-expansion@2.0.1
These packages each contain the following license:
@@ -3726,7 +3726,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm package may be included in this product:
- undici@6.23.0
- undici@6.25.0
This package contains the following license:
+4 -13
View File
@@ -2284,12 +2284,12 @@ __metadata:
linkType: hard
"brace-expansion@npm:^1.1.7":
version: 1.1.12
resolution: "brace-expansion@npm:1.1.12"
version: 1.1.14
resolution: "brace-expansion@npm:1.1.14"
dependencies:
balanced-match: "npm:^1.0.0"
concat-map: "npm:0.0.1"
checksum: 10/12cb6d6310629e3048cadb003e1aca4d8c9bb5c67c3c321bafdd7e7a50155de081f78ea3e0ed92ecc75a9015e784f301efc8132383132f4f7904ad1ac529c562
checksum: 10/2de747a5891ea0d3a1946ea1ae26e056a47f7ea8d42a3009e1736ec3a31a5aa69a3c5da59d998426773553afe4c258e5b12d7953b534fa7f2cf12ce92eed4931
languageName: node
linkType: hard
@@ -2302,16 +2302,7 @@ __metadata:
languageName: node
linkType: hard
"brace-expansion@npm:^5.0.2":
version: 5.0.4
resolution: "brace-expansion@npm:5.0.4"
dependencies:
balanced-match: "npm:^4.0.2"
checksum: 10/cfd57e20d8ded9578149e47ae4d3fff2b2f78d06b54a32a73057bddff65c8e9b930613f0cbcfefedf12dd117151e19d4da16367d5127c54f3bff02d8a4479bb2
languageName: node
linkType: hard
"brace-expansion@npm:^5.0.5":
"brace-expansion@npm:^5.0.2, brace-expansion@npm:^5.0.5":
version: 5.0.5
resolution: "brace-expansion@npm:5.0.5"
dependencies: