183 lines
1.9 MiB
JavaScript
Raw Normal View History

2024-07-29 19:19:44 +00:00
var DX=Object.create;var Em=Object.defineProperty;var SX=Object.getOwnPropertyDescriptor;var kX=Object.getOwnPropertyNames;var FX=Object.getPrototypeOf,LX=Object.prototype.hasOwnProperty;var Ve=(t,e)=>()=>(t&&(e=t(t=0)),e);var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),f0=(t,e)=>{for(var A in e)Em(t,A,{get:e[A],enumerable:!0})},M8=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kX(e))!LX.call(t,i)&&i!==A&&Em(t,i,{get:()=>e[i],enumerable:!(r=SX(e,i))||r.enumerable});return t};var $n=(t,e,A)=>(A=t!=null?DX(FX(t)):{},M8(e||!t||!t.__esModule?Em(A,"default",{value:t,enumerable:!0}):A,t)),ea=t=>M8(Em({},"__esModule",{value:!0}),t);var fm=f(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.toCommandProperties=Sc.toCommandValue=void 0;function TX(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}Sc.toCommandValue=TX;function UX(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}Sc.toCommandProperties=UX});var q8=f(bi=>{"use strict";var MX=bi&&bi.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),OX=bi&&bi.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),PX=bi&&bi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&MX(e,t,A);return OX(e,t),e};Object.defineProperty(bi,"__esModule",{value:!0});bi.issue=bi.issueCommand=void 0;var _X=PX(require("os")),P8=fm();function _8(t,e,A){let r=new C0(t,e,A);process.stdout.write(r.toString()+_X.EOL)}bi.issueCommand=_8;function qX(t,e=""){_8(t,{},e)}bi.issue=qX;var O8="::",C0=class{constructor(e,A,r){e||(e="missing.command"),this.command=e,this.properties=A,this.message=r}toString(){let e=O8+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let i=this.properties[r];i&&(A?A=!1:e+=",",e+=`${r}=${GX(i)}`)}}return e+=`${O8}${HX(this.message)}`,e}};function HX(t){return P8.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function GX(t){return P8.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});function Qp(){return Cm>Bm.length-16&&(H8.default.randomFillSync(Bm),Cm=0),Bm.slice(Cm,Cm+=16)}var H8,Bm,Cm,B0=Ve(()=>{H8=$n(require("crypto")),Bm=new Uint8Array(256),Cm=Bm.length});var G8,Y8=Ve(()=>{G8=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function YX(t){return typeof t=="string"&&G8.test(t)}var ta,Ip=Ve(()=>{Y8();ta=YX});function JX(t,e=0){let A=(OA[t[e+0]]+OA[t[e+1]]+OA[t[e+2]]+OA[t[e+3]]+"-"+OA[t[e+4]]+OA[t[e+5]]+"-"+OA[t[e+6]]+OA[t[e+7]]+"-"+OA[t[e+8]]+OA[t[e+9]]+"-"+OA[t[e+10]]+OA[t[e+11]]+OA[t[e+12]]+OA[t[e+13]]+OA[t[e+14]]+OA[t[e+15]]).toLowerCase();if(!ta(A))throw TypeError("Stringified UUID is invalid");return A}var OA,Aa,yp=Ve(()=>{Ip();OA=[];for(let t=0;t<256;++t)OA.push((t+256).toString(16).substr(1));Aa=JX});function VX(t,e,A){let r=e&&A||0,i=e||new Array(16);t=t||{};let s=t.node||J8,n=t.clockseq!==void 0?t.clockseq:Q0;if(s==null||n==null){let p=t.random||(t.rng||Qp)();s==null&&(s=J8=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),n==null&&(n=Q0=(p[6]<<8|p[7])&16383)}let a=t.msecs!==void 0?t.msecs:Date.now(),o=t.nsecs!==void 0?t.nsecs:y0+1,c=a-I0+(o-y0)/1e4;if(c<0&&t.clockseq===void 0&&(n=n+1&16383),(c<0||a>I0)&&t.nsecs===void 0&&(o=0),o>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");I0=a,y0=o,Q0=n,a+=122192928e5;let l=((a&268435455)*1e4+o)%4294967296;i[r++]=l>>>24&255,i[r++]=l>>>16&255,i[r++]=l>>>8&255,i[r++]=l&255;let d=a/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=d&255,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r+
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),r.removeSocket(i)}};an.prototype.removeSocket=function(e){var A=this.sockets.indexOf(e);if(A!==-1){this.sockets.splice(A,1);var r=this.requests.shift();r&&this.createSocket(r,function(i){r.request.onSocket(i)})}};function C5(t,e){var A=this;an.prototype.createSocket.call(A,t,function(r){var i=t.request.getHeader("host"),s=R0({},A.options,{socket:r,servername:i?i.replace(/:.*$/,""):t.host}),n=lK.connect(0,s);A.sockets[A.sockets.indexOf(r)]=n,e(n)})}function B5(t,e,A){return typeof t=="string"?{host:t,port:e,localAddress:A}:t}function R0(t){for(var e=1,A=arguments.length;e<A;++e){var r=arguments[e];if(typeof r=="object")for(var i=Object.keys(r),s=0,n=i.length;s<n;++s){var a=i[s];r[a]!==void 0&&(t[a]=r[a])}}return t}var ra;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ra=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)}:ra=function(){};Fc.debug=ra});var ym=f((WNe,I5)=>{I5.exports=Q5()});var St=f((jNe,y5)=>{y5.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"),kHeadersList:Symbol("headers list"),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"),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"),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"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version")}});var ht=f((XNe,w5)=>{"use strict";var cA=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}},v0=class t extends cA{constructor(e){super(e),Error.captureStackTrace(this,t),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}},D0=class t extends cA{constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}},S0=class t extends cA{constructor(e){super(e),Error.captureStackTrace(this,t),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}},k0=class t extends cA{constructor(e){super(e),Error.captureStackTrace(this,t),this.name="BodyTimeoutError",this.message=e||"Body Timeout Er
\r
`),$K=/\r\n/g,eZ=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Tc(t){J5.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=Y5(t,"maxHeaderPairs",2e3),this.maxHeaderSize=Y5(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new KK(ZK),this.ss.on("info",function(A,r,i,s){r&&!e.maxed&&(e.nread+s-i>=e.maxHeaderSize?(s=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=s-i,e.buffer+=r.toString("binary",i,s)),A&&e._finish()})}XK(Tc,J5);Tc.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Tc.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Tc.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Tc.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split($K),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let s=t[i].indexOf(":");if(s===-1||s===0)return;if(A=eZ.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};V5.exports=Tc});var $0=f((rxe,j5)=>{"use strict";var Z0=require("node:stream").Writable,tZ=require("node:util").inherits,AZ=X0(),W5=H5(),rZ=z5(),iZ=45,sZ=Buffer.from("-"),nZ=Buffer.from(`\r
`),aZ=function(){};function Zi(t){if(!(this instanceof Zi))return new Zi(t);if(Z0.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new rZ(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}tZ(Zi,Z0);Zi.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else Z0.prototype.emit.apply(this,arguments)};Zi.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new W5(this._partOpts),this._events.preamble?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(nZ),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};Zi.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};Zi.prototype.setBoundary=function(t){let e=this;this._bparser=new AZ(`\r
--`+t),this._bparser.on("info",function(A,r,i,s){e._oninfo(A,r,i,s)})};Zi.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",aZ),this._part.resume())};Zi.prototype._oninfo=function(t,e,A,r){let i,s=this,n=0,a,o=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+n<r;)if(e[A+n]===iZ)++n,++this._dashes;else{this._dashes&&(i=sZ),this._dashes=0;break}if(this._dashes===2&&(A+n<r&&this._events.trailer&&this.emit("trailer",e.slice(A+n,r)),this.reset(),this._finished=!0,s._parts===0&&(s._realFinish=!0,s.emit("finish"),s._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new W5(this._partOpts),this._part._read=function(c){s._unpause()},this._isPreamble&&this._events.preamble?this.emit("preamble",this._part):this._isPreamble!==!0&&this._events.part?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(o=this._part.push(i)),o=this._part.push(e.slice(A,r)),o||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),a=this._hparser.push(e.slice(A,r)),!this._inHeader&&a!==void 0&&a<r&&this._oninfo(!1,e,A+a,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--s._parts===0&&(s._finished?(s._realFinish=!0,s.emit("finish"),s._realFinish=!1):s._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};Zi.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};j5.exports=Zi});var Dm=f((ixe,K5)=>{"use strict";var X5=new TextDecoder("utf-8"),vm=new Map([["utf-8",X5],["utf8",X5]]);function oZ(t,e,A){if(t)if(vm.has(A))try{return vm.get(A).decode(Buffer.from(t,e))}catch{}else try{return vm.set(A,new TextDecoder(A)),vm.get(A).decode(Buffer.from(t,e))}catch{}return t}K5.exports=oZ});var eQ=f((sxe,eN)=>{"use strict";var Sm=Dm(),Z5=/%([a-fA-F0-9]{2})/g;function $5(t,e){return String.fromCharCode(parseInt(e,16))}function cZ(t){let e=[],A="key",r="",i=!1,s=!1,n=0,a="";for(var o=0,c=t.length;o<c;++o){let l=t[o];if(l==="\\"&&i)if(s)s=!1;else{s=!0;continue}else if(l==='"')if(s)s=!1;else{i?(i=!1,A="key"):i=!0;continue}else if(s&&i&&(a+="\\"),s=!1,(A==="charset"||A==="lang")&&l==="'"){A==="charset"?(A="lang",r=a.substring(1)):A="value",a="";continue}else if(A==="key"&&(l==="*"||l==="=")&&e.length){l==="*"?A="charset":A="value",e[n]=[a,void 0],a="";continue}else if(!i&&l===";"){A="key",r?(a.length&&(a=Sm(a.replace(Z5,$5),"binary",r)),r=""):a.length&&(a=Sm(a,"binary","utf8")),e[n]===void 0?e[n]=a:e[n][1]=a,a="",++n;continue}else if(!i&&(l===" "||l===" "))continue;a+=l}return r&&a.length?a=Sm(a.replace(Z5,$5),"binary",r):a&&(a=Sm(a,"binary","utf8")),e[n]===void 0?a&&(e[n]=a):e[n][1]=a,e}eN.exports=cZ});var AN=f((nxe,tN)=>{"use strict";tN.exports=function(e){if(typeof e!="string")return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return e=e.slice(A+1),e===".."||e==="."?"":e}return e===".."||e==="."?"":e}});var nN=f((axe,sN)=>{"use strict";var{Readable:iN}=require("node:stream"),{inherits:lZ}=require("node:util"),dZ=$0(),rN=eQ(),pZ=Dm(),uZ=AN(),go=Rm(),gZ=/^boundary$/i,mZ=/^form-data$/i,hZ=/^charset$/i,EZ=/^filename$/i,fZ=/^name$/i;km.detect=/^multipart\/form-data/i;function km(t,e){let A,r,i=this,s,n=e.limits,a=e.isPartAFile||((v,D,L)=>D==="application/octet-stream"||L!==void 0),o=e.parsedConType||[],c=e.defCharset||"utf8",l=e.preservePath,d={highWaterMark:e.fileHwm};for(A=0,r=o.length;A<r;++A)if(Array.isArray(o[A])&&gZ.test(o[A][0])){s=o[A][1];break}function p(){w===0&&S&&!t._done&&(S=!1,i.end())}if(typeof s!="string")throw new Error("Multipart: Boundary not found");let u=go(n,"fieldSize",1*1024*1024),g=go(n,"fileSize",1/0),m=go(n,"files",1/0),C=go(n,"fields",1/0),Q=go(n,"parts",1/0),N=go(n,"headerPairs",2e3),B=go(n,"headerSize",80*1024),h=0,E=0,w=0,R,y,S=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this
`))}function a$(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let s=r.length;s!==0;s--){let n=r[s-1].trim();if(WZ.includes(n)){i=n;break}}i!==""&&(t.referrerPolicy=i)}function o$(){return"allowed"}function c$(){return"success"}function l$(){return"success"}function d$(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function p$(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&oQ(t.origin)&&!oQ(Rp(t))&&(e=null);break;case"same-origin":Lm(t,Rp(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function u$(t){return XZ.now()}function g$(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 m$(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function h$(t){return{referrerPolicy:t.referrerPolicy}}function E$(t){let e=t.referrerPolicy;_c(e);let A=null;if(t.referrer==="client"){let a=jZ();if(!a||a.origin==="null")return"no-referrer";A=new URL(a)}else t.referrer instanceof URL&&(A=t.referrer);let r=nQ(A),i=nQ(A,!0);r.toString().length>4096&&(r=i);let s=Lm(t,r),n=Np(r)&&!Np(t.url);switch(e){case"origin":return i??nQ(A,!0);case"unsafe-url":return r;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?r:i;case"strict-origin-when-cross-origin":{let a=Rp(t);return Lm(r,a)?r:Np(r)&&!Np(a)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return n?"no-referrer":i}}function nQ(t,e){return _c(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Np(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}function f$(t,e){if(xp===void 0)return!0;let A=B$(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((n,a)=>a.algo.localeCompare(n.algo)),i=r[0].algo,s=r.filter(n=>n.algo===i);for(let n of s){let a=n.algo,o=n.hash;o.endsWith("==")&&(o=o.slice(0,-2));let c=xp.createHash(a).update(t).digest("base64");if(c.endsWith("==")&&(c=c.slice(0,-2)),c===o)return!0;let l=xp.createHash(a).update(t).digest("base64url");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===o)return!0}return!1}var C$=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function B$(t){let e=[],A=!0,r=xp.getHashes();for(let i of t.split(" ")){A=!1;let s=C$.exec(i);if(s===null||s.groups===void 0)continue;let n=s.groups.algo;r.includes(n.toLowerCase())&&e.push(s.groups)}return A===!0?"no metadata":e}function Q$(t){}function Lm(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function I$(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}function y$(t){return t.controller.state==="aborted"}function w$(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function b$(t){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(t)?t.toUpperCase():t}function N$(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return _c(typeof e=="string"),e}var x$=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function R$(t,e,A){let r={index:0,kind:A,target:t},i={next(
`||t===" "||t===" "}function cQ(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&bN(t[r]);r++);if(A)for(;i>0&&bN(t[i]);i--);return t.slice(r,i+1)}function NN(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function W$(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&NN(t[r]);r++);if(A)for(;i>0&&NN(t[i]);i--);return t.slice(r,i+1)}DN.exports={dataURLProcessor:Y$,URLSerializer:xN,collectASequenceOfCodePoints:Mm,collectASequenceOfCodePointsFast:qc,stringPercentDecode:RN,parseMIMEType:lQ,collectAnHTTPQuotedString:vN,serializeAMimeType:z$}});var Om=f((Exe,TN)=>{"use strict";var{Blob:FN,File:SN}=require("buffer"),{types:dQ}=require("util"),{kState:jr}=cn(),{isBlobLike:LN}=xi(),{webidl:je}=lr(),{parseMIMEType:j$,serializeAMimeType:X$}=$i(),{kEnumerableProperty:kN}=He(),vp=class t extends FN{constructor(e,A,r={}){je.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=je.converters["sequence<BlobPart>"](e),A=je.converters.USVString(A),r=je.converters.FilePropertyBag(r);let i=A,s=r.type,n;e:{if(s){if(s=j$(s),s==="failure"){s="";break e}s=X$(s).toLowerCase()}n=r.lastModified}super(K$(e,r),{type:s}),this[jr]={name:i,lastModified:n,type:s}}get name(){return je.brandCheck(this,t),this[jr].name}get lastModified(){return je.brandCheck(this,t),this[jr].lastModified}get type(){return je.brandCheck(this,t),this[jr].type}},pQ=class t{constructor(e,A,r={}){let i=A,s=r.type,n=r.lastModified??Date.now();this[jr]={blobLike:e,name:i,type:s,lastModified:n}}stream(...e){return je.brandCheck(this,t),this[jr].blobLike.stream(...e)}arrayBuffer(...e){return je.brandCheck(this,t),this[jr].blobLike.arrayBuffer(...e)}slice(...e){return je.brandCheck(this,t),this[jr].blobLike.slice(...e)}text(...e){return je.brandCheck(this,t),this[jr].blobLike.text(...e)}get size(){return je.brandCheck(this,t),this[jr].blobLike.size}get type(){return je.brandCheck(this,t),this[jr].blobLike.type}get name(){return je.brandCheck(this,t),this[jr].name}get lastModified(){return je.brandCheck(this,t),this[jr].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(vp.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:kN,lastModified:kN});je.converters.Blob=je.interfaceConverter(FN);je.converters.BlobPart=function(t,e){if(je.util.Type(t)==="Object"){if(LN(t))return je.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||dQ.isAnyArrayBuffer(t))return je.converters.BufferSource(t,e)}return je.converters.USVString(t,e)};je.converters["sequence<BlobPart>"]=je.sequenceConverter(je.converters.BlobPart);je.converters.FilePropertyBag=je.dictionaryConverter([{key:"lastModified",converter:je.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:je.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=je.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function K$(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=Z$(i)),A.push(new TextEncoder().encode(i))}else dQ.isAnyArrayBuffer(r)||dQ.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):LN(r)&&A.push(r);return A}function Z$(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function $$(t){return SN&&t instanceof SN||t instanceof vp||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}TN.exports={File:vp,FileLike:pQ,isFileLike:$$}});var _m=f((fxe,_N)=>{"use strict";var{isBlobLike:Pm,toUSVString:eee,makeIterator:uQ}=xi(),{kState:ZA}=cn(),{File:PN,FileLike:UN,isFileLike:tee}=Om(),{webidl:st}=lr(),{Blob:Aee,File:gQ}=require("buffer"),MN=gQ??PN,Hc=class t{constructor(e){if(e!==void 0)throw st.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[ZA]=[]}append(e,A,r=void 0){if(st.brandCheck(this,t),st.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!Pm(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=st.converters.USVString(e),A=Pm(A)?st.converters.Blob(A,{strict:!1}):st.converters.USVString(A),r=arguments.length===3?st.converters.USVString(r):void 0;let i=ON(e,A,r);this[ZA].push(i)}delete(e){st.brandCheck(this,t),st.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=st.converters.USVString(e),this[ZA]=this[ZA].filter(A=>A.name!==e)}get(e){st.brandCheck(this,t),st.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=st.converters.USVString(e);let A=this[ZA].findIndex(r=>r.name===e);return A===-1?null:this[ZA][A].value}getAll(e){return st.brandCheck(this,t),st.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=st.converters.USVString(e),this[ZA].filter(A=>A.name===e).map(A=>A.value)}has(e){return st.brandCheck(this,t),st.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=st.converters.USVString(e),this[ZA].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(st.brandCheck(this,t),st.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!Pm(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=st.converters.USVString(e),A=Pm(A)?st.converters.Blob(A,{strict:!1}):st.converters.USVString(A),r=arguments.length===3?eee(r):void 0;let i=ON(e,A,r),s=this[ZA].findIndex(n=>n.name===e);s!==-1?this[ZA]=[...this[ZA].slice(0,s),i,...this[ZA].slice(s+1).filter(n=>n.name!==e)]:this[ZA].push(i)}entries(){return st.brandCheck(this,t),uQ(()=>this[ZA].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return st.brandCheck(this,t),uQ(()=>this[ZA].map(e=>[e.name,e.value]),"FormData","key")}values(){return st.brandCheck(this,t),uQ(()=>this[ZA].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(st.brandCheck(this,t),st.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};Hc.prototype[Symbol.iterator]=Hc.prototype.entries;Object.defineProperties(Hc.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function ON(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(tee(e)||(e=e instanceof Aee?new MN([e],"blob",{type:e.type}):new UN(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=gQ&&e instanceof gQ||e instanceof PN?new MN([e],A,r):new UN(e,A,r)}return{name:t,value:e}}_N.exports={FormData:Hc}});var Dp=f((Cxe,jN)=>{"use strict";var ree=uN(),Gc=He(),{ReadableStreamFrom:iee,isBlobLike:qN,isReadableStreamLike:see,readableStreamClose:nee,createDeferredPromise:aee,fullyReadBody:oee}=xi(),{FormData:HN}=_m(),{kState:dn}=cn(),{webidl:mQ}=lr(),{DOMException:JN,structuredClone:cee}=na(),{Blob:lee,File:dee}=require("buffer"),{kBodyUsed:pee}=St(),hQ=require("assert"),{isErrored:uee}=He(),{isUint8Array:VN,isArrayBuffer:gee}=require("util/types"),{File:mee}=Om(),{parseMIMEType:hee,serializeAMimeType:Eee}=$i(),ln=globalThis.ReadableStream,GN=dee??mee;function zN(t,e=!1){ln||(ln=require("stream/web").ReadableStream);let A=null;t instanceof ln?A=t:qN(t)?A=t.stream():A=new ln({async pull(o){o.enqueue(typeof i=="string"?new Tex
Content-Disposition: form-data`;let l=Q=>Q.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=Q=>Q.replace(/\r?\n|\r/g,`\r
`),p=new TextEncoder,u=[],g=new Uint8Array([13,10]);s=0;let m=!1;for(let[Q,N]of t)if(typeof N=="string"){let B=p.encode(c+`; name="${l(d(Q))}"\r
\r
${d(N)}\r
`);u.push(B),s+=B.byteLength}else{let B=p.encode(`${c}; name="${l(d(Q))}"`+(N.name?`; filename="${l(N.name)}"`:"")+`\r
Content-Type: ${N.type||"application/octet-stream"}\r
\r
`);u.push(B,N,g),typeof N.size=="number"?s+=B.byteLength+N.size+g.byteLength:m=!0}let C=p.encode(`--${o}--`);u.push(C),s+=C.byteLength,m&&(s=null),i=t,r=async function*(){for(let Q of u)Q.stream?yield*Q.stream():yield Q},n="multipart/form-data; boundary="+o}else if(qN(t))i=t,s=t.size,t.type&&(n=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Gc.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof ln?t:iee(t)}if((typeof i=="string"||Gc.isBuffer(i))&&(s=Buffer.byteLength(i)),r!=null){let o;A=new ln({async start(){o=r(t)[Symbol.asyncIterator]()},async pull(c){let{value:l,done:d}=await o.next();return d?queueMicrotask(()=>{c.close()}):uee(A)||c.enqueue(new Uint8Array(l)),c.desiredSize>0},async cancel(c){await o.return()},type:void 0})}return[{stream:A,source:i,length:s},n]}function fee(t,e=!1){return ln||(ln=require("stream/web").ReadableStream),t instanceof ln&&(hQ(!Gc.isDisturbed(t),"The body has already been consumed."),hQ(!t.locked,"The stream is locked.")),zN(t,e)}function Cee(t){let[e,A]=t.stream.tee(),r=cee(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}async function*YN(t){if(t)if(VN(t))yield t;else{let e=t.stream;if(Gc.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[pee]=!0,yield*e}}function EQ(t){if(t.aborted)throw new JN("The operation was aborted.","AbortError")}function Bee(t){return{blob(){return qm(this,A=>{let r=wee(this);return r==="failure"?r="":r&&(r=Eee(r)),new lee([A],{type:r})},t)},arrayBuffer(){return qm(this,A=>new Uint8Array(A).buffer,t)},text(){return qm(this,WN,t)},json(){return qm(this,yee,t)},async formData(){mQ.brandCheck(this,t),EQ(this[dn]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[a,o]of this.headers)r[a.toLowerCase()]=o;let i=new HN,s;try{s=new ree({headers:r,preservePath:!0})}catch(a){throw new JN(`${a}`,"AbortError")}s.on("field",(a,o)=>{i.append(a,o)}),s.on("file",(a,o,c,l,d)=>{let p=[];if(l==="base64"||l.toLowerCase()==="base64"){let u="";o.on("data",g=>{u+=g.toString().replace(/[\r\n]/gm,"");let m=u.length-u.length%4;p.push(Buffer.from(u.slice(0,m),"base64")),u=u.slice(m)}),o.on("end",()=>{p.push(Buffer.from(u,"base64")),i.append(a,new GN(p,c,{type:d}))})}else o.on("data",u=>{p.push(u)}),o.on("end",()=>{i.append(a,new GN(p,c,{type:d}))})});let n=new Promise((a,o)=>{s.on("finish",a),s.on("error",c=>o(new TypeError(c)))});if(this.body!==null)for await(let a of YN(this[dn].body))s.write(a);return s.end(),await n,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let s="",n=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of YN(this[dn].body)){if(!VN(a))throw new TypeError("Expected Uint8Array chunk");s+=n.decode(a,{stream:!0})}s+=n.decode(),r=new URLSearchParams(s)}catch(s){throw Object.assign(new TypeError,{cause:s})}let i=new HN;for(let[s,n]of r)i.append(s,n);return i}else throw await Promise.resolve(),EQ(this[dn]),mQ.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function Qee(t){Object.assign(t.prototype,Bee(t))}async function qm(t,e,A){if(mQ.brandCheck(t,A),EQ(t[dn]),Iee(t[dn].body))throw new TypeError("Body is unusable");let r=aee(),i=n=>r.reject(n),s=n=>{try{r.resolve(e(n))}catch(a){i(a)}};return t[dn].body==null?(s(new Uint8Array),r.promise):(await oee(t[dn].body,s,i),r.promise)}function Iee(t){return t!=null&&(t.stream.locked||Gc.isDisturbed(t.stream))}function WN(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),new TextDecoder().decode(t))}function yee(t){return JSON.parse(WN(t))}function wee(t){let{headersList:e}=t[dn],A=e.get("content-type");return A===null?"failure":hee(A)}jN.exports={extractBody:zN,safelyExtractBody:fee,cloneBody:Cee,mixinBody:Qee}});var $N=f((Bxe,ZN)=>{"use strict";var{InvalidArgumentError:Et,NotSupportedError:bee}=ht(),pn=require("assert"),{kHTTP2BuildRequest:Nee,
`),this.body=C.stream,this.contentLength=C.length}else Xr.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
`);Xr.validateHandler(m,r,c),this.servername=Xr.getServerName(this.host),this[un]=m,lA.create.hasSubscribers&&lA.create.publish({request:this})}onBodySent(e){if(this[un].onBodySent)try{this[un].onBodySent(e)}catch(A){this.onError(A)}}onRequestSent(){lA.bodySent.hasSubscribers&&lA.bodySent.publish({request:this})}onConnect(e){return pn(!this.aborted),pn(!this.completed),this[un].onConnect(e)}onHeaders(e,A,r,i){return pn(!this.aborted),pn(!this.completed),lA.headers.hasSubscribers&&lA.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}}),this[un].onHeaders(e,A,r,i)}onData(e){return pn(!this.aborted),pn(!this.completed),this[un].onData(e)}onUpgrade(e,A,r){return pn(!this.aborted),pn(!this.completed),this[un].onUpgrade(e,A,r)}onComplete(e){return pn(!this.aborted),this.completed=!0,lA.trailers.hasSubscribers&&lA.trailers.publish({request:this,trailers:e}),this[un].onComplete(e)}onError(e){if(lA.error.hasSubscribers&&lA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[un].onError(e)}addHeader(e,A){return Sp(this,e,A),this}static[Ree](e,A,r){return new t(e,A,r)}static[Nee](e,A,r){let i=A.headers;A={...A,headers:null};let s=new t(e,A,r);if(s.headers={},Array.isArray(i)){if(i.length%2!==0)throw new Et("headers array must be even");for(let n=0;n<i.length;n+=2)Sp(s,i[n],i[n+1],!0)}else if(i&&typeof i=="object"){let n=Object.keys(i);for(let a=0;a<n.length;a++){let o=n[a];Sp(s,o,i[o],!0)}}else if(i!=null)throw new Et("headers must be an object or an array");return s}static[xee](e){let A=e.split(`\r
`),r={};for(let i of A){let[s,n]=i.split(": ");n==null||n.length===0||(r[s]?r[s]+=`,${n}`:r[s]=n)}return r}};function mo(t,e,A){if(e&&typeof e=="object")throw new Et(`invalid ${t} header`);if(e=e!=null?`${e}`:"",KN.exec(e)!==null)throw new Et(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}function Sp(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new Et(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(KN.exec(A)!==null)throw new Et(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new Et("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=mo(e,A,r):t.headers+=mo(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Et("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Et("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Et("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Et("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new bee("expect header not supported");if(XN.exec(e)===null)throw new Et("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${mo(e,A[i],r)}`:t.headers[e]=mo(e,A[i],r):t.headers+=mo(e,A[i]);else r?t.headers[e]=mo(e,A,r):t.headers+=mo(e,A)}}}ZN.exports=CQ});var Hm=f((Qxe,ex)=>{"use strict";var Dee=require("events"),BQ=class extends Dee{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};ex.exports=BQ});var Fp=f((Ixe,tx)=>{"use strict";var See=Hm(),{ClientDestroyedError:QQ,ClientClosedError:kee,InvalidArgumentError:Yc}=ht(),{kDestroy:Fee,kClose:Lee,kDispatch:IQ,kInterceptors:ho}=St(),Jc=Symbol("destroyed"),kp=Symbol("closed"),gn=Symbol("onDestroyed"),Vc=Symbol("onClosed"),Gm=Symbol("Intercepted Dispatch"),yQ=class extends See{constructor(){super(),this[Jc]=!1,this[gn]=null,this[kp]=!1,this[Vc]=[]}get destroyed(){return this[Jc]}get closed(){return this[kp]}get interceptors(){return this[ho]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[ho][A]!="function")throw new Yc("interceptor must be an function")}this[ho]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((s,n)=>s?i(s):r(n))});if(typeof e!="function")throw new Yc("invalid callback");if(this[Jc]){queueMicrotask(()=>e(new QQ,null));return}if(this[kp]){this[Vc]?this[Vc].push(e):queueMicrotask(()=>e(null,null));return}this[kp]=!0,this[Vc].push(e);let A=()=>{let r=this[Vc];this[Vc]=null;for(let i=0;i<r.length;i++)r[i](null,null)};this[Lee]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,s)=>{this.destroy(e,(n,a)=>n?s(n):i(a))});if(typeof A!="function")throw new Yc("invalid callback");if(this[Jc]){this[gn]?this[gn].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new QQ),this[Jc]=!0,this[gn]=this[gn]||[],this[gn].push(A);let r=()=>{let i=this[gn];this[gn]=null;for(let s=0;s<i.length;s++)i[s](null,null)};this[Fee](e).then(()=>{queueMicrotask(r)})}[Gm](e,A){if(!this[ho]||this[ho].length===0)return this[Gm]=this[IQ],this[IQ](e,A);let r=this[IQ].bind(this);for(let i=this[ho].length-1;i>=0;i--)r=this[ho][i](r);return this[Gm]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Yc("handler must be an object");try{if(!e||typeof e!="object")throw new Yc("opts must be an object.");if(this[Jc]||this[gn])throw new QQ;if(this[kp])throw new kee;return this[Gm](e,A)}catch(r){if(typeof A.onError!="function")throw new Yc("invalid onError method");return A.onError(r),!1}}};tx.exports=yQ});var Lp=f((bxe,ix)=>{"use strict";var Tee=require("net"),Ax=require("assert"),rx=He(),{InvalidArgumentError:Uee,ConnectTimeoutError:Mee}=ht(),wQ,bQ;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?bQ=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(
`,this[Qx]=o??3e5,this[Bx]=i??3e5,this[_p]=N??!0,this[gte]=h,this[qp]=w,this[oa]=null,this[yx]=y>-1?y:-1,this[Ns]="h1",this[Zr]=null,this[Km]=v?{openStreams:0,maxConcurrentStreams:D??100}:null,this[wx]=`${this[_A].hostname}${this[_A].port?`:${this[_A].port}`:""}`,this[yt]=[],this[wt]=0,this[Kr]=0}get pipelining(){return this[la]}set pipelining(e){this[la]=e,$r(this,!0)}get[Co](){return this[yt].length-this[Kr]}get[Ut](){return this[Kr]-this[wt]}get[fo](){return this[yt].length-this[wt]}get[ute](){return!!this[qt]&&!this[jc]&&!this[qt].destroyed}get[FQ](){let e=this[qt];return e&&(e[dr]||e[hn]||e[Kc])||this[fo]>=(this[la]||1)||this[Co]>0}[pte](e){Rx(this),this.once("connect",e)}[Ete](e,A){let r=e.origin||this[_A].origin,i=this[Ns]==="h2"?kQ[Cte](r,e,A):kQ[Qte](r,e,A);return this[yt].push(i),this[Eo]||(ne.bodyLength(i.body)==null&&ne.isIterable(i.body)?(this[Eo]=1,process.nextTick($r,this)):$r(this,!0)),this[Eo]&&this[ca]!==2&&this[FQ]&&(this[ca]=2),this[ca]<2}async[mte](){return new Promise(e=>{this[fo]?this[oa]=e:e(null)})}async[hte](e){return new Promise(A=>{let r=this[yt].splice(this[Kr]);for(let s=0;s<r.length;s++){let n=r[s];HA(this,n,e)}let i=()=>{this[oa]&&(this[oa](),this[oa]=null),A()};this[Zr]!=null&&(ne.destroy(this[Zr],e),this[Zr]=null,this[Km]=null),this[qt]?ne.destroy(this[qt].on("close",i),e):queueMicrotask(i),$r(this)})}};function vte(t){Z(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qt][qA]=t,th(this[bs],t)}function Dte(t,e,A){let r=new ws(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[qt][qA]=r,th(this[bs],r))}function Ste(){ne.destroy(this,new Xc("other side closed")),ne.destroy(this[qt],new Xc("other side closed"))}function kte(t){let e=this[bs],A=new ws(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[qt]=null,e[Zr]=null,e.destroyed){Z(this[Co]===0);let r=e[yt].splice(e[wt]);for(let i=0;i<r.length;i++){let s=r[i];HA(this,s,A)}}else if(e[Ut]>0){let r=e[yt][e[wt]];e[yt][e[wt]++]=null,HA(e,r,A)}e[Kr]=e[wt],Z(e[Ut]===0),e.emit("disconnect",e[_A],[e],A),$r(e)}var Qs=nx(),Fte=Vm(),Lte=Buffer.alloc(0);async function Tte(){let t=process.env.JEST_WORKER_ID?vQ():void 0,e;try{e=await WebAssembly.compile(Buffer.from(ux(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||vQ(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{Z.strictEqual(fA.ptr,A);let s=r-ys+Is.byteOffset;return fA.onStatus(new zm(Is.buffer,s,i))||0},wasm_on_message_begin:A=>(Z.strictEqual(fA.ptr,A),fA.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{Z.strictEqual(fA.ptr,A);let s=r-ys+Is.byteOffset;return fA.onHeaderField(new zm(Is.buffer,s,i))||0},wasm_on_header_value:(A,r,i)=>{Z.strictEqual(fA.ptr,A);let s=r-ys+Is.byteOffset;return fA.onHeaderValue(new zm(Is.buffer,s,i))||0},wasm_on_headers_complete:(A,r,i,s)=>(Z.strictEqual(fA.ptr,A),fA.onHeadersComplete(r,!!i,!!s)||0),wasm_on_body:(A,r,i)=>{Z.strictEqual(fA.ptr,A);let s=r-ys+Is.byteOffset;return fA.onBody(new zm(Is.buffer,s,i))||0},wasm_on_message_complete:A=>(Z.strictEqual(fA.ptr,A),fA.onMessageComplete()||0)}})}var SQ=null,UQ=Tte();UQ.catch();var fA=null,Is=null,Wm=0,ys=null,Zc=1,Xm=2,MQ=3,OQ=class{constructor(e,A,{exports:r}){Z(Number.isFinite(e[jm])&&e[jm]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Qs.TYPE.RESPONSE),this.client=e,this.socket=A,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[jm],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[yx]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(DQ.clearTimeout(this.timeout),e?(this.timeout=DQ.setTimeout(Ute,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||(Z(this.ptr!=null),Z(fA==null),this.llhttp.llhttp_resume(this.ptr),Z(this.timeoutTy
`;return typeof s=="string"?u+=`host: ${s}\r
`:u+=t[Ex],n?u+=`connection: upgrade\r
upgrade: ${n}\r
`:t[la]&&!p[dr]?u+=`connection: keep-alive\r
`:u+=`connection: close\r
`,a&&(u+=a),$A.sendHeaders.hasSubscribers&&$A.sendHeaders.publish({request:e,headers:u,socket:p}),A?ne.isBuffer(A)?(Z(d===A.byteLength,"buffer body must have content length"),p.cork(),p.write(`${u}content-length: ${d}\r
\r
`,"latin1"),p.write(A),p.uncork(),e.onBodySent(A),e.onRequestSent(),l||(p[dr]=!0)):ne.isBlobLike(A)?typeof A.stream=="function"?$m({body:A.stream(),client:t,request:e,socket:p,contentLength:d,header:u,expectsPayload:l}):Dx({body:A,client:t,request:e,socket:p,contentLength:d,header:u,expectsPayload:l}):ne.isStream(A)?vx({body:A,client:t,request:e,socket:p,contentLength:d,header:u,expectsPayload:l}):ne.isIterable(A)?$m({body:A,client:t,request:e,socket:p,contentLength:d,header:u,expectsPayload:l}):Z(!1):(d===0?p.write(`${u}content-length: 0\r
\r
`,"latin1"):(Z(d===null,"no body must not have content length"),p.write(`${u}\r
`,"latin1")),e.onRequestSent()),!0}function Pte(t,e,A){let{body:r,method:i,path:s,host:n,upgrade:a,expectContinue:o,signal:c,headers:l}=A,d;if(typeof l=="string"?d=kQ[Bte](l.trim()):d=l,a)return HA(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(N=>{A.aborted||A.completed||HA(t,A,N||new _Q)})}catch(N){HA(t,A,N)}if(A.aborted)return!1;let p,u=t[Km];if(d[Ite]=n||t[wx],d[yte]=i,i==="CONNECT")return e.ref(),p=e.request(d,{endStream:!1,signal:c}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++u.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++u.openStreams}),p.once("close",()=>{u.openStreams-=1,u.openStreams===0&&e.unref()}),!0;d[wte]=s,d[bte]="https";let g=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=ne.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!g)&&(m=null),A.contentLength!=null&&A.contentLength!==m){if(t[_p])return HA(t,A,new mn),!1;process.emitWarning(new mn)}m!=null&&(Z(r,"no body must not have content length"),d[Nte]=`${m}`),e.ref();let C=i==="GET"||i==="HEAD";return o?(d[xte]="100-continue",p=e.request(d,{endStream:C,signal:c}),p.once("continue",Q)):(p=e.request(d,{endStream:C,signal:c}),Q()),++u.openStreams,p.once("response",N=>{A.onHeaders(Number(N[Rte]),N,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",N=>{A.onData(N)===!1&&p.pause()}),p.once("close",()=>{u.openStreams-=1,u.openStreams===0&&e.unref()}),p.once("error",function(N){t[Zr]&&!t[Zr].destroyed&&!this.closed&&!this.destroyed&&(u.streams-=1,ne.destroy(p,N))}),p.once("frameError",(N,B)=>{let h=new ws(`HTTP/2: "frameError" received - type ${N}, code ${B}`);HA(t,A,h),t[Zr]&&!t[Zr].destroyed&&!this.closed&&!this.destroyed&&(u.streams-=1,ne.destroy(p,h))}),!0;function Q(){r?ne.isBuffer(r)?(Z(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):ne.isBlobLike(r)?typeof r.stream=="function"?$m({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:g,body:r.stream(),socket:t[qt],header:""}):Dx({body:r,client:t,request:A,contentLength:m,expectsPayload:g,h2stream:p,header:"",socket:t[qt]}):ne.isStream(r)?vx({body:r,client:t,request:A,contentLength:m,expectsPayload:g,socket:t[qt],h2stream:p,header:""}):ne.isIterable(r)?$m({body:r,client:t,request:A,contentLength:m,expectsPayload:g,header:"",h2stream:p,socket:t[qt]}):Z(!1):A.onRequestSent()}}function vx({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:s,header:n,expectsPayload:a}){if(Z(s!==0||A[Ut]===0,"stream body cannot be pipelined"),A[Ns]==="h2"){let m=function(C){r.onBodySent(C)},g=Ate(e,t,C=>{C?(ne.destroy(e,C),ne.destroy(t,C)):r.onRequestSent()});g.on("data",m),g.once("end",()=>{g.removeListener("data",m),ne.destroy(g)});return}let o=!1,c=new eh({socket:i,request:r,contentLength:s,client:A,expectsPayload:a,header:n}),l=function(g){if(!o)try{!c.write(g)&&this.pause&&this.pause()}catch(m){ne.destroy(this,m)}},d=function(){o||e.resume&&e.resume()},p=function(){u(new _Q)},u=function(g){if(!o){if(o=!0,Z(i.destroyed||i[hn]&&A[Ut]<=1),i.off("drain",d).off("error",u),e.removeListener("data",l).removeListener("end",u).removeListener("error",u).removeListener("close",p),!g)try{c.end()}catch(m){g=m}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ne.destroy(e,g):ne.destroy(e)}};e.on("data",l).on("end",u).on("error",u).on("close",p),e.resume&&e.resume(),i.on("drain",d).on("error",u)}async function Dx({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:s,header:n,expectsPayload:a}){Z(s===e.size,"blob body must have content length");let o=A[Ns]==="h2";try{if(s!=null&&s!==e.size)throw new mn;let c=Buffer.from(await e.arrayBuffer());o?(t.cork(),t.write(c),t.uncork()):(i.cork(),i.write(`${n}content-length: ${s}\r
\r
`,"latin1"),i.write(c),i.uncork()),r.onBodySent(c),r.onRequestSent(),a||(i[dr]=!0),$r(A)}catch(c){ne.destroy(o?t:i,c)}}async function $m({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:s,header:n,expectsPayload:a}){Z(s!==0||A[Ut]===0,"iterator body cannot be pipelined");let o=null;function c(){if(o){let p=o;o=null,p()}}let l=()=>new Promise((p,u)=>{Z(o===null),i[qA]?u(i[qA]):o=p});if(A[Ns]==="h2"){t.on("close",c).on("drain",c);try{for await(let p of e){if(i[qA])throw i[qA];let u=t.write(p);r.onBodySent(p),u||await l()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}i.on("close",c).on("drain",c);let d=new eh({socket:i,request:r,contentLength:s,client:A,expectsPayload:a,header:n});try{for await(let p of e){if(i[qA])throw i[qA];d.write(p)||await l()}d.end()}catch(p){d.destroy(p)}finally{i.off("close",c).off("drain",c)}}var eh=class{constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:s,header:n}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=s,this.header=n,e[hn]=!0}write(e){let{socket:A,request:r,contentLength:i,client:s,bytesWritten:n,expectsPayload:a,header:o}=this;if(A[qA])throw A[qA];if(A.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(i!==null&&n+c>i){if(s[_p])throw new mn;process.emitWarning(new mn)}A.cork(),n===0&&(a||(A[dr]=!0),i===null?A.write(`${o}transfer-encoding: chunked\r
`,"latin1"):A.write(`${o}content-length: ${i}\r
\r
`,"latin1")),i===null&&A.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let l=A.write(e);return A.uncork(),r.onBodySent(e),l||A[_t].timeout&&A[_t].timeoutType===Zc&&A[_t].timeout.refresh&&A[_t].timeout.refresh(),l}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:s,header:n,request:a}=this;if(a.onRequestSent(),e[hn]=!1,e[qA])throw e[qA];if(!e.destroyed){if(i===0?s?e.write(`${n}content-length: 0\r
\r
`,"latin1"):e.write(`${n}\r
`,"latin1"):A===null&&e.write(`\r
0\r
\r
`,"latin1"),A!==null&&i!==A){if(r[_p])throw new mn;process.emitWarning(new mn)}e[_t].timeout&&e[_t].timeoutType===Zc&&e[_t].timeout.refresh&&e[_t].timeout.refresh(),$r(r)}}destroy(e){let{socket:A,client:r}=this;A[hn]=!1,e&&(Z(r[Ut]<=1,"pipeline should only contain this request"),ne.destroy(A,e))}};function HA(t,e,A){try{e.onError(A),Z(e.aborted)}catch(r){t.emit("error",r)}}Sx.exports=TQ});var Fx=f((Lxe,kx)=>{"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)}};kx.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,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var Tx=f((Txe,Lx)=>{var{kFree:_te,kConnected:qte,kPending:Hte,kQueued:Gte,kRunning:Yte,kSize:Jte}=St(),Bo=Symbol("pool"),qQ=class{constructor(e){this[Bo]=e}get connected(){return this[Bo][qte]}get free(){return this[Bo][_te]}get pending(){return this[Bo][Hte]}get queued(){return this[Bo][Gte]}get running(){return this[Bo][Yte]}get size(){return this[Bo][Jte]}};Lx.exports=qQ});var zQ=f((Uxe,Jx)=>{"use strict";var Vte=Fp(),zte=Fx(),{kConnected:HQ,kSize:Ux,kRunning:Mx,kPending:Ox,kQueued:Gp,kBusy:Wte,kFree:jte,kUrl:Xte,kClose:Kte,kDestroy:Zte,kDispatch:$te}=St(),eAe=Tx(),xr=Symbol("clients"),pr=Symbol("needDrain"),Yp=Symbol("queue"),GQ=Symbol("closed resolve"),YQ=Symbol("onDrain"),Px=Symbol("onConnect"),_x=Symbol("onDisconnect"),qx=Symbol("onConnectionError"),JQ=Symbol("get dispatcher"),Gx=Symbol("add client"),Yx=Symbol("remove client"),Hx=Symbol("stats"),VQ=class extends Vte{constructor(){super(),this[Yp]=new zte,this[xr]=[],this[Gp]=0;let e=this;this[YQ]=function(r,i){let s=e[Yp],n=!1;for(;!n;){let a=s.shift();if(!a)break;e[Gp]--,n=!this.dispatch(a.opts,a.handler)}this[pr]=n,!this[pr]&&e[pr]&&(e[pr]=!1,e.emit("drain",r,[e,...i])),e[GQ]&&s.isEmpty()&&Promise.all(e[xr].map(a=>a.close())).then(e[GQ])},this[Px]=(A,r)=>{e.emit("connect",A,[e,...r])},this[_x]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[qx]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[Hx]=new eAe(this)}get[Wte](){return this[pr]}get[HQ](){return this[xr].filter(e=>e[HQ]).length}get[jte](){return this[xr].filter(e=>e[HQ]&&!e[pr]).length}get[Ox](){let e=this[Gp];for(let{[Ox]:A}of this[xr])e+=A;return e}get[Mx](){let e=0;for(let{[Mx]:A}of this[xr])e+=A;return e}get[Ux](){let e=this[Gp];for(let{[Ux]:A}of this[xr])e+=A;return e}get stats(){return this[Hx]}async[Kte](){return this[Yp].isEmpty()?Promise.all(this[xr].map(e=>e.close())):new Promise(e=>{this[GQ]=e})}async[Zte](e){for(;;){let A=this[Yp].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[xr].map(A=>A.destroy(e)))}[$te](e,A){let r=this[JQ]();return r?r.dispatch(e,A)||(r[pr]=!0,this[pr]=!this[JQ]()):(this[pr]=!0,this[Yp].push({opts:e,handler:A}),this[Gp]++),!this[pr]}[Gx](e){return e.on("drain",this[YQ]).on("connect",this[Px]).on("disconnect",this[_x]).on("connectionError",this[qx]),this[xr].push(e),this[pr]&&process.nextTick(()=>{this[pr]&&this[YQ](e[Xte],[this,e])}),this}[Yx](e){e.close(()=>{let A=this[xr].indexOf(e);A!==-1&&this[xr].splice(A,1)}),this[pr]=this[xr].some(A=>!A[pr]&&A.closed!==!0&&A.destroyed!==!0)}};Jx.exports={PoolBase:VQ,kClients:xr,kNeedDrain:pr,kAddClient:Gx,kRemoveClient:Yx,kGetDispatcher:JQ}});var $c=f((Mxe,jx)=>{"use strict";var{PoolBase:tAe,kClients:Vx,kNeedDrain:AAe,kAddClient:rAe,kGetDispatcher:iAe}=zQ(),sAe=Hp(),{InvalidArgumentError:WQ}=ht(),jQ=He(),{kUrl:zx,kInterceptors:nAe}=St(),aAe=Lp(),XQ=Symbol("options"),KQ=Symbol("connections"),Wx=Symbol("factory");function oAe(t,e){return new sAe(t,e)}var ZQ=class extends tAe{constructor(e,{connections:A,factory:r=oAe,connect:i,connectTimeout:s,tls:n,maxCachedSessions:a
${r.count} ${r.noun} ${r.is} pending:
${e.format(A)}
`.trim())}};xv.exports=UI});var Lv=f((oRe,Fv)=>{"use strict";var{kProxy:cie,kClose:lie,kDestroy:die,kInterceptors:pie}=St(),{URL:vv}=require("url"),Dv=Vp(),uie=$c(),gie=Fp(),{InvalidArgumentError:Xp,RequestAbortedError:mie}=ht(),Sv=Lp(),jp=Symbol("proxy agent"),Qh=Symbol("proxy client"),Ih=Symbol("proxy headers"),MI=Symbol("request tls settings"),hie=Symbol("proxy tls settings"),kv=Symbol("connect endpoint function");function Eie(t){return t==="https:"?443:80}function fie(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new Xp("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function Cie(t,e){return new uie(t,e)}var OI=class extends gie{constructor(e){if(super(e),this[cie]=fie(e),this[jp]=new Dv(e),this[pie]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new Xp("Proxy opts.uri is mandatory");let{clientFactory:A=Cie}=e;if(typeof A!="function")throw new Xp("Proxy opts.clientFactory must be a function.");if(this[MI]=e.requestTls,this[hie]=e.proxyTls,this[Ih]=e.headers||{},e.auth&&e.token)throw new Xp("opts.auth cannot be used in combination with opts.token");e.auth?this[Ih]["proxy-authorization"]=`Basic ${e.auth}`:e.token&&(this[Ih]["proxy-authorization"]=e.token);let r=new vv(e.uri),{origin:i,port:s,host:n}=r,a=Sv({...e.proxyTls});this[kv]=Sv({...e.requestTls}),this[Qh]=A(r,{connect:a}),this[jp]=new Dv({...e,connect:async(o,c)=>{let l=o.host;o.port||(l+=`:${Eie(o.protocol)}`);try{let{socket:d,statusCode:p}=await this[Qh].connect({origin:i,port:s,path:l,signal:o.signal,headers:{...this[Ih],host:n}});if(p!==200&&(d.on("error",()=>{}).destroy(),c(new mie("Proxy response !== 200 when HTTP Tunneling"))),o.protocol!=="https:"){c(null,d);return}let u;this[MI]?u=this[MI].servername:u=o.servername,this[kv]({...o,servername:u,httpSocket:d},c)}catch(d){c(d)}}})}dispatch(e,A){let{host:r}=new vv(e.origin),i=Bie(e.headers);return Qie(i),this[jp].dispatch({...e,headers:{...i,host:r}},A)}async[lie](){await this[jp].close(),await this[Qh].close()}async[die](){await this[jp].destroy(),await this[Qh].destroy()}};function Bie(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}function Qie(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new Xp("Proxy-Authorization should be sent in ProxyAgent constructor")}Fv.exports=OI});var cl=f((cRe,Ov)=>{"use strict";var Tv=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Iie}=ht(),yie=Vp();Mv()===void 0&&Uv(new yie);function Uv(t){if(!t||typeof t.dispatch!="function")throw new Iie("Argument agent must implement Agent");Object.defineProperty(globalThis,Tv,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Mv(){return globalThis[Tv]}Ov.exports={setGlobalDispatcher:Uv,getGlobalDispatcher:Mv}});var _v=f((dRe,Pv)=>{"use strict";Pv.exports=class{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}});var xo=f((pRe,Yv)=>{"use strict";var{kHeadersList:Rr}=St(),{kGuard:No}=cn(),{kEnumerableProperty:Rs}=He(),{makeIterator:PI,isValidHeaderName:Kp,isValidHeaderValue:qv}=xi(),{webidl:ke}=lr(),wie=require("assert"),vr=Symbol("headers map"),Dr=Symbol("headers map sorted");function Hv(t){let e=t.length;for(;/[\r\n\t ]/.test(t.charAt(--e)););return t.slice(0,e+1).replace(/^[\r\n\t ]+/,"")}function Gv(t,e){if(Array.isArray(e))for(let A of e){if(A.length!==2)throw ke.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${A.length}.`});t.append(A[0],A[1])}else if(typeof e=="object"&&e!==null)for(let[A,r]of Object.entries(e))t.append(A,r);else throw ke.errors.conversionFailed({prefix:"Headers constructo
2024-07-29 19:19:44 +00:00
Error Code : ${n.statusCode}
2024-07-29 19:19:44 +00:00
Error Message: ${n.message}`)})).result)===null||A===void 0?void 0:A.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(e){return HS(this,void 0,void 0,function*(){try{let A=t.getIDTokenUrl();if(e){let i=encodeURIComponent(e);A=`${A}&audience=${i}`}GS.debug(`ID token url is ${A}`);let r=yield t.getCall(A);return GS.setSecret(r),r}catch(A){throw new Error(`Error message: ${A.message}`)}})}};yl.OidcClient=v2});var F2=f(Fr=>{"use strict";var D2=Fr&&Fr.__awaiter||function(t,e,A,r){function i(s){return s instanceof A?s:new A(function(n){n(s)})}return new(A||(A=Promise))(function(s,n){function a(l){try{c(r.next(l))}catch(d){n(d)}}function o(l){try{c(r.throw(l))}catch(d){n(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,o)}c((r=r.apply(t,e||[])).next())})};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.summary=Fr.markdownSummary=Fr.SUMMARY_DOCS_URL=Fr.SUMMARY_ENV_VAR=void 0;var loe=require("os"),S2=require("fs"),{access:doe,appendFile:poe,writeFile:uoe}=S2.promises;Fr.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Fr.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";var k2=class{constructor(){this._buffer=""}filePath(){return D2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Fr.SUMMARY_ENV_VAR];if(!e)throw new Error(`Unable to find environment variable for $${Fr.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield doe(e,S2.constants.R_OK|S2.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,A,r={}){let i=Object.entries(r).map(([s,n])=>` ${s}="${n}"`).join("");return A?`<${e}${i}>${A}</${e}>`:`<${e}${i}>`}write(e){return D2(this,void 0,void 0,function*(){let A=!!e?.overwrite,r=yield this.filePath();return yield(A?uoe:poe)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return D2(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,A=!1){return this._buffer+=e,A?this.addEOL():this}addEOL(){return this.addRaw(loe.EOL)}addCodeBlock(e,A){let r=Object.assign({},A&&{lang:A}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,A=!1){let r=A?"ol":"ul",i=e.map(n=>this.wrap("li",n)).join(""),s=this.wrap(r,i);return this.addRaw(s).addEOL()}addTable(e){let A=e.map(i=>{let s=i.map(n=>{if(typeof n=="string")return this.wrap("td",n);let{header:a,data:o,colspan:c,rowspan:l}=n,d=a?"th":"td",p=Object.assign(Object.assign({},c&&{colspan:c}),l&&{rowspan:l});return this.wrap(d,o,p)}).join("");return this.wrap("tr",s)}).join(""),r=this.wrap("table",A);return this.addRaw(r).addEOL()}addDetails(e,A){let r=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(r).addEOL()}addImage(e,A,r){let{width:i,height:s}=r||{},n=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:A},n));return this.addRaw(a).addEOL()}addHeading(e,A){let r=`h${A}`,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",s=this.wrap(i,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,A){let r=Object.assign({},A&&{cite:A}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,A){let r=this.wrap("a",e,{href:A});return this.addRaw(r).addEOL()}},JS=new k2;Fr.markdownSummary=JS;Fr.summary=JS});var VS=f(Lr=>{"use strict";var goe=Lr&&Lr.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),moe=Lr&&Lr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e}
`).filter(r=>r!=="");return e&&e.trimWhitespace===!1?A:A.map(r=>r.trim())}se.getMultilineInput=Roe;function voe(t,e){let A=["true","True","TRUE"],r=["false","False","FALSE"],i=L2(t,e);if(A.includes(i))return!0;if(r.includes(i))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}se.getBooleanInput=voe;function Doe(t,e){if(process.env.GITHUB_OUTPUT||"")return Fo.issueFileCommand("OUTPUT",Fo.prepareKeyValueMessage(t,e));process.stdout.write(jS.EOL),Li.issueCommand("set-output",{name:t},wl.toCommandValue(e))}se.setOutput=Doe;function Soe(t){Li.issue("echo",t?"on":"off")}se.setCommandEcho=Soe;function koe(t){process.exitCode=XS.Failure,KS(t)}se.setFailed=koe;function Foe(){return process.env.RUNNER_DEBUG==="1"}se.isDebug=Foe;function Loe(t){Li.issueCommand("debug",{},t)}se.debug=Loe;function KS(t,e={}){Li.issueCommand("error",wl.toCommandProperties(e),t instanceof Error?t.toString():t)}se.error=KS;function Toe(t,e={}){Li.issueCommand("warning",wl.toCommandProperties(e),t instanceof Error?t.toString():t)}se.warning=Toe;function Uoe(t,e={}){Li.issueCommand("notice",wl.toCommandProperties(e),t instanceof Error?t.toString():t)}se.notice=Uoe;function Moe(t){process.stdout.write(t+jS.EOL)}se.info=Moe;function ZS(t){Li.issue("group",t)}se.startGroup=ZS;function $S(){Li.issue("endgroup")}se.endGroup=$S;function Ooe(t,e){return WS(this,void 0,void 0,function*(){ZS(t);let A;try{A=yield e()}finally{$S()}return A})}se.group=Ooe;function Poe(t,e){if(process.env.GITHUB_STATE||"")return Fo.issueFileCommand("STATE",Fo.prepareKeyValueMessage(t,e));Li.issueCommand("save-state",{name:t},wl.toCommandValue(e))}se.saveState=Poe;function _oe(t){return process.env[`STATE_${t}`]||""}se.getState=_oe;function qoe(t){return WS(this,void 0,void 0,function*(){return yield woe.OidcClient.getIDToken(t)})}se.getIDToken=qoe;var Hoe=F2();Object.defineProperty(se,"summary",{enumerable:!0,get:function(){return Hoe.summary}});var Goe=F2();Object.defineProperty(se,"markdownSummary",{enumerable:!0,get:function(){return Goe.markdownSummary}});var T2=VS();Object.defineProperty(se,"toPosixPath",{enumerable:!0,get:function(){return T2.toPosixPath}});Object.defineProperty(se,"toWin32Path",{enumerable:!0,get:function(){return T2.toWin32Path}});Object.defineProperty(se,"toPlatformPath",{enumerable:!0,get:function(){return T2.toPlatformPath}})});var M2=f(re=>{"use strict";var Yoe=re&&re.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Joe=re&&re.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),t7=re&&re.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&Yoe(e,t,A);return Joe(e,t),e},U2=re&&re.__awaiter||function(t,e,A,r){function i(s){return s instanceof A?s:new A(function(n){n(s)})}return new(A||(A=Promise))(function(s,n){function a(l){try{c(r.next(l))}catch(d){n(d)}}function o(l){try{c(r.throw(l))}catch(d){n(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,o)}c((r=r.apply(t,e||[])).next())})},Tr;Object.defineProperty(re,"__esModule",{value:!0});re.getCmdPath=re.tryGetExecutablePath=re.isRooted=re.isDirectory=re.exists=re.READONLY=re.UV_FS_O_EXLOCK=re.IS_WINDOWS=re.unlink=re.symlink=re.stat=re.rmdir=re.rm=re.rename=re.readlink=re.readdir=re.open=re.mkdir=re.lstat=re.copyFile=re.chmod=void 0;var A7=t7(require("fs")),d1=t7(require("path"));Tr=A7.promises,re.chmod=Tr.chmod,re.copyFile=Tr.copyFile,re.lstat=Tr.lstat,re.mkdir=Tr.mkdir,re.open=Tr.open,re.readdir=Tr.readdir,re.readlink=Tr.readlink,re.rename=Tr.rename,re.rm=Tr.rm,re.rmdir=Tr.rmdir,re.stat=Tr.stat,re.symlink=Tr.symlink,re.unlink=Tr.unlink;re.IS_WINDOWS=process.platform==="win32";re.UV_FS_O_EXLOCK=268435456;re.READONLY=A7.constants.O_RDONLY;function Voe(t){return U2(this,void 0,void 0,function*(){try{yield re.stat(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}re.exists=Voe;function zoe(t,e=!1){return U2(this,void 0,void 0,function*(){return(e?yield re.stat(t):yield re.lstat(t)).isDirectory()})}re.isDirectory=zoe;function Woe(t){if(t=Xoe(t),!t)throw new Error('isRooted() parameter "p" ca
%s`,E,E,N,r);var w=N.type==="*"?W2:N.type==="?"?z2:"\\"+N.type;i=!0,r=r.slice(0,N.reStart)+w+"\\("+E}g(),s&&(r+="\\\\");var R=!1;switch(r.charAt(0)){case"[":case".":case"(":R=!0}for(var y=a.length-1;y>-1;y--){var S=a[y],x=r.slice(0,S.reStart),v=r.slice(S.reStart,S.reEnd-8),D=r.slice(S.reEnd-8,S.reEnd),L=r.slice(S.reEnd);D+=L;var z=x.split("(").length-1,he=L;for(m=0;m<z;m++)he=he.replace(/\)[+*?]?/,"");L=he;var O="";L===""&&e!==f1&&(O="$");var Je=x+v+L+O+D;r=Je}if(r!==""&&i&&(r="(?=.)"+r),R&&(r=p+r),e===f1)return[r,i];if(!i)return $ce(t);var Be=A.nocase?"i":"";try{var Tt=new RegExp("^"+r+"$",Be)}catch{return new RegExp("$.")}return Tt._glob=t,Tt._src=r,Tt}ni.makeRe=function(t,e){return new GA(t,e||{}).makeRe()};GA.prototype.makeRe=Zce;function Zce(){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,A=e.noglobstar?W2:e.dot?Yce:Jce,r=e.nocase?"i":"",i=t.map(function(s){return s.map(function(n){return n===j2?A:typeof n=="string"?ele(n):n._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch{this.regexp=!1}return this.regexp}ni.match=function(t,e,A){A=A||{};var r=new GA(e,A);return t=t.filter(function(i){return r.match(i)}),r.options.nonull&&!t.length&&t.push(e),t};GA.prototype.match=function(e,A){if(typeof A>"u"&&(A=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&A)return!0;var r=this.options;pu.sep!=="/"&&(e=e.split(pu.sep).join("/")),e=e.split(O7),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s,n;for(n=e.length-1;n>=0&&(s=e[n],!s);n--);for(n=0;n<i.length;n++){var a=i[n],o=e;r.matchBase&&a.length===1&&(o=[s]);var c=this.matchOne(o,a,A);if(c)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate};GA.prototype.matchOne=function(t,e,A){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,s=0,n=t.length,a=e.length;i<n&&s<a;i++,s++){this.debug("matchOne loop");var o=e[s],c=t[i];if(this.debug(e,o,c),o===!1)return!1;if(o===j2){this.debug("GLOBSTAR",[e,o,c]);var l=i,d=s+1;if(d===a){for(this.debug("** at the end");i<n;i++)if(t[i]==="."||t[i]===".."||!r.dot&&t[i].charAt(0)===".")return!1;return!0}for(;l<n;){var p=t[l];if(this.debug(`
globstar while`,t,l,e,d,p),this.matchOne(t.slice(l),e.slice(d),A))return this.debug("globstar found match!",l,n,p),!0;if(p==="."||p===".."||!r.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,l,e,d);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(A&&(this.debug(`
>>> no match, partial?`,t,l,e,d),l===n))}var u;if(typeof o=="string"?(u=c===o,this.debug("string match",o,c,u)):(u=c.match(o),this.debug("pattern match",o,c,u)),!u)return!1}if(i===n&&s===a)return!0;if(i===n)return A;if(s===a)return i===n-1&&t[i]==="";throw new Error("wtf?")};function $ce(t){return t.replace(/\\(.)/g,"$1")}function ele(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var G7=f(Ti=>{"use strict";var tle=Ti&&Ti.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),Ale=Ti&&Ti.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),H7=Ti&&Ti.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&tle(e,t,A);return Ale(e,t),e},rle=Ti&&Ti.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.Path=void 0;var uu=H7(require("path")),Ba=H7(h1()),gu=rle(require("assert")),ile=process.platform==="win32",X2=class{constructor(e){if(this.segments=[],typeof e=="string")if(gu.default(e,"Parameter 'itemPath' must not be empty"),e=Ba.safeTrimTrailingSeparator(e),!Ba.hasRoot(e))this.segments=e.split(uu.sep);else{let A=e,r=Ba.dirname(A);for(;r!==A;){let i=uu.basename(A);this.segments.unshift(i),A=r,r=Ba.dirname(A)}this.segments.unshift(A)}else{gu.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let A=0;A<e.length;A++){let r=e[A];gu.default(r,"Parameter 'itemPath' must not contain any empty segments"),r=Ba.normalizeSeparators(e[A]),A===0&&Ba.hasRoot(r)?(r=Ba.safeTrimTrailingSeparator(r),gu.default(r===Ba.dirname(r),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(r)):(gu.default(!r.includes(uu.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(r))}}}toString(){let e=this.segments[0],A=e.endsWith(uu.sep)||ile&&/^[A-Z]:$/i.test(e);for(let r=1;r<this.segments.length;r++)A?A=!1:e+=uu.sep,e+=this.segments[r];return e}};Ti.Path=X2});var Y7=f(Ui=>{"use strict";var sle=Ui&&Ui.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[A]}})}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),nle=Ui&&Ui.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),$2=Ui&&Ui.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.hasOwnProperty.call(t,A)&&sle(e,t,A);return nle(e,t),e},ale=Ui&&Ui.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.Pattern=void 0;var ole=$2(require("os")),mu=$2(require("path")),Pr=$2(h1()),To=ale(require("assert")),cle=q7(),K2=E1(),B1=G7(),Qn=process.platform==="win32",Z2=class t{constructor(e,A=!1,r,i){this.negate=!1;let s;if(typeof e=="string")s=e.trim();else{r=r||[],To.default(r.length,"Parameter 'segments' must not empty");let c=t.getLiteral(r[0]);To.default(c&&Pr.hasAbsoluteRoot(c),"Parameter 'segments' first element must be a root path"),s=new B1.Path(r).toString().trim(),e&&(s=`!${s}`)}for(;s.startsWith("!");)this.negate=!this.negate,s=s.substr(1).trim();s=t.fixupPattern(s,i),this.segments=new B1.Path(s).segments,this.trailingSeparator=Pr.normalizeSeparators(s).endsWith(mu.sep),s=Pr.safeTrimTrailingSeparator(s);let n=!1,a=this.segments.map(c=>t.getLiteral(c)).filter(c=>!n&&!(n=c===""));this.searchPath=new B1.Path(a).toString(),this.rootRegExp=new RegExp(t.regExpEscape(a[0]),Qn?"i":""),this.isImplicitPattern=A;let o={dot:!0,nobrace:!0,nocase:Qn,nocomment:!0,noext:!0,nonegate:!0};s=Qn?s.replace(/\\/g,"/"):s,this.minimatch=new cle.Minimatch(s,o)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Pr.normalizeSeparators(e),!e.endsWith(mu.sep)&&this.isImplici
`),e=e.replace(/\r/g,`
2024-07-29 19:19:44 +00:00
`));let i=e.split(`
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||r.patterns.push(new W7.Pattern(s));return r.searchPaths.push(...I1.getSearchPaths(r.patterns)),r})}static stat(e,A,r){return ty(this,void 0,void 0,function*(){let i;if(A.followSymbolicLinks)try{i=yield hu.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(A.omitBrokenSymbolicLinks){Ay.debug(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield hu.promises.lstat(e.path);if(i.isDirectory()&&A.followSymbolicLinks){let s=yield hu.promises.realpath(e.path);for(;r.length>=e.level;)r.pop();if(r.some(n=>n===s)){Ay.debug(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}r.push(s)}return i})}};xA.DefaultGlobber=ry});var K7=f(xl=>{"use strict";var hle=xl&&xl.__awaiter||function(t,e,A,r){function i(s){return s instanceof A?s:new A(function(n){n(s)})}return new(A||(A=Promise))(function(s,n){function a(l){try{c(r.next(l))}catch(d){n(d)}}function o(l){try{c(r.throw(l))}catch(d){n(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,o)}c((r=r.apply(t,e||[])).next())})};Object.defineProperty(xl,"__esModule",{value:!0});xl.create=void 0;var Ele=X7();function fle(t,e){return hle(this,void 0,void 0,function*(){return yield Ele.DefaultGlobber.create(t,e)})}xl.create=fle});var rk=f((Ce,Ak)=>{Ce=Ak.exports=De;var Ze;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Ze=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER"),console.log.apply(console,t)}:Ze=function(){};Ce.SEMVER_SPEC_VERSION="2.0.0";var fu=256,y1=Number.MAX_SAFE_INTEGER||9007199254740991,iy=16,Cle=fu-6,Rl=Ce.re=[],Ke=Ce.safeRe=[],T=Ce.src=[],F=Ce.tokens={},ek=0;function Le(t){F[t]=ek++}var ny="[a-zA-Z0-9-]",sy=[["\\s",1],["\\d",fu],[ny,Cle]];function Bu(t){for(var e=0;e<sy.length;e++){var A=sy[e][0],r=sy[e][1];t=t.split(A+"*").join(A+"{0,"+r+"}").split(A+"+").join(A+"{1,"+r+"}")}return t}Le("NUMERICIDENTIFIER");T[F.NUMERICIDENTIFIER]="0|[1-9]\\d*";Le("NUMERICIDENTIFIERLOOSE");T[F.NUMERICIDENTIFIERLOOSE]="\\d+";Le("NONNUMERICIDENTIFIER");T[F.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+ny+"*";Le("MAINVERSION");T[F.MAINVERSION]="("+T[F.NUMERICIDENTIFIER]+")\\.("+T[F.NUMERICIDENTIFIER]+")\\.("+T[F.NUMERICIDENTIFIER]+")";Le("MAINVERSIONLOOSE");T[F.MAINVERSIONLOOSE]="("+T[F.NUMERICIDENTIFIERLOOSE]+")\\.("+T[F.NUMERICIDENTIFIERLOOSE]+")\\.("+T[F.NUMERICIDENTIFIERLOOSE]+")";Le("PRERELEASEIDENTIFIER");T[F.PRERELEASEIDENTIFIER]="(?:"+T[F.NUMERICIDENTIFIER]+"|"+T[F.NONNUMERICIDENTIFIER]+")";Le("PRERELEASEIDENTIFIERLOOSE");T[F.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[F.NUMERICIDENTIFIERLOOSE]+"|"+T[F.NONNUMERICIDENTIFIER]+")";Le("PRERELEASE");T[F.PRERELEASE]="(?:-("+T[F.PRERELEASEIDENTIFIER]+"(?:\\."+T[F.PRERELEASEIDENTIFIER]+")*))";Le("PRERELEASELOOSE");T[F.PRERELEASELOOSE]="(?:-?("+T[F.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[F.PRERELEASEIDENTIFIERLOOSE]+")*))";Le("BUILDIDENTIFIER");T[F.BUILDIDENTIFIER]=ny+"+";Le("BUILD");T[F.BUILD]="(?:\\+("+T[F.BUILDIDENTIFIER]+"(?:\\."+T[F.BUILDIDENTIFIER]+")*))";Le("FULL");Le("FULLPLAIN");T[F.FULLPLAIN]="v?"+T[F.MAINVERSION]+T[F.PRERELEASE]+"?"+T[F.BUILD]+"?";T[F.FULL]="^"+T[F.FULLPLAIN]+"$";Le("LOOSEPLAIN");T[F.LOOSEPLAIN]="[v=\\s]*"+T[F.MAINVERSIONLOOSE]+T[F.PRERELEASELOOSE]+"?"+T[F.BUILD]+"?";Le("LOOSE");T[F.LOOSE]="^"+T[F.LOOSEPLAIN]+"$";Le("GTLT");T[F.GTLT]="((?:<|>)?=?)";Le("XRANGEIDENTIFIERLOOSE");T[F.XRANGEIDENTIFIERLOOSE]=T[F.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Le("XRANGEIDENTIFIER");T[F.XRANGEIDENTIFIER]=T[F.NUMERICIDENTIFIER]+"|x|X|\\*";Le("XRANGEPLAIN");T[F.XRANGEPLAIN]="[v=\\s]*("+T[F.XRANGEIDENTIFIER]+")(?:\\.("+T[F.XRANGEIDENTIFIER]+")(?:\\.("+T[F.XRANGEIDENTIFIER]+")(?:"+T[F.PRERELEASE]+")?"+T[F.BUILD]+"?)?)?";Le("XRANGEPLAINLOOSE");T[F.XRANGEPLAINLOOSE]="[v=\\s]*("+T[F.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[F.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[F.XRANGEIDENTIFIERLOOSE]+")(?:"+T[F.PRERELEASELOOSE]+")?"+T[F.BUILD]+"?)?)?";Le("XRANGE");T[F.XRANGE]="^"+T[F.GTLT]+"\\s*"+T[F.XRANGEPLAI
`),{implicitDescendants:!1});try{for(var c=!0,l=ude(o.globGenerator()),d;d=yield l.next(),e=d.done,!e;c=!0){i=d.value,c=!1;let p=i,u=x1.relative(a,p).replace(new RegExp(`\\${x1.sep}`,"g"),"/");yu.debug(`Matched: ${u}`),u===""?n.push("."):n.push(`${u}`)}}catch(p){A={error:p}}finally{try{!c&&!e&&(r=l.return)&&(yield r.call(l))}finally{if(A)throw A.error}}return n})}$e.resolvePaths=Qde;function Ide(t){return Dl(this,void 0,void 0,function*(){return Ede.promisify(Ey.unlink)(t)})}$e.unlinkFile=Ide;function Ck(t,e=[]){return Dl(this,void 0,void 0,function*(){let A="";e.push("--version"),yu.debug(`Checking ${t} ${e.join(" ")}`);try{yield gde.exec(`${t}`,e,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:r=>A+=r.toString(),stderr:r=>A+=r.toString()}})}catch(r){yu.debug(r.message)}return A=A.trim(),yu.debug(A),A})}function yde(){return Dl(this,void 0,void 0,function*(){let t=yield Ck("zstd",["--quiet"]),e=hde.clean(t);return yu.debug(`zstd version: ${e}`),t===""?Oo.CompressionMethod.Gzip:Oo.CompressionMethod.ZstdWithoutLong})}$e.getCompressionMethod=yde;function wde(t){return t===Oo.CompressionMethod.Gzip?Oo.CacheFilename.Gzip:Oo.CacheFilename.Zstd}$e.getCacheFileName=wde;function bde(){return Dl(this,void 0,void 0,function*(){return Ey.existsSync(Oo.GnuTarPathOnWindows)?Oo.GnuTarPathOnWindows:(yield Ck("tar")).toLowerCase().includes("gnu tar")?fk.which("tar"):""})}$e.getGnuTarPathOnWindows=bde;function Nde(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}$e.assertDefined=Nde;function xde(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),A=e==="GITHUB.COM",r=e.endsWith(".GHE.COM")||e.endsWith(".GHE.LOCALHOST");return!A&&!r}$e.isGhes=xde});var Qk=f(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.checkBypass=Sl.getProxyUrl=void 0;function Rde(t){let e=t.protocol==="https:";if(Bk(t))return;let A=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(A)try{return new URL(A)}catch{if(!A.startsWith("http://")&&!A.startsWith("https://"))return new URL(`http://${A}`)}else return}Sl.getProxyUrl=Rde;function Bk(t){if(!t.hostname)return!1;let e=t.hostname;if(vde(e))return!0;let A=process.env.no_proxy||process.env.NO_PROXY||"";if(!A)return!1;let r;t.port?r=Number(t.port):t.protocol==="http:"?r=80:t.protocol==="https:"&&(r=443);let i=[t.hostname.toUpperCase()];typeof r=="number"&&i.push(`${i[0]}:${r}`);for(let s of A.split(",").map(n=>n.trim().toUpperCase()).filter(n=>n))if(s==="*"||i.some(n=>n===s||n.endsWith(`.${s}`)||s.startsWith(".")&&n.endsWith(`${s}`)))return!0;return!1}Sl.checkBypass=Bk;function vde(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}});var Ct=f((mve,Ik)=>{Ik.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"),kHeadersList:Symbol("headers list"),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"),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"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clie
\r
`),upe=/\r\n/g,gpe=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function Fl(t){Yk.call(this),t=t||{};let e=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=Gk(t,"maxHeaderPairs",2e3),this.maxHeaderSize=Gk(t,"maxHeaderSize",80*1024),this.buffer="",this.header={},this.finished=!1,this.ss=new dpe(ppe),this.ss.on("info",function(A,r,i,s){r&&!e.maxed&&(e.nread+s-i>=e.maxHeaderSize?(s=e.maxHeaderSize-e.nread+i,e.nread=e.maxHeaderSize,e.maxed=!0):e.nread+=s-i,e.buffer+=r.toString("binary",i,s)),A&&e._finish()})}lpe(Fl,Yk);Fl.prototype.push=function(t){let e=this.ss.push(t);if(this.finished)return e};Fl.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};Fl.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let t=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",t)};Fl.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(upe),e=t.length,A,r;for(var i=0;i<e;++i){if(t[i].length===0)continue;if((t[i][0]===" "||t[i][0]===" ")&&r){this.header[r][this.header[r].length-1]+=t[i];continue}let s=t[i].indexOf(":");if(s===-1||s===0)return;if(A=gpe.exec(t[i]),r=A[1].toLowerCase(),this.header[r]=this.header[r]||[],this.header[r].push(A[2]||""),++this.npairs===this.maxHeaderPairs)break}};Jk.exports=Fl});var Gy=f((yve,Wk)=>{"use strict";var Hy=require("node:stream").Writable,mpe=require("node:util").inherits,hpe=_y(),zk=qk(),Epe=Vk(),fpe=45,Cpe=Buffer.from("-"),Bpe=Buffer.from(`\r
`),Qpe=function(){};function is(t){if(!(this instanceof is))return new is(t);if(Hy.call(this,t),!t||!t.headerFirst&&typeof t.boundary!="string")throw new TypeError("Boundary required");typeof t.boundary=="string"?this.setBoundary(t.boundary):this._bparser=void 0,this._headerFirst=t.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:t.partHwm},this._pause=!1;let e=this;this._hparser=new Epe(t),this._hparser.on("header",function(A){e._inHeader=!1,e._part.emit("header",A)})}mpe(is,Hy);is.prototype.emit=function(t){if(t==="finish"&&!this._realFinish){if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",new Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1});return}e._realFinish=!0,e.emit("finish"),e._realFinish=!1})}}else Hy.prototype.emit.apply(this,arguments)};is.prototype._write=function(t,e,A){if(!this._hparser&&!this._bparser)return A();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new zk(this._partOpts),this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._ignore());let r=this._hparser.push(t);if(!this._inHeader&&r!==void 0&&r<t.length)t=t.slice(r);else return A()}this._firstWrite&&(this._bparser.push(Bpe),this._firstWrite=!1),this._bparser.push(t),this._pause?this._cb=A:A()};is.prototype.reset=function(){this._part=void 0,this._bparser=void 0,this._hparser=void 0};is.prototype.setBoundary=function(t){let e=this;this._bparser=new hpe(`\r
--`+t),this._bparser.on("info",function(A,r,i,s){e._oninfo(A,r,i,s)})};is.prototype._ignore=function(){this._part&&!this._ignoreData&&(this._ignoreData=!0,this._part.on("error",Qpe),this._part.resume())};is.prototype._oninfo=function(t,e,A,r){let i,s=this,n=0,a,o=!0;if(!this._part&&this._justMatched&&e){for(;this._dashes<2&&A+n<r;)if(e[A+n]===fpe)++n,++this._dashes;else{this._dashes&&(i=Cpe),this._dashes=0;break}if(this._dashes===2&&(A+n<r&&this.listenerCount("trailer")!==0&&this.emit("trailer",e.slice(A+n,r)),this.reset(),this._finished=!0,s._parts===0&&(s._realFinish=!0,s.emit("finish"),s._realFinish=!1)),this._dashes)return}this._justMatched&&(this._justMatched=!1),this._part||(this._part=new zk(this._partOpts),this._part._read=function(c){s._unpause()},this._isPreamble&&this.listenerCount("preamble")!==0?this.emit("preamble",this._part):this._isPreamble!==!0&&this.listenerCount("part")!==0?this.emit("part",this._part):this._ignore(),this._isPreamble||(this._inHeader=!0)),e&&A<r&&!this._ignoreData&&(this._isPreamble||!this._inHeader?(i&&(o=this._part.push(i)),o=this._part.push(e.slice(A,r)),o||(this._pause=!0)):!this._isPreamble&&this._inHeader&&(i&&this._hparser.push(i),a=this._hparser.push(e.slice(A,r)),!this._inHeader&&a!==void 0&&a<r&&this._oninfo(!1,e,A+a,r))),t&&(this._hparser.reset(),this._isPreamble?this._isPreamble=!1:A!==r&&(++this._parts,this._part.on("end",function(){--s._parts===0&&(s._finished?(s._realFinish=!0,s.emit("finish"),s._realFinish=!1):s._unpause())})),this._part.push(null),this._part=void 0,this._ignoreData=!1,this._justMatched=!0,this._dashes=0)};is.prototype._unpause=function(){if(this._pause&&(this._pause=!1,this._cb)){let t=this._cb;this._cb=void 0,t()}};Wk.exports=is});var k1=f((Yy,Kk)=>{"use strict";var jk=new TextDecoder("utf-8"),Xk=new Map([["utf-8",jk],["utf8",jk]]);function Ipe(t){let e;for(;;)switch(t){case"utf-8":case"utf8":return Nu.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return Nu.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return Nu.utf16le;case"base64":return Nu.base64;default:if(e===void 0){e=!0,t=t.toLowerCase();continue}return Nu.other.bind(t)}}var Nu={utf8:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.utf8Slice(0,t.length)),latin1:(t,e)=>t.length===0?"":typeof t=="string"?t:t.latin1Slice(0,t.length),utf16le:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.ucs2Slice(0,t.length)),base64:(t,e)=>t.length===0?"":(typeof t=="string"&&(t=Buffer.from(t,e)),t.base64Slice(0,t.length)),other:(t,e)=>{if(t.length===0)return"";if(typeof t=="string"&&(t=Buffer.from(t,e)),Xk.has(Yy.toString()))try{return Xk.get(Yy).decode(t)}catch{}return typeof t=="string"?t:t.toString()}};function ype(t,e,A){return t&&Ipe(A)(t,e)}Kk.exports=ype});var Vy=f((wve,AF)=>{"use strict";var F1=k1(),Zk=/%[a-fA-F0-9][a-fA-F0-9]/g,wpe={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"\x07","%08":"\b","%09":" ","%0a":`
`,"%0A":`
`,"%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"\x1B","%1B":"\x1B","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"\x7F","%7F":"\x7F","%80":"\x80","%81":"\x81","%82":"\x82","%83":"\x83","%84":"\x84","%85":"\x85","%86":"\x86","%87":"\x87","%88":"\x88","%89":"\x89","%8a":"\x8A","%8A":"\x8A","%8b":"\x8B","%8B":"\x8B","%8c":"\x8C","%8C":"\x8C","%8d":"\x8D","%8D":"\x8D","%8e":"\x8E","%8E":"\x8E","%8f":"\x8F","%8F":"\x8F","%90":"\x90","%91":"\x91","%92":"\x92","%93":"\x93","%94":"\x94","%95":"\x95","%96":"\x96","%97":"\x97","%98":"\x98","%99":"\x99","%9a":"\x9A","%9A":"\x9A","%9b":"\x9B","%9B":"\x9B","%9c":"\x9C","%9C":"\x9C","%9d":"\x9D","%9D":"\x9D","%9e":"\x9E","%9E":"\x9E","%9f":"\x9F","%9F":"\x9F","%a0":"\xA0","%A0":"\xA0","%a1":"\xA1","%A1":"\xA1","%a2":"\xA2","%A2":"\xA2","%a3":"\xA3","%A3":"\xA3","%a4":"\xA4","%A4":"\xA4","%a5":"\xA5","%A5":"\xA5","%a6":"\xA6","%A6":"\xA6","%a7":"\xA7","%A7":"\xA7","%a8":"\xA8","%A8":"\xA8","%a9":"\xA9","%A9":"\xA9","%aa":"\xAA","%Aa":"\xAA","%aA":"\xAA","%AA":"\xAA","%ab":"\xAB","%Ab":"\xAB","%aB":"\xAB","%AB":"\xAB","%ac":"\xAC","%Ac":"\xAC","%aC":"\xAC","%AC":"\xAC","%ad":"\xAD","%Ad":"\xAD","%aD":"\xAD","%AD":"\xAD","%ae":"\xAE","%Ae":"\xAE","%aE":"\xAE","%AE":"\xAE","%af":"\xAF","%Af":"\xAF","%aF":"\xAF","%AF":"\xAF","%b0":"\xB0","%B0":"\xB0","%b1":"\xB1","%B1":"\xB1","%b2":"\xB2","%B2":"\xB2","%b3":"\xB3","%B3":"\xB3","%b4":"\xB4","%B4":"\xB4","%b5":"\xB5","%B5":"\xB5","%b6":"\xB6","%B6":"\xB6","%b7":"\xB7","%B7":"\xB7","%b8":"\xB8","%B8":"\xB8","%b9":"\xB9","%B9":"\xB9","%ba":"\xBA","%Ba":"\xBA","%bA":"\xBA","%BA":"\xBA","%bb":"\xBB","%Bb":"\xBB","%bB":"\xBB","%BB":"\xBB","%bc":"\xBC","%Bc":"\xBC","%bC":"\xBC","%BC":"\xBC","%bd":"\xBD","%Bd":"\xBD","%bD":"\xBD","%BD":"\xBD","%be":"\xBE","%Be":"\xBE","%bE":"\xBE","%BE":"\xBE","%bf":"\xBF","%Bf":"\xBF","%bF":"\xBF","%BF":"\xBF","%c0":"\xC0","%C0":"\xC0","%c1":"\xC1","%C1":"\xC1","%c2":"\xC2","%C2":"\xC2","%c3":"\xC3","%C3":"\xC3","%c4":"\xC4","%C4":"\xC4","%c5":"\xC5","%C5":"\xC5","%c6":"\xC6","%C6":"\xC6","%c7":"\xC7","%C7":"\xC7","%c8":"\xC8","%C8":"\xC8","%c9":"\xC9","%C9":"\xC9","%ca":"\xCA","%Ca":"\xCA","%cA":"\xCA","%CA":"\xCA","%cb":"\xCB","%Cb":"\xCB","%cB":"\xCB","%CB":"\xCB","%cc":"\xCC","%Cc":"\xCC","%cC":"\xCC","%CC":"\xCC","%cd":"\xCD","%Cd":"\xCD","%cD":"\xCD","%CD":"\xCD","%ce":"\xCE","%Ce":"\xCE","%cE":"\xCE","%CE":"\xCE","%cf":"\xCF","%Cf":"\xCF","%cF":"\xCF","%CF":"\xCF","%d0":"\xD0","%D0":"\xD0","%d1":"\xD1","%D1":"\xD1","%d2":"\xD2","%D2":"\xD2","%d3":"\xD3","%D3":"\xD3","%d4":"\xD4","%D4":"\xD4","%d5":"\xD5","%
`))}function yue(t,e){let{headersList:A}=e,r=(A.get("referrer-policy")??"").split(","),i="";if(r.length>0)for(let s=r.length;s!==0;s--){let n=r[s-1].trim();if(cue.has(n)){i=n;break}}i!==""&&(t.referrerPolicy=i)}function wue(){return"allowed"}function bue(){return"success"}function Nue(){return"success"}function xue(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e)}function Rue(t){let e=t.origin;if(t.responseTainting==="cors"||t.mode==="websocket")e&&t.headersList.append("origin",e);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&&e4(t.origin)&&!e4(Du(t))&&(e=null);break;case"same-origin":M1(t,Du(t))||(e=null);break;default:}e&&t.headersList.append("origin",e)}}function vue(t){return pue.now()}function Due(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 Sue(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function kue(t){return{referrerPolicy:t.referrerPolicy}}function Fue(t){let e=t.referrerPolicy;Ol(e);let A=null;if(t.referrer==="client"){let a=due();if(!a||a.origin==="null")return"no-referrer";A=new URL(a)}else t.referrer instanceof URL&&(A=t.referrer);let r=Zy(A),i=Zy(A,!0);r.toString().length>4096&&(r=i);let s=M1(t,r),n=Ru(r)&&!Ru(t.url);switch(e){case"origin":return i??Zy(A,!0);case"unsafe-url":return r;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?r:i;case"strict-origin-when-cross-origin":{let a=Du(t);return M1(r,a)?r:Ru(r)&&!Ru(a)?"no-referrer":i}case"strict-origin":case"no-referrer-when-downgrade":default:return n?"no-referrer":i}}function Zy(t,e){return Ol(t instanceof URL),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function Ru(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(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}function Lue(t,e){if(vu===void 0)return!0;let A=Uue(e);if(A==="no metadata"||A.length===0)return!0;let r=A.sort((n,a)=>a.algo.localeCompare(n.algo)),i=r[0].algo,s=r.filter(n=>n.algo===i);for(let n of s){let a=n.algo,o=n.hash;o.endsWith("==")&&(o=o.slice(0,-2));let c=vu.createHash(a).update(t).digest("base64");if(c.endsWith("==")&&(c=c.slice(0,-2)),c===o)return!0;let l=vu.createHash(a).update(t).digest("base64url");if(l.endsWith("==")&&(l=l.slice(0,-2)),l===o)return!0}return!1}var Tue=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function Uue(t){let e=[],A=!0,r=vu.getHashes();for(let i of t.split(" ")){A=!1;let s=Tue.exec(i);if(s===null||s.groups===void 0)continue;let n=s.groups.algo;r.includes(n.toLowerCase())&&e.push(s.groups)}return A===!0?"no metadata":e}function Mue(t){}function M1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Oue(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}function Pue(t){return t.controller.state==="aborted"}function _ue(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}var t4={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(t4,null);function que(t){return t4[t.toLowerCase()]??t}function Hue(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON seriali
`||t===" "||t===" "}function A4(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&LF(t[r]);r++);if(A)for(;i>0&&LF(t[i]);i--);return t.slice(r,i+1)}function TF(t){return t==="\r"||t===`
`||t===" "||t==="\f"||t===" "}function lge(t,e=!0,A=!0){let r=0,i=t.length-1;if(e)for(;r<t.length&&TF(t[r]);r++);if(A)for(;i>0&&TF(t[i]);i--);return t.slice(r,i+1)}PF.exports={dataURLProcessor:nge,URLSerializer:UF,collectASequenceOfCodePoints:_1,collectASequenceOfCodePointsFast:Pl,stringPercentDecode:MF,parseMIMEType:r4,collectAnHTTPQuotedString:OF,serializeAMimeType:cge}});var q1=f((Uve,YF)=>{"use strict";var{Blob:HF,File:_F}=require("buffer"),{types:i4}=require("util"),{kState:ai}=wn(),{isBlobLike:GF}=Oi(),{webidl:et}=Er(),{parseMIMEType:dge,serializeAMimeType:pge}=ss(),{kEnumerableProperty:qF}=qe(),uge=new TextEncoder,Su=class t extends HF{constructor(e,A,r={}){et.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=et.converters["sequence<BlobPart>"](e),A=et.converters.USVString(A),r=et.converters.FilePropertyBag(r);let i=A,s=r.type,n;e:{if(s){if(s=dge(s),s==="failure"){s="";break e}s=pge(s).toLowerCase()}n=r.lastModified}super(gge(e,r),{type:s}),this[ai]={name:i,lastModified:n,type:s}}get name(){return et.brandCheck(this,t),this[ai].name}get lastModified(){return et.brandCheck(this,t),this[ai].lastModified}get type(){return et.brandCheck(this,t),this[ai].type}},s4=class t{constructor(e,A,r={}){let i=A,s=r.type,n=r.lastModified??Date.now();this[ai]={blobLike:e,name:i,type:s,lastModified:n}}stream(...e){return et.brandCheck(this,t),this[ai].blobLike.stream(...e)}arrayBuffer(...e){return et.brandCheck(this,t),this[ai].blobLike.arrayBuffer(...e)}slice(...e){return et.brandCheck(this,t),this[ai].blobLike.slice(...e)}text(...e){return et.brandCheck(this,t),this[ai].blobLike.text(...e)}get size(){return et.brandCheck(this,t),this[ai].blobLike.size}get type(){return et.brandCheck(this,t),this[ai].blobLike.type}get name(){return et.brandCheck(this,t),this[ai].name}get lastModified(){return et.brandCheck(this,t),this[ai].lastModified}get[Symbol.toStringTag](){return"File"}};Object.defineProperties(Su.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:qF,lastModified:qF});et.converters.Blob=et.interfaceConverter(HF);et.converters.BlobPart=function(t,e){if(et.util.Type(t)==="Object"){if(GF(t))return et.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||i4.isAnyArrayBuffer(t))return et.converters.BufferSource(t,e)}return et.converters.USVString(t,e)};et.converters["sequence<BlobPart>"]=et.sequenceConverter(et.converters.BlobPart);et.converters.FilePropertyBag=et.dictionaryConverter([{key:"lastModified",converter:et.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:et.converters.DOMString,defaultValue:""},{key:"endings",converter:t=>(t=et.converters.DOMString(t),t=t.toLowerCase(),t!=="native"&&(t="transparent"),t),defaultValue:"transparent"}]);function gge(t,e){let A=[];for(let r of t)if(typeof r=="string"){let i=r;e.endings==="native"&&(i=mge(i)),A.push(uge.encode(i))}else i4.isAnyArrayBuffer(r)||i4.isTypedArray(r)?r.buffer?A.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):A.push(new Uint8Array(r)):GF(r)&&A.push(r);return A}function mge(t){let e=`
`;return process.platform==="win32"&&(e=`\r
`),t.replace(/\r?\n/g,e)}function hge(t){return _F&&t instanceof _F||t instanceof Su||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}YF.exports={File:Su,FileLike:s4,isFileLike:hge}});var G1=f((Mve,jF)=>{"use strict";var{isBlobLike:H1,toUSVString:Ege,makeIterator:n4}=Oi(),{kState:tr}=wn(),{File:WF,FileLike:JF,isFileLike:fge}=q1(),{webidl:nt}=Er(),{Blob:Cge,File:a4}=require("buffer"),VF=a4??WF,_l=class t{constructor(e){if(e!==void 0)throw nt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[tr]=[]}append(e,A,r=void 0){if(nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,{header:"FormData.append"}),arguments.length===3&&!H1(A))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=nt.converters.USVString(e),A=H1(A)?nt.converters.Blob(A,{strict:!1}):nt.converters.USVString(A),r=arguments.length===3?nt.converters.USVString(r):void 0;let i=zF(e,A,r);this[tr].push(i)}delete(e){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=nt.converters.USVString(e),this[tr]=this[tr].filter(A=>A.name!==e)}get(e){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=nt.converters.USVString(e);let A=this[tr].findIndex(r=>r.name===e);return A===-1?null:this[tr][A].value}getAll(e){return nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=nt.converters.USVString(e),this[tr].filter(A=>A.name===e).map(A=>A.value)}has(e){return nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=nt.converters.USVString(e),this[tr].findIndex(A=>A.name===e)!==-1}set(e,A,r=void 0){if(nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,{header:"FormData.set"}),arguments.length===3&&!H1(A))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=nt.converters.USVString(e),A=H1(A)?nt.converters.Blob(A,{strict:!1}):nt.converters.USVString(A),r=arguments.length===3?Ege(r):void 0;let i=zF(e,A,r),s=this[tr].findIndex(n=>n.name===e);s!==-1?this[tr]=[...this[tr].slice(0,s),i,...this[tr].slice(s+1).filter(n=>n.name!==e)]:this[tr].push(i)}entries(){return nt.brandCheck(this,t),n4(()=>this[tr].map(e=>[e.name,e.value]),"FormData","key+value")}keys(){return nt.brandCheck(this,t),n4(()=>this[tr].map(e=>[e.name,e.value]),"FormData","key")}values(){return nt.brandCheck(this,t),n4(()=>this[tr].map(e=>[e.name,e.value]),"FormData","value")}forEach(e,A=globalThis){if(nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),typeof e!="function")throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[r,i]of this)e.apply(A,[i,r,this])}};_l.prototype[Symbol.iterator]=_l.prototype.entries;Object.defineProperties(_l.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function zF(t,e,A){if(t=Buffer.from(t).toString("utf8"),typeof e=="string")e=Buffer.from(e).toString("utf8");else if(fge(e)||(e=e instanceof Cge?new VF([e],"blob",{type:e.type}):new JF(e,"blob",{type:e.type})),A!==void 0){let r={type:e.type,lastModified:e.lastModified};e=a4&&e instanceof a4||e instanceof WF?new VF([e],A,r):new JF(e,A,r)}return{name:t,value:e}}jF.exports={FormData:_l}});var ku=f((Ove,iL)=>{"use strict";var Bge=mF(),ql=qe(),{ReadableStreamFrom:Qge,isBlobLike:XF,isReadableStreamLike:Ige,readableStreamClose:yge,createDeferredPromise:wge,fullyReadBody:bge}=Oi(),{FormData:KF}=G1(),{kState:Nn}=wn(),{webidl:o4}=Er(),{DOMException:eL,structuredClone:Nge}=ba(),{Blob:xge,File:Rge}=require("buffer"),{kBodyUsed:vge}=Ct(),c4=require("assert"),{isErrored:Dge}=qe(),{isUint8Array:tL,isArrayBuffer:Sge}=require("util/types"),{File:kge}=q1(),{parseMIMEType:Fge,serializeAMimeType:Lge}=ss(),bn=globalThis.ReadableStream,ZF=Rge??kge,Y1=new TextEncoder,Tge=new TextDecoder;function AL(t,e=!1){bn||(bn=require("stream/web").ReadableStream);let A=null;t instanceof bn?A=t:XF(t)?A=t.stream():A=new bn({async pul
Content-Disposition: form-data`;let l=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=C=>C.replace(/\r?\n|\r/g,`\r
`),p=[],u=new Uint8Array([13,10]);s=0;let g=!1;for(let[C,Q]of t)if(typeof Q=="string"){let N=Y1.encode(c+`; name="${l(d(C))}"\r
\r
${d(Q)}\r
`);p.push(N),s+=N.byteLength}else{let N=Y1.encode(`${c}; name="${l(d(C))}"`+(Q.name?`; filename="${l(Q.name)}"`:"")+`\r
Content-Type: ${Q.type||"application/octet-stream"}\r
\r
`);p.push(N,Q,u),typeof Q.size=="number"?s+=N.byteLength+Q.size+u.byteLength:g=!0}let m=Y1.encode(`--${o}--`);p.push(m),s+=m.byteLength,g&&(s=null),i=t,r=async function*(){for(let C of p)C.stream?yield*C.stream():yield C},n="multipart/form-data; boundary="+o}else if(XF(t))i=t,s=t.size,t.type&&(n=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ql.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof bn?t:Qge(t)}if((typeof i=="string"||ql.isBuffer(i))&&(s=Buffer.byteLength(i)),r!=null){let o;A=new bn({async start(){o=r(t)[Symbol.asyncIterator]()},async pull(c){let{value:l,done:d}=await o.next();return d?queueMicrotask(()=>{c.close()}):Dge(A)||c.enqueue(new Uint8Array(l)),c.desiredSize>0},async cancel(c){await o.return()},type:void 0})}return[{stream:A,source:i,length:s},n]}function Uge(t,e=!1){return bn||(bn=require("stream/web").ReadableStream),t instanceof bn&&(c4(!ql.isDisturbed(t),"The body has already been consumed."),c4(!t.locked,"The stream is locked.")),AL(t,e)}function Mge(t){let[e,A]=t.stream.tee(),r=Nge(A,{transfer:[A]}),[,i]=r.tee();return t.stream=e,{stream:i,length:t.length,source:t.source}}async function*$F(t){if(t)if(tL(t))yield t;else{let e=t.stream;if(ql.isDisturbed(e))throw new TypeError("The body has already been consumed.");if(e.locked)throw new TypeError("The stream is locked.");e[vge]=!0,yield*e}}function l4(t){if(t.aborted)throw new eL("The operation was aborted.","AbortError")}function Oge(t){return{blob(){return J1(this,A=>{let r=Hge(this);return r==="failure"?r="":r&&(r=Lge(r)),new xge([A],{type:r})},t)},arrayBuffer(){return J1(this,A=>new Uint8Array(A).buffer,t)},text(){return J1(this,rL,t)},json(){return J1(this,qge,t)},async formData(){o4.brandCheck(this,t),l4(this[Nn]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let r={};for(let[a,o]of this.headers)r[a.toLowerCase()]=o;let i=new KF,s;try{s=new Bge({headers:r,preservePath:!0})}catch(a){throw new eL(`${a}`,"AbortError")}s.on("field",(a,o)=>{i.append(a,o)}),s.on("file",(a,o,c,l,d)=>{let p=[];if(l==="base64"||l.toLowerCase()==="base64"){let u="";o.on("data",g=>{u+=g.toString().replace(/[\r\n]/gm,"");let m=u.length-u.length%4;p.push(Buffer.from(u.slice(0,m),"base64")),u=u.slice(m)}),o.on("end",()=>{p.push(Buffer.from(u,"base64")),i.append(a,new ZF(p,c,{type:d}))})}else o.on("data",u=>{p.push(u)}),o.on("end",()=>{i.append(a,new ZF(p,c,{type:d}))})});let n=new Promise((a,o)=>{s.on("finish",a),s.on("error",c=>o(new TypeError(c)))});if(this.body!==null)for await(let a of $F(this[Nn].body))s.write(a);return s.end(),await n,i}else if(/application\/x-www-form-urlencoded/.test(A)){let r;try{let s="",n=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let a of $F(this[Nn].body)){if(!tL(a))throw new TypeError("Expected Uint8Array chunk");s+=n.decode(a,{stream:!0})}s+=n.decode(),r=new URLSearchParams(s)}catch(s){throw Object.assign(new TypeError,{cause:s})}let i=new KF;for(let[s,n]of r)i.append(s,n);return i}else throw await Promise.resolve(),l4(this[Nn]),o4.errors.exception({header:`${t.name}.formData`,message:"Could not parse content as FormData."})}}}function Pge(t){Object.assign(t.prototype,Oge(t))}async function J1(t,e,A){if(o4.brandCheck(t,A),l4(t[Nn]),_ge(t[Nn].body))throw new TypeError("Body is unusable");let r=wge(),i=n=>r.reject(n),s=n=>{try{r.resolve(e(n))}catch(a){i(a)}};return t[Nn].body==null?(s(new Uint8Array),r.promise):(await bge(t[Nn].body,s,i),r.promise)}function _ge(t){return t!=null&&(t.stream.locked||ql.isDisturbed(t.stream))}function rL(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),Tge.decode(t))}function qge(t){return JSON.parse(rL(t))}function Hge(t){let{headersList:e}=t[Nn],A=e.get("content-type");return A===null?"failure":Fge(A)}iL.exports={extractBody:AL,safelyExtractBody:Uge,cloneBody:Mge,mixinBody:Pge}});var oL=f((Pve,aL)=>{"use strict";var{InvalidArgumentError:Bt,NotSupportedError:Gge}=dt(),xn=require("assert"),{kHTTP2BuildRequest:Yge,kHTTP2CopyHea
`),this.body=C.stream,this.contentLength=C.length}else _r.isBlobLike(i)&&this.contentType==null&&i.type&&(this.contentType=i.type,this.headers+=`content-type: ${i.type}\r
`);_r.validateHandler(m,r,c),this.servername=_r.getServerName(this.host),this[ns]=m,pA.create.hasSubscribers&&pA.create.publish({request:this})}onBodySent(e){if(this[ns].onBodySent)try{return this[ns].onBodySent(e)}catch(A){this.abort(A)}}onRequestSent(){if(pA.bodySent.hasSubscribers&&pA.bodySent.publish({request:this}),this[ns].onRequestSent)try{return this[ns].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(xn(!this.aborted),xn(!this.completed),this.error)e(this.error);else return this.abort=e,this[ns].onConnect(e)}onHeaders(e,A,r,i){xn(!this.aborted),xn(!this.completed),pA.headers.hasSubscribers&&pA.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:i}});try{return this[ns].onHeaders(e,A,r,i)}catch(s){this.abort(s)}}onData(e){xn(!this.aborted),xn(!this.completed);try{return this[ns].onData(e)}catch(A){return this.abort(A),!1}}onUpgrade(e,A,r){return xn(!this.aborted),xn(!this.completed),this[ns].onUpgrade(e,A,r)}onComplete(e){this.onFinally(),xn(!this.aborted),this.completed=!0,pA.trailers.hasSubscribers&&pA.trailers.publish({request:this,trailers:e});try{return this[ns].onComplete(e)}catch(A){this.onError(A)}}onError(e){if(this.onFinally(),pA.error.hasSubscribers&&pA.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[ns].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,A){return Fu(this,e,A),this}static[Vge](e,A,r){return new t(e,A,r)}static[Yge](e,A,r){let i=A.headers;A={...A,headers:null};let s=new t(e,A,r);if(s.headers={},Array.isArray(i)){if(i.length%2!==0)throw new Bt("headers array must be even");for(let n=0;n<i.length;n+=2)Fu(s,i[n],i[n+1],!0)}else if(i&&typeof i=="object"){let n=Object.keys(i);for(let a=0;a<n.length;a++){let o=n[a];Fu(s,o,i[o],!0)}}else if(i!=null)throw new Bt("headers must be an object or an array");return s}static[Jge](e){let A=e.split(`\r
`),r={};for(let i of A){let[s,n]=i.split(": ");n==null||n.length===0||(r[s]?r[s]+=`,${n}`:r[s]=n)}return r}};function qo(t,e,A){if(e&&typeof e=="object")throw new Bt(`invalid ${t} header`);if(e=e!=null?`${e}`:"",nL.exec(e)!==null)throw new Bt(`invalid ${t} header`);return A?e:`${t}: ${e}\r
`}function Fu(t,e,A,r=!1){if(A&&typeof A=="object"&&!Array.isArray(A))throw new Bt(`invalid ${e} header`);if(A===void 0)return;if(t.host===null&&e.length===4&&e.toLowerCase()==="host"){if(nL.exec(A)!==null)throw new Bt(`invalid ${e} header`);t.host=A}else if(t.contentLength===null&&e.length===14&&e.toLowerCase()==="content-length"){if(t.contentLength=parseInt(A,10),!Number.isFinite(t.contentLength))throw new Bt("invalid content-length header")}else if(t.contentType===null&&e.length===12&&e.toLowerCase()==="content-type")t.contentType=A,r?t.headers[e]=qo(e,A,r):t.headers+=qo(e,A);else{if(e.length===17&&e.toLowerCase()==="transfer-encoding")throw new Bt("invalid transfer-encoding header");if(e.length===10&&e.toLowerCase()==="connection"){let i=typeof A=="string"?A.toLowerCase():null;if(i!=="close"&&i!=="keep-alive")throw new Bt("invalid connection header");i==="close"&&(t.reset=!0)}else{if(e.length===10&&e.toLowerCase()==="keep-alive")throw new Bt("invalid keep-alive header");if(e.length===7&&e.toLowerCase()==="upgrade")throw new Bt("invalid upgrade header");if(e.length===6&&e.toLowerCase()==="expect")throw new Gge("expect header not supported");if(sL.exec(e)===null)throw new Bt("invalid header key");if(Array.isArray(A))for(let i=0;i<A.length;i++)r?t.headers[e]?t.headers[e]+=`,${qo(e,A[i],r)}`:t.headers[e]=qo(e,A[i],r):t.headers+=qo(e,A[i]);else r?t.headers[e]=qo(e,A,r):t.headers+=qo(e,A)}}}aL.exports=p4});var V1=f((_ve,cL)=>{"use strict";var Wge=require("events"),u4=class extends Wge{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}};cL.exports=u4});var Tu=f((qve,lL)=>{"use strict";var jge=V1(),{ClientDestroyedError:g4,ClientClosedError:Xge,InvalidArgumentError:Hl}=dt(),{kDestroy:Kge,kClose:Zge,kDispatch:m4,kInterceptors:Ho}=Ct(),Gl=Symbol("destroyed"),Lu=Symbol("closed"),Rn=Symbol("onDestroyed"),Yl=Symbol("onClosed"),z1=Symbol("Intercepted Dispatch"),h4=class extends jge{constructor(){super(),this[Gl]=!1,this[Rn]=null,this[Lu]=!1,this[Yl]=[]}get destroyed(){return this[Gl]}get closed(){return this[Lu]}get interceptors(){return this[Ho]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--)if(typeof this[Ho][A]!="function")throw new Hl("interceptor must be an function")}this[Ho]=e}close(e){if(e===void 0)return new Promise((r,i)=>{this.close((s,n)=>s?i(s):r(n))});if(typeof e!="function")throw new Hl("invalid callback");if(this[Gl]){queueMicrotask(()=>e(new g4,null));return}if(this[Lu]){this[Yl]?this[Yl].push(e):queueMicrotask(()=>e(null,null));return}this[Lu]=!0,this[Yl].push(e);let A=()=>{let r=this[Yl];this[Yl]=null;for(let i=0;i<r.length;i++)r[i](null,null)};this[Zge]().then(()=>this.destroy()).then(()=>{queueMicrotask(A)})}destroy(e,A){if(typeof e=="function"&&(A=e,e=null),A===void 0)return new Promise((i,s)=>{this.destroy(e,(n,a)=>n?s(n):i(a))});if(typeof A!="function")throw new Hl("invalid callback");if(this[Gl]){this[Rn]?this[Rn].push(A):queueMicrotask(()=>A(null,null));return}e||(e=new g4),this[Gl]=!0,this[Rn]=this[Rn]||[],this[Rn].push(A);let r=()=>{let i=this[Rn];this[Rn]=null;for(let s=0;s<i.length;s++)i[s](null,null)};this[Kge](e).then(()=>{queueMicrotask(r)})}[z1](e,A){if(!this[Ho]||this[Ho].length===0)return this[z1]=this[m4],this[m4](e,A);let r=this[m4].bind(this);for(let i=this[Ho].length-1;i>=0;i--)r=this[Ho][i](r);return this[z1]=r,r(e,A)}dispatch(e,A){if(!A||typeof A!="object")throw new Hl("handler must be an object");try{if(!e||typeof e!="object")throw new Hl("opts must be an object.");if(this[Gl]||this[Rn])throw new g4;if(this[Lu])throw new Xge;return this[z1](e,A)}catch(r){if(typeof A.onError!="function")throw new Hl("invalid onError method");return A.onError(r),!1}}};lL.exports=h4});var Uu=f((Yve,uL)=>{"use strict";var $ge=require("net"),dL=require("assert"),pL=qe(),{InvalidArgumentError:eme,ConnectTimeoutError:tme}=dt(),E4,f4;global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?f4=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(
`,this[DL]=o??3e5,this[vL]=i??3e5,this[Hu]=N??!0,this[kme]=h,this[Gu]=w,this[xa]=null,this[kL]=y>-1?y:-1,this[qs]="h1",this[ci]=null,this[tE]=v?{openStreams:0,maxConcurrentStreams:D??100}:null,this[FL]=`${this[JA].hostname}${this[JA].port?`:${this[JA].port}`:""}`,this[Nt]=[],this[xt]=0,this[oi]=0}get pipelining(){return this[va]}set pipelining(e){this[va]=e,li(this,!0)}get[Jo](){return this[Nt].length-this[oi]}get[Ot](){return this[oi]-this[xt]}get[Yo](){return this[Nt].length-this[xt]}get[Sme](){return!!this[Vt]&&!this[zl]&&!this[Vt].destroyed}get[N4](){let e=this[Vt];return e&&(e[fr]||e[Dn]||e[jl])||this[Yo]>=(this[va]||1)||this[Jo]>0}[Dme](e){ML(this),this.once("connect",e)}[Tme](e,A){let r=e.origin||this[JA].origin,i=this[qs]==="h2"?b4[Mme](r,e,A):b4[Pme](r,e,A);return this[Nt].push(i),this[Go]||(ce.bodyLength(i.body)==null&&ce.isIterable(i.body)?(this[Go]=1,process.nextTick(li,this)):li(this,!0)),this[Go]&&this[Ra]!==2&&this[N4]&&(this[Ra]=2),this[Ra]<2}async[Fme](){return new Promise(e=>{this[Yo]?this[xa]=e:e(null)})}async[Lme](e){return new Promise(A=>{let r=this[Nt].splice(this[oi]);for(let s=0;s<r.length;s++){let n=r[s];Cr(this,n,e)}let i=()=>{this[xa]&&(this[xa](),this[xa]=null),A()};this[ci]!=null&&(ce.destroy(this[ci],e),this[ci]=null,this[tE]=null),this[Vt]?ce.destroy(this[Vt].on("close",i),e):queueMicrotask(i),li(this)})}};function zme(t){$(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vt][VA]=t,sE(this[_s],t)}function Wme(t,e,A){let r=new Ps(`HTTP/2: "frameError" received - type ${t}, code ${e}`);A===0&&(this[Vt][VA]=r,sE(this[_s],r))}function jme(){ce.destroy(this,new Wl("other side closed")),ce.destroy(this[Vt],new Wl("other side closed"))}function Xme(t){let e=this[_s],A=new Ps(`HTTP/2: "GOAWAY" frame received with code ${t}`);if(e[Vt]=null,e[ci]=null,e.destroyed){$(this[Jo]===0);let r=e[Nt].splice(e[xt]);for(let i=0;i<r.length;i++){let s=r[i];Cr(this,s,A)}}else if(e[Ot]>0){let r=e[Nt][e[xt]];e[Nt][e[xt]++]=null,Cr(e,r,A)}e[oi]=e[xt],$(e[Ot]===0),e.emit("disconnect",e[JA],[e],A),li(e)}var Us=mL(),Kme=X1(),Zme=Buffer.alloc(0);async function $me(){let t=process.env.JEST_WORKER_ID?I4():void 0,e;try{e=await WebAssembly.compile(Buffer.from(IL(),"base64"))}catch{e=await WebAssembly.compile(Buffer.from(t||I4(),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,i)=>0,wasm_on_status:(A,r,i)=>{$.strictEqual(CA.ptr,A);let s=r-Os+Ms.byteOffset;return CA.onStatus(new K1(Ms.buffer,s,i))||0},wasm_on_message_begin:A=>($.strictEqual(CA.ptr,A),CA.onMessageBegin()||0),wasm_on_header_field:(A,r,i)=>{$.strictEqual(CA.ptr,A);let s=r-Os+Ms.byteOffset;return CA.onHeaderField(new K1(Ms.buffer,s,i))||0},wasm_on_header_value:(A,r,i)=>{$.strictEqual(CA.ptr,A);let s=r-Os+Ms.byteOffset;return CA.onHeaderValue(new K1(Ms.buffer,s,i))||0},wasm_on_headers_complete:(A,r,i,s)=>($.strictEqual(CA.ptr,A),CA.onHeadersComplete(r,!!i,!!s)||0),wasm_on_body:(A,r,i)=>{$.strictEqual(CA.ptr,A);let s=r-Os+Ms.byteOffset;return CA.onBody(new K1(Ms.buffer,s,i))||0},wasm_on_message_complete:A=>($.strictEqual(CA.ptr,A),CA.onMessageComplete()||0)}})}var w4=null,v4=$me();v4.catch();var CA=null,Ms=null,Z1=0,Os=null,Xl=1,eE=2,D4=3,S4=class{constructor(e,A,{exports:r}){$(Number.isFinite(e[$1])&&e[$1]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Us.TYPE.RESPONSE),this.client=e,this.socket=A,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[$1],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kL]}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(y4.clearTimeout(this.timeout),e?(this.timeout=y4.setTimeout(ehe,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){this.socket.destroyed||!this.paused||($(this.ptr!=null),$(CA==null),this.llhttp.llhttp_resume(this.ptr),$(this.timeoutTy
`;return typeof s=="string"?g+=`host: ${s}\r
`:g+=t[NL],n?g+=`connection: upgrade\r
upgrade: ${n}\r
`:t[va]&&!u[fr]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,a&&(g+=a),Ar.sendHeaders.hasSubscribers&&Ar.sendHeaders.publish({request:e,headers:g,socket:u}),!A||d===0?(p===0?u.write(`${g}content-length: 0\r
\r
`,"latin1"):($(p===null,"no body must not have content length"),u.write(`${g}\r
`,"latin1")),e.onRequestSent()):ce.isBuffer(A)?($(p===A.byteLength,"buffer body must have content length"),u.cork(),u.write(`${g}content-length: ${p}\r
\r
`,"latin1"),u.write(A),u.uncork(),e.onBodySent(A),e.onRequestSent(),l||(u[fr]=!0)):ce.isBlobLike(A)?typeof A.stream=="function"?rE({body:A.stream(),client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:l}):_L({body:A,client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:l}):ce.isStream(A)?PL({body:A,client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:l}):ce.isIterable(A)?rE({body:A,client:t,request:e,socket:u,contentLength:p,header:g,expectsPayload:l}):$(!1),!0}function rhe(t,e,A){let{body:r,method:i,path:s,host:n,upgrade:a,expectContinue:o,signal:c,headers:l}=A,d;if(typeof l=="string"?d=b4[Ome](l.trim()):d=l,a)return Cr(t,A,new Error("Upgrade not supported for H2")),!1;try{A.onConnect(N=>{A.aborted||A.completed||Cr(t,A,N||new F4)})}catch(N){Cr(t,A,N)}if(A.aborted)return!1;let p,u=t[tE];if(d[_me]=n||t[FL],d[qme]=i,i==="CONNECT")return e.ref(),p=e.request(d,{endStream:!1,signal:c}),p.id&&!p.pending?(A.onUpgrade(null,null,p),++u.openStreams):p.once("ready",()=>{A.onUpgrade(null,null,p),++u.openStreams}),p.once("close",()=>{u.openStreams-=1,u.openStreams===0&&e.unref()}),!0;d[Hme]=s,d[Gme]="https";let g=i==="PUT"||i==="POST"||i==="PATCH";r&&typeof r.read=="function"&&r.read(0);let m=ce.bodyLength(r);if(m==null&&(m=A.contentLength),(m===0||!g)&&(m=null),OL(i)&&m>0&&A.contentLength!=null&&A.contentLength!==m){if(t[Hu])return Cr(t,A,new vn),!1;process.emitWarning(new vn)}m!=null&&($(r,"no body must not have content length"),d[Yme]=`${m}`),e.ref();let C=i==="GET"||i==="HEAD";return o?(d[Jme]="100-continue",p=e.request(d,{endStream:C,signal:c}),p.once("continue",Q)):(p=e.request(d,{endStream:C,signal:c}),Q()),++u.openStreams,p.once("response",N=>{let{[Vme]:B,...h}=N;A.onHeaders(Number(B),h,p.resume.bind(p),"")===!1&&p.pause()}),p.once("end",()=>{A.onComplete([])}),p.on("data",N=>{A.onData(N)===!1&&p.pause()}),p.once("close",()=>{u.openStreams-=1,u.openStreams===0&&e.unref()}),p.once("error",function(N){t[ci]&&!t[ci].destroyed&&!this.closed&&!this.destroyed&&(u.streams-=1,ce.destroy(p,N))}),p.once("frameError",(N,B)=>{let h=new Ps(`HTTP/2: "frameError" received - type ${N}, code ${B}`);Cr(t,A,h),t[ci]&&!t[ci].destroyed&&!this.closed&&!this.destroyed&&(u.streams-=1,ce.destroy(p,h))}),!0;function Q(){r?ce.isBuffer(r)?($(m===r.byteLength,"buffer body must have content length"),p.cork(),p.write(r),p.uncork(),p.end(),A.onBodySent(r),A.onRequestSent()):ce.isBlobLike(r)?typeof r.stream=="function"?rE({client:t,request:A,contentLength:m,h2stream:p,expectsPayload:g,body:r.stream(),socket:t[Vt],header:""}):_L({body:r,client:t,request:A,contentLength:m,expectsPayload:g,h2stream:p,header:"",socket:t[Vt]}):ce.isStream(r)?PL({body:r,client:t,request:A,contentLength:m,expectsPayload:g,socket:t[Vt],h2stream:p,header:""}):ce.isIterable(r)?rE({body:r,client:t,request:A,contentLength:m,expectsPayload:g,header:"",h2stream:p,socket:t[Vt]}):$(!1):A.onRequestSent()}}function PL({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:s,header:n,expectsPayload:a}){if($(s!==0||A[Ot]===0,"stream body cannot be pipelined"),A[qs]==="h2"){let m=function(C){r.onBodySent(C)},g=Bme(e,t,C=>{C?(ce.destroy(e,C),ce.destroy(t,C)):r.onRequestSent()});g.on("data",m),g.once("end",()=>{g.removeListener("data",m),ce.destroy(g)});return}let o=!1,c=new iE({socket:i,request:r,contentLength:s,client:A,expectsPayload:a,header:n}),l=function(g){if(!o)try{!c.write(g)&&this.pause&&this.pause()}catch(m){ce.destroy(this,m)}},d=function(){o||e.resume&&e.resume()},p=function(){if(o)return;let g=new F4;queueMicrotask(()=>u(g))},u=function(g){if(!o){if(o=!0,$(i.destroyed||i[Dn]&&A[Ot]<=1),i.off("drain",d).off("error",u),e.removeListener("data",l).removeListener("end",u).removeListener("error",u).removeListener("close",p),!g)try{c.end()}catch(m){g=m}c.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?ce.destroy(e,g):ce.destroy(e)}};e.on("data",l).on("end",u).on("error",u).on("close",p),e.resume&&e.resume(),i.on("drain",d).on("error",u)}async function _L({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:s,header:n,ex
\r
`,"latin1"),i.write(c),i.uncork()),r.onBodySent(c),r.onRequestSent(),a||(i[fr]=!0),li(A)}catch(c){ce.destroy(o?t:i,c)}}async function rE({h2stream:t,body:e,client:A,request:r,socket:i,contentLength:s,header:n,expectsPayload:a}){$(s!==0||A[Ot]===0,"iterator body cannot be pipelined");let o=null;function c(){if(o){let p=o;o=null,p()}}let l=()=>new Promise((p,u)=>{$(o===null),i[VA]?u(i[VA]):o=p});if(A[qs]==="h2"){t.on("close",c).on("drain",c);try{for await(let p of e){if(i[VA])throw i[VA];let u=t.write(p);r.onBodySent(p),u||await l()}}catch(p){t.destroy(p)}finally{r.onRequestSent(),t.end(),t.off("close",c).off("drain",c)}return}i.on("close",c).on("drain",c);let d=new iE({socket:i,request:r,contentLength:s,client:A,expectsPayload:a,header:n});try{for await(let p of e){if(i[VA])throw i[VA];d.write(p)||await l()}d.end()}catch(p){d.destroy(p)}finally{i.off("close",c).off("drain",c)}}var iE=class{constructor({socket:e,request:A,contentLength:r,client:i,expectsPayload:s,header:n}){this.socket=e,this.request=A,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=s,this.header=n,e[Dn]=!0}write(e){let{socket:A,request:r,contentLength:i,client:s,bytesWritten:n,expectsPayload:a,header:o}=this;if(A[VA])throw A[VA];if(A.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(i!==null&&n+c>i){if(s[Hu])throw new vn;process.emitWarning(new vn)}A.cork(),n===0&&(a||(A[fr]=!0),i===null?A.write(`${o}transfer-encoding: chunked\r
`,"latin1"):A.write(`${o}content-length: ${i}\r
\r
`,"latin1")),i===null&&A.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let l=A.write(e);return A.uncork(),r.onBodySent(e),l||A[Jt].timeout&&A[Jt].timeoutType===Xl&&A[Jt].timeout.refresh&&A[Jt].timeout.refresh(),l}end(){let{socket:e,contentLength:A,client:r,bytesWritten:i,expectsPayload:s,header:n,request:a}=this;if(a.onRequestSent(),e[Dn]=!1,e[VA])throw e[VA];if(!e.destroyed){if(i===0?s?e.write(`${n}content-length: 0\r
\r
`,"latin1"):e.write(`${n}\r
`,"latin1"):A===null&&e.write(`\r
0\r
\r
`,"latin1"),A!==null&&i!==A){if(r[Hu])throw new vn;process.emitWarning(new vn)}e[Jt].timeout&&e[Jt].timeoutType===Xl&&e[Jt].timeout.refresh&&e[Jt].timeout.refresh(),li(r)}}destroy(e){let{socket:A,client:r}=this;A[Dn]=!1,e&&($(r[Ot]<=1,"pipeline should only contain this request"),ce.destroy(A,e))}};function Cr(t,e,A){try{e.onError(A),$(e.aborted)}catch(r){t.emit("error",r)}}qL.exports=R4});var GL=f(($ve,HL)=>{"use strict";var nE=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)}};HL.exports=class{constructor(){this.head=this.tail=new nE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new nE),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var JL=f((eDe,YL)=>{var{kFree:ihe,kConnected:she,kPending:nhe,kQueued:ahe,kRunning:ohe,kSize:che}=Ct(),Vo=Symbol("pool"),L4=class{constructor(e){this[Vo]=e}get connected(){return this[Vo][she]}get free(){return this[Vo][ihe]}get pending(){return this[Vo][nhe]}get queued(){return this[Vo][ahe]}get running(){return this[Vo][ohe]}get size(){return this[Vo][che]}};YL.exports=L4});var _4=f((tDe,tT)=>{"use strict";var lhe=Tu(),dhe=GL(),{kConnected:T4,kSize:VL,kRunning:zL,kPending:WL,kQueued:Ju,kBusy:phe,kFree:uhe,kUrl:ghe,kClose:mhe,kDestroy:hhe,kDispatch:Ehe}=Ct(),fhe=JL(),qr=Symbol("clients"),Br=Symbol("needDrain"),Vu=Symbol("queue"),U4=Symbol("closed resolve"),M4=Symbol("onDrain"),jL=Symbol("onConnect"),XL=Symbol("onDisconnect"),KL=Symbol("onConnectionError"),O4=Symbol("get dispatcher"),$L=Symbol("add client"),eT=Symbol("remove client"),ZL=Symbol("stats"),P4=class extends lhe{constructor(){super(),this[Vu]=new dhe,this[qr]=[],this[Ju]=0;let e=this;this[M4]=function(r,i){let s=e[Vu],n=!1;for(;!n;){let a=s.shift();if(!a)break;e[Ju]--,n=!this.dispatch(a.opts,a.handler)}this[Br]=n,!this[Br]&&e[Br]&&(e[Br]=!1,e.emit("drain",r,[e,...i])),e[U4]&&s.isEmpty()&&Promise.all(e[qr].map(a=>a.close())).then(e[U4])},this[jL]=(A,r)=>{e.emit("connect",A,[e,...r])},this[XL]=(A,r,i)=>{e.emit("disconnect",A,[e,...r],i)},this[KL]=(A,r,i)=>{e.emit("connectionError",A,[e,...r],i)},this[ZL]=new fhe(this)}get[phe](){return this[Br]}get[T4](){return this[qr].filter(e=>e[T4]).length}get[uhe](){return this[qr].filter(e=>e[T4]&&!e[Br]).length}get[WL](){let e=this[Ju];for(let{[WL]:A}of this[qr])e+=A;return e}get[zL](){let e=0;for(let{[zL]:A}of this[qr])e+=A;return e}get[VL](){let e=this[Ju];for(let{[VL]:A}of this[qr])e+=A;return e}get stats(){return this[ZL]}async[mhe](){return this[Vu].isEmpty()?Promise.all(this[qr].map(e=>e.close())):new Promise(e=>{this[U4]=e})}async[hhe](e){for(;;){let A=this[Vu].shift();if(!A)break;A.handler.onError(e)}return Promise.all(this[qr].map(A=>A.destroy(e)))}[Ehe](e,A){let r=this[O4]();return r?r.dispatch(e,A)||(r[Br]=!0,this[Br]=!this[O4]()):(this[Br]=!0,this[Vu].push({opts:e,handler:A}),this[Ju]++),!this[Br]}[$L](e){return e.on("drain",this[M4]).on("connect",this[jL]).on("disconnect",this[XL]).on("connectionError",this[KL]),this[qr].push(e),this[Br]&&process.nextTick(()=>{this[Br]&&this[M4](e[ghe],[this,e])}),this}[eT](e){e.close(()=>{let A=this[qr].indexOf(e);A!==-1&&this[qr].splice(A,1)}),this[Br]=this[qr].some(A=>!A[Br]&&A.closed!==!0&&A.destroyed!==!0)}};tT.exports={PoolBase:P4,kClients:qr,kNeedDrain:Br,kAddClient:$L,kRemoveClient:eT,kGetDispatcher:O4}});var Kl=f((ADe,sT)=>{"use strict";var{PoolBase:Che,kClients:AT,kNeedDrain:Bhe,kAddClient:Qhe,kGetDispatcher:Ihe}=_4(),yhe=Yu(),{InvalidArgumentError:q4}=dt(),H4=qe(),{kUrl:rT,kInterceptors:whe}=Ct(),bhe=Uu(),G4=Symbol("options"),Y4=Symbol("connections"),iT=Symbol("factory");function Nhe(t,e){return new yhe(t,e)}var J4=class extends Che{constructor(e,{connections:A,factory:r=Nhe,connect:i,connectTimeout:s,tls:n,maxCachedSessions:a
${r.count} ${r.noun} ${r.is} pending:
${e.format(A)}
`.trim())}};MU.exports=v6});var YU=f((xDe,GU)=>{"use strict";var{kProxy:xEe,kClose:REe,kDestroy:vEe,kInterceptors:DEe}=Ct(),{URL:PU}=require("url"),_U=Wu(),SEe=Kl(),kEe=Tu(),{InvalidArgumentError:$u,RequestAbortedError:FEe}=dt(),qU=Uu(),Ku=Symbol("proxy agent"),xE=Symbol("proxy client"),Zu=Symbol("proxy headers"),D6=Symbol("request tls settings"),LEe=Symbol("proxy tls settings"),HU=Symbol("connect endpoint function");function TEe(t){return t==="https:"?443:80}function UEe(t){if(typeof t=="string"&&(t={uri:t}),!t||!t.uri)throw new $u("Proxy opts.uri is mandatory");return{uri:t.uri,protocol:t.protocol||"https"}}function MEe(t,e){return new SEe(t,e)}var S6=class extends kEe{constructor(e){if(super(e),this[xEe]=UEe(e),this[Ku]=new _U(e),this[DEe]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],typeof e=="string"&&(e={uri:e}),!e||!e.uri)throw new $u("Proxy opts.uri is mandatory");let{clientFactory:A=MEe}=e;if(typeof A!="function")throw new $u("Proxy opts.clientFactory must be a function.");this[D6]=e.requestTls,this[LEe]=e.proxyTls,this[Zu]=e.headers||{};let r=new PU(e.uri),{origin:i,port:s,host:n,username:a,password:o}=r;if(e.auth&&e.token)throw new $u("opts.auth cannot be used in combination with opts.token");e.auth?this[Zu]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[Zu]["proxy-authorization"]=e.token:a&&o&&(this[Zu]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(a)}:${decodeURIComponent(o)}`).toString("base64")}`);let c=qU({...e.proxyTls});this[HU]=qU({...e.requestTls}),this[xE]=A(r,{connect:c}),this[Ku]=new _U({...e,connect:async(l,d)=>{let p=l.host;l.port||(p+=`:${TEe(l.protocol)}`);try{let{socket:u,statusCode:g}=await this[xE].connect({origin:i,port:s,path:p,signal:l.signal,headers:{...this[Zu],host:n}});if(g!==200&&(u.on("error",()=>{}).destroy(),d(new FEe(`Proxy response (${g}) !== 200 when HTTP Tunneling`))),l.protocol!=="https:"){d(null,u);return}let m;this[D6]?m=this[D6].servername:m=l.servername,this[HU]({...l,servername:m,httpSocket:u},d)}catch(u){d(u)}}})}dispatch(e,A){let{host:r}=new PU(e.origin),i=OEe(e.headers);return PEe(i),this[Ku].dispatch({...e,headers:{...i,host:r}},A)}async[REe](){await this[Ku].close(),await this[xE].close()}async[vEe](){await this[Ku].destroy(),await this[xE].destroy()}};function OEe(t){if(Array.isArray(t)){let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}return t}function PEe(t){if(t&&Object.keys(t).find(A=>A.toLowerCase()==="proxy-authorization"))throw new $u("Proxy-Authorization should be sent in ProxyAgent constructor")}GU.exports=S6});var jU=f((RDe,WU)=>{var Zo=require("assert"),{kRetryHandlerDefaultRetry:JU}=Ct(),{RequestRetryError:RE}=dt(),{isDisturbed:VU,parseHeaders:_Ee,parseRangeHeader:zU}=qe();function qEe(t){let e=Date.now();return new Date(t).getTime()-e}var k6=class t{constructor(e,A){let{retryOptions:r,...i}=e,{retry:s,maxRetries:n,maxTimeout:a,minTimeout:o,timeoutFactor:c,methods:l,errorCodes:d,retryAfter:p,statusCodes:u}=r??{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=i,this.abort=null,this.aborted=!1,this.retryOpts={retry:s??t[JU],retryAfter:p??!0,maxTimeout:a??30*1e3,timeout:o??500,timeoutFactor:c??2,maxRetries:n??5,methods:l??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:u??[500,502,503,504,429],errorCodes:d??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(g=>{this.aborted=!0,this.abort?this.abort(g):this.reason=g})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,A,r){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,r)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[JU](e,{state:A,opts:r},i){let{statusCode:s,code:n,headers:a}=e,{method:o,retryOptions:c}=r,{maxRetries:l,timeout:d,maxTimeout:p,timeoutFactor:u,statusCodes:g,errorCodes:m,methods:C}=c,{count
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(vw)});var Ws=f((jP,Oa)=>{(function(){var t,e,A,r,i,s,n,a=[].slice,o={}.hasOwnProperty;t=function(){var c,l,d,p,u,g;if(g=arguments[0],u=2<=arguments.length?a.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(c=0,d=u.length;c<d;c++)if(p=u[c],p!=null)for(l in p)o.call(p,l)&&(g[l]=p[l]);return g},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},s=function(c){var l;return!!c&&((l=typeof c)=="function"||l==="object")},A=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},r=function(c){var l;if(A(c))return!c.length;for(l in c)if(o.call(c,l))return!1;return!0},n=function(c){var l,d;return s(c)&&(d=Object.getPrototypeOf(c))&&(l=d.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},e=function(c){return i(c.valueOf)?c.valueOf():c},Oa.exports.assign=t,Oa.exports.isFunction=i,Oa.exports.isObject=s,Oa.exports.isArray=A,Oa.exports.isEmpty=r,Oa.exports.isPlainObject=n,Oa.exports.getValue=e}).call(jP)});var Dw=f((XP,KP)=>{(function(){var t;KP.exports=t=function(){function e(){}return e.prototype.hasFeature=function(A,r){return!0},e.prototype.createDocumentType=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(A,r,i){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(A,r){throw new Error("This DOM method is not implemented.")},e}()}).call(XP)});var e_=f((ZP,$P)=>{(function(){var t;$P.exports=t=function(){function e(){}return e.prototype.handleError=function(A){throw new Error(A)},e}()}).call(ZP)});var r_=f((t_,A_)=>{(function(){var t;A_.exports=t=function(){function e(A){this.arr=A||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(A){return this.arr[A]||null},e.prototype.contains=function(A){return this.arr.indexOf(A)!==-1},e}()}).call(t_)});var n_=f((i_,s_)=>{(function(){var t,e,A;e=e_(),A=r_(),s_.exports=t=function(){function r(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new A(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},r.prototype.canSetParameter=function(i,s){return!0},r.prototype.setParameter=function(i,s){return s!=null?this.params[i]=s:delete this.params[i]},r}()}).call(i_)});var aA=f((a_,o_)=>{(function(){o_.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(a_)});var Sw=f((c_,l_)=>{(function(){var t,e,A;t=aA(),A=Ei(),l_.exports=e=function(){function r(i,s,n){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(n),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(r.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(r.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defin
`,h.offset=(R=B.offset)!=null?R:0,h.dontPrettyTextNodes=(y=(S=B.dontPrettyTextNodes)!=null?S:B.dontprettytextnodes)!=null?y:0,h.spaceBeforeSlash=(x=(v=B.spaceBeforeSlash)!=null?v:B.spacebeforeslash)!=null?x:"",h.spaceBeforeSlash===!0&&(h.spaceBeforeSlash=" "),h.suppressPrettyCount=0,h.user={},h.state=e.None,h},N.prototype.indent=function(B,h,E){var w;return!h.pretty||h.suppressPrettyCount?"":h.pretty&&(w=(E||0)+h.offset+1,w>0)?new Array(w).join(h.indent):""},N.prototype.endline=function(B,h,E){return!h.pretty||h.suppressPrettyCount?"":h.newline},N.prototype.attribute=function(B,h,E){var w;return this.openAttribute(B,h,E),w=" "+B.name+'="'+B.value+'"',this.closeAttribute(B,h,E),w},N.prototype.cdata=function(B,h,E){var w;return this.openNode(B,h,E),h.state=e.OpenTag,w=this.indent(B,h,E)+"<![CDATA[",h.state=e.InsideTag,w+=B.value,h.state=e.CloseTag,w+="]]>"+this.endline(B,h,E),h.state=e.None,this.closeNode(B,h,E),w},N.prototype.comment=function(B,h,E){var w;return this.openNode(B,h,E),h.state=e.OpenTag,w=this.indent(B,h,E)+"<!-- ",h.state=e.InsideTag,w+=B.value,h.state=e.CloseTag,w+=" -->"+this.endline(B,h,E),h.state=e.None,this.closeNode(B,h,E),w},N.prototype.declaration=function(B,h,E){var w;return this.openNode(B,h,E),h.state=e.OpenTag,w=this.indent(B,h,E)+"<?xml",h.state=e.InsideTag,w+=' version="'+B.version+'"',B.encoding!=null&&(w+=' encoding="'+B.encoding+'"'),B.standalone!=null&&(w+=' standalone="'+B.standalone+'"'),h.state=e.CloseTag,w+=h.spaceBeforeSlash+"?>",w+=this.endline(B,h,E),h.state=e.None,this.closeNode(B,h,E),w},N.prototype.docType=function(B,h,E){var w,R,y,S,x;if(E||(E=0),this.openNode(B,h,E),h.state=e.OpenTag,S=this.indent(B,h,E),S+="<!DOCTYPE "+B.root().name,B.pubID&&B.sysID?S+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(S+=' SYSTEM "'+B.sysID+'"'),B.children.length>0){for(S+=" [",S+=this.endline(B,h,E),h.state=e.InsideTag,x=B.children,R=0,y=x.length;R<y;R++)w=x[R],S+=this.writeChildNode(w,h,E+1);h.state=e.CloseTag,S+="]"}return h.state=e.CloseTag,S+=h.spaceBeforeSlash+">",S+=this.endline(B,h,E),h.state=e.None,this.closeNode(B,h,E),S},N.prototype.element=function(B,h,E){var w,R,y,S,x,v,D,L,z,he,O,Je,Be,Tt;E||(E=0),he=!1,O="",this.openNode(B,h,E),h.state=e.OpenTag,O+=this.indent(B,h,E)+"<"+B.name,Je=B.attribs;for(z in Je)Q.call(Je,z)&&(w=Je[z],O+=this.attribute(w,h,E));if(y=B.children.length,S=y===0?null:B.children[0],y===0||B.children.every(function(mt){return(mt.type===t.Text||mt.type===t.Raw)&&mt.value===""}))h.allowEmpty?(O+=">",h.state=e.CloseTag,O+="</"+B.name+">"+this.endline(B,h,E)):(h.state=e.CloseTag,O+=h.spaceBeforeSlash+"/>"+this.endline(B,h,E));else if(h.pretty&&y===1&&(S.type===t.Text||S.type===t.Raw)&&S.value!=null)O+=">",h.state=e.InsideTag,h.suppressPrettyCount++,he=!0,O+=this.writeChildNode(S,h,E+1),h.suppressPrettyCount--,he=!1,h.state=e.CloseTag,O+="</"+B.name+">"+this.endline(B,h,E);else{if(h.dontPrettyTextNodes){for(Be=B.children,x=0,D=Be.length;x<D;x++)if(R=Be[x],(R.type===t.Text||R.type===t.Raw)&&R.value!=null){h.suppressPrettyCount++,he=!0;break}}for(O+=">"+this.endline(B,h,E),h.state=e.InsideTag,Tt=B.children,v=0,L=Tt.length;v<L;v++)R=Tt[v],O+=this.writeChildNode(R,h,E+1);h.state=e.CloseTag,O+=this.indent(B,h,E)+"</"+B.name+">",he&&h.suppressPrettyCount--,O+=this.endline(B,h,E),h.state=e.None}return this.closeNode(B,h,E),O},N.prototype.writeChildNode=function(B,h,E){switch(B.type){case t.CData:return this.cdata(B,h,E);case t.Comment:return this.comment(B,h,E);case t.Element:return this.element(B,h,E);case t.Raw:return this.raw(B,h,E);case t.Text:return this.text(B,h,E);case t.ProcessingInstruction:return this.processingInstruction(B,h,E);case t.Dummy:return"";case t.Declaration:return this.declaration(B,h,E);case t.DocType:return this.docType(B,h,E);case t.AttributeDeclaration:return this.dtdAttList(B,h,E);case t.ElementDeclaration:return this.dtdElement(B,h,E);case t.EntityDeclaration:return this.dtdEntity(B,h,E);case t.NotationDeclaration:return this.dtdNotation(B,h,E);default:throw new Error("Unknown XML node type: "+B.constructor.name)}},N.prototype.processingInstructi
`||b==="\r"||b===" "}function h(b){return b==='"'||b==="'"}function E(b){return b===">"||B(b)}function w(b,I){return b.test(I)}function R(b,I){return!w(b,I)}var y=0;t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(b){var I=t.ENTITIES[b],U=typeof I=="number"?String.fromCharCode(I):I;t.ENTITIES[b]=U});for(var S in t.STATE)t.STATE[t.STATE[S]]=S;y=t.STATE;function x(b,I,U){b[I]&&b[I](U)}function v(b,I,U){b.textNode&&D(b),x(b,I,U)}function D(b){b.textNode=L(b.opt,b.textNode),b.textNode&&x(b,"ontext",b.textNode),b.textNode=""}function L(b,I){return b.trim&&(I=I.trim()),b.normalize&&(I=I.replace(/\s+/g," ")),I}function z(b,I){return D(b),b.trackPosition&&(I+=`
Line: `+b.line+`
Column: `+b.column+`
Char: `+b.c),I=new Error(I),b.error=I,x(b,"onerror",I),b}function he(b){return b.sawRoot&&!b.closedRoot&&O(b,"Unclosed root tag"),b.state!==y.BEGIN&&b.state!==y.BEGIN_WHITESPACE&&b.state!==y.TEXT&&z(b,"Unexpected end"),D(b),b.c="",b.closed=!0,x(b,"onend"),A.call(b,b.strict,b.opt),b}function O(b,I){if(typeof b!="object"||!(b instanceof A))throw new Error("bad call to strictFail");b.strict&&z(b,I)}function Je(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var I=b.tags[b.tags.length-1]||b,U=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(U.ns=I.ns),b.attribList.length=0,v(b,"onopentagstart",U)}function Be(b,I){var U=b.indexOf(":"),k=U<0?["",b]:b.split(":"),it=k[0],hA=k[1];return I&&b==="xmlns"&&(it="xmlns",hA=""),{prefix:it,local:hA}}function Tt(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var I=Be(b.attribName,!0),U=I.prefix,k=I.local;if(U==="xmlns")if(k==="xml"&&b.attribValue!==p)O(b,"xml: prefix must be bound to "+p+`
Actual: `+b.attribValue);else if(k==="xmlns"&&b.attribValue!==u)O(b,"xmlns: prefix must be bound to "+u+`
Actual: `+b.attribValue);else{var it=b.tag,hA=b.tags[b.tags.length-1]||b;it.ns===hA.ns&&(it.ns=Object.create(hA.ns)),it.ns[k]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,v(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function mt(b,I){if(b.opt.xmlns){var U=b.tag,k=Be(b.tagName);U.prefix=k.prefix,U.local=k.local,U.uri=U.ns[k.prefix]||"",U.prefix&&!U.uri&&(O(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),U.uri=k.prefix);var it=b.tags[b.tags.length-1]||b;U.ns&&it.ns!==U.ns&&Object.keys(U.ns).forEach(function(U8){v(b,"onopennamespace",{prefix:U8,uri:U.ns[U8]})});for(var hA=0,EA=b.attribList.length;hA<EA;hA++){var Nr=b.attribList[hA],wi=Nr[0],Dc=Nr[1],MA=Be(wi,!0),nn=MA.prefix,vX=MA.local,T8=nn===""?"":U.ns[nn]||"",E0={name:wi,value:Dc,prefix:nn,local:vX,uri:T8};nn&&nn!=="xmlns"&&!T8&&(O(b,"Unbound namespace prefix: "+JSON.stringify(nn)),E0.uri=nn),b.tag.attributes[wi]=E0,v(b,"onattribute",E0)}b.attribList.length=0}b.tag.isSelfClosing=!!I,b.sawRoot=!0,b.tags.push(b.tag),v(b,"onopentag",b.tag),I||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=y.SCRIPT:b.state=y.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function wr(b){if(!b.tagName){O(b,"Weird empty close tag."),b.textNode+="</>",b.state=y.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=y.SCRIPT;return}v(b,"onscript",b.script),b.script=""}var I=b.tags.length,U=b.tagName;b.strict||(U=U[b.looseCase]());for(var k=U;I--;){var it=b.tags[I];if(it.name!==k)O(b,"Unexpected close tag");else break}if(I<0){O(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=y.TEXT;return}b.tagName=U;for(var hA=b.tags.length;hA-- >I;){var EA=b.tag=b.tags.pop();b.tagName=b.tag.name,v(b,"onclosetag",b.tagName);var Nr={};for(var wi in EA.ns)Nr[wi]=EA.ns[wi];var Dc=b.tags[b.tags.length-1]||b;b.opt.xmlns&&EA.ns!==Dc.ns&&Object.keys(EA.ns).forEach(function(MA){var nn=EA.ns[MA];v(b,"onclosenamespace",{prefix:MA,uri:nn})})}I===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=y.TEXT}function br(b){var I=b.entity,U=I.toLowerCase(),k,it="";return b.ENTITIES[I]?b.ENTITIES[I]:b.ENTITIES[U]?b.ENTITIES[U]:(I=U,I.charAt(0)==="#"&&(I.charAt(1)==="x"?(I=I.slice(2),k=parseInt(I,16),it=k.toString(16)):(I=I.slice(1),k=parseInt(I,10),it=k.toString(10))),I=I.replace(/^0+/,""),isNaN(k)||it.toLowerCase()!==I?(O(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(k))}function xe(b,I){I==="<"?(b.state=y.OPEN_WAKA,b.startTagPosition=b.position):B(I)||(O(b,"Non-whitespace before first tag."),b.textNode=I,b.state=y.TEXT)}function Dt(b,I){var U="";return I<b.length&&(U=b.charAt(I)),U}function tA(b){var I=this;if(this.error)throw this.error;if(I.closed)return z(I,"Cannot write after close. Assign an onready handler.");if(b===null)return he(I);typeof b=="object"&&(b=b.toString());for(var U=0,k="";k=Dt(b,U++),I.c=k,!!k;)switch(I.trackPosition&&(I.position++,k===`
`?(I.line++,I.column=0):I.column++),I.state){case y.BEGIN:if(I.state=y.BEGIN_WHITESPACE,k==="\uFEFF")continue;xe(I,k);continue;case y.BEGIN_WHITESPACE:xe(I,k);continue;case y.TEXT:if(I.sawRoot&&!I.closedRoot){for(var it=U-1;k&&k!=="<"&&k!=="&";)k=Dt(b,U++),k&&I.trackPosition&&(I.position++,k===`
`?(I.line++,I.column=0):I.column++);I.textNode+=b.substring(it,U-1)}k==="<"&&!(I.sawRoot&&I.closedRoot&&!I.strict)?(I.state=y.OPEN_WAKA,I.startTagPosition=I.position):(!B(k)&&(!I.sawRoot||I.closedRoot)&&O(I,"Text data outside of root node."),k==="&"?I.state=y.TEXT_ENTITY:I.textNode+=k);continue;case y.SCRIPT:k==="<"?I.state=y.SCRIPT_ENDING:I.script+=k;continue;case y.SCRIPT_ENDING:k==="/"?I.state=y.CLOSE_TAG:(I.script+="<"+k,I.state=y.SCRIPT);continue;case y.OPEN_WAKA:if(k==="!")I.state=y.SGML_DECL,I.sgmlDecl="";else if(!B(k))if(w(m,k))I.state=y.OPEN_TAG,I.tagName=k;else if(k==="/")I.state=y.CLOSE_TAG,I.tagName="";else if(k==="?")I.state=y.PROC_INST,I.procInstName=I.procInstBody="";else{if(O(I,"Unencoded <"),I.startTagPosition+1<I.position){var hA=I.position-I.startTagPosition;k=new Array(hA).join(" ")+k}I.textNode+="<"+k,I.state=y.TEXT}continue;case y.SGML_DECL:(I.sgmlDecl+k).toUpperCase()===l?(v(I,"onopencdata"),I.state=y.CDATA,I.sgmlDecl="",I.cdata=""):I.sgmlDecl+k==="--"?(I.state=y.COMMENT,I.comment="",I.sgmlDecl=""):(I.sgmlDecl+k).toUpperCase()===d?(I.state=y.DOCTYPE,(I.doctype||I.sawRoot)&&O(I,"Inappropriately located doctype declaration"),I.doctype="",I.sgmlDecl=""):k===">"?(v(I,"onsgmldeclaration",I.sgmlDecl),I.sgmlDecl="",I.state=y.TEXT):(h(k)&&(I.state=y.SGML_DECL_QUOTED),I.sgmlDecl+=k);continue;case y.SGML_DECL_QUOTED:k===I.q&&(I.state=y.SGML_DECL,I.q=""),I.sgmlDecl+=k;continue;case y.DOCTYPE:k===">"?(I.state=y.TEXT,v(I,"ondoctype",I.doctype),I.doctype=!0):(I.doctype+=k,k==="["?I.state=y.DOCTYPE_DTD:h(k)&&(I.state=y.DOCTYPE_QUOTED,I.q=k));continue;case y.DOCTYPE_QUOTED:I.doctype+=k,k===I.q&&(I.q="",I.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:I.doctype+=k,k==="]"?I.state=y.DOCTYPE:h(k)&&(I.state=y.DOCTYPE_DTD_QUOTED,I.q=k);continue;case y.DOCTYPE_DTD_QUOTED:I.doctype+=k,k===I.q&&(I.state=y.DOCTYPE_DTD,I.q="");continue;case y.COMMENT:k==="-"?I.state=y.COMMENT_ENDING:I.comment+=k;continue;case y.COMMENT_ENDING:k==="-"?(I.state=y.COMMENT_ENDED,I.comment=L(I.opt,I.comment),I.comment&&v(I,"oncomment",I.comment),I.comment=""):(I.comment+="-"+k,I.state=y.COMMENT);continue;case y.COMMENT_ENDED:k!==">"?(O(I,"Malformed comment"),I.comment+="--"+k,I.state=y.COMMENT):I.state=y.TEXT;continue;case y.CDATA:k==="]"?I.state=y.CDATA_ENDING:I.cdata+=k;continue;case y.CDATA_ENDING:k==="]"?I.state=y.CDATA_ENDING_2:(I.cdata+="]"+k,I.state=y.CDATA);continue;case y.CDATA_ENDING_2:k===">"?(I.cdata&&v(I,"oncdata",I.cdata),v(I,"onclosecdata"),I.cdata="",I.state=y.TEXT):k==="]"?I.cdata+="]":(I.cdata+="]]"+k,I.state=y.CDATA);continue;case y.PROC_INST:k==="?"?I.state=y.PROC_INST_ENDING:B(k)?I.state=y.PROC_INST_BODY:I.procInstName+=k;continue;case y.PROC_INST_BODY:if(!I.procInstBody&&B(k))continue;k==="?"?I.state=y.PROC_INST_ENDING:I.procInstBody+=k;continue;case y.PROC_INST_ENDING:k===">"?(v(I,"onprocessinginstruction",{name:I.procInstName,body:I.procInstBody}),I.procInstName=I.procInstBody="",I.state=y.TEXT):(I.procInstBody+="?"+k,I.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:w(C,k)?I.tagName+=k:(Je(I),k===">"?mt(I):k==="/"?I.state=y.OPEN_TAG_SLASH:(B(k)||O(I,"Invalid character in tag name"),I.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:k===">"?(mt(I,!0),wr(I)):(O(I,"Forward-slash in opening tag not followed by >"),I.state=y.ATTRIB);continue;case y.ATTRIB:if(B(k))continue;k===">"?mt(I):k==="/"?I.state=y.OPEN_TAG_SLASH:w(m,k)?(I.attribName=k,I.attribValue="",I.state=y.ATTRIB_NAME):O(I,"Invalid attribute name");continue;case y.ATTRIB_NAME:k==="="?I.state=y.ATTRIB_VALUE:k===">"?(O(I,"Attribute without value"),I.attribValue=I.attribName,Tt(I),mt(I)):B(k)?I.state=y.ATTRIB_NAME_SAW_WHITE:w(C,k)?I.attribName+=k:O(I,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if(k==="=")I.state=y.ATTRIB_VALUE;else{if(B(k))continue;O(I,"Attribute without value"),I.tag.attributes[I.attribName]="",I.attribValue="",v(I,"onattribute",{name:I.attribName,value:""}),I.attribName="",k===">"?mt(I):w(m,k)?(I.attribName=k,I.state=y.ATTRIB_NAME):(O(I,"Invalid attribute name"),I.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(B(k))continue;h(k)?
`;Ge.DEFAULT_CONTENT_TYPE="application/octet-stream";Ge.prototype.append=function(t,e,A){A=A||{},typeof A=="string"&&(A={filename:A});var r=lb.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),TH.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,A),s=this._multiPartFooter();r(i),r(e),r(s),this._trackLength(i,e,A)};Ge.prototype._trackLength=function(t,e,A){var r=0;A.knownLength!=null?r+=+A.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+Ge.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof NIe))&&(A.knownLength||this._valuesToMeasure.push(e))};Ge.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):bIe.stat(t.path,function(A,r){var i;if(A){e(A);return}i=r.size-(t.start?t.start:0),e(null,i)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(A){t.pause(),e(null,+A.headers["content-length"])}),t.resume()):e("Unknown stream")};Ge.prototype._multiPartHeader=function(t,e,A){if(typeof A.header=="string")return A.header;var r=this._getContentDisposition(e,A),i=this._getContentType(e,A),s="",n={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof A.header=="object"&&cb(n,A.header);var a;for(var o in n)n.hasOwnProperty(o)&&(a=n[o],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(s+=o+": "+a.join("; ")+Ge.LINE_BREAK)));return"--"+this.getBoundary()+Ge.LINE_BREAK+s+Ge.LINE_BREAK};Ge.prototype._getContentDisposition=function(t,e){var A,r;return typeof e.filepath=="string"?A=ab.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?A=ab.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(A=ab.basename(t.client._httpMessage.path||"")),A&&(r='filename="'+A+'"'),r};Ge.prototype._getContentType=function(t,e){var A=e.contentType;return!A&&t.name&&(A=ob.lookup(t.name)),!A&&t.path&&(A=ob.lookup(t.path)),!A&&t.readable&&t.hasOwnProperty("httpVersion")&&(A=t.headers["content-type"]),!A&&(e.filepath||e.filename)&&(A=ob.lookup(e.filepath||e.filename)),!A&&typeof t=="object"&&(A=Ge.DEFAULT_CONTENT_TYPE),A};Ge.prototype._multiPartFooter=function(){return function(t){var e=Ge.LINE_BREAK,A=this._streams.length===0;A&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ge.LINE_BREAK};Ge.prototype.getHeaders=function(t){var e,A={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(A[e.toLowerCase()]=t[e]);return A};Ge.prototype.setBoundary=function(t){this._boundary=t};Ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ge.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),A=0,r=this._streams.length;A<r;A++)typeof this._streams[A]!="function"&&(Buffer.isBuffer(this._streams[A])?t=Buffer.concat([t,this._streams[A]]):t=Buffer.concat([t,Buffer.from(this._streams[A])]),(typeof this._streams[A]!="string"||this._streams[A].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(Ge.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};Ge.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};Ge.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};Ge.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};Ge.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure
${B6e.sanitize(this)}`}};Bi.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";Bi.PARSE_ERROR="PARSE_ERROR";var ms=f4e.createClientLogger("core-http");function UY(t,e){return t?e.httpsAgent:e.httpAgent}var cB=class extends y4e.Transform{constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,A,r){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),r(void 0)}};function AB(t){return t&&typeof t.pipe=="function"}function MY(t,e){return new Promise(A=>{t.once("close",()=>{e?.abort(),A()}),t.once("end",A),t.once("error",A)})}function Q6e(t){let e=new za;return t.forEach((A,r)=>{e.set(r,A)}),e}var lB=class{constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var A;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let r=new rB.AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new rB.AbortError("The operation was aborted.");i=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}if(e.timeout&&setTimeout(()=>{r.abort()},e.timeout),e.formData){let c=e.formData,l=new N4e.default,d=(u,g)=>{typeof g=="function"&&(g=g()),g&&Object.prototype.hasOwnProperty.call(g,"value")&&Object.prototype.hasOwnProperty.call(g,"options")?l.append(u,g.value,g.options):l.append(u,g)};for(let u of Object.keys(c)){let g=c[u];if(Array.isArray(g))for(let m=0;m<g.length;m++)d(u,g[m]);else d(u,g)}e.body=l,e.formData=void 0;let p=e.headers.get("Content-Type");p&&p.indexOf("multipart/form-data")!==-1&&(typeof l.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data; boundary=${l.getBoundary()}`):e.headers.remove("Content-Type"))}let s=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let c=e.onUploadProgress,l=new cB(c);AB(s)?s.pipe(l):l.end(s),s=l}let n=await this.prepareRequest(e),a=Object.assign({body:s,headers:e.headers.rawHeaders(),method:e.method,signal:r.signal,redirect:"manual"},n),o;try{let c=await this.fetch(e.url,a),l=Q6e(c.headers),d=((A=e.streamResponseStatusCodes)===null||A===void 0?void 0:A.has(c.status))||e.streamResponseBody;o={headers:l,request:e,status:c.status,readableStreamBody:d?c.body:void 0,bodyAsText:d?void 0:await c.text()};let p=e.onDownloadProgress;if(p){let u=c.body||void 0;if(AB(u)){let g=new cB(p);u.pipe(g),o.readableStreamBody=g}else{let g=parseInt(l.get("Content-Length"))||void 0;g&&p({loadedBytes:g})}}return await this.processRequest(o),o}catch(c){let l=c;throw l.code==="ENOTFOUND"?new Bi(l.message,Bi.REQUEST_SEND_ERROR,void 0,e):l.type==="aborted"?new rB.AbortError("The operation was aborted."):l}finally{if(e.abortSignal&&i){let c=Promise.resolve();AB(s)&&(c=MY(s));let l=Promise.resolve();AB(o?.readableStreamBody)&&(l=MY(o.readableStreamBody,r)),Promise.all([c,l]).then(()=>{var d;(d=e.abortSignal)===null||d===void 0||d.removeEventListener("abort",i)}).catch(d=>{ms.warning("Error when cleaning up abortListener on httpRequest",d)})}}}getOrCreateAgent(e){var A;let r=C9(e.url);if(e.proxySettings){let{host:i,port:s,username:n,password:a}=e.proxySettings,o=`${i}:${s}:${n}:${a}`,c=(A=this.proxyAgentMap.get(o))!==null&&A!==void 0?A:{},l=UY(r,c);if(l)return l;let d=h6e(e.url,e.proxySettings,e.headers);return l=d.agent,d.isHttps?c.httpsAgent=d.agent:c.httpAgent=d.agent,this.proxyAgentMap.set(o,c),l}else if(e.keepAlive){let i=UY(r,this.keepAliveAgents);if(i)return i;let s={keepAlive:e.keepAlive};return r?i=this.keepAliveAgents.httpsAgent=new SY.Agent(s):i=this.keepAliveAgents.httpAgent=new DY.Agent(s),i}else return r?SY.globalAgent:DY.globalAgent}async fetch(e,A){return x4e.default(e,A)}async prepareRequest(e){let A={};return A.agent=this.getOrCreateAgent(e),A.compress=e.decompressResponse,A}async processRequest(e){}};W.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(W.HttpPipelineLogLevel||(W.HttpPipelineLogLevel={}));function I6e(t){let{requestOptions:e,tracingOptions:A}=t,i=h4e.__rest(t,["requestOp
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1},sB=Object.assign({},rJ);sB.explicitArray=!1;var Hg=Object.assign({},rJ);Hg.explicitArray=!1;Hg.renderOpts={pretty:!1};function B9(t,e={}){var A;return Hg.rootName=e.rootName,Hg.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Gn,new VY.Builder(Hg).buildObject(t)}function iJ(t,e={}){var A;sB.explicitRoot=!!e.includeRoot,sB.charkey=(A=e.xmlCharKey)!==null&&A!==void 0?A:Gn;let r=new VY.Parser(sB);return new Promise((i,s)=>{t?r.parseString(t,(n,a)=>{n?s(n):i(a)}):s(new Error("Document is empty"))})}function Y9(t,e){return{create:(A,r)=>new Q9(A,r,t,e)}}var sJ=["application/json","text/json"],nJ=["application/xml","application/atom+xml"],y6e={expectedContentTypes:{json:sJ,xml:nJ}},Q9=class extends IA{constructor(e,A,r,i={}){var s;super(e,A),this.jsonContentTypes=r&&r.json||sJ,this.xmlContentTypes=r&&r.xml||nJ,this.xmlCharKey=(s=i.xmlCharKey)!==null&&s!==void 0?s:Gn}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(A=>aJ(this.jsonContentTypes,this.xmlContentTypes,A,{xmlCharKey:this.xmlCharKey}))}};function w6e(t){let e,A=t.request,r=A.operationSpec;if(r){let i=A.operationResponseGetter;i?e=i(r,t):e=r.responses[t.status]}return e}function b6e(t){let e=t.request.shouldDeserialize,A;return e===void 0?A=!0:typeof e=="boolean"?A=e:A=e(t),A}function aJ(t,e,A,r={}){var i,s,n;let a={rootName:(i=r.rootName)!==null&&i!==void 0?i:"",includeRoot:(s=r.includeRoot)!==null&&s!==void 0?s:!1,xmlCharKey:(n=r.xmlCharKey)!==null&&n!==void 0?n:Gn};return R6e(t,e,A,a).then(o=>{if(!b6e(o))return o;let c=o.request.operationSpec;if(!c||!c.responses)return o;let l=w6e(o),{error:d,shouldReturnResponse:p}=x6e(o,c,l);if(d)throw d;if(p)return o;if(l){if(l.bodyMapper){let u=o.parsedBody;c.isXML&&l.bodyMapper.type.name===hc.Sequence&&(u=typeof u=="object"?u[l.bodyMapper.xmlElementName]:[]);try{o.parsedBody=c.serializer.deserialize(l.bodyMapper,u,"operationRes.parsedBody",r)}catch(g){throw new Bi(`Error ${g} occurred in deserializing the responseBody - ${o.bodyAsText}`,void 0,o.status,o.request,o)}}else c.httpMethod==="HEAD"&&(o.parsedBody=A.status>=200&&A.status<300);l.headersMapper&&(o.parsedHeaders=c.serializer.deserialize(l.headersMapper,o.headers.toJson(),"operationRes.parsedHeaders",r))}return o})}function N6e(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}function x6e(t,e,A){var r;let i=200<=t.status&&t.status<300;if(N6e(e)?i:!!A)if(A){if(!A.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let n=A??e.responses.default,o=((r=t.request.streamResponseStatusCodes)===null||r===void 0?void 0:r.has(t.status))||t.request.streamResponseBody?`Unexpected status code: ${t.status}`:t.bodyAsText,c=new Bi(o,void 0,t.status,t.request,t);if(!n)throw c;let l=n.bodyMapper,d=n.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,u;if(l){let m=p;e.isXML&&l.type.name===hc.Sequence&&(m=typeof p=="object"?p[l.xmlElementName]:[]),u=e.serializer.deserialize(l,m,"error.response.parsedBody")}let g=p.error||u||p;c.code=g.code,g.message&&(c.message=g.message),l&&(c.response.parsedBody=u)}t.headers&&d&&(c.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJson(),"operationRes.parsedHeaders"))}catch(p){c.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:c,shouldReturnResponse:!1}}function R6e(t,e,A,r){var i;let s=a=>{let o=`Error "${a}" occurred while parsing the response body - ${A.bodyAsText}.`,c=a.code||Bi.PARSE_ERROR,l=new Bi(o,c,A.status,A.request,A);return Promise.reject(l)};if(!(((i=A.request.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(A.status))||A.request.streamResponseBody)&&A.bodyAsText){let a=A.bodyAsText,o=A.headers.get("Content-Type")||"",c=o?o.split(";").map(l=>l.toLowerCase()):[];if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return new Promise(l=>{A.parsedBody=JSON.parse(a),l(A)}).catch(s);if(c.some(l=>e.indexOf(l)!==-1))return iJ(a,r).then(l=>(A.parsedBody=l,A)).catch(s)}return Promise.resolve(A)}var oJ={enab
`).join(""))}return this._nextPolicy.sendRequest(e)}},hJ=[],EJ=!1,H6e=new Map;function G6e(){if(!process)return;let t=iB(Wi.HTTPS_PROXY),e=iB(Wi.ALL_PROXY),A=iB(Wi.HTTP_PROXY);return t||e||A}function Y6e(t,e,A){if(e.length===0)return!1;let r=tn.parse(t).getHost();if(A?.has(r))return A.get(r);let i=!1;for(let s of e)s[0]==="."?(r.endsWith(s)||r.length===s.length-1&&r===s.slice(1))&&(i=!0):r===s&&(i=!0);return A?.set(r,i),i}function J6e(){let t=iB(Wi.NO_PROXY);return EJ=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}function fJ(t){if(!t&&(t=G6e(),!t))return;let{username:e,password:A,urlWithoutAuth:r}=V6e(t),i=tn.parse(r);return{host:(i.getScheme()?i.getScheme()+"://":"")+i.getHost(),port:Number.parseInt(i.getPort()||"80"),username:e,password:A}}function $9(t,e){return t||(t=fJ()),EJ||hJ.push(...J6e()),{create:(A,r)=>new S9(A,r,t,e?.customNoProxyList)}}function V6e(t){let e=t.indexOf("@");if(e===-1)return{urlWithoutAuth:t};let A=t.indexOf("://"),r=A!==-1?A+3:0,i=t.substring(r,e),s=i.indexOf(":"),n=s!==-1,a=n?i.substring(0,s):i,o=n?i.substring(s+1):void 0,c=t.substring(0,r)+t.substring(e+1);return{username:a,password:o,urlWithoutAuth:c}}var S9=class extends IA{constructor(e,A,r,i){super(e,A),this.proxySettings=r,this.customNoProxyList=i}sendRequest(e){var A;return!e.proxySettings&&!Y6e(e.url,(A=this.customNoProxyList)!==null&&A!==void 0?A:hJ,this.customNoProxyList?void 0:H6e)&&(e.proxySettings=this.proxySettings),this._nextPolicy.sendRequest(e)}};function z6e(t=30){return{create:(e,A)=>new k9(e,A,t)}}var k9=class extends IA{constructor(e,A,r=30){super(e,A),this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(A=>W6e(this,e,A))}};function W6e(t,e,A){if(A.status===409){let r=j6e(A.bodyAsText);if(r){let i=X6e(e.url);return K6e(t,i,r,e).catch(()=>!1).then(s=>s?(e.headers.set("x-ms-client-request-id",gB()),t._nextPolicy.sendRequest(e.clone())):A)}}return Promise.resolve(A)}function CJ(t,e=!1){let A=t.clone();return e&&(A.url=t.url),A.headers.set("x-ms-client-request-id",gB()),A.headers.set("Content-Type","application/json; charset=utf-8"),A}function j6e(t){let e,A;if(t){try{A=JSON.parse(t)}catch{}if(A&&A.error&&A.error.message&&A.error.code&&A.error.code==="MissingSubscriptionRegistration"){let r=A.error.message.match(/.*'(.*)'/i);r&&(e=r.pop())}}return e}function X6e(t){let e,A=t.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(A&&A[0])e=A[0];else throw new Error(`Unable to extract subscriptionId from the given url - ${t}.`);return e}async function K6e(t,e,A,r){let i=`${e}providers/${A}/register?api-version=2016-02-01`,s=`${e}providers/${A}?api-version=2016-02-01`,n=CJ(r);if(n.method="POST",n.url=i,(await t._nextPolicy.sendRequest(n)).status!==200)throw new Error(`Autoregistration of ${A} failed. Please try registering manually.`);return BJ(t,s,r)}async function BJ(t,e,A){let r=CJ(A);r.url=e,r.method="GET";let i=await t._nextPolicy.sendRequest(r),s=i.parsedBody;return i.parsedBody&&s.registrationState&&s.registrationState==="Registered"?!0:(await en.delay(t._retryTimeout*1e3),BJ(t,e,A))}function QJ(t){return{create:(e,A)=>new F9(e,A,t)}}var F9=class extends IA{constructor(e,A,r){super(e,A),this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(A=>this._nextPolicy.sendRequest(A))}};function e3(t,e,A,r){return{create:(i,s)=>new L9(i,s,t,e,A,r)}}var L9=class extends IA{constructor(e,A,r,i,s,n){super(e,A),this.retryCount=mc(r)?r:V9,this.retryInterval=mc(i)?i:z9,this.minRetryInterval=mc(s)?s:D6e,this.maxRetryInterval=mc(n)?n:W9}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(A=>IJ(this,e,A.response,A))}};async function IJ(t,e,A,r,i){i=pJ(t,i,r);function s(n,a){return!!(a&&a.code&&(a.code==="ETIMEDOUT"||a.code==="ESOCKETTIMEDOUT"||a.code==="ECONNREFUSED"||a.code==="ECONNRESET"||a.code==="ENOENT"))}if(dJ(t.retryCount,s,i,A,r))try{return await en.delay(i.retryInterval),t._nextPolicy.sendRequest(e.clone())}catch(n){return IJ(t,e,A,n,i)}else return r?Promise.reject(i.error):A}var Z6e=3,PY=Wi
Polling from: ${A.config.operationLocation}
Operation status: ${l}
2024-07-29 19:19:44 +00:00
Polling status: ${FJ.terminalStates.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let d=n(c,A);if(d!==void 0)return{response:await e(d).catch(kJ({state:A,stateProxy:r,isOperationError:a})),status:l}}return{response:c,status:l}}async function Ewe(t){let{poll:e,state:A,stateProxy:r,options:i,getOperationStatus:s,getResourceLocation:n,getOperationLocation:a,isOperationError:o,withOperationLocation:c,getPollingInterval:l,processResult:d,getError:p,updateState:u,setDelay:g,isDone:m,setErrorAsResult:C}=t,{operationLocation:Q}=A.config;if(Q!==void 0){let{response:N,status:B}=await hwe({poll:e,getOperationStatus:s,state:A,stateProxy:r,operationLocation:Q,getResourceLocation:n,isOperationError:o,options:i});if(LJ({status:B,response:N,state:A,stateProxy:r,isDone:m,processResult:d,getError:p,setErrorAsResult:C}),!FJ.terminalStates.includes(B)){let h=l?.(N);h&&g(h);let E=a?.(N,A);if(E!==void 0){let w=Q!==E;A.config.operationLocation=E,c?.(E,w)}else c?.(Q,!1)}u?.(A,N)}}Xa.pollOperation=Ewe});var n3=f(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.pollHttpOperation=Kt.isOperationError=Kt.getResourceLocation=Kt.getOperationStatus=Kt.getOperationLocation=Kt.initHttpOperation=Kt.getStatusFromInitialResponse=Kt.getErrorFromResponse=Kt.parseRetryAfter=Kt.inferLroMode=void 0;var TJ=yB(),r3=QB();function UJ(t){let{azureAsyncOperation:e,operationLocation:A}=t;return A??e}function MJ(t){return t.headers.location}function OJ(t){return t.headers["operation-location"]}function PJ(t){return t.headers["azure-asyncoperation"]}function fwe(t){let{location:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t;switch(A){case"PUT":return r;case"DELETE":return;case"PATCH":return s()??r;default:return s()}function s(){switch(i){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return e}}}function _J(t){let{rawResponse:e,requestMethod:A,requestPath:r,resourceLocationConfig:i}=t,s=OJ(e),n=PJ(e),a=UJ({operationLocation:s,azureAsyncOperation:n}),o=MJ(e),c=A?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:fwe({requestMethod:c,location:o,requestPath:r,resourceLocationConfig:i})}:o!==void 0?{mode:"ResourceLocation",operationLocation:o}:c==="PUT"&&r?{mode:"Body",operationLocation:r}:void 0}Kt.inferLroMode=_J;function qJ(t){let{status:e,statusCode:A}=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 i3(A);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 r3.logger.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Cwe(t){let{status:e}=t.body??{};return qJ({status:e,statusCode:t.statusCode})}function Bwe(t){let{properties:e,provisioningState:A}=t.body??{},r=e?.provisioningState??A;return qJ({status:r,statusCode:t.statusCode})}function i3(t){return t===202?"running":t<300?"succeeded":"failed"}function HJ({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let A=parseInt(e);return isNaN(A)?Qwe(new Date(e)):A*1e3}}Kt.parseRetryAfter=HJ;function GJ(t){let e=VJ(t,"error");if(!e){r3.logger.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){r3.logger.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}Kt.getErrorFromResponse=GJ;function Qwe(t){let e=Math.floor(new Date().getTime()),A=t.getTime();if(e<A)return A-e}function YJ(t){let{response:e,state:A,operationLocation:r}=t;function i(){switch(A.config.metadata?.mode){case void 0:return i3(e.rawResponse.statusCode);case"Body":return s3(e,A);default:return"running"
`,AX="HTTP/1.1",s8e="AES256",n8e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",a8e=["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-if-tags","x-ms-source-if-tags"],o8e=["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"],c8e="BlobUsesCustomerSpecifiedEncryption",l8e="BlobDoesNotUseCustomerSpecifiedEncryption",d8e=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function p8e(t){let e=M.URLBuilder.parse(t),A=e.getPath();return A=A||"/",A=g8e(A),e.setPath(A),e.toString()}function u8e(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let A=t.split(";");for(let r of A)r.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function Cc(t,e){let A=t.split(";");for(let r of A)if(r.trim().startsWith(e))return r.trim().match(e+"=(.*)")[1];return""}function hp(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=u8e(t),t=n8e);let A=Cc(t,"BlobEndpoint");if(A=A.endsWith("/")?A.slice(0,-1):A,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let r="",i="",s=Buffer.from("accountKey","base64"),n="";if(i=Cc(t,"AccountName"),s=Buffer.from(Cc(t,"AccountKey"),"base64"),!A){r=Cc(t,"DefaultEndpointsProtocol");let a=r.toLowerCase();if(a!=="https"&&a!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(n=Cc(t,"EndpointSuffix"),!n)throw new Error("Invalid EndpointSuffix in the provided Connection String");A=`${r}://${i}.blob.${n}`}if(i){if(s.length===0)throw new Error("Invalid AccountKey in the provided Connection Str
`)+`
2024-07-29 19:19:44 +00:00
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),r=this.factory.computeHMACSHA256(A);return e.headers.set(It.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${r}`),e}getHeaderValueToSign(e,A){let r=e.headers.get(A);return!r||A===It.CONTENT_LENGTH&&r==="0"?"":r}getCanonicalizedHeadersString(e){let A=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(It.PREFIX_FOR_STORAGE));A.sort((i,s)=>i.name.toLowerCase().localeCompare(s.name.toLowerCase())),A=A.filter((i,s,n)=>!(s>0&&i.name.toLowerCase()===n[s-1].name.toLowerCase()));let r="";return A.forEach(i=>{r+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),r}getCanonicalizedResourceString(e){let A=Q8(e.url)||"/",r="";r+=`/${this.factory.accountName}${A}`;let i=f8e(e.url),s={};if(i){let n=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let o=a.toLowerCase();s[o]=i[a],n.push(o)}n.sort();for(let a of n)r+=`
${a}:${decodeURIComponent(s[a])}`}return r}},$t=class extends Zg{constructor(e,A){super(),this.accountName=e,this.accountKey=Buffer.from(A,"base64")}create(e,A){return new XB(e,A,this)}computeHMACSHA256(e){return TV.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},F8e="azure-storage-blob",L8e="12.17.0",em=class extends Y.ServiceClient{constructor(e,A){if(e===void 0)throw new Error("'url' cannot be null");if(A||(A={}),!A.userAgent){let r=Y.getDefaultUserAgentValue();A.userAgent=`${F8e}/${L8e} ${r}`}super(void 0,A),this.requestContentType="application/json; charset=utf-8",this.baseUri=A.endpoint||"{url}",this.url=e,this.version=A.version||"2023-11-03"}},tm=class{constructor(e,A){this.url=p8e(e),this.accountName=iX(e),this.pipeline=A,this.storageClientContext=new em(this.url,A.toServiceClientOptions()),this.isHttps=rX(h8e(this.url)||"","https"),this.credential=new ct;for(let i of this.pipeline.factories)M.isNode&&i instanceof $t||i instanceof ct?this.credential=i:M.isTokenCredential(i.credential)&&(this.credential=i.credential);let r=this.storageClientContext;r.requestContentType=void 0}},H=P.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function ee(t){var e,A;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(A=t?.tracingOptions)===null||A===void 0?void 0:A.tracingContext}}var Vn=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"x":A.deleteVersion=!0;break;case"t":A.tag=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},zn=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let A=new t;for(let r of e)switch(r){case"r":A.read=!0;break;case"a":A.add=!0;break;case"c":A.create=!0;break;case"w":A.write=!0;break;case"d":A.delete=!0;break;case"l":A.list=!0;break;case"t":A.tag=!0;break;case"x":A.deleteVersion=!0;break;case"m":A.move=!0;break;case"e":A.execute=!0;break;case"i":A.setImmutabilityPolicy=!0;break;case"y":A.permanentDelete=!0;break;case"f":A.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return A}static from(e){let A=new t;return e.read&&(A.read=!0),e.add&&(A.add=!0),e.create&&(A.create=!0),e.write&&(A.write=!0),e.delete&&(A.delete=!0),e.list&&(A.list=!0),e.deleteVersion&&(A.deleteVersion=!0),e.tag&&(A.tag=!0),e.move&&(A.move=!0),e.execute&&(A.execute=!0),e.setImmutabilityPolicy&&(A.setImmutabilityPolicy=!0),e.permanentDelete&&(A.permanentDelete=!0),e.filterByTags&&(A.filterByTags=!0),A}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),thi
`),s=e.computeHMACSHA256(i);return new rn(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function U8e(t,e){if(t=fp(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 A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=Vn.parse(t.permissions.toString()).toString():i=zn.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?tt(t.startsOn,!1):"",t.expiresOn?tt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),n=e.computeHMACSHA256(s);return new rn(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function M8e(t,e){if(t=fp(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 A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=Vn.parse(t.permissions.toString()).toString():i=zn.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?tt(t.startsOn,!1):"",t.expiresOn?tt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),n=e.computeHMACSHA256(s);return new rn(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}function O8e(t,e){if(t=fp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=Vn.parse(t.permissions.toString()).toString():i=zn.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?tt(t.startsOn,!1):"",t.expiresOn?tt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?tt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?tt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),n=e.computeHMACSHA256(s);return new rn(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}function P8e(t,e){if(t=fp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=Vn.parse(t.permissions.toString()).toString():i=zn.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?tt(t.startsOn,!1):"",t.expiresOn?tt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?tt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?tt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),n=e.computeHMACSHA256(s);return new rn(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}function _8e(t,e){if(t=fp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let A="c",r=t.snapshotTime;t.blobName&&(A="b",t.snapshotTime?A="bs":t.versionId&&(A="bv",r=t.versionId));let i;t.permissions&&(t.blobName?i=Vn.parse(t.permissions.toString()).toString():i=zn.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?tt(t.startsOn,!1):"",t.expiresOn?tt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?tt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?tt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,A,r,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),n=e.computeHMACSHA256(s);return new rn(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,A,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}function Ep(t,e,A){let r=[`/blob/${t}/${e}`];return A&&r.push(`/${A}`),r.join("")}function fp(t){let e=t.version?t.version:C8;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 Am=class{constructor(e,A){let r=new em(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new yc(r)):(this._isContainer=!1,this._containerOrBlobOperation=new jg(r)),A||(A=M.generateUuid()),this._leaseId=A}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,A={}){var r,i,s,n,a,o;let{span:c,updatedOptions:l}=H("BlobLeaseClient-acquireLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==An||!((s=A.conditions)===null||s===void 0)&&s.ifNoneMatch&&((n=A.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==An||!((a=A.conditions)===null||a===void 0)&&a.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:A.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},A.conditions),{ifTags:(o=A.conditions)===null||o===void 0?void 0:o.tagConditions}),proposedLeaseId:this._leaseId},ee(l)))}catch(d){throw c.setStatus({code:P.SpanStatusCode.ERROR,message:d.message}),d}finally{c.end()}}async changeLease(e,A={}){var r,i,s,n,a,o;let{span:c,updatedOptions:l}=H("BlobLeaseClient-changeLease",A);if(this._isContainer&&(!((r=A.conditions)===null||r===void 0)&&r.ifMatch&&((i=A.conditions)===null||i===void 0?void 0:i.ifMatch)!==An||!((s=A.conditions)===null||s===void 0)&&s.ifNoneMatch&&((n=A.conditions)===null||n===void 0?void 0:n.ifNoneMatch)!==An||!((a=A.conditions)===null||a===void 0)&&a.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.");try{let d=await this._containerOrBlobOperati
`):n=[e.accountName,r,i,s,t.startsOn?tt(t.startsOn,!1):"",tt(t.expiresOn,!1),t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",A,""].join(`
`);let a=e.computeHMACSHA256(n);return new rn(A,a,r.toString(),i,s,t.protocol,t.startsOn,t.expiresOn,t.ipRange,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.encryptionScope)}var t8=class t extends tm{constructor(e,A,r){let i;oo(A)?i=A:M.isNode&&A instanceof $t||A instanceof ct||M.isTokenCredential(A)?i=gt(A,r):i=gt(new ct,r),super(e,i),this.serviceContext=new GB(this.storageClientContext)}static fromConnectionString(e,A){A=A||{};let r=hp(e);if(r.kind==="AccountConnString")if(M.isNode){let i=new $t(r.accountName,r.accountKey);A.proxyOptions||(A.proxyOptions=M.getDefaultProxySettings(r.proxyUri));let s=gt(i,A);return new t(r.url,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(r.kind==="SASConnString"){let i=gt(new ct,A);return new t(r.url+"?"+r.accountSas,i)}else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}getContainerClient(e){return new ZB(Pt(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,A={}){let{span:r,updatedOptions:i}=H("BlobServiceClient-createContainer",A);try{let s=this.getContainerClient(e),n=await s.create(i);return{containerClient:s,containerCreateResponse:n}}catch(s){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async deleteContainer(e,A={}){let{span:r,updatedOptions:i}=H("BlobServiceClient-deleteContainer",A);try{return await this.getContainerClient(e).delete(i)}catch(s){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async undeleteContainer(e,A,r={}){let{span:i,updatedOptions:s}=H("BlobServiceClient-undeleteContainer",r);try{let n=this.getContainerClient(r.destinationContainerName||e),o=await new yc(n.storageClientContext).restore(Object.assign({deletedContainerName:e,deletedContainerVersion:A},s));return{containerClient:n,containerUndeleteResponse:o}}catch(n){throw i.setStatus({code:P.SpanStatusCode.ERROR,message:n.message}),n}finally{i.end()}}async renameContainer(e,A,r={}){var i;let{span:s,updatedOptions:n}=H("BlobServiceClient-renameContainer",r);try{let a=this.getContainerClient(A),c=await new yc(a.storageClientContext).rename(e,Object.assign(Object.assign({},n),{sourceLeaseId:(i=r.sourceCondition)===null||i===void 0?void 0:i.leaseId}));return{containerClient:a,containerRenameResponse:c}}catch(a){throw s.setStatus({code:P.SpanStatusCode.ERROR,message:a.message}),a}finally{s.end()}}async getProperties(e={}){let{span:A,updatedOptions:r}=H("BlobServiceClient-getProperties",e);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:e.abortSignal},ee(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async setProperties(e,A={}){let{span:r,updatedOptions:i}=H("BlobServiceClient-setProperties",A);try{return await this.serviceContext.setProperties(e,Object.assign({abortSignal:A.abortSignal},ee(i)))}catch(s){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async getStatistics(e={}){let{span:A,updatedOptions:r}=H("BlobServiceClient-getStatistics",e);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:e.abortSignal},ee(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async getAccountInfo(e={}){let{span:A,updatedOptions:r}=H("BlobServiceClient-getAccountInfo",e);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:e.abortSignal},ee(r)))}catch(i){throw A.setStatus({code:P.SpanStatusCode.ERROR,message:i.message}),i}finally{A.end()}}async listContainersSegment(e,A={}){let{span:r,updatedOptions:i}=H("BlobServiceClient-listContainersSegment",A);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:A.abortSignal,marker:e},A),{include:typeof A.include=="string"?[A.include]:A.include}),ee(i)))}catch(s){throw r.setStatus({code:P.SpanStatusCode.ERROR,message:s.message}),s}finally{r.end()}}async findBlobsByTagsSegmen
Other caches with similar key:`);for(let a of s?.artifactCaches||[])yi.debug(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function U5e(t,e,A){return Wr(this,void 0,void 0,function*(){let r=new D5e.URL(t),i=(0,fX.getDownloadOptions)(A);r.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield(0,c0.downloadCacheStorageSDK)(t,e,i):i.concurrentBlobDownloads?yield(0,c0.downloadCacheHttpClientConcurrent)(t,e,i):yield(0,c0.downloadCacheHttpClient)(t,e):yield(0,c0.downloadCacheHttpClient)(t,e)})}gA.downloadCache=U5e;function M5e(t,e,A){return Wr(this,void 0,void 0,function*(){let r=v8(),i=D8(e,A?.compressionMethod,A?.enableCrossOsArchive),s={key:t,version:i,cacheSize:A?.cacheSize};return yield(0,lo.retryTypedResponse)("reserveCache",()=>Wr(this,void 0,void 0,function*(){return r.postJson(mm("caches"),s)}))})}gA.reserveCache=M5e;function EX(t,e){return`bytes ${t}-${e}/*`}function O5e(t,e,A,r,i){return Wr(this,void 0,void 0,function*(){yi.debug(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${EX(r,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":EX(r,i)},n=yield(0,lo.retryHttpClientResponse)(`uploadChunk (start: ${r}, end: ${i})`,()=>Wr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,A(),s)}));if(!(0,lo.isSuccessStatusCode)(n.message.statusCode))throw new Error(`Cache service responded with ${n.message.statusCode} during upload chunk.`)})}function P5e(t,e,A,r){return Wr(this,void 0,void 0,function*(){let i=l0.getArchiveFileSizeInBytes(A),s=mm(`caches/${e.toString()}`),n=R8.openSync(A,"r"),a=(0,fX.getUploadOptions)(r),o=l0.assertDefined("uploadConcurrency",a.uploadConcurrency),c=l0.assertDefined("uploadChunkSize",a.uploadChunkSize),l=[...new Array(o).keys()];yi.debug("Awaiting all uploads");let d=0;try{yield Promise.all(l.map(()=>Wr(this,void 0,void 0,function*(){for(;d<i;){let p=Math.min(i-d,c),u=d,g=d+p-1;d+=c,yield O5e(t,s,()=>R8.createReadStream(A,{fd:n,start:u,end:g,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),u,g)}})))}finally{R8.closeSync(n)}})}function _5e(t,e,A){return Wr(this,void 0,void 0,function*(){let r={size:A};return yield(0,lo.retryTypedResponse)("commitCache",()=>Wr(this,void 0,void 0,function*(){return t.postJson(mm(`caches/${e.toString()}`),r)}))})}function q5e(t,e,A){return Wr(this,void 0,void 0,function*(){let r=v8();yi.debug("Upload cache"),yield P5e(r,t,e,A),yi.debug("Commiting cache");let i=l0.getArchiveFileSizeInBytes(e);yi.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let s=yield _5e(r,t,i);if(!(0,lo.isSuccessStatusCode)(s.statusCode))throw new Error(`Cache service responded with ${s.statusCode} during commit cache.`);yi.info("Cache saved successfully")})}gA.saveCache=q5e});var IX=f(cr=>{"use strict";var H5e=cr&&cr.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),G5e=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),S8=cr&&cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&H5e(e,t,A);return G5e(e,t),e},Kn=cr&&cr.__awaiter||function(t,e,A,r){function i(s){return s instanceof A?s:new A(function(n){n(s)})}return new(A||(A=Promise))(function(s,n){function a(l){try{c(r.next(l))}catch(d){n(d)}}function o(l){try{c(r.throw(l))}catch(d){n(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,o)}c((r=r.apply(t,e||[])).next())})};Object.defineProperty(cr,"__esModule",{value:!0});cr.createTar=cr.extractTar=cr.listTar=void 0;var Y5e=q2(),p0=S8(p1()),BX=require("fs"),Cs=S8(require("path")),k8=S8(wu()),vt=Iu(),po=process.platform==="win32";function J5
`));let r=yield F8(A,"create");yield L8(r,t)})}cr.createTar=K5e});var xX=f(mA=>{"use strict";var Z5e=mA&&mA.__createBinding||(Object.create?function(t,e,A,r){r===void 0&&(r=A);var i=Object.getOwnPropertyDescriptor(e,A);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[A]}}),Object.defineProperty(t,r,i)}:function(t,e,A,r){r===void 0&&(r=A),t[r]=e[A]}),$5e=mA&&mA.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),m0=mA&&mA.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var A in t)A!=="default"&&Object.prototype.hasOwnProperty.call(t,A)&&Z5e(e,t,A);return $5e(e,t),e},yX=mA&&mA.__awaiter||function(t,e,A,r){function i(s){return s instanceof A?s:new A(function(n){n(s)})}return new(A||(A=Promise))(function(s,n){function a(l){try{c(r.next(l))}catch(d){n(d)}}function o(l){try{c(r.throw(l))}catch(d){n(d)}}function c(l){l.done?s(l.value):i(l.value).then(a,o)}c((r=r.apply(t,e||[])).next())})};Object.defineProperty(mA,"__esModule",{value:!0});mA.saveCache=mA.restoreCache=mA.isFeatureAvailable=mA.ReserveCacheError=mA.ValidationError=void 0;var wA=m0(rs()),wX=m0(require("path")),Ki=m0(wu()),u0=m0(CX()),g0=IX(),Zn=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};mA.ValidationError=Zn;var hm=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};mA.ReserveCacheError=hm;function bX(t){if(!t||t.length===0)throw new Zn("Path Validation Error: At least one directory or file path is required")}function NX(t){if(t.length>512)throw new Zn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Zn(`Key Validation Error: ${t} cannot contain commas.`)}function eNe(){return!!process.env.ACTIONS_CACHE_URL}mA.isFeatureAvailable=eNe;function tNe(t,e,A,r,i=!1){return yX(this,void 0,void 0,function*(){bX(t),A=A||[];let s=[e,...A];if(wA.debug("Resolved Keys:"),wA.debug(JSON.stringify(s)),s.length>10)throw new Zn("Key Validation Error: Keys are limited to a maximum of 10.");for(let o of s)NX(o);let n=yield Ki.getCompressionMethod(),a="";try{let o=yield u0.getCacheEntry(s,t,{compressionMethod:n,enableCrossOsArchive:i});if(!o?.archiveLocation)return;if(r?.lookupOnly)return wA.info("Lookup only - skipping download"),o.cacheKey;a=wX.join(yield Ki.createTempDirectory(),Ki.getCacheFileName(n)),wA.debug(`Archive Path: ${a}`),yield u0.downloadCache(o.archiveLocation,a,r),wA.isDebug()&&(yield(0,g0.listTar)(a,n));let c=Ki.getArchiveFileSizeInBytes(a);return wA.info(`Cache Size: ~${Math.round(c/(1024*1024))} MB (${c} B)`),yield(0,g0.extractTar)(a,n),wA.info("Cache restored successfully"),o.cacheKey}catch(o){if(o.name===Zn.name)throw o;wA.warning(`Failed to restore: ${o.message}`)}finally{try{yield Ki.unlinkFile(a)}catch(o){wA.debug(`Failed to delete archive: ${o}`)}}})}mA.restoreCache=tNe;function ANe(t,e,A,r=!1){var i,s,n,a,o;return yX(this,void 0,void 0,function*(){bX(t),NX(e);let c=yield Ki.getCompressionMethod(),l=-1,d=yield Ki.resolvePaths(t);if(wA.debug("Cache Paths:"),wA.debug(`${JSON.stringify(d)}`),d.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 p=yield Ki.createTempDirectory(),u=wX.join(p,Ki.getCacheFileName(c));wA.debug(`Archive Path: ${u}`);try{yield(0,g0.createTar)(p,d,c),wA.isDebug()&&(yield(0,g0.listTar)(u,c));let g=10*1024*1024*1024,m=Ki.getArchiveFileSizeInBytes(u);if(wA.debug(`File Size: ${m}`),m>g&&!Ki.isGhes())throw new Error(`Cache size of ~${Math.round(m/(1024*1024))} MB (${m} B) is over the 10GB limit, not saving cache.`);wA.debug("Reserving Cache");let C=yield u0.reserveCache(e,t,{compressionMethod:c,enableCrossOsArchive:r,cacheSize:m});if(!((i=C?.result)===null||i===void 0)&&i.cacheId)l=(s=C?.result)===null||s===void 0?void 0:s.cacheId;else throw C?.statusCode===400?new Error((a=(n=C?.error)===null||n=
/*! Bundled license information:
2024-07-29 19:19:44 +00:00
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
undici/lib/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
sax/lib/sax.js:
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
mime-db/index.js:
(*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*)
mime-types/index.js:
(*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
*/