mirror of
https://github.com/docker/setup-qemu-action.git
synced 2026-10-03 02:26:11 +03:00
[dependabot skip] chore: update generated content
This commit is contained in:
1 parent
4e7017a474
commit
31f08d3fc9
3 files changed
+111
-765
No files matched your search
+82
-82
@@ -1,83 +1,83 @@
|
||||
var A5=Object.create;var Fm=Object.defineProperty;var u5=Object.getOwnPropertyDescriptor;var d5=Object.getOwnPropertyNames;var m5=Object.getPrototypeOf,p5=Object.prototype.hasOwnProperty;var o=(t,e)=>Fm(t,"name",{value:e,configurable:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),h5=(t,e)=>{for(var r in e)Fm(t,r,{get:e[r],enumerable:!0})},f5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d5(e))!p5.call(t,s)&&s!==r&&Fm(t,s,{get:()=>e[s],enumerable:!(n=u5(e,s))||n.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?A5(m5(t)):{},f5(e||!t||!t.__esModule?Fm(r,"default",{value:t,enumerable:!0}):r,t));var _D=f(nc=>{"use strict";var nNe=require("net"),C5=require("tls"),MC=require("http"),MD=require("https"),I5=require("events"),sNe=require("assert"),B5=require("util");nc.httpOverHttp=Q5;nc.httpsOverHttp=x5;nc.httpOverHttps=b5;nc.httpsOverHttps=w5;function Q5(t){var e=new ri(t);return e.request=MC.request,e}o(Q5,"httpOverHttp");function x5(t){var e=new ri(t);return e.request=MC.request,e.createSocket=LD,e.defaultPort=443,e}o(x5,"httpsOverHttp");function b5(t){var e=new ri(t);return e.request=MD.request,e}o(b5,"httpOverHttps");function w5(t){var e=new ri(t);return e.request=MD.request,e.createSocket=LD,e.defaultPort=443,e}o(w5,"httpsOverHttps");function ri(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||MC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=FD(s,i,a),l=0,A=e.requests.length;l<A;++l){var u=e.requests[l];if(u.host===c.host&&u.port===c.port){e.requests.splice(l,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(ri,"TunnelingAgent");B5.inherits(ri,I5.EventEmitter);ri.prototype.addRequest=o(function(e,r,n,s){var i=this,a=LC({request:e},i.options,FD(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",A),c.on("agentRemove",A),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function A(u){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",A),c.removeListener("agentRemove",A)}o(A,"onCloseOrRemove")})},"addRequest");ri.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=LC({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Hi("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",A),a.once("error",u),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,m,p){process.nextTick(function(){A(d,m,p)})}o(l,"onUpgrade");function A(d,m,p){if(a.removeAllListeners(),m.removeAllListeners(),d.statusCode!==200){Hi("tunneling socket could not be established, statusCode=%d",d.statusCode),m.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(p.length>0){Hi("got illegal response body from proxy"),m.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return Hi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}o(A,"onConnect");function u(d){a.removeAllListeners(),Hi(`tunneling socket could not be established, cause=%s
|
||||
`,d.message,d.stack);var m=new Error("tunneling socket could not be established, cause="+d.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}o(u,"onError")},"createSocket");ri.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function LD(t,e){var r=this;ri.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=LC({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=C5.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(LD,"createSecureSocket");function FD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(FD,"toOptions");function LC(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(LC,"mergeOptions");var Hi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Hi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Hi=o(function(){},"debug");nc.debug=Hi});var FC=f((aNe,UD)=>{UD.exports=_D()});var _e=f((cNe,OD)=>{OD.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Ce=f((lNe,uk)=>{"use strict";var qD=Symbol.for("undici.error.UND_ERR"),Ue=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[qD]===!0}[qD]=!0},HD=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),_C=class extends Ue{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[HD]===!0}[HD]=!0},zD=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),UC=class extends Ue{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[zD]===!0}[zD]=!0},GD=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),OC=class extends Ue{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[GD]===!0}[GD]=!0},YD=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),qC=class extends Ue{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}o(xT,"isValidHeaderValue");function H6(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(w6.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(H6,"setRequestReferrerPolicyOnRedirect");function z6(){return"allowed"}o(z6,"crossOriginResourcePolicyCheck");function G6(){return"success"}o(G6,"corsCheck");function Y6(){return"success"}o(Y6,"TAOCheck");function V6(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(V6,"appendFetchMetadata");function J6(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&TI(t.origin)&&!TI(vA(t))&&(e=null);break;case"same-origin":op(t,vA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(J6,"appendRequestOriginHeader");function mc(t,e){return t}o(mc,"coarsenTime");function W6(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:mc(t.domainLookupStartTime,r),domainLookupEndTime:mc(t.domainLookupEndTime,r),connectionStartTime:mc(t.connectionStartTime,r),connectionEndTime:mc(t.connectionEndTime,r),secureConnectionStartTime:mc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(W6,"clampAndCoarsenConnectionTimingInfo");function $6(t){return mc(v6.now(),t)}o($6,"coarsenedSharedCurrentTime");function j6(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(j6,"createOpaqueTimingInfo");function bT(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(bT,"makePolicyContainer");function K6(t){return{referrerPolicy:t.referrerPolicy}}o(K6,"clonePolicyContainer");function X6(t){let e=t.referrerPolicy;Uo(e);let r=null;if(t.referrer==="client"){let c=ET();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=kI(r),s=kI(r,!0);n.toString().length>4096&&(n=s);let i=op(t,n),a=PA(n)&&!PA(t.url);switch(e){case"origin":return s??kI(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=vA(t);return op(n,c)?n:PA(n)&&!PA(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(X6,"determineRequestsReferrer");function kI(t,e){return Uo(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(kI,"stripURLForReferrer");function PA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(PA,"isURLPotentiallyTrustworthy");function Z6(t,e){if(ip===void 0)return!0;let r=wT(e);if(r==="no metadata"||r.length===0)return!0;let n=tj(r),s=rj(r,n);for(let i of s){let a=i.algo,c=i.hash,l=ip.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),nj(l,c))return!0}return!1}o(Z6,"bytesMatch");var ej=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function wT(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=ej.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();IT.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(wT,"parseMetadata");function tj(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(tj,"getStrongestMetadata");function rj(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(rj,"filterMetadataListByAlgorithm");function nj(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(nj,"compareBase64Mixed");function sj(t){}o(sj,"tryUpgradeRequestToAPotentiallyTrustworthyURL");functi
Line truncated
|
||||
`);function Oj(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Oj,"isAsciiString");function qj(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(qj,"validateBoundary");function Hj(t,e){cp(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&lp(t,_j,i)||i.position===t.length-4&&lp(t,Uj,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=zj(t,i);if(c==="failure")return"failure";let{name:l,filename:A,contentType:u,encoding:d}=c;i.position+=2;let m;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";m=t.subarray(i.position,h-4),i.position+=m.length,d==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;A!==null?(u??="text/plain",Oj(u)||(u=""),p=new Lj([m],A,{type:u})):p=vj(Buffer.from(m)),cp(UT(l)),cp(typeof p=="string"&&UT(p)||kj(p)),s.push(Tj(l,p,A))}}o(Hj,"multipartFormDataParser");function zj(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=hc(c=>c!==10&&c!==13&&c!==58,t,e);if(a=qI(a,!0,!0,c=>c===9||c===32),!Dj.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,hc(c=>c===32||c===9,t,e),Pj(a)){case"content-disposition":{if(r=n=null,!lp(t,Fj,e)||(e.position+=17,r=HT(t,e),r===null))return"failure";if(lp(t,qT,e)){let c=e.position+qT.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=HT(t,e),n===null))return"failure"}break}case"content-type":{let c=hc(l=>l!==10&&l!==13,t,e);c=qI(c,!1,!0,l=>l===9||l===32),s=OT(c);break}case"content-transfer-encoding":{let c=hc(l=>l!==10&&l!==13,t,e);c=qI(c,!1,!0,l=>l===9||l===32),i=OT(c);break}default:hc(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(zj,"parseMultipartFormDataHeaders");function HT(t,e){cp(t[e.position-1]===34);let r=hc(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(HT,"parseMultipartFormDataName");function hc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(hc,"collectASequenceOfBytes");function qI(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(qI,"removeChars");function lp(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(lp,"bufferStartsWith");zT.exports={multipartFormDataParser:Hj,validateBoundary:qj}});var yc=f(($Ne,eM)=>{"use strict";var TA=le(),{ReadableStreamFrom:Gj,isBlobLike:YT,isReadableStreamLike:Yj,readableStreamClose:Vj,createDeferredPromise:Jj,fullyReadBody:Wj,extractMimeType:$j,utf8DecodeBytes:WT}=Sr(),{FormData:VT}=kA(),{kState:gc}=zi(),{webidl:jj}=kt(),{Blob:Kj}=require("node:buffer"),HI=require("node:assert"),{isErrored:$T,isDisturbed:Xj}=require("node:stream"),{isArrayBuffer:Zj}=require("node:util/types"),{serializeAMimeType:eK}=or(),{multipartFormDataParser:tK}=GT(),zI;try{let t=require("node:crypto");zI=o(e=>t.randomInt(0,e),"random")}catch{zI=o(t=>Math.floor(Math.random(t)),"random")}var Ap=new TextEncoder;function rK(){}o(rK,"noop");var jT=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,KT;jT&&(KT=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Xj(e)&&!$T(e)&&e.cancel("Response object has been garbage collected").catch(rK)}));function XT(t,e=!1){let r=null;t instanceof ReadableStream?r=t:YT(t)?r=t.stream():r=new ReadableStream({async pull(l){let A=typeof s=="string"?Ap.encode(s):s;A.byteLength&&l.enqueue(A),queueMicrotask(()=>Vj(l))},start(){},type:"bytes"}),HI(Yj(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Zj(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(TA.isFormDataLike(t)){let l=`----formdata-undici-0${`${zI(1e11)}`.padStart(11,"0")}`,A=`--${l}\r
|
||||
var f5=Object.create;var Hm=Object.defineProperty;var g5=Object.getOwnPropertyDescriptor;var y5=Object.getOwnPropertyNames;var E5=Object.getPrototypeOf,C5=Object.prototype.hasOwnProperty;var o=(t,e)=>Hm(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),I5=(t,e)=>{for(var r in e)Hm(t,r,{get:e[r],enumerable:!0})},B5=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y5(e))!C5.call(t,s)&&s!==r&&Hm(t,s,{get:()=>e[s],enumerable:!(n=g5(e,s))||n.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?f5(E5(t)):{},B5(e||!t||!t.__esModule?Hm(r,"default",{value:t,enumerable:!0}):r,t));var YD=g(ic=>{"use strict";var iNe=require("net"),w5=require("tls"),qC=require("http"),HD=require("https"),N5=require("events"),oNe=require("assert"),S5=require("util");ic.httpOverHttp=R5;ic.httpsOverHttp=P5;ic.httpOverHttps=v5;ic.httpsOverHttps=D5;function R5(t){var e=new ni(t);return e.request=qC.request,e}o(R5,"httpOverHttp");function P5(t){var e=new ni(t);return e.request=qC.request,e.createSocket=zD,e.defaultPort=443,e}o(P5,"httpsOverHttp");function v5(t){var e=new ni(t);return e.request=HD.request,e}o(v5,"httpOverHttps");function D5(t){var e=new ni(t);return e.request=HD.request,e.createSocket=zD,e.defaultPort=443,e}o(D5,"httpsOverHttps");function ni(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||qC.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=GD(s,i,a),l=0,A=e.requests.length;l<A;++l){var u=e.requests[l];if(u.host===c.host&&u.port===c.port){e.requests.splice(l,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(ni,"TunnelingAgent");S5.inherits(ni,N5.EventEmitter);ni.prototype.addRequest=o(function(e,r,n,s){var i=this,a=HC({request:e},i.options,GD(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",A),c.on("agentRemove",A),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function A(u){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",A),c.removeListener("agentRemove",A)}o(A,"onCloseOrRemove")})},"addRequest");ni.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=HC({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),Gi("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",A),a.once("error",u),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,m,p){process.nextTick(function(){A(d,m,p)})}o(l,"onUpgrade");function A(d,m,p){if(a.removeAllListeners(),m.removeAllListeners(),d.statusCode!==200){Gi("tunneling socket could not be established, statusCode=%d",d.statusCode),m.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(p.length>0){Gi("got illegal response body from proxy"),m.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return Gi("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}o(A,"onConnect");function u(d){a.removeAllListeners(),Gi(`tunneling socket could not be established, cause=%s
|
||||
`,d.message,d.stack);var m=new Error("tunneling socket could not be established, cause="+d.message);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(s)}o(u,"onError")},"createSocket");ni.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function zD(t,e){var r=this;ni.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=HC({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=w5.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(zD,"createSecureSocket");function GD(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(GD,"toOptions");function HC(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(HC,"mergeOptions");var Gi;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Gi=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Gi=o(function(){},"debug");ic.debug=Gi});var zC=g((lNe,VD)=>{VD.exports=YD()});var Oe=g((ANe,JD)=>{JD.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Ce=g((uNe,yk)=>{"use strict";var WD=Symbol.for("undici.error.UND_ERR"),qe=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[WD]===!0}[WD]=!0},$D=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),GC=class extends qe{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[$D]===!0}[$D]=!0},jD=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),YC=class extends qe{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jD]===!0}[jD]=!0},KD=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),VC=class extends qe{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[KD]===!0}[KD]=!0},XD=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),JC=class extends qe{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}o(vT,"isValidHeaderValue");function W6(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(D6.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(W6,"setRequestReferrerPolicyOnRedirect");function $6(){return"allowed"}o($6,"crossOriginResourcePolicyCheck");function j6(){return"success"}o(j6,"corsCheck");function K6(){return"success"}o(K6,"TAOCheck");function X6(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(X6,"appendFetchMetadata");function Z6(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&OI(t.origin)&&!OI(TA(t))&&(e=null);break;case"same-origin":up(t,TA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Z6,"appendRequestOriginHeader");function hc(t,e){return t}o(hc,"coarsenTime");function ej(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:hc(t.domainLookupStartTime,r),domainLookupEndTime:hc(t.domainLookupEndTime,r),connectionStartTime:hc(t.connectionStartTime,r),connectionEndTime:hc(t.connectionEndTime,r),secureConnectionStartTime:hc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(ej,"clampAndCoarsenConnectionTimingInfo");function tj(t){return hc(_6.now(),t)}o(tj,"coarsenedSharedCurrentTime");function rj(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(rj,"createOpaqueTimingInfo");function DT(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(DT,"makePolicyContainer");function nj(t){return{referrerPolicy:t.referrerPolicy}}o(nj,"clonePolicyContainer");function sj(t){let e=t.referrerPolicy;qo(e);let r=null;if(t.referrer==="client"){let c=wT();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=UI(r),s=UI(r,!0);n.toString().length>4096&&(n=s);let i=up(t,n),a=kA(n)&&!kA(t.url);switch(e){case"origin":return s??UI(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=TA(t);return up(n,c)?n:kA(n)&&!kA(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(sj,"determineRequestsReferrer");function UI(t,e){return qo(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(UI,"stripURLForReferrer");function kA(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(kA,"isURLPotentiallyTrustworthy");function ij(t,e){if(Ap===void 0)return!0;let r=kT(e);if(r==="no metadata"||r.length===0)return!0;let n=aj(r),s=cj(r,n);for(let i of s){let a=i.algo,c=i.hash,l=Ap.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),lj(l,c))return!0}return!1}o(ij,"bytesMatch");var oj=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kT(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=oj.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();ST.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(kT,"parseMetadata");function aj(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(aj,"getStrongestMetadata");function cj(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(cj,"filterMetadataListByAlgorithm");function lj(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(lj,"compareBase64Mixed");function Aj(t){}o(Aj,"tryUpgradeRequestToAPotentiallyTrustworthyURL");functi
Line truncated
|
||||
`);function Vj(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Vj,"isAsciiString");function Jj(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(Jj,"validateBoundary");function Wj(t,e){mp(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&pp(t,Gj,i)||i.position===t.length-4&&pp(t,Yj,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=$j(t,i);if(c==="failure")return"failure";let{name:l,filename:A,contentType:u,encoding:d}=c;i.position+=2;let m;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";m=t.subarray(i.position,h-4),i.position+=m.length,d==="base64"&&(m=Buffer.from(m.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let p;A!==null?(u??="text/plain",Vj(u)||(u=""),p=new Hj([m],A,{type:u})):p=_j(Buffer.from(m)),mp(VT(l)),mp(typeof p=="string"&&VT(p)||Uj(p)),s.push(Oj(l,p,A))}}o(Wj,"multipartFormDataParser");function $j(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=gc(c=>c!==10&&c!==13&&c!==58,t,e);if(a=JI(a,!0,!0,c=>c===9||c===32),!Fj.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,gc(c=>c===32||c===9,t,e),Lj(a)){case"content-disposition":{if(r=n=null,!pp(t,zj,e)||(e.position+=17,r=$T(t,e),r===null))return"failure";if(pp(t,WT,e)){let c=e.position+WT.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=$T(t,e),n===null))return"failure"}break}case"content-type":{let c=gc(l=>l!==10&&l!==13,t,e);c=JI(c,!1,!0,l=>l===9||l===32),s=JT(c);break}case"content-transfer-encoding":{let c=gc(l=>l!==10&&l!==13,t,e);c=JI(c,!1,!0,l=>l===9||l===32),i=JT(c);break}default:gc(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o($j,"parseMultipartFormDataHeaders");function $T(t,e){mp(t[e.position-1]===34);let r=gc(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o($T,"parseMultipartFormDataName");function gc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(gc,"collectASequenceOfBytes");function JI(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(JI,"removeChars");function pp(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(pp,"bufferStartsWith");jT.exports={multipartFormDataParser:Wj,validateBoundary:Jj}});var Cc=g((KNe,aM)=>{"use strict";var _A=ce(),{ReadableStreamFrom:jj,isBlobLike:XT,isReadableStreamLike:Kj,readableStreamClose:Xj,createDeferredPromise:Zj,fullyReadBody:eK,extractMimeType:tK,utf8DecodeBytes:tM}=Rr(),{FormData:ZT}=LA(),{kState:Ec}=Yi(),{webidl:rK}=kt(),{Blob:nK}=require("node:buffer"),WI=require("node:assert"),{isErrored:rM,isDisturbed:sK}=require("node:stream"),{isArrayBuffer:iK}=require("node:util/types"),{serializeAMimeType:oK}=ar(),{multipartFormDataParser:aK}=KT(),$I;try{let t=require("node:crypto");$I=o(e=>t.randomInt(0,e),"random")}catch{$I=o(t=>Math.floor(Math.random(t)),"random")}var hp=new TextEncoder;function cK(){}o(cK,"noop");var nM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sM;nM&&(sM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!sK(e)&&!rM(e)&&e.cancel("Response object has been garbage collected").catch(cK)}));function iM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:XT(t)?r=t.stream():r=new ReadableStream({async pull(l){let A=typeof s=="string"?hp.encode(s):s;A.byteLength&&l.enqueue(A),queueMicrotask(()=>Xj(l))},start(){},type:"bytes"}),WI(Kj(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(iK(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(_A.isFormDataLike(t)){let l=`----formdata-undici-0${`${$I(1e11)}`.padStart(11,"0")}`,A=`--${l}\r
|
||||
Content-Disposition: form-data`;let u=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),d=o(C=>C.replace(/\r?\n|\r/g,`\r
|
||||
`),"normalizeLinefeeds"),m=[],p=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,y]of t)if(typeof y=="string"){let E=Ap.encode(A+`; name="${u(d(C))}"\r
|
||||
`),"normalizeLinefeeds"),m=[],p=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,y]of t)if(typeof y=="string"){let E=hp.encode(A+`; name="${u(d(C))}"\r
|
||||
\r
|
||||
${d(y)}\r
|
||||
`);m.push(E),i+=E.byteLength}else{let E=Ap.encode(`${A}; name="${u(d(C))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
|
||||
`);m.push(E),i+=E.byteLength}else{let E=hp.encode(`${A}; name="${u(d(C))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
|
||||
Content-Type: ${y.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);m.push(E,y,p),typeof y.size=="number"?i+=E.byteLength+y.size+p.byteLength:h=!0}let g=Ap.encode(`--${l}--\r
|
||||
`);m.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let C of m)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(YT(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(TA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Gj(t)}if((typeof s=="string"||TA.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:d}=await l.next();if(d)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!$T(r)){let m=new Uint8Array(u);m.byteLength&&A.enqueue(m)}return A.desiredSize>0},async cancel(A){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(XT,"extractBody");function nK(t,e=!1){return t instanceof ReadableStream&&(HI(!TA.isDisturbed(t),"The body has already been consumed."),HI(!t.locked,"The stream is locked.")),XT(t,e)}o(nK,"safelyExtractBody");function sK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(sK,"cloneBody");function iK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(iK,"throwIfAborted");function oK(t){return{blob(){return fc(this,r=>{let n=JT(this);return n===null?n="":n&&(n=eK(n)),new Kj([r],{type:n})},t)},arrayBuffer(){return fc(this,r=>new Uint8Array(r).buffer,t)},text(){return fc(this,WT,t)},json(){return fc(this,cK,t)},formData(){return fc(this,r=>{let n=JT(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=tK(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new VT;return i[gc]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new VT;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return fc(this,r=>new Uint8Array(r),t)}}}o(oK,"bodyMixinMethods");function aK(t){Object.assign(t.prototype,oK(t))}o(aK,"mixinBody");async function fc(t,e,r){if(jj.brandCheck(t,r),ZT(t))throw new TypeError("Body is unusable: Body has already been read");iK(t[gc]);let n=Jj(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[gc].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Wj(t[gc].body,i,s),n.promise)}o(fc,"consumeBody");function ZT(t){let e=t[gc].body;return e!=null&&(e.stream.locked||TA.isDisturbed(e.stream))}o(ZT,"bodyUnusable");function cK(t){return JSON.parse(WT(t))}o(cK,"parseJSONFromBytes");function JT(t){let e=t[gc].headersList,r=$j(e);return r==="failure"?null:r}o(JT,"bodyMimeType");eM.exports={extractBody:XT,safelyExtractBody:nK,cloneBody:sK,mixinBody:aK,streamRegistry:KT,hasFinalizationRegistry:jT,bodyUnusable:ZT}});var fM=f((KNe,hM)=>{"use strict";var J=require("node:assert"),j=le(),{channels:tM}=ic(),GI=bI(),{RequestContentLengthMismatchError:Oo,ResponseContentLengthMismatchError:rM,RequestAbortedError:AM,HeadersTimeoutError:lK,HeadersOverflowError:AK,SocketError:Ec,InformationalError:Cc,BodyTimeoutError:uK,HTTPParserError:dK,ResponseExceededMaxSizeError:mK}=Ce(),{kUrl:uM,kReset:ar,kClient:pp,kParser:ke,kBlocking:FA,kRunning:dt,kPending:dM,kSize:nM,kWriting:Gi,kQueue:Pn,kNoRef:MA,kKeepAliveDefaultTimeout:pK,kHostHeader:hK,kPendingIdx:fK,kRunningIdx:nn,kError:Vt,kPipelining:hp,kSocket:Ho,kKeepAliveTimeoutValue:gp,kMaxHeadersSize:YI,kKeepAliveMaxTimeout:gK,kKeepAliveTimeoutThreshold:yK,kHeadersTimeout:EK,kBodyTimeout:CK,kStrictContentLength:WI,kMaxRequests:sM,kCounter:IK,kMaxResponseSize:BK,kOnError:iM,kResume:ci,kHTTPContext:mM}=_e(),Rr=Kk(),oM=Buffer.alloc(0),up=Buffer[Symbol.species],dp=j.addListener,QK=j.removeAllListeners,zo=Symbol("kIdleSocketValidation"),qo=Symbol("kIdleSocketValidationTimeout"),XI=Symbol("kSocketUsed"),VI;async function xK(){let t=process.env.JEST_WORKER_ID?SI():void 0,e;try{e=await WebAssembly.compile(eT())}catch{e=await WebAssembly.compile(t||SI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{J(Ve.ptr===r);let i=n-is+ss.byteOffset;return Ve.onStatus(new up(ss.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(J(Ve.ptr===r),Ve.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{J(Ve.ptr===r);let i=n-is+ss.byteOffset;return Ve.onHeaderField(new up(ss.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{J(Ve.ptr===r);let i=n-is+ss.byteOffset;return Ve.onHeaderValue(new up(ss.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(J(Ve.ptr===r),Ve.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{J(Ve.ptr===r);let i=n-is+ss.byteOffset;return Ve.onBody(new up(ss.buffer,i,s))||0},"wasm_on_body"),wasm_on_message_compl
Line truncated
|
||||
`;if(typeof s=="string"?g+=`host: ${s}\r
|
||||
`:g+=t[hK],i?g+=`connection: upgrade\r
|
||||
`);m.push(E,y,p),typeof y.size=="number"?i+=E.byteLength+y.size+p.byteLength:h=!0}let f=hp.encode(`--${l}--\r
|
||||
`);m.push(f),i+=f.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let C of m)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(XT(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(_A.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:jj(t)}if((typeof s=="string"||_A.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:d}=await l.next();if(d)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!rM(r)){let m=new Uint8Array(u);m.byteLength&&A.enqueue(m)}return A.desiredSize>0},async cancel(A){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(iM,"extractBody");function lK(t,e=!1){return t instanceof ReadableStream&&(WI(!_A.isDisturbed(t),"The body has already been consumed."),WI(!t.locked,"The stream is locked.")),iM(t,e)}o(lK,"safelyExtractBody");function AK(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(AK,"cloneBody");function uK(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(uK,"throwIfAborted");function dK(t){return{blob(){return yc(this,r=>{let n=eM(this);return n===null?n="":n&&(n=oK(n)),new nK([r],{type:n})},t)},arrayBuffer(){return yc(this,r=>new Uint8Array(r).buffer,t)},text(){return yc(this,tM,t)},json(){return yc(this,pK,t)},formData(){return yc(this,r=>{let n=eM(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=aK(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ZT;return i[Ec]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ZT;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return yc(this,r=>new Uint8Array(r),t)}}}o(dK,"bodyMixinMethods");function mK(t){Object.assign(t.prototype,dK(t))}o(mK,"mixinBody");async function yc(t,e,r){if(rK.brandCheck(t,r),oM(t))throw new TypeError("Body is unusable: Body has already been read");uK(t[Ec]);let n=Zj(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Ec].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await eK(t[Ec].body,i,s),n.promise)}o(yc,"consumeBody");function oM(t){let e=t[Ec].body;return e!=null&&(e.stream.locked||_A.isDisturbed(e.stream))}o(oM,"bodyUnusable");function pK(t){return JSON.parse(tM(t))}o(pK,"parseJSONFromBytes");function eM(t){let e=t[Ec].headersList,r=tK(e);return r==="failure"?null:r}o(eM,"bodyMimeType");aM.exports={extractBody:iM,safelyExtractBody:lK,cloneBody:AK,mixinBody:mK,streamRegistry:sM,hasFinalizationRegistry:nM,bodyUnusable:oM}});var QM=g((ZNe,BM)=>{"use strict";var V=require("node:assert"),$=ce(),{channels:cM}=ac(),jI=vI(),{RequestContentLengthMismatchError:Ho,ResponseContentLengthMismatchError:lM,RequestAbortedError:gM,HeadersTimeoutError:hK,HeadersOverflowError:fK,SocketError:Ic,InformationalError:Bc,BodyTimeoutError:gK,HTTPParserError:yK,ResponseExceededMaxSizeError:EK}=Ce(),{kUrl:yM,kReset:cr,kClient:Ep,kParser:Me,kBlocking:OA,kRunning:mt,kPending:EM,kSize:AM,kWriting:Vi,kQueue:vn,kNoRef:FA,kKeepAliveDefaultTimeout:CK,kHostHeader:IK,kPendingIdx:BK,kRunningIdx:sn,kError:Jt,kPipelining:Cp,kSocket:Go,kKeepAliveTimeoutValue:Bp,kMaxHeadersSize:KI,kKeepAliveMaxTimeout:QK,kKeepAliveTimeoutThreshold:xK,kHeadersTimeout:bK,kBodyTimeout:wK,kStrictContentLength:eB,kMaxRequests:uM,kCounter:NK,kMaxResponseSize:SK,kOnError:dM,kResume:li,kHTTPContext:CM}=Oe(),Pr=sT(),mM=Buffer.alloc(0),fp=Buffer[Symbol.species],gp=$.addListener,RK=$.removeAllListeners,Yo=Symbol("kIdleSocketValidation"),zo=Symbol("kIdleSocketValidationTimeout"),sB=Symbol("kSocketUsed"),XI;async function PK(){let t=process.env.JEST_WORKER_ID?TI():void 0,e;try{e=await WebAssembly.compile(aT())}catch{e=await WebAssembly.compile(t||TI())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{V(We.ptr===r);let i=n-as+os.byteOffset;return We.onStatus(new fp(os.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(V(We.ptr===r),We.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{V(We.ptr===r);let i=n-as+os.byteOffset;return We.onHeaderField(new fp(os.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{V(We.ptr===r);let i=n-as+os.byteOffset;return We.onHeaderValue(new fp(os.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(V(We.ptr===r),We.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{V(We.ptr===r);let i=n-as+os.byteOffset;return We.onBody(new fp(os.buffer,i,s))||0},"wasm_on_body"),wasm_on_message_compl
Line truncated
|
||||
`;if(typeof s=="string"?f+=`host: ${s}\r
|
||||
`:f+=t[IK],i?f+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[hp]&&!p[ar]?g+=`connection: keep-alive\r
|
||||
`:g+=`connection: close\r
|
||||
`,Array.isArray(A))for(let C=0;C<A.length;C+=2){let y=A[C+0],E=A[C+1];if(Array.isArray(E))for(let I=0;I<E.length;I++)g+=`${y}: ${E[I]}\r
|
||||
`;else g+=`${y}: ${E}\r
|
||||
`}return tM.sendHeaders.hasSubscribers&&tM.sendHeaders.publish({request:e,headers:g,socket:p}),!l||m===0?cM(h,null,t,e,p,u,g,d):j.isBuffer(l)?cM(h,l,t,e,p,u,g,d):j.isBlobLike(l)?typeof l.stream=="function"?lM(h,l.stream(),t,e,p,u,g,d):DK(h,l,t,e,p,u,g,d):j.isStream(l)?vK(h,l,t,e,p,u,g,d):j.isIterable(l)?lM(h,l,t,e,p,u,g,d):J(!1),!0}o(PK,"writeH1");function vK(t,e,r,n,s,i,a,c){J(i!==0||r[dt]===0,"stream body cannot be pipelined");let l=!1,A=new yp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),u=o(function(h){if(!l)try{!A.write(h)&&this.pause&&this.pause()}catch(g){j.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),m=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let h=new AM;queueMicrotask(()=>p(h))}},"onClose"),p=o(function(h){if(!l){if(l=!0,J(s.destroyed||s[Gi]&&r[dt]<=1),s.off("drain",d).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",m),!h)try{A.end()}catch(g){h=g}A.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?j.destroy(e,h):j.destroy(e)}},"onFinished");e.on("data",u).on("end",p).on("error",p).on("close",m),e.resume&&e.resume(),s.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}o(vK,"writeStream");function cM(t,e,r,n,s,i,a,c){try{e?j.isBuffer(e)&&(J(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
`:t[Cp]&&!p[cr]?f+=`connection: keep-alive\r
|
||||
`:f+=`connection: close\r
|
||||
`,Array.isArray(A))for(let C=0;C<A.length;C+=2){let y=A[C+0],E=A[C+1];if(Array.isArray(E))for(let I=0;I<E.length;I++)f+=`${y}: ${E[I]}\r
|
||||
`;else f+=`${y}: ${E}\r
|
||||
`}return cM.sendHeaders.hasSubscribers&&cM.sendHeaders.publish({request:e,headers:f,socket:p}),!l||m===0?hM(h,null,t,e,p,u,f,d):$.isBuffer(l)?hM(h,l,t,e,p,u,f,d):$.isBlobLike(l)?typeof l.stream=="function"?fM(h,l.stream(),t,e,p,u,f,d):FK(h,l,t,e,p,u,f,d):$.isStream(l)?_K(h,l,t,e,p,u,f,d):$.isIterable(l)?fM(h,l,t,e,p,u,f,d):V(!1),!0}o(LK,"writeH1");function _K(t,e,r,n,s,i,a,c){V(i!==0||r[mt]===0,"stream body cannot be pipelined");let l=!1,A=new Qp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),u=o(function(h){if(!l)try{!A.write(h)&&this.pause&&this.pause()}catch(f){$.destroy(this,f)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),m=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let h=new gM;queueMicrotask(()=>p(h))}},"onClose"),p=o(function(h){if(!l){if(l=!0,V(s.destroyed||s[Vi]&&r[mt]<=1),s.off("drain",d).off("error",p),e.removeListener("data",u).removeListener("end",p).removeListener("close",m),!h)try{A.end()}catch(f){h=f}A.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?$.destroy(e,h):$.destroy(e)}},"onFinished");e.on("data",u).on("end",p).on("error",p).on("close",m),e.resume&&e.resume(),s.on("drain",d).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}o(_K,"writeStream");function hM(t,e,r,n,s,i,a,c){try{e?$.isBuffer(e)&&(V(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[ar]=!0)):i===0?s.write(`${a}content-length: 0\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[cr]=!0)):i===0?s.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(J(i===null,"no body must not have content length"),s.write(`${a}\r
|
||||
`,"latin1")),n.onRequestSent(),r[ci]()}catch(l){t(l)}}o(cM,"writeBuffer");async function DK(t,e,r,n,s,i,a,c){J(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Oo;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
`,"latin1"):(V(i===null,"no body must not have content length"),s.write(`${a}\r
|
||||
`,"latin1")),n.onRequestSent(),r[li]()}catch(l){t(l)}}o(hM,"writeBuffer");async function FK(t,e,r,n,s,i,a,c){V(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ho;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[ar]=!0),r[ci]()}catch(l){t(l)}}o(DK,"writeBlob");async function lM(t,e,r,n,s,i,a,c){J(i!==0||r[dt]===0,"iterator body cannot be pipelined");let l=null;function A(){if(l){let m=l;l=null,m()}}o(A,"onDrain");let u=o(()=>new Promise((m,p)=>{J(l===null),s[Vt]?p(s[Vt]):l=m}),"waitForDrain");s.on("close",A).on("drain",A);let d=new yp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[Vt])throw s[Vt];d.write(m)||await u()}d.end()}catch(m){d.destroy(m)}finally{s.off("close",A).off("drain",A)}}o(lM,"writeIterable");var yp=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Gi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Vt])throw r[Vt];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&a+A>s){if(i[WI])throw new Oo;process.emitWarning(new Oo)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[ar]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[cr]=!0),r[li]()}catch(l){t(l)}}o(FK,"writeBlob");async function fM(t,e,r,n,s,i,a,c){V(i!==0||r[mt]===0,"iterator body cannot be pipelined");let l=null;function A(){if(l){let m=l;l=null,m()}}o(A,"onDrain");let u=o(()=>new Promise((m,p)=>{V(l===null),s[Jt]?p(s[Jt]):l=m}),"waitForDrain");s.on("close",A).on("drain",A);let d=new Qp({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[Jt])throw s[Jt];d.write(m)||await u()}d.end()}catch(m){d.destroy(m)}finally{s.off("close",A).off("drain",A)}}o(fM,"writeIterable");var Qp=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Vi]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Jt])throw r[Jt];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&a+A>s){if(i[eB])throw new Ho;process.emitWarning(new Ho)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[cr]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${l}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&r.write(`\r
|
||||
${A.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[ke].timeout&&r[ke].timeoutType===Ic&&r[ke].timeout.refresh&&r[ke].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Gi]=!1,e[Vt])throw e[Vt];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Me].timeout&&r[Me].timeoutType===Qc&&r[Me].timeout.refresh&&r[Me].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Vi]=!1,e[Jt])throw e[Jt];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${a}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[WI])throw new Oo;process.emitWarning(new Oo)}e[ke].timeout&&e[ke].timeoutType===Ic&&e[ke].timeout.refresh&&e[ke].timeout.refresh(),n[ci]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Gi]=!1,e&&(J(n[dt]<=1,"pipeline should only contain this request"),s(e))}};hM.exports=wK});var xM=f((ZNe,QM)=>{"use strict";var sn=require("node:assert"),{pipeline:kK}=require("node:stream"),ue=le(),{RequestContentLengthMismatchError:ZI,RequestAbortedError:gM,SocketError:_A,InformationalError:eB}=Ce(),{kUrl:Ep,kReset:Ip,kClient:Bc,kRunning:Bp,kPending:TK,kQueue:Yi,kPendingIdx:tB,kRunningIdx:vn,kError:kn,kSocket:wt,kStrictContentLength:MK,kOnError:rB,kMaxConcurrentStreams:BM,kHTTP2Session:Dn,kResume:Vi,kSize:LK,kHTTPContext:FK}=_e(),li=Symbol("open streams"),yM,EM=!1,Cp;try{Cp=require("node:http2")}catch{Cp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_K,HTTP2_HEADER_METHOD:UK,HTTP2_HEADER_PATH:OK,HTTP2_HEADER_SCHEME:qK,HTTP2_HEADER_CONTENT_LENGTH:HK,HTTP2_HEADER_EXPECT:zK,HTTP2_HEADER_STATUS:GK}}=Cp;function YK(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(YK,"parseH2Headers");async function VK(t,e){t[wt]=e,EM||(EM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Cp.connect(t[Ep],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[BM]});r[li]=0,r[Bc]=t,r[wt]=e,ue.addListener(r,"error",WK),ue.addListener(r,"frameError",$K),ue.addListener(r,"end",jK),ue.addListener(r,"goaway",KK),ue.addListener(r,"close",function(){let{[Bc]:s}=this,{[wt]:i}=s,a=this[wt][kn]||this[kn]||new _A("closed",ue.getSocketInfo(i));if(s[Dn]=null,s.destroyed){sn(s[TK]===0);let c=s[Yi].splice(s[vn]);for(let l=0;l<c.length;l++){let A=c[l];ue.errorRequest(s,A,a)}}}),r.unref(),t[Dn]=r,e[Dn]=r,ue.addListener(e,"error",function(s){sn(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kn]=s,this[Bc][rB](s)}),ue.addListener(e,"end",function(){ue.destroy(this,new _A("other side closed",ue.getSocketInfo(this)))}),ue.addListener(e,"close",function(){let s=this[kn]||new _A("closed",ue.getSocketInfo(this));t[wt]=null,this[Dn]!=null&&this[Dn].destroy(s),t[tB]=t[vn],sn(t[Bp]===0),t.emit("disconnect",t[Ep],[t],s),t[Vi]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return ZK(t,...s)},resume(){JK(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(VK,"connectH2");function JK(t){let e=t[wt];e?.destroyed===!1&&(t[LK]===0&&t[BM]===0?(e.unref(),t[Dn].unref()):(e.ref(),t[Dn].ref()))}o(JK,"resumeH2");function WK(t){sn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wt][kn]=t,this[Bc][rB](t)}o(WK,"onHttp2SessionError");function $K(t,e,r){if(r===0){let n=new eB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[wt][kn]=n,this[Bc][rB](n)}}o($K,"onHttp2FrameError");function jK(){let t=new _A("other side closed",ue.getSocketInfo(this[wt]));this.destroy(t),ue.destroy(this[wt],t)}o(jK,"onHttp2SessionEnd");function KK(t){let e=this[kn]||new _A(`HTTP/2: "GOAWAY" frame received with code ${t}`,ue.getSocketInfo(this)),r=this[Bc];if(r[wt]=null,r[FK]=null,this[Dn]!=null&&(this[Dn].destroy(e),this[Dn]=null),ue.destroy(this[wt],e),r[vn]<r[Yi].length){let n=r[Yi][r[vn]];r[Yi][r[vn]++]=null,ue.errorRequest(r,n,e),r[tB]=r[vn]}sn(r[Bp]===0),r.emit("disconnect",r[Ep],[r],e),r[Vi]()}o(KK,"onHTTP2GoAway");function XK(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(XK,"shouldSendContentLength");function ZK(t,e){let r=t[Dn],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:A}=e,{body:u}=e;if(a)return ue.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<A.length;B+=2){let N=A[B+0],k=A[B+1];if(Array.isArray(k))for(let _=0;_<k.length;_++)d[N]?d[N]+=`,${k[_]}`:d[N]=k[_];else d[N]=k}let m,{hostname:p,port:h}=t[Ep];d[_K]=i||`${p}${h?`:${h}`:""}`,d[UK]=n;let g=o(B=>{e.aborted||e.completed||(B=B||new gM,ue.errorRequest(t,e,B),m!=null&&ue.destroy(m,B),ue.destroy(u,B),t[Yi][t[vn]++]=null,t[Vi]())},"abort");try{e.onConnect(g)}catch(B){ue.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),m=r.request(d,{endStream:!1,signal:l}),m.id&&!m.pending?(e.onUpgrade(null,null,m),++r[li],t[Yi][t[vn]++]=null):m.once("ready",()=>{e.onUpgrade(null,null,m),++r[li],t[Yi][t[vn]++]=null}),m.once("close",()=>{r[li]-=1,r[li]===0&&r.unref()}),!0;d[OK]=s,d[qK]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=ue.bodyLength(u);if(ue.isFormDataLike(u)){yM??=yc().extractBody;let[B,N]=yM(u);d["content-type"]=N,u=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!C)&&(y=null),XK(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[MK])return ue.errorRequest(t,e,new ZI),!1;process.emitWarning(new ZI)}y!=null
Line truncated
|
||||
`,this[bX]=l??3e5,this[xX]=s??3e5,this[wX]=E??!0,this[NX]=B,this[oB]=k,this[Wi]=null,this[DX]=ce>-1?ce:-1,this[TX]=z??100,this[st]=null,this[Tn]=[],this[ui]=0,this[Mn]=0,this[HA]=me=>cB(this,me),this[kX]=me=>LM(this,me)}get pipelining(){return this[wp]}set pipelining(e){this[wp]=e,this[HA](!0)}get[YA](){return this[Tn].length-this[Mn]}get[GA](){return this[Mn]-this[ui]}get[zA](){return this[Tn].length-this[ui]}get[gX](){return!!this[st]&&!this[xc]&&!this[st].destroyed}get[iB](){return!!(this[st]?.busy(null)||this[zA]>=(MM(this)||1)||this[YA]>0)}[fX](e){FM(this),this.once("connect",e)}[vX](e,r){let n=e.origin||this[as].origin,s=new AX(n,e,r);return this[Tn].push(s),this[Yo]||(Go.bodyLength(s.body)==null&&Go.isIterable(s.body)?(this[Yo]=1,queueMicrotask(()=>cB(this))):this[HA](!0)),this[Yo]&&this[$i]!==2&&this[iB]&&(this[$i]=2),this[$i]<2}async[RX](){return new Promise(e=>{this[zA]?this[Wi]=e:e(null)})}async[PX](e){return new Promise(r=>{let n=this[Tn].splice(this[Mn]);for(let i=0;i<n.length;i++){let a=n[i];Go.errorRequest(this,a,e)}let s=o(()=>{this[Wi]&&(this[Wi](),this[Wi]=null),r(null)},"callback");this[st]?(this[st].destroy(e,s),this[st]=null):queueMicrotask(s),this[HA]()})}},FX=bp();function LM(t,e){if(t[GA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ai(t[Mn]===t[ui]);let r=t[Tn].splice(t[ui]);for(let n=0;n<r.length;n++){let s=r[n];Go.errorRequest(t,s,e)}Ai(t[zA]===0)}}o(LM,"onError");async function FM(t){Ai(!t[xc]),Ai(!t[st]);let{host:e,hostname:r,protocol:n,port:s}=t[as];if(r[0]==="["){let i=r.indexOf("]");Ai(i!==-1);let a=r.substring(1,i);Ai(TM.isIP(a)),r=a}t[xc]=!0,Qc.beforeConnect.hasSubscribers&&Qc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[st]?.version,servername:t[Ji],localAddress:t[qA]},connector:t[OA]});try{let i=await new Promise((a,c)=>{t[OA]({host:e,hostname:r,protocol:n,port:s,servername:t[Ji],localAddress:t[qA]},(l,A)=>{l?c(l):a(A)})});if(t.destroyed){Go.destroy(i.on("error",DM),new mX);return}Ai(i);try{t[st]=i.alpnProtocol==="h2"?await LX(t,i):await MX(t,i)}catch(a){throw i.destroy().on("error",DM),a}t[xc]=!1,i[SX]=0,i[oB]=t[oB],i[hX]=t,i[EX]=null,Qc.connected.hasSubscribers&&Qc.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[st]?.version,servername:t[Ji],localAddress:t[qA]},connector:t[OA],socket:i}),t.emit("connect",t[as],[t])}catch(i){if(t.destroyed)return;if(t[xc]=!1,Qc.connectError.hasSubscribers&&Qc.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[st]?.version,servername:t[Ji],localAddress:t[qA]},connector:t[OA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ai(t[GA]===0);t[YA]>0&&t[Tn][t[Mn]].servername===t[Ji];){let a=t[Tn][t[Mn]++];Go.errorRequest(t,a,i)}else LM(t,i);t.emit("connectionError",t[as],[t],i)}t[HA]()}o(FM,"connect");function kM(t){t[$i]=0,t.emit("drain",t[as],[t])}o(kM,"emitDrain");function cB(t,e){t[Yo]!==2&&(t[Yo]=2,_X(t,e),t[Yo]=0,t[ui]>256&&(t[Tn].splice(0,t[ui]),t[Mn]-=t[ui],t[ui]=0))}o(cB,"resume");function _X(t,e){for(;;){if(t.destroyed){Ai(t[YA]===0);return}if(t[Wi]&&!t[zA]){t[Wi](),t[Wi]=null;return}if(t[st]&&t[st].resume(),t[iB])t[$i]=2;else if(t[$i]===2){e?(t[$i]=1,queueMicrotask(()=>kM(t))):kM(t);continue}if(t[YA]===0||t[GA]>=(MM(t)||1))return;let r=t[Tn][t[Mn]];if(t[as].protocol==="https:"&&t[Ji]!==r.servername){if(t[GA]>0)return;t[Ji]=r.servername,t[st]?.destroy(new dX("servername changed"),()=>{t[st]=null,cB(t)})}if(t[xc])return;if(!t[st]){FM(t);return}if(t[st].destroyed||t[st].busy(r))return;!r.aborted&&t[st].write(r)?t[Mn]++:t[Tn].splice(t[Mn],1)}}o(_X,"_resume");_M.exports=aB});var lB=f((c0e,UM)=>{"use strict";var Np=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};UM.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Np}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Np),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var qM=f((A0e,OM)=>{var{kFree:UX,kConnected:OX,kPending:qX,kQueued:HX,kRunning:zX,kSize:GX}=_e(),Vo=Symbol("pool"),AB=class{static{o(this,"PoolStats")}constructor(e){this[Vo]=e}get connected(){return this[Vo][OX]}get free(){return this[Vo][UX]}get pending(){return this[Vo][qX]}get queued(){return this[Vo][HX]}get running(){return this[Vo][zX]}get size(){return this[Vo][GX]}};OM.exports=AB});var fB=f((d0e,KM)=>{"use strict";var YX=lc(),VX=lB(),{kConnected:uB,kSize:HM,kRunning:zM,kPending:GM,kQueued:VA,kBusy:JX,kFree:WX,kUrl:$X,kClose:jX,kDestroy:KX,kDispatch:XX}=_e(),ZX=qM(),cr=Symbol("clients"),Jt=Symbol("needDrain"),JA=Symbol("queu
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[eB])throw new Ho;process.emitWarning(new Ho)}e[Me].timeout&&e[Me].timeoutType===Qc&&e[Me].timeout.refresh&&e[Me].timeout.refresh(),n[li]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vi]=!1,e&&(V(n[mt]<=1,"pipeline should only contain this request"),s(e))}};BM.exports=DK});var vM=g((t0e,PM)=>{"use strict";var on=require("node:assert"),{pipeline:UK}=require("node:stream"),ue=ce(),{RequestContentLengthMismatchError:iB,RequestAbortedError:xM,SocketError:qA,InformationalError:oB}=Ce(),{kUrl:xp,kReset:wp,kClient:xc,kRunning:Np,kPending:OK,kQueue:Ji,kPendingIdx:aB,kRunningIdx:Dn,kError:Tn,kSocket:wt,kStrictContentLength:qK,kOnError:cB,kMaxConcurrentStreams:RM,kHTTP2Session:kn,kResume:Wi,kSize:HK,kHTTPContext:zK}=Oe(),Ai=Symbol("open streams"),bM,wM=!1,bp;try{bp=require("node:http2")}catch{bp={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:GK,HTTP2_HEADER_METHOD:YK,HTTP2_HEADER_PATH:VK,HTTP2_HEADER_SCHEME:JK,HTTP2_HEADER_CONTENT_LENGTH:WK,HTTP2_HEADER_EXPECT:$K,HTTP2_HEADER_STATUS:jK}}=bp;function KK(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(KK,"parseH2Headers");async function XK(t,e){t[wt]=e,wM||(wM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=bp.connect(t[xp],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[RM]});r[Ai]=0,r[xc]=t,r[wt]=e,ue.addListener(r,"error",eX),ue.addListener(r,"frameError",tX),ue.addListener(r,"end",rX),ue.addListener(r,"goaway",nX),ue.addListener(r,"close",function(){let{[xc]:s}=this,{[wt]:i}=s,a=this[wt][Tn]||this[Tn]||new qA("closed",ue.getSocketInfo(i));if(s[kn]=null,s.destroyed){on(s[OK]===0);let c=s[Ji].splice(s[Dn]);for(let l=0;l<c.length;l++){let A=c[l];ue.errorRequest(s,A,a)}}}),r.unref(),t[kn]=r,e[kn]=r,ue.addListener(e,"error",function(s){on(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Tn]=s,this[xc][cB](s)}),ue.addListener(e,"end",function(){ue.destroy(this,new qA("other side closed",ue.getSocketInfo(this)))}),ue.addListener(e,"close",function(){let s=this[Tn]||new qA("closed",ue.getSocketInfo(this));t[wt]=null,this[kn]!=null&&this[kn].destroy(s),t[aB]=t[Dn],on(t[Np]===0),t.emit("disconnect",t[xp],[t],s),t[Wi]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return iX(t,...s)},resume(){ZK(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(XK,"connectH2");function ZK(t){let e=t[wt];e?.destroyed===!1&&(t[HK]===0&&t[RM]===0?(e.unref(),t[kn].unref()):(e.ref(),t[kn].ref()))}o(ZK,"resumeH2");function eX(t){on(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[wt][Tn]=t,this[xc][cB](t)}o(eX,"onHttp2SessionError");function tX(t,e,r){if(r===0){let n=new oB(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[wt][Tn]=n,this[xc][cB](n)}}o(tX,"onHttp2FrameError");function rX(){let t=new qA("other side closed",ue.getSocketInfo(this[wt]));this.destroy(t),ue.destroy(this[wt],t)}o(rX,"onHttp2SessionEnd");function nX(t){let e=this[Tn]||new qA(`HTTP/2: "GOAWAY" frame received with code ${t}`,ue.getSocketInfo(this)),r=this[xc];if(r[wt]=null,r[zK]=null,this[kn]!=null&&(this[kn].destroy(e),this[kn]=null),ue.destroy(this[wt],e),r[Dn]<r[Ji].length){let n=r[Ji][r[Dn]];r[Ji][r[Dn]++]=null,ue.errorRequest(r,n,e),r[aB]=r[Dn]}on(r[Np]===0),r.emit("disconnect",r[xp],[r],e),r[Wi]()}o(nX,"onHTTP2GoAway");function sX(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(sX,"shouldSendContentLength");function iX(t,e){let r=t[kn],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:A}=e,{body:u}=e;if(a)return ue.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<A.length;B+=2){let b=A[B+0],S=A[B+1];if(Array.isArray(S))for(let F=0;F<S.length;F++)d[b]?d[b]+=`,${S[F]}`:d[b]=S[F];else d[b]=S}let m,{hostname:p,port:h}=t[xp];d[GK]=i||`${p}${h?`:${h}`:""}`,d[YK]=n;let f=o(B=>{e.aborted||e.completed||(B=B||new xM,ue.errorRequest(t,e,B),m!=null&&ue.destroy(m,B),ue.destroy(u,B),t[Ji][t[Dn]++]=null,t[Wi]())},"abort");try{e.onConnect(f)}catch(B){ue.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),m=r.request(d,{endStream:!1,signal:l}),m.id&&!m.pending?(e.onUpgrade(null,null,m),++r[Ai],t[Ji][t[Dn]++]=null):m.once("ready",()=>{e.onUpgrade(null,null,m),++r[Ai],t[Ji][t[Dn]++]=null}),m.once("close",()=>{r[Ai]-=1,r[Ai]===0&&r.unref()}),!0;d[VK]=s,d[JK]="https";let C=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=ue.bodyLength(u);if(ue.isFormDataLike(u)){bM??=Cc().extractBody;let[B,b]=bM(u);d["content-type"]=b,u=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!C)&&(y=null),sX(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[qK])return ue.errorRequest(t,e,new iB),!1;process.emitWarning(new iB)}y!=null
Line truncated
|
||||
`,this[vX]=l??3e5,this[PX]=s??3e5,this[DX]=E??!0,this[kX]=B,this[dB]=S,this[ji]=null,this[FX]=me>-1?me:-1,this[OX]=xe??100,this[it]=null,this[Mn]=[],this[di]=0,this[Ln]=0,this[YA]=ee=>pB(this,ee),this[UX]=ee=>zM(this,ee)}get pipelining(){return this[vp]}set pipelining(e){this[vp]=e,this[YA](!0)}get[WA](){return this[Mn].length-this[Ln]}get[JA](){return this[Ln]-this[di]}get[VA](){return this[Mn].length-this[di]}get[QX](){return!!this[it]&&!this[wc]&&!this[it].destroyed}get[uB](){return!!(this[it]?.busy(null)||this[VA]>=(HM(this)||1)||this[WA]>0)}[BX](e){GM(this),this.once("connect",e)}[_X](e,r){let n=e.origin||this[ls].origin,s=new fX(n,e,r);return this[Mn].push(s),this[Jo]||(Vo.bodyLength(s.body)==null&&Vo.isIterable(s.body)?(this[Jo]=1,queueMicrotask(()=>pB(this))):this[YA](!0)),this[Jo]&&this[Ki]!==2&&this[uB]&&(this[Ki]=2),this[Ki]<2}async[MX](){return new Promise(e=>{this[VA]?this[ji]=e:e(null)})}async[LX](e){return new Promise(r=>{let n=this[Mn].splice(this[Ln]);for(let i=0;i<n.length;i++){let a=n[i];Vo.errorRequest(this,a,e)}let s=o(()=>{this[ji]&&(this[ji](),this[ji]=null),r(null)},"callback");this[it]?(this[it].destroy(e,s),this[it]=null):queueMicrotask(s),this[YA]()})}},zX=Pp();function zM(t,e){if(t[JA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ui(t[Ln]===t[di]);let r=t[Mn].splice(t[di]);for(let n=0;n<r.length;n++){let s=r[n];Vo.errorRequest(t,s,e)}ui(t[VA]===0)}}o(zM,"onError");async function GM(t){ui(!t[wc]),ui(!t[it]);let{host:e,hostname:r,protocol:n,port:s}=t[ls];if(r[0]==="["){let i=r.indexOf("]");ui(i!==-1);let a=r.substring(1,i);ui(qM.isIP(a)),r=a}t[wc]=!0,bc.beforeConnect.hasSubscribers&&bc.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[it]?.version,servername:t[$i],localAddress:t[GA]},connector:t[zA]});try{let i=await new Promise((a,c)=>{t[zA]({host:e,hostname:r,protocol:n,port:s,servername:t[$i],localAddress:t[GA]},(l,A)=>{l?c(l):a(A)})});if(t.destroyed){Vo.destroy(i.on("error",UM),new EX);return}ui(i);try{t[it]=i.alpnProtocol==="h2"?await HX(t,i):await qX(t,i)}catch(a){throw i.destroy().on("error",UM),a}t[wc]=!1,i[TX]=0,i[dB]=t[dB],i[IX]=t,i[bX]=null,bc.connected.hasSubscribers&&bc.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[it]?.version,servername:t[$i],localAddress:t[GA]},connector:t[zA],socket:i}),t.emit("connect",t[ls],[t])}catch(i){if(t.destroyed)return;if(t[wc]=!1,bc.connectError.hasSubscribers&&bc.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[it]?.version,servername:t[$i],localAddress:t[GA]},connector:t[zA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ui(t[JA]===0);t[WA]>0&&t[Mn][t[Ln]].servername===t[$i];){let a=t[Mn][t[Ln]++];Vo.errorRequest(t,a,i)}else zM(t,i);t.emit("connectionError",t[ls],[t],i)}t[YA]()}o(GM,"connect");function OM(t){t[Ki]=0,t.emit("drain",t[ls],[t])}o(OM,"emitDrain");function pB(t,e){t[Jo]!==2&&(t[Jo]=2,GX(t,e),t[Jo]=0,t[di]>256&&(t[Mn].splice(0,t[di]),t[Ln]-=t[di],t[di]=0))}o(pB,"resume");function GX(t,e){for(;;){if(t.destroyed){ui(t[WA]===0);return}if(t[ji]&&!t[VA]){t[ji](),t[ji]=null;return}if(t[it]&&t[it].resume(),t[uB])t[Ki]=2;else if(t[Ki]===2){e?(t[Ki]=1,queueMicrotask(()=>OM(t))):OM(t);continue}if(t[WA]===0||t[JA]>=(HM(t)||1))return;let r=t[Mn][t[Ln]];if(t[ls].protocol==="https:"&&t[$i]!==r.servername){if(t[JA]>0)return;t[$i]=r.servername,t[it]?.destroy(new yX("servername changed"),()=>{t[it]=null,pB(t)})}if(t[wc])return;if(!t[it]){GM(t);return}if(t[it].destroyed||t[it].busy(r))return;!r.aborted&&t[it].write(r)?t[Ln]++:t[Mn].splice(t[Ln],1)}}o(GX,"_resume");YM.exports=mB});var hB=g((A0e,VM)=>{"use strict";var Dp=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};VM.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Dp}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Dp),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var WM=g((d0e,JM)=>{var{kFree:YX,kConnected:VX,kPending:JX,kQueued:WX,kRunning:$X,kSize:jX}=Oe(),Wo=Symbol("pool"),fB=class{static{o(this,"PoolStats")}constructor(e){this[Wo]=e}get connected(){return this[Wo][VX]}get free(){return this[Wo][YX]}get pending(){return this[Wo][JX]}get queued(){return this[Wo][WX]}get running(){return this[Wo][$X]}get size(){return this[Wo][jX]}};JM.exports=fB});var BB=g((p0e,sL)=>{"use strict";var KX=uc(),XX=hB(),{kConnected:gB,kSize:$M,kRunning:jM,kPending:KM,kQueued:$A,kBusy:ZX,kFree:eZ,kUrl:tZ,kClose:rZ,kDestroy:nZ,kDispatch:sZ}=Oe(),iZ=WM(),lr=Symbol("clients"),Wt=Symbol("needDrain"),jA=Symbol("que
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};n2.exports=fQ});var Yp=f((ASe,c2)=>{"use strict";var i2=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bee}=Ce(),wee=Nc();a2()===void 0&&o2(new wee);function o2(t){if(!t||typeof t.dispatch!="function")throw new bee("Argument agent must implement Agent");Object.defineProperty(globalThis,i2,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(o2,"setGlobalDispatcher");function a2(){return globalThis[i2]}o(a2,"getGlobalDispatcher");c2.exports={setGlobalDispatcher:o2,getGlobalDispatcher:a2}});var Vp=f((mSe,l2)=>{"use strict";l2.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var u2=f((hSe,A2)=>{"use strict";var Nee=xp();A2.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new Nee(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var m2=f((gSe,d2)=>{"use strict";var See=Mp();d2.exports=t=>e=>o(function(n,s){return e(n,new See({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var h2=f((ESe,p2)=>{"use strict";var Ree=le(),{InvalidArgumentError:Pee,RequestAbortedError:vee}=Ce(),Dee=Vp(),gQ=class extends Dee{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Pee("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#n=e}onHeaders(e,r,n,s){let a=Ree.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new vee(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function kee({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new gQ({maxSize:i},s);return e(n,a)},"Intercept")}o(kee,"createDumpInterceptor");p2.exports=kee});var y2=f((ISe,g2)=>{"use strict";var{isIP:Tee}=require("node:net"),{lookup:Mee}=require("node:dns"),Lee=Vp(),{InvalidArgumentError:Fc,InformationalError:Fee}=Ce(),f2=Math.pow(2,31)-1,yQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#i,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new Fee("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),A=this.pick(e,l,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,n){Mee(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===f2?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===f2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#r.set(e.hostname,s)}getHandler(e,r){return new EQ(this,e,r)}},EQ=class extends Lee{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null
Line truncated
|
||||
${i}`;break;case"retry":K1(i)&&(r[s]=i);break;case"id":X1(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&K1(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&X1(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Z1.exports={EventSourceStream:ox}});var cU=f((xRe,aU)=>{"use strict";var{pipeline:Yse}=require("node:stream"),{fetching:Vse}=ou(),{makeRequest:Jse}=Oc(),{webidl:fi}=kt(),{EventSourceStream:Wse}=eU(),{parseMIMEType:$se}=or(),{createFastMessageEvent:jse}=Vc(),{isNetworkError:tU}=su(),{delay:Kse}=sx(),{kEnumerableProperty:aa}=le(),{environmentSettingsObject:rU}=Sr(),nU=!1,sU=3e3,Cu=0,iU=1,Iu=2,Xse="anonymous",Zse="use-credentials",Kc=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=Cu;#s=null;#n=null;#o;#a;constructor(e,r={}){super(),fi.util.markAsUncloneable(this);let n="EventSource constructor";fi.argumentLengthCheck(arguments,1,n),nU||(nU=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fi.converters.USVString(e,n,"url"),r=fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:sU};let s=rU,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Xse;r.withCredentials&&(a=Zse,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=rU.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=Jse(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===Iu)return;this.#i=Cu;let e={request:this.#s,dispatcher:this.#o},r=o(n=>{tU(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(tU(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?$se(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=iU,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new Wse({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(jse(l.type,l.options))},"push")});Yse(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Vse(e)}async#c(){this.#i!==Iu&&(this.#i=Cu,this.dispatchEvent(new Event("error")),await Kse(this.#a.reconnectionTime),this.#i===Cu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){fi.brandCheck(this,t),this.#i!==Iu&&(this.#i=Iu,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},oU={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Cu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:iU,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Iu,writable:!1}};Object.defineProperties(Kc,oU);Object.defineProperties(Kc.prototype,oU);Object.defineProperties(Kc.prototype,{close:aa,onerror:aa,onmessage:aa,onopen:aa,readyState:aa,url:aa,withCredentials:aa});fi.converters.EventSourceInitDict=fi.dictionaryConverter([{key:"withCredentials",converter:fi.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:fi.converters.any}]);aU.exports={EventSource:Kc,defaultReconnectionTime:sU}});var ax=f((wRe,X)=>{"use strict";var eie=bc(),lU=xA(),tie=wc(),rie=oL(),nie=Nc(),sie=RB(),iie=PL(),oie=LL(),AU=Ce(),kh=le(),{InvalidArgumentError:Dh}=AU,Xc=BF(),aie=wA(),cie=AQ(),lie=s2(),Aie=mQ(),uie=KB(),die=Mp(),{getGlobalDispatcher:uU,setGlobalDispatcher:mie}=Yp(),pie=Vp(),hie=xp(),fie=bp();Object.assign(lU.prototype,Xc);X.exports.Dispatcher=lU;X.exports.Client=eie;X.exports.Pool=tie;X.exports.BalancedPool=rie;X.exports.Agent=nie;X.exports.ProxyAg
Line truncated
|
||||
%s`,N,N,E,n);var k=E.type==="*"?ob:E.type==="?"?ib:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+k+"\\("+N}h(),i&&(n+="\\\\");var _=!1;switch(n.charAt(0)){case"[":case".":case"(":_=!0}for(var ce=c.length-1;ce>-1;ce--){var Ee=c[ce],xe=n.slice(0,Ee.reStart),z=n.slice(Ee.reStart,Ee.reEnd-8),te=n.slice(Ee.reEnd-8,Ee.reEnd),U=n.slice(Ee.reEnd);te+=U;var me=xe.split("(").length-1,ut=U;for(g=0;g<me;g++)ut=ut.replace(/\)[+*?]?/,"");U=ut;var Ge="";U===""&&e!==tf&&(Ge="$");var rt=xe+z+U+Ge+te;n=rt}if(n!==""&&s&&(n="(?=.)"+n),_&&(n=m+n),e===tf)return[n,s];if(!s)return Nle(t);var ei=r.nocase?"i":"";try{var Nr=new RegExp("^"+n+"$",ei)}catch{return new RegExp("$.")}return Nr._glob=t,Nr._src=n,Nr}o(ble,"parse");Ur.makeRe=function(t,e){return new Tt(t,e||{}).makeRe()};Tt.prototype.makeRe=wle;function wle(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?ob:e.dot?yle:Ele,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===ab?r:typeof a=="string"?Sle(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(wle,"makeRe");Ur.match=function(t,e,r){r=r||{};var n=new Tt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Tt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;qu.sep!=="/"&&(e=e.split(qu.sep).join("/")),e=e.split(cH),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var A=this.matchOne(l,c,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Tt.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var l=e[i],A=t[s];if(this.debug(e,l,A),l===!1)return!1;if(l===ab){this.debug("GLOBSTAR",[e,l,A]);var u=s,d=i+1;if(d===c){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<a;){var m=t[u];if(this.debug(`
|
||||
`.trim())}};A2.exports=BQ});var jp=g((dSe,h2)=>{"use strict";var d2=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:vee}=Ce(),Dee=Rc();p2()===void 0&&m2(new Dee);function m2(t){if(!t||typeof t.dispatch!="function")throw new vee("Argument agent must implement Agent");Object.defineProperty(globalThis,d2,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(m2,"setGlobalDispatcher");function p2(){return globalThis[d2]}o(p2,"getGlobalDispatcher");h2.exports={setGlobalDispatcher:m2,getGlobalDispatcher:p2}});var Kp=g((hSe,f2)=>{"use strict";f2.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var y2=g((gSe,g2)=>{"use strict";var kee=Rp();g2.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new kee(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var C2=g((ESe,E2)=>{"use strict";var Tee=Op();E2.exports=t=>e=>o(function(n,s){return e(n,new Tee({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var B2=g((ISe,I2)=>{"use strict";var Mee=ce(),{InvalidArgumentError:Lee,RequestAbortedError:_ee}=Ce(),Fee=Kp(),QQ=class extends Fee{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#s=0;#n=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Lee("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=r}onConnect(e){this.#t=e,this.#o.onConnect(this.#a.bind(this))}#a(e){this.#i=!0,this.#n=e}onHeaders(e,r,n,s){let a=Mee.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new _ee(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,n,s)}onError(e){this.#r||(e=this.#n??e,this.#o.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#n):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function Uee({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new QQ({maxSize:i},s);return e(n,a)},"Intercept")}o(Uee,"createDumpInterceptor");I2.exports=Uee});var b2=g((QSe,x2)=>{"use strict";var{isIP:Oee}=require("node:net"),{lookup:qee}=require("node:dns"),Hee=Kp(),{InvalidArgumentError:Uc,InformationalError:zee}=Ce(),Q2=Math.pow(2,31)-1,xQ=class{static{o(this,"DNSInstance")}#e=0;#t=0;#r=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#i,this.pick=e.pick??this.#s}get full(){return this.#r.size===this.#t}runLookup(e,r,n){let s=this.#r.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new zee("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),A=this.pick(e,l,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,n){qee(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Q2?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===Q2?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#r.set(e.hostname,s)}getHandler(e,r){return new bQ(this,e,r)}},bQ=class extends Hee{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null
Line truncated
|
||||
${i}`;break;case"retry":sU(i)&&(r[s]=i);break;case"id":iU(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sU(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iU(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};oU.exports={EventSourceStream:dx}});var hU=g((wRe,pU)=>{"use strict";var{pipeline:Kse}=require("node:stream"),{fetching:Xse}=lu(),{makeRequest:Zse}=Hc(),{webidl:gi}=kt(),{EventSourceStream:eie}=aU(),{parseMIMEType:tie}=ar(),{createFastMessageEvent:rie}=Wc(),{isNetworkError:cU}=au(),{delay:nie}=Ax(),{kEnumerableProperty:la}=ce(),{environmentSettingsObject:lU}=Rr(),AU=!1,uU=3e3,Qu=0,dU=1,xu=2,sie="anonymous",iie="use-credentials",Zc=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=Qu;#s=null;#n=null;#o;#a;constructor(e,r={}){super(),gi.util.markAsUncloneable(this);let n="EventSource constructor";gi.argumentLengthCheck(arguments,1,n),AU||(AU=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=gi.converters.USVString(e,n,"url"),r=gi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:uU};let s=lU,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=sie;r.withCredentials&&(a=iie,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=lU.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=Zse(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===xu)return;this.#i=Qu;let e={request:this.#s,dispatcher:this.#o},r=o(n=>{cU(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(cU(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?tie(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=dU,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new eie({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(rie(l.type,l.options))},"push")});Kse(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Xse(e)}async#c(){this.#i!==xu&&(this.#i=Qu,this.dispatchEvent(new Event("error")),await nie(this.#a.reconnectionTime),this.#i===Qu&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){gi.brandCheck(this,t),this.#i!==xu&&(this.#i=xu,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},mU={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Qu,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dU,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xu,writable:!1}};Object.defineProperties(Zc,mU);Object.defineProperties(Zc.prototype,mU);Object.defineProperties(Zc.prototype,{close:la,onerror:la,onmessage:la,onopen:la,readyState:la,url:la,withCredentials:la});gi.converters.EventSourceInitDict=gi.dictionaryConverter([{key:"withCredentials",converter:gi.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:gi.converters.any}]);pU.exports={EventSource:Zc,defaultReconnectionTime:uU}});var mx=g((SRe,K)=>{"use strict";var oie=Nc(),fU=NA(),aie=Sc(),cie=mL(),lie=Rc(),Aie=MB(),uie=_L(),die=zL(),gU=Ce(),Fh=ce(),{InvalidArgumentError:_h}=gU,el=R_(),mie=RA(),pie=fQ(),hie=u2(),fie=EQ(),gie=nQ(),yie=Op(),{getGlobalDispatcher:yU,setGlobalDispatcher:Eie}=jp(),Cie=Kp(),Iie=Rp(),Bie=Pp();Object.assign(fU.prototype,el);K.exports.Dispatcher=fU;K.exports.Client=oie;K.exports.Pool=aie;K.exports.BalancedPool=cie;K.exports.Agent=lie;K.exports.ProxyAg
Line truncated
|
||||
%s`,b,b,E,n);var S=E.type==="*"?db:E.type==="?"?ub:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+S+"\\("+b}h(),i&&(n+="\\\\");var F=!1;switch(n.charAt(0)){case"[":case".":case"(":F=!0}for(var me=c.length-1;me>-1;me--){var ye=c[me],Ee=n.slice(0,ye.reStart),xe=n.slice(ye.reStart,ye.reEnd-8),ie=n.slice(ye.reEnd-8,ye.reEnd),ve=n.slice(ye.reEnd);ie+=ve;var ee=Ee.split("(").length-1,Yt=ve;for(f=0;f<ee;f++)Yt=Yt.replace(/\)[+*?]?/,"");ve=Yt;var H="";ve===""&&e!==af&&(H="$");var be=Ee+xe+ve+H+ie;n=be}if(n!==""&&s&&(n="(?=.)"+n),F&&(n=m+n),e===af)return[n,s];if(!s)return kle(t);var ts=r.nocase?"i":"";try{var Hi=new RegExp("^"+n+"$",ts)}catch{return new RegExp("$.")}return Hi._glob=t,Hi._src=n,Hi}o(vle,"parse");Or.makeRe=function(t,e){return new Tt(t,e||{}).makeRe()};Tt.prototype.makeRe=Dle;function Dle(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?db:e.dot?xle:ble,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===mb?r:typeof a=="string"?Tle(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(Dle,"makeRe");Or.match=function(t,e,r){r=r||{};var n=new Tt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Tt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;Gu.sep!=="/"&&(e=e.split(Gu.sep).join("/")),e=e.split(hH),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var A=this.matchOne(l,c,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Tt.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var l=e[i],A=t[s];if(this.debug(e,l,A),l===!1)return!1;if(l===mb){this.debug("GLOBSTAR",[e,l,A]);var u=s,d=i+1;if(d===c){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!n.dot&&t[s].charAt(0)===".")return!1;return!0}for(;u<a;){var m=t[u];if(this.debug(`
|
||||
globstar while`,t,u,e,d,m),this.matchOne(t.slice(u),e.slice(d),r))return this.debug("globstar found match!",u,a,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,u,e,d);break}this.debug("globstar swallow a segment, and continue"),u++}return!!(r&&(this.debug(`
|
||||
>>> no match, partial?`,t,u,e,d),u===a))}var p;if(typeof l=="string"?(p=A===l,this.debug("string match",l,A,p)):(p=A.match(l),this.debug("pattern match",l,A,p)),!p)return!1}if(s===a&&i===c)return!0;if(s===a)return r;if(i===c)return s===a-1&&t[s]==="";throw new Error("wtf?")};function Nle(t){return t.replace(/\\(.)/g,"$1")}o(Nle,"globUnescape");function Sle(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(Sle,"regExpEscape")});var Gu=f((lTe,hH)=>{"use strict";var Lle="2.0.0",Fle=Number.MAX_SAFE_INTEGER||9007199254740991,_le=16,Ule=250,Ole=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:_le,MAX_SAFE_BUILD_LENGTH:Ule,MAX_SAFE_INTEGER:Fle,RELEASE_TYPES:Ole,SEMVER_SPEC_VERSION:Lle,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Yu=f((ATe,fH)=>{"use strict";var qle=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fH.exports=qle});var Al=f((hs,gH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:lb,MAX_SAFE_BUILD_LENGTH:Hle,MAX_LENGTH:zle}=Gu(),Gle=Yu();hs=gH.exports={};var Yle=hs.re=[],Vle=hs.safeRe=[],L=hs.src=[],Jle=hs.safeSrc=[],F=hs.t={},Wle=0,Ab="[a-zA-Z0-9-]",$le=[["\\s",1],["\\d",zle],[Ab,Hle]],jle=o(t=>{for(let[e,r]of $le)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),ne=o((t,e,r)=>{let n=jle(e),s=Wle++;Gle(t,s,e),F[t]=s,L[s]=e,Jle[s]=n,Yle[s]=new RegExp(e,r?"g":void 0),Vle[s]=new RegExp(n,r?"g":void 0)},"createToken");ne("NUMERICIDENTIFIER","0|[1-9]\\d*");ne("NUMERICIDENTIFIERLOOSE","\\d+");ne("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ab}*`);ne("MAINVERSION",`(${L[F.NUMERICIDENTIFIER]})\\.(${L[F.NUMERICIDENTIFIER]})\\.(${L[F.NUMERICIDENTIFIER]})`);ne("MAINVERSIONLOOSE",`(${L[F.NUMERICIDENTIFIERLOOSE]})\\.(${L[F.NUMERICIDENTIFIERLOOSE]})\\.(${L[F.NUMERICIDENTIFIERLOOSE]})`);ne("PRERELEASEIDENTIFIER",`(?:${L[F.NONNUMERICIDENTIFIER]}|${L[F.NUMERICIDENTIFIER]})`);ne("PRERELEASEIDENTIFIERLOOSE",`(?:${L[F.NONNUMERICIDENTIFIER]}|${L[F.NUMERICIDENTIFIERLOOSE]})`);ne("PRERELEASE",`(?:-(${L[F.PRERELEASEIDENTIFIER]}(?:\\.${L[F.PRERELEASEIDENTIFIER]})*))`);ne("PRERELEASELOOSE",`(?:-?(${L[F.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[F.PRERELEASEIDENTIFIERLOOSE]})*))`);ne("BUILDIDENTIFIER",`${Ab}+`);ne("BUILD",`(?:\\+(${L[F.BUILDIDENTIFIER]}(?:\\.${L[F.BUILDIDENTIFIER]})*))`);ne("FULLPLAIN",`v?${L[F.MAINVERSION]}${L[F.PRERELEASE]}?${L[F.BUILD]}?`);ne("FULL",`^${L[F.FULLPLAIN]}$`);ne("LOOSEPLAIN",`[v=\\s]*${L[F.MAINVERSIONLOOSE]}${L[F.PRERELEASELOOSE]}?${L[F.BUILD]}?`);ne("LOOSE",`^${L[F.LOOSEPLAIN]}$`);ne("GTLT","((?:<|>)?=?)");ne("XRANGEIDENTIFIERLOOSE",`${L[F.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ne("XRANGEIDENTIFIER",`${L[F.NUMERICIDENTIFIER]}|x|X|\\*`);ne("XRANGEPLAIN",`[v=\\s]*(${L[F.XRANGEIDENTIFIER]})(?:\\.(${L[F.XRANGEIDENTIFIER]})(?:\\.(${L[F.XRANGEIDENTIFIER]})(?:${L[F.PRERELEASE]})?${L[F.BUILD]}?)?)?`);ne("XRANGEPLAINLOOSE",`[v=\\s]*(${L[F.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[F.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[F.XRANGEIDENTIFIERLOOSE]})(?:${L[F.PRERELEASELOOSE]})?${L[F.BUILD]}?)?)?`);ne("XRANGE",`^${L[F.GTLT]}\\s*${L[F.XRANGEPLAIN]}$`);ne("XRANGELOOSE",`^${L[F.GTLT]}\\s*${L[F.XRANGEPLAINLOOSE]}$`);ne("COERCEPLAIN",`(^|[^\\d])(\\d{1,${lb}})(?:\\.(\\d{1,${lb}}))?(?:\\.(\\d{1,${lb}}))?`);ne("COERCE",`${L[F.COERCEPLAIN]}(?:$|[^\\d])`);ne("COERCEFULL",L[F.COERCEPLAIN]+`(?:${L[F.PRERELEASE]})?(?:${L[F.BUILD]})?(?:$|[^\\d])`);ne("COERCERTL",L[F.COERCE],!0);ne("COERCERTLFULL",L[F.COERCEFULL],!0);ne("LONETILDE","(?:~>?)");ne("TILDETRIM",`(\\s*)${L[F.LONETILDE]}\\s+`,!0);hs.tildeTrimReplace="$1~";ne("TILDE",`^${L[F.LONETILDE]}${L[F.XRANGEPLAIN]}$`);ne("TILDELOOSE",`^${L[F.LONETILDE]}${L[F.XRANGEPLAINLOOSE]}$`);ne("LONECARET","(?:\\^)");ne("CARETTRIM",`(\\s*)${L[F.LONECARET]}\\s+`,!0);hs.caretTrimReplace="$1^";ne("CARET",`^${L[F.LONECARET]}${L[F.XRANGEPLAIN]}$`);ne("CARETLOOSE",`^${L[F.LONECARET]}${L[F.XRANGEPLAINLOOSE]}$`);ne("COMPARATORLOOSE",`^${L[F.GTLT]}\\s*(${L[F.LOOSEPLAIN]})$|^$`);ne("COMPARATOR",`^${L[F.GTLT]}\\s*(${L[F.FULLPLAIN]})$|^$`);ne("COMPARATORTRIM",`(\\s*)${L[F.GTLT]}\\s*(${L[F.LOOSEPLAIN]}|${L[F.XRANGEPLAIN]})`,!0);hs.comparatorTrimReplace="$1$2$3";ne("HYPHENRANGE",`^\\s*(${L[F.XRANGEPLAIN]})\\s+-\\s+(${L[F.XRANGEPLAIN]})\\s*$`);ne("HYPHENRANGELOOSE",`^\\s*(${L[F.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[F.XRANGEPLAINLOOSE]})\\s*$`);ne("STAR","(<|>)?=?\\s*\\*");ne("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ne("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var of=f((dTe,yH)=>{"use strict";var Kle=Object.freeze({loose:!0}),Xle=Object.freeze({}),Zle=o(t=>t?typeof t!="object"?Kle:t:Xle,"parseOptions");yH.exports=Zle});var ub=f((pTe,IH)=>{"use strict";var EH=/^[0-9]+$/,CH=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=EH.test(t),n=EH.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),eAe=o((t,e)=>CH(e,t),"rcompareIdentifiers");IH
Line truncated
|
||||
>>> no match, partial?`,t,u,e,d),u===a))}var p;if(typeof l=="string"?(p=A===l,this.debug("string match",l,A,p)):(p=A.match(l),this.debug("pattern match",l,A,p)),!p)return!1}if(s===a&&i===c)return!0;if(s===a)return r;if(i===c)return s===a-1&&t[s]==="";throw new Error("wtf?")};function kle(t){return t.replace(/\\(.)/g,"$1")}o(kle,"globUnescape");function Tle(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(Tle,"regExpEscape")});var Ju=g((uTe,BH)=>{"use strict";var Hle="2.0.0",zle=Number.MAX_SAFE_INTEGER||9007199254740991,Gle=16,Yle=250,Vle=["major","premajor","minor","preminor","patch","prepatch","prerelease"];BH.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Gle,MAX_SAFE_BUILD_LENGTH:Yle,MAX_SAFE_INTEGER:zle,RELEASE_TYPES:Vle,SEMVER_SPEC_VERSION:Hle,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Wu=g((dTe,QH)=>{"use strict";var Jle=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};QH.exports=Jle});var dl=g((gs,xH)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:hb,MAX_SAFE_BUILD_LENGTH:Wle,MAX_LENGTH:$le}=Ju(),jle=Wu();gs=xH.exports={};var Kle=gs.re=[],Xle=gs.safeRe=[],L=gs.src=[],Zle=gs.safeSrc=[],_=gs.t={},eAe=0,fb="[a-zA-Z0-9-]",tAe=[["\\s",1],["\\d",$le],[fb,Wle]],rAe=o(t=>{for(let[e,r]of tAe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),re=o((t,e,r)=>{let n=rAe(e),s=eAe++;jle(t,s,e),_[t]=s,L[s]=e,Zle[s]=n,Kle[s]=new RegExp(e,r?"g":void 0),Xle[s]=new RegExp(n,r?"g":void 0)},"createToken");re("NUMERICIDENTIFIER","0|[1-9]\\d*");re("NUMERICIDENTIFIERLOOSE","\\d+");re("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${fb}*`);re("MAINVERSION",`(${L[_.NUMERICIDENTIFIER]})\\.(${L[_.NUMERICIDENTIFIER]})\\.(${L[_.NUMERICIDENTIFIER]})`);re("MAINVERSIONLOOSE",`(${L[_.NUMERICIDENTIFIERLOOSE]})\\.(${L[_.NUMERICIDENTIFIERLOOSE]})\\.(${L[_.NUMERICIDENTIFIERLOOSE]})`);re("PRERELEASEIDENTIFIER",`(?:${L[_.NONNUMERICIDENTIFIER]}|${L[_.NUMERICIDENTIFIER]})`);re("PRERELEASEIDENTIFIERLOOSE",`(?:${L[_.NONNUMERICIDENTIFIER]}|${L[_.NUMERICIDENTIFIERLOOSE]})`);re("PRERELEASE",`(?:-(${L[_.PRERELEASEIDENTIFIER]}(?:\\.${L[_.PRERELEASEIDENTIFIER]})*))`);re("PRERELEASELOOSE",`(?:-?(${L[_.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[_.PRERELEASEIDENTIFIERLOOSE]})*))`);re("BUILDIDENTIFIER",`${fb}+`);re("BUILD",`(?:\\+(${L[_.BUILDIDENTIFIER]}(?:\\.${L[_.BUILDIDENTIFIER]})*))`);re("FULLPLAIN",`v?${L[_.MAINVERSION]}${L[_.PRERELEASE]}?${L[_.BUILD]}?`);re("FULL",`^${L[_.FULLPLAIN]}$`);re("LOOSEPLAIN",`[v=\\s]*${L[_.MAINVERSIONLOOSE]}${L[_.PRERELEASELOOSE]}?${L[_.BUILD]}?`);re("LOOSE",`^${L[_.LOOSEPLAIN]}$`);re("GTLT","((?:<|>)?=?)");re("XRANGEIDENTIFIERLOOSE",`${L[_.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);re("XRANGEIDENTIFIER",`${L[_.NUMERICIDENTIFIER]}|x|X|\\*`);re("XRANGEPLAIN",`[v=\\s]*(${L[_.XRANGEIDENTIFIER]})(?:\\.(${L[_.XRANGEIDENTIFIER]})(?:\\.(${L[_.XRANGEIDENTIFIER]})(?:${L[_.PRERELEASE]})?${L[_.BUILD]}?)?)?`);re("XRANGEPLAINLOOSE",`[v=\\s]*(${L[_.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[_.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[_.XRANGEIDENTIFIERLOOSE]})(?:${L[_.PRERELEASELOOSE]})?${L[_.BUILD]}?)?)?`);re("XRANGE",`^${L[_.GTLT]}\\s*${L[_.XRANGEPLAIN]}$`);re("XRANGELOOSE",`^${L[_.GTLT]}\\s*${L[_.XRANGEPLAINLOOSE]}$`);re("COERCEPLAIN",`(^|[^\\d])(\\d{1,${hb}})(?:\\.(\\d{1,${hb}}))?(?:\\.(\\d{1,${hb}}))?`);re("COERCE",`${L[_.COERCEPLAIN]}(?:$|[^\\d])`);re("COERCEFULL",L[_.COERCEPLAIN]+`(?:${L[_.PRERELEASE]})?(?:${L[_.BUILD]})?(?:$|[^\\d])`);re("COERCERTL",L[_.COERCE],!0);re("COERCERTLFULL",L[_.COERCEFULL],!0);re("LONETILDE","(?:~>?)");re("TILDETRIM",`(\\s*)${L[_.LONETILDE]}\\s+`,!0);gs.tildeTrimReplace="$1~";re("TILDE",`^${L[_.LONETILDE]}${L[_.XRANGEPLAIN]}$`);re("TILDELOOSE",`^${L[_.LONETILDE]}${L[_.XRANGEPLAINLOOSE]}$`);re("LONECARET","(?:\\^)");re("CARETTRIM",`(\\s*)${L[_.LONECARET]}\\s+`,!0);gs.caretTrimReplace="$1^";re("CARET",`^${L[_.LONECARET]}${L[_.XRANGEPLAIN]}$`);re("CARETLOOSE",`^${L[_.LONECARET]}${L[_.XRANGEPLAINLOOSE]}$`);re("COMPARATORLOOSE",`^${L[_.GTLT]}\\s*(${L[_.LOOSEPLAIN]})$|^$`);re("COMPARATOR",`^${L[_.GTLT]}\\s*(${L[_.FULLPLAIN]})$|^$`);re("COMPARATORTRIM",`(\\s*)${L[_.GTLT]}\\s*(${L[_.LOOSEPLAIN]}|${L[_.XRANGEPLAIN]})`,!0);gs.comparatorTrimReplace="$1$2$3";re("HYPHENRANGE",`^\\s*(${L[_.XRANGEPLAIN]})\\s+-\\s+(${L[_.XRANGEPLAIN]})\\s*$`);re("HYPHENRANGELOOSE",`^\\s*(${L[_.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[_.XRANGEPLAINLOOSE]})\\s*$`);re("STAR","(<|>)?=?\\s*\\*");re("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");re("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var uf=g((pTe,bH)=>{"use strict";var nAe=Object.freeze({loose:!0}),sAe=Object.freeze({}),iAe=o(t=>t?typeof t!="object"?nAe:t:sAe,"parseOptions");bH.exports=iAe});var gb=g((fTe,SH)=>{"use strict";var wH=/^[0-9]+$/,NH=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=wH.test(t),n=wH.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),oAe=o((t,e)=>NH(e,t),"rcompareIdentifiers");SH
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+Yf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Rme()+e+" "+t[0]}o(Sme,"formatArgs");function Rme(){return Mt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Rme,"getDate");function Pme(...t){return process.stderr.write(Gf.format(...t)+`
|
||||
`)}o(Pme,"log");function vme(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(vme,"save");function Dme(){return process.env.DEBUG}o(Dme,"load");function kme(t){t.inspectOpts={};let e=Object.keys(Mt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mt.inspectOpts[e[r]]}o(kme,"init");Yf.exports=Xb()(Mt);var{formatters:ZG}=Yf.exports;ZG.o=function(t){return this.inspectOpts.colors=this.useColors,Gf.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};ZG.O=function(t){return this.inspectOpts.colors=this.useColors,Gf.inspect(t,this.inspectOpts)}});var Vf=f((ZFe,tw)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?tw.exports=JG():tw.exports=eY()});var nY=f(fr=>{"use strict";var Tme=fr&&fr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Mme=fr&&fr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tY=fr&&fr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Tme(e,t,r);return Mme(e,t),e};Object.defineProperty(fr,"__esModule",{value:!0});fr.req=fr.json=fr.toBuffer=void 0;var Lme=tY(require("http")),Fme=tY(require("https"));async function rY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(rY,"toBuffer");fr.toBuffer=rY;async function _me(t){let r=(await rY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(_me,"json");fr.json=_me;function Ume(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Fme:Lme).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Ume,"req");fr.req=Ume});var aY=f(zr=>{"use strict";var iY=zr&&zr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ome=zr&&zr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oY=zr&&zr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&iY(e,t,r);return Ome(e,t),e},qme=zr&&zr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&iY(e,t,r)};Object.defineProperty(zr,"__esModule",{value:!0});zr.Agent=void 0;var Hme=oY(require("net")),sY=oY(require("http")),zme=require("https");qme(nY(),zr);var Es=Symbol("AgentBaseInternalState"),rw=class extends sY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Es]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Hme.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?zme.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof sY.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Es].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Es].currentSocket;if(this[Es].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Es].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Es]&&(this[Es].defaultPort=e)}get protocol(){return this[Es].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Es]&&(this[Es].protocol=e)}};zr.Agent=rw});var cY=f(Cl=>{"use strict";var Gme=Cl&&Cl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parseProxyResponse=void 0;var Yme=Gme(Vf()),Jf=(0,Yme.default)("https-proxy-agent:parse-proxy-response");function Vme(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),Jf("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(u){a(),Jf("onerror %o",u),r(u)}o(l,"onerror");function A(u){s.push(u),n+=u.length;let d=Buffer.concat(s,n),m=d.indexOf(`\r
|
||||
`+i),t.push(s+"m+"+jf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mme()+e+" "+t[0]}o(Tme,"formatArgs");function Mme(){return Mt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Mme,"getDate");function Lme(...t){return process.stderr.write($f.format(...t)+`
|
||||
`)}o(Lme,"log");function _me(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(_me,"save");function Fme(){return process.env.DEBUG}o(Fme,"load");function Ume(t){t.inspectOpts={};let e=Object.keys(Mt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Mt.inspectOpts[e[r]]}o(Ume,"init");jf.exports=sw()(Mt);var{formatters:oY}=jf.exports;oY.o=function(t){return this.inspectOpts.colors=this.useColors,$f.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};oY.O=function(t){return this.inspectOpts.colors=this.useColors,$f.inspect(t,this.inspectOpts)}});var Kf=g((t2e,aw)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?aw.exports=eY():aw.exports=aY()});var AY=g(gr=>{"use strict";var Ome=gr&&gr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qme=gr&&gr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cY=gr&&gr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ome(e,t,r);return qme(e,t),e};Object.defineProperty(gr,"__esModule",{value:!0});gr.req=gr.json=gr.toBuffer=void 0;var Hme=cY(require("http")),zme=cY(require("https"));async function lY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(lY,"toBuffer");gr.toBuffer=lY;async function Gme(t){let r=(await lY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(Gme,"json");gr.json=Gme;function Yme(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?zme:Hme).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Yme,"req");gr.req=Yme});var pY=g(Gr=>{"use strict";var dY=Gr&&Gr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Vme=Gr&&Gr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mY=Gr&&Gr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&dY(e,t,r);return Vme(e,t),e},Jme=Gr&&Gr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dY(e,t,r)};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.Agent=void 0;var Wme=mY(require("net")),uY=mY(require("http")),$me=require("https");Jme(AY(),Gr);var Is=Symbol("AgentBaseInternalState"),cw=class extends uY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Is]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new Wme.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?$me.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof uY.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[Is].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Is].currentSocket;if(this[Is].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Is].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Is]&&(this[Is].defaultPort=e)}get protocol(){return this[Is].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Is]&&(this[Is].protocol=e)}};Gr.Agent=cw});var hY=g(Bl=>{"use strict";var jme=Bl&&Bl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.parseProxyResponse=void 0;var Kme=jme(Kf()),Xf=(0,Kme.default)("https-proxy-agent:parse-proxy-response");function Xme(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),Xf("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(u){a(),Xf("onerror %o",u),r(u)}o(l,"onerror");function A(u){s.push(u),n+=u.length;let d=Buffer.concat(s,n),m=d.indexOf(`\r
|
||||
\r
|
||||
`);if(m===-1){Jf("have not received end of HTTP headers yet..."),i();return}let p=d.slice(0,m).toString("ascii").split(`\r
|
||||
`),h=p.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),C=+g[1],y=g.slice(2).join(" "),E={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,B).toLowerCase(),k=I.slice(B+1).trimStart(),_=E[N];typeof _=="string"?E[N]=[_,k]:Array.isArray(_)?_.push(k):E[N]=k}Jf("got proxy server response: %o %o",h,E),a(),e({connect:{statusCode:C,statusText:y,headers:E},buffered:d})}o(A,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Vme,"parseProxyResponse");Cl.parseProxyResponse=Vme});var pY=f(gn=>{"use strict";var Jme=gn&&gn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Wme=gn&&gn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dY=gn&&gn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Jme(e,t,r);return Wme(e,t),e},mY=gn&&gn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gn,"__esModule",{value:!0});gn.HttpsProxyAgent=void 0;var Wf=dY(require("net")),lY=dY(require("tls")),$me=mY(require("assert")),jme=mY(Vf()),Kme=aY(),Xme=require("url"),Zme=cY(),ad=(0,jme.default)("https-proxy-agent"),AY=o(t=>t.servername===void 0&&t.host&&!Wf.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),$f=class extends Kme.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Xme.URL(e):e,this.proxyHeaders=r?.headers??{},ad("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?uY(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(ad("Creating `tls.Socket`: %o",this.connectOpts),s=lY.connect(AY(this.connectOpts))):(ad("Creating `net.Socket`: %o",this.connectOpts),s=Wf.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Wf.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`);if(m===-1){Xf("have not received end of HTTP headers yet..."),i();return}let p=d.slice(0,m).toString("ascii").split(`\r
|
||||
`),h=p.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let f=h.split(" "),C=+f[1],y=f.slice(2).join(" "),E={};for(let I of p){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let b=I.slice(0,B).toLowerCase(),S=I.slice(B+1).trimStart(),F=E[b];typeof F=="string"?E[b]=[F,S]:Array.isArray(F)?F.push(S):E[b]=S}Xf("got proxy server response: %o %o",h,E),a(),e({connect:{statusCode:C,statusText:y,headers:E},buffered:d})}o(A,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Xme,"parseProxyResponse");Bl.parseProxyResponse=Xme});var IY=g(yn=>{"use strict";var Zme=yn&&yn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),epe=yn&&yn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),EY=yn&&yn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Zme(e,t,r);return epe(e,t),e},CY=yn&&yn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.HttpsProxyAgent=void 0;var Zf=EY(require("net")),fY=EY(require("tls")),tpe=CY(require("assert")),rpe=CY(Kf()),npe=pY(),spe=require("url"),ipe=hY(),Ad=(0,rpe.default)("https-proxy-agent"),gY=o(t=>t.servername===void 0&&t.host&&!Zf.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),eg=class extends npe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new spe.URL(e):e,this.proxyHeaders=r?.headers??{},Ad("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?yY(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Ad("Creating `tls.Socket`: %o",this.connectOpts),s=fY.connect(gY(this.connectOpts))):(Ad("Creating `net.Socket`: %o",this.connectOpts),s=Zf.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Zf.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
|
||||
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(i))c+=`${m}: ${i[m]}\r
|
||||
`;let l=(0,Zme.parseProxyResponse)(s);s.write(`${c}\r
|
||||
`);let{connect:A,buffered:u}=await l;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",epe),r.secureEndpoint?(ad("Upgrading socket connection to TLS"),lY.connect({...uY(AY(r),"host","path","port"),socket:s})):s;s.destroy();let d=new Wf.Socket({writable:!1});return d.readable=!0,e.once("socket",m=>{ad("Replaying proxy buffer for failed request"),(0,$me.default)(m.listenerCount("data")>0),m.push(u),m.push(null)}),d}};$f.protocols=["http","https"];gn.HttpsProxyAgent=$f;function epe(t){t.resume()}o(epe,"resume");function uY(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(uY,"omit")});var gY=f(gr=>{"use strict";var tpe=gr&&gr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rpe=gr&&gr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hY=gr&&gr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tpe(e,t,r);return rpe(e,t),e};Object.defineProperty(gr,"__esModule",{value:!0});gr.req=gr.json=gr.toBuffer=void 0;var npe=hY(require("http")),spe=hY(require("https"));async function fY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(fY,"toBuffer");gr.toBuffer=fY;async function ipe(t){let r=(await fY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(ipe,"json");gr.json=ipe;function ope(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?spe:npe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(ope,"req");gr.req=ope});var IY=f(Gr=>{"use strict";var EY=Gr&&Gr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ape=Gr&&Gr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),CY=Gr&&Gr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&EY(e,t,r);return ape(e,t),e},cpe=Gr&&Gr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&EY(e,t,r)};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.Agent=void 0;var lpe=CY(require("net")),yY=CY(require("http")),Ape=require("https");cpe(gY(),Gr);var Cs=Symbol("AgentBaseInternalState"),nw=class extends yY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Cs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new lpe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Ape.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof yY.Agent)return c.addRequest(e,s);this[Cs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Cs].currentSocket;if(this[Cs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Cs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Cs]&&(this[Cs].defaultPort=e)}get protocol(){return this[Cs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Cs]&&(this[Cs].protocol=e)}};Gr.Agent=nw});var xY=f(yn=>{"use strict";var upe=yn&&yn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dpe=yn&&yn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QY=yn&&yn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&upe(e,t,r);return dpe(e,t),e},mpe=yn&&yn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yn,"__esModule",{value:!0});yn.HttpProxyAgent=void 0;var ppe=QY(require("net")),hpe=QY(require("tls")),fpe=mpe(Vf()),gpe=require("events"),ype=IY(),BY=require("url"),Il=(0,fpe.default)("http-proxy-agent"),jf=class extends ype.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new BY.URL(e):e,this.proxyHeaders=r?.headers??{},Il("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Epe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new BY.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(l)){let u=l[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Il("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Il("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
`;let l=(0,ipe.parseProxyResponse)(s);s.write(`${c}\r
|
||||
`);let{connect:A,buffered:u}=await l;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",ope),r.secureEndpoint?(Ad("Upgrading socket connection to TLS"),fY.connect({...yY(gY(r),"host","path","port"),socket:s})):s;s.destroy();let d=new Zf.Socket({writable:!1});return d.readable=!0,e.once("socket",m=>{Ad("Replaying proxy buffer for failed request"),(0,tpe.default)(m.listenerCount("data")>0),m.push(u),m.push(null)}),d}};eg.protocols=["http","https"];yn.HttpsProxyAgent=eg;function ope(t){t.resume()}o(ope,"resume");function yY(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(yY,"omit")});var xY=g(yr=>{"use strict";var ape=yr&&yr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cpe=yr&&yr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BY=yr&&yr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&ape(e,t,r);return cpe(e,t),e};Object.defineProperty(yr,"__esModule",{value:!0});yr.req=yr.json=yr.toBuffer=void 0;var lpe=BY(require("http")),Ape=BY(require("https"));async function QY(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(QY,"toBuffer");yr.toBuffer=QY;async function upe(t){let r=(await QY(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(upe,"json");yr.json=upe;function dpe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ape:lpe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(dpe,"req");yr.req=dpe});var SY=g(Yr=>{"use strict";var wY=Yr&&Yr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mpe=Yr&&Yr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NY=Yr&&Yr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&wY(e,t,r);return mpe(e,t),e},ppe=Yr&&Yr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wY(e,t,r)};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.Agent=void 0;var hpe=NY(require("net")),bY=NY(require("http")),fpe=require("https");ppe(xY(),Yr);var Bs=Symbol("AgentBaseInternalState"),lw=class extends bY.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Bs]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new hpe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?fpe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof bY.Agent)return c.addRequest(e,s);this[Bs].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Bs].currentSocket;if(this[Bs].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bs].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bs]&&(this[Bs].defaultPort=e)}get protocol(){return this[Bs].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bs]&&(this[Bs].protocol=e)}};Yr.Agent=lw});var vY=g(En=>{"use strict";var gpe=En&&En.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ype=En&&En.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PY=En&&En.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gpe(e,t,r);return ype(e,t),e},Epe=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(En,"__esModule",{value:!0});En.HttpProxyAgent=void 0;var Cpe=PY(require("net")),Ipe=PY(require("tls")),Bpe=Epe(Kf()),Qpe=require("events"),xpe=SY(),RY=require("url"),Ql=(0,Bpe.default)("http-proxy-agent"),tg=class extends xpe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new RY.URL(e):e,this.proxyHeaders=r?.headers??{},Ql("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?bpe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new RY.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(l)){let u=l[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Ql("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ql("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),Il("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Il("Creating `tls.Socket`: %o",this.connectOpts),i=hpe.connect(this.connectOpts)):(Il("Creating `net.Socket`: %o",this.connectOpts),i=ppe.connect(this.connectOpts)),await(0,gpe.once)(i,"connect"),i}};jf.protocols=["http","https"];yn.HttpProxyAgent=jf;function Epe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Epe,"omit")});var VY=f(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.state=void 0;Ag.state={instrumenterImplementation:void 0}});var lV=f(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.state=void 0;hg.state={operationRequestMap:new WeakMap}});var q3=f(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var UEe=require("os"),OEe=require("util");function qEe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(qEe,"_interopDefaultLegacy");var HEe=qEe(OEe);function zEe(t,...e){process.stderr.write(`${HEe.default.format(t,...e)}${UEe.EOL}`)}o(zEe,"log");var v3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,k3,MR=[],LR=[],Ty=[];v3&&FR(v3);var T3=Object.assign(t=>M3(t),{enable:FR,enabled:_R,disable:GEe,log:zEe});function FR(t){k3=t,MR=[],LR=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?LR.push(new RegExp(`^${n.substr(1)}$`)):MR.push(new RegExp(`^${n}$`));for(let n of Ty)n.enabled=_R(n.namespace)}o(FR,"enable");function _R(t){if(t.endsWith("*"))return!0;for(let e of LR)if(e.test(t))return!1;for(let e of MR)if(e.test(t))return!0;return!1}o(_R,"enabled");function GEe(){let t=k3||"";return FR(""),t}o(GEe,"disable");function M3(t){let e=Object.assign(r,{enabled:_R(t),destroy:YEe,log:T3.log,namespace:t,extend:VEe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Ty.push(e),e}o(M3,"createDebugger");function YEe(){let t=Ty.indexOf(this);return t>=0?(Ty.splice(t,1),!0):!1}o(YEe,"destroy");function VEe(t){let e=M3(`${this.namespace}:${t}`);return e.log=this.log,e}o(VEe,"extend");var Wd=T3,L3=new Set,Dy=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,My,Ly=Wd("azure");Ly.log=(...t)=>{Wd.log(...t)};var UR=["verbose","info","warning","error"];Dy&&(O3(Dy)?F3(Dy):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Dy}'; logging is not enabled. Acceptable values: ${UR.join(", ")}.`));function F3(t){if(t&&!O3(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${UR.join(",")}`);My=t;let e=[];for(let r of L3)U3(r)&&e.push(r.namespace);Wd.enable(e.join(","))}o(F3,"setLogLevel");function JEe(){return My}o(JEe,"getLogLevel");var D3={verbose:400,info:300,warning:200,error:100};function WEe(t){let e=Ly.extend(t);return _3(Ly,e),{error:ky(e,"error"),warning:ky(e,"warning"),info:ky(e,"info"),verbose:ky(e,"verbose")}}o(WEe,"createClientLogger");function _3(t,e){e.log=(...r)=>{t.log(...r)}}o(_3,"patchLogMethod");function ky(t,e){let r=Object.assign(t.extend(e),{level:e});if(_3(t,r),U3(r)){let n=Wd.disable();Wd.enable(n+","+r.namespace)}return L3.add(r),r}o(ky,"createLogger");function U3(t){return!!(My&&D3[t.level]<=D3[My])}o(U3,"shouldEnable");function O3(t){return UR.includes(t)}o(O3,"isAzureLogLevel");Ul.AzureLogger=Ly;Ul.createClientLogger=WEe;Ul.getLogLevel=JEe;Ul.setLogLevel=F3});var HR=f(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var Ol=new WeakMap,Fy=new WeakMap,$d=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Ol.set(this,[]),Fy.set(this,!1)}get aborted(){if(!Fy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Fy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ol.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ol.get(this).push(r)}removeEventListener(e,r){if(!Ol.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Ol.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function H3(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Ol.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Fy.set(t,!0)}o(H3,"abortSignal");var OR=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},qR=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new $d,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){H3(this._signal)}static timeout(e){let r=new $d,n=setTimeout(H3,e,r);return typeof n.unref=="function"&&n.unref(),r}};jd.AbortController=qR;jd.AbortError=OR;jd.AbortSignal=$d});var J3=f(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var $Ee
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),Ql("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Ql("Creating `tls.Socket`: %o",this.connectOpts),i=Ipe.connect(this.connectOpts)):(Ql("Creating `net.Socket`: %o",this.connectOpts),i=Cpe.connect(this.connectOpts)),await(0,Qpe.once)(i,"connect"),i}};tg.protocols=["http","https"];En.HttpProxyAgent=tg;function bpe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(bpe,"omit")});var ZY=g(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.state=void 0;hg.state={instrumenterImplementation:void 0}});var fV=g(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});Cg.state=void 0;Cg.state={operationRequestMap:new WeakMap}});var W3=g(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var YEe=require("os"),VEe=require("util");function JEe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(JEe,"_interopDefaultLegacy");var WEe=JEe(VEe);function $Ee(t,...e){process.stderr.write(`${WEe.default.format(t,...e)}${YEe.EOL}`)}o($Ee,"log");var F3=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,O3,qR=[],HR=[],Uy=[];F3&&zR(F3);var q3=Object.assign(t=>H3(t),{enable:zR,enabled:GR,disable:jEe,log:$Ee});function zR(t){O3=t,qR=[],HR=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?HR.push(new RegExp(`^${n.substr(1)}$`)):qR.push(new RegExp(`^${n}$`));for(let n of Uy)n.enabled=GR(n.namespace)}o(zR,"enable");function GR(t){if(t.endsWith("*"))return!0;for(let e of HR)if(e.test(t))return!1;for(let e of qR)if(e.test(t))return!0;return!1}o(GR,"enabled");function jEe(){let t=O3||"";return zR(""),t}o(jEe,"disable");function H3(t){let e=Object.assign(r,{enabled:GR(t),destroy:KEe,log:q3.log,namespace:t,extend:XEe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Uy.push(e),e}o(H3,"createDebugger");function KEe(){let t=Uy.indexOf(this);return t>=0?(Uy.splice(t,1),!0):!1}o(KEe,"destroy");function XEe(t){let e=H3(`${this.namespace}:${t}`);return e.log=this.log,e}o(XEe,"extend");var Kd=q3,z3=new Set,_y=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Oy,qy=Kd("azure");qy.log=(...t)=>{Kd.log(...t)};var YR=["verbose","info","warning","error"];_y&&(J3(_y)?G3(_y):console.error(`AZURE_LOG_LEVEL set to unknown log level '${_y}'; logging is not enabled. Acceptable values: ${YR.join(", ")}.`));function G3(t){if(t&&!J3(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${YR.join(",")}`);Oy=t;let e=[];for(let r of z3)V3(r)&&e.push(r.namespace);Kd.enable(e.join(","))}o(G3,"setLogLevel");function ZEe(){return Oy}o(ZEe,"getLogLevel");var U3={verbose:400,info:300,warning:200,error:100};function eCe(t){let e=qy.extend(t);return Y3(qy,e),{error:Fy(e,"error"),warning:Fy(e,"warning"),info:Fy(e,"info"),verbose:Fy(e,"verbose")}}o(eCe,"createClientLogger");function Y3(t,e){e.log=(...r)=>{t.log(...r)}}o(Y3,"patchLogMethod");function Fy(t,e){let r=Object.assign(t.extend(e),{level:e});if(Y3(t,r),V3(r)){let n=Kd.disable();Kd.enable(n+","+r.namespace)}return z3.add(r),r}o(Fy,"createLogger");function V3(t){return!!(Oy&&U3[t.level]<=U3[Oy])}o(V3,"shouldEnable");function J3(t){return YR.includes(t)}o(J3,"isAzureLogLevel");ql.AzureLogger=qy;ql.createClientLogger=eCe;ql.getLogLevel=ZEe;ql.setLogLevel=G3});var WR=g(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Hl=new WeakMap,Hy=new WeakMap,Xd=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Hl.set(this,[]),Hy.set(this,!1)}get aborted(){if(!Hy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Hy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Hl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Hl.get(this).push(r)}removeEventListener(e,r){if(!Hl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Hl.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function $3(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Hl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),Hy.set(t,!0)}o($3,"abortSignal");var VR=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},JR=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Xd,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){$3(this._signal)}static timeout(e){let r=new Xd,n=setTimeout($3,e,r);return typeof n.unref=="function"&&n.unref(),r}};Zd.AbortController=JR;Zd.AbortError=VR;Zd.AbortSignal=Xd});var e4=g(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var tCe
Line truncated
|
||||
Polling from: ${r.config.operationLocation}
|
||||
Operation status: ${u}
|
||||
Polling status: ${K3.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let d=a(A,r);if(d!==void 0)return{response:await e(d).catch($3({state:r,stateProxy:n,isOperationError:c})),status:u}}return{response:A,status:u}}o(xCe,"pollOperationHelper");async function t4(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:A,getPollingInterval:u,processResult:d,getError:m,updateState:p,setDelay:h,isDone:g,setErrorAsResult:C}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:E,status:I}=await xCe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(Z3({status:I,response:E,state:r,stateProxy:n,isDone:g,processResult:d,getError:m,setErrorAsResult:C}),!K3.includes(I)){let B=u?.(E);B&&h(B);let N=c?.(E,r);if(N!==void 0){let k=y!==N;r.config.operationLocation=N,A?.(N,k)}else A?.(y,!1)}p?.(r,E)}}o(t4,"pollOperation");function r4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(r4,"getOperationLocationPollingUrl");function n4(t){return t.headers.location}o(n4,"getLocationHeader");function s4(t){return t.headers["operation-location"]}o(s4,"getOperationLocationHeader");function i4(t){return t.headers["azure-asyncoperation"]}o(i4,"getAzureAsyncOperationHeader");function bCe(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:s;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}o(a,"getDefault")}o(bCe,"findResourceLocation");function o4(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=s4(e),a=i4(e),c=r4({operationLocation:i,azureAsyncOperation:a}),l=n4(e),A=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:bCe({requestMethod:A,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:A==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(o4,"inferLroMode");function a4(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return ZR(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Oa.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(a4,"transformStatus");function wCe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return a4({status:r,statusCode:t.statusCode})}o(wCe,"getStatus");function NCe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return a4({status:i,statusCode:t.statusCode})}o(NCe,"getProvisioningState");function ZR(t){return t===202?"running":t<300?"succeeded":"failed"}o(ZR,"toOperationStatus");function c4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?SCe(new Date(e)):r*1e3}}o(c4,"parseRetryAfter");function l4(t){let e=t.flatResponse.error;if(!e){Oa.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Oa.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(l4,"getErrorFromResponse");function SCe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(SCe,"calculatePollingIntervalFromDate");function A4(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return ZR(e.rawResponse.statusCode);case"Body":return eP(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(A4,"getStatusFromInitialResponse");async function RCe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return e4({init:o(async()=>{let a=await s.sendInitialRequest(),c=o4({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:A4,setErrorAsResult:i})}o(RCe,"initHttpOperation");function u4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(dIe,"base64decode");Vl.base64decode=dIe;function mIe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Mi[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Mi[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Mi[s|n>>6],e+=Mi[n&63],r=0;break}return r&&(e+=Mi[s],e+="=",r==1&&(e+="=")),e}o(mIe,"base64encode");Vl.base64encode=mIe});var q4=f(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.utf8read=void 0;var AP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function pIe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(AP(n)),s=0);return r.length?(s&&r.push(AP(n.slice(0,s))),r.join("")):AP(n.slice(0,s))}o(pIe,"utf8read");rE.utf8read=pIe});var sm=f(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.WireType=Vs.mergeBinaryOptions=Vs.UnknownFieldHandler=void 0;var hIe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(hIe=Vs.UnknownFieldHandler||(Vs.UnknownFieldHandler={}));function fIe(t,e){return Object.assign(Object.assign({},t),e)}o(fIe,"mergeBinaryOptions");Vs.mergeBinaryOptions=fIe;var gIe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(gIe=Vs.WireType||(Vs.WireType={}))});var sE=f(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.varint32read=xr.varint32write=xr.int64toString=xr.int64fromString=xr.varint64write=xr.varint64read=void 0;function yIe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(yIe,"varint64read");xr.varint64read=yIe;function EIe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(EIe,"varint64write");xr.varint64write=EIe;var nE=65536*65536;function CIe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=nE&&(s=s+(n/nE|0),n=n%nE)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(CIe,"int64fromString");xr.int64fromString=CIe;function IIe(t,e){if(e>>>0<=2097151)return""+(nE*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function A(u,d){let m=u?String(u):"";return d?"0000000".slice(m.length)+m:m}return o(A,"decimalFrom1e7"),A(c,0)+A(a,c)+A(i,1)}o(IIe,"int64toString");xr.int64toString=IIe;function BIe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(BIe,"varint32write");xr.varint32write=BIe;function QIe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(QIe,"varint32read");xr.varint32read=QIe});var Po=f(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PbLong=Ro.PbULong=Ro.detectBi=void 0;var im=sE(),Re;function H4(){let t=new DataView(new ArrayBuffer(8));Re=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"
Line truncated
|
||||
`)}};vE.RpcError=FP});var UP=f(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.mergeRpcOptions=void 0;var C8=lt();function YBe(t,e){if(!e)return t;let r={};DE(t,r),DE(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=C8.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=C8.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DE(t.meta,r.meta),DE(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(YBe,"mergeRpcOptions");kE.mergeRpcOptions=YBe;function DE(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(DE,"copy")});var qP=f(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.Deferred=Ya.DeferredState=void 0;var $s;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})($s=Ya.DeferredState||(Ya.DeferredState={}));var OP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=$s.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==$s.PENDING)throw new Error(`cannot resolve ${$s[this.state].toLowerCase()}`);this._resolve(e),this._state=$s.RESOLVED}reject(e){if(this.state!==$s.PENDING)throw new Error(`cannot reject ${$s[this.state].toLowerCase()}`);this._reject(e),this._state=$s.REJECTED}resolvePending(e){this._state===$s.PENDING&&this.resolve(e)}rejectPending(e){this._state===$s.PENDING&&this.reject(e)}};Ya.Deferred=OP});var zP=f(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.RpcOutputStreamController=void 0;var I8=qP(),Va=lt(),HP=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Va.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Va.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Va.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Va.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Va.assert(e,"bad state"),Va.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new I8.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Va.assert(n.state==I8.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};TE.RpcOutputStreamController=HP});var YP=f(Zl=>{"use strict";var VBe=Zl&&Zl.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.UnaryCall=void 0;var GP=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return VBe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};Zl.UnaryCall=GP});var JP=f(eA=>{"use strict";var JBe=eA&&eA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){t
Line truncated
|
||||
Polling status: ${s4.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let d=a(A,r);if(d!==void 0)return{response:await e(d).catch(r4({state:r,stateProxy:n,isOperationError:c})),status:u}}return{response:A,status:u}}o(PCe,"pollOperationHelper");async function c4(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:A,getPollingInterval:u,processResult:d,getError:m,updateState:p,setDelay:h,isDone:f,setErrorAsResult:C}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:E,status:I}=await PCe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:s});if(o4({status:I,response:E,state:r,stateProxy:n,isDone:f,processResult:d,getError:m,setErrorAsResult:C}),!s4.includes(I)){let B=u?.(E);B&&h(B);let b=c?.(E,r);if(b!==void 0){let S=y!==b;r.config.operationLocation=b,A?.(b,S)}else A?.(y,!1)}p?.(r,E)}}o(c4,"pollOperation");function l4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(l4,"getOperationLocationPollingUrl");function A4(t){return t.headers.location}o(A4,"getLocationHeader");function u4(t){return t.headers["operation-location"]}o(u4,"getOperationLocationHeader");function d4(t){return t.headers["azure-asyncoperation"]}o(d4,"getAzureAsyncOperationHeader");function vCe(t){var e;let{location:r,requestMethod:n,requestPath:s,resourceLocationConfig:i}=t;switch(n){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:s;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return r}}o(a,"getDefault")}o(vCe,"findResourceLocation");function m4(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=u4(e),a=d4(e),c=l4({operationLocation:i,azureAsyncOperation:a}),l=A4(e),A=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:vCe({requestMethod:A,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:A==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(m4,"inferLroMode");function p4(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return iP(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Ha.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(p4,"transformStatus");function DCe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return p4({status:r,statusCode:t.statusCode})}o(DCe,"getStatus");function kCe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return p4({status:i,statusCode:t.statusCode})}o(kCe,"getProvisioningState");function iP(t){return t===202?"running":t<300?"succeeded":"failed"}o(iP,"toOperationStatus");function h4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?TCe(new Date(e)):r*1e3}}o(h4,"parseRetryAfter");function f4(t){let e=t.flatResponse.error;if(!e){Ha.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ha.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(f4,"getErrorFromResponse");function TCe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(TCe,"calculatePollingIntervalFromDate");function g4(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return iP(e.rawResponse.statusCode);case"Body":return oP(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(g4,"getStatusFromInitialResponse");async function MCe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return a4({init:o(async()=>{let a=await s.sendInitialRequest(),c=m4({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:g4,setErrorAsResult:i})}o(MCe,"initHttpOperation");function y4({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r==Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(yIe,"base64decode");Wl.base64decode=yIe;function EIe(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Li[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Li[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Li[s|n>>6],e+=Li[n&63],r=0;break}return r&&(e+=Li[s],e+="=",r==1&&(e+="=")),e}o(EIe,"base64encode");Wl.base64encode=EIe});var W4=g(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.utf8read=void 0;var fP=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function CIe(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(fP(n)),s=0);return r.length?(s&&r.push(fP(n.slice(0,s))),r.join("")):fP(n.slice(0,s))}o(CIe,"utf8read");aE.utf8read=CIe});var am=g(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.WireType=Ws.mergeBinaryOptions=Ws.UnknownFieldHandler=void 0;var IIe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(IIe=Ws.UnknownFieldHandler||(Ws.UnknownFieldHandler={}));function BIe(t,e){return Object.assign(Object.assign({},t),e)}o(BIe,"mergeBinaryOptions");Ws.mergeBinaryOptions=BIe;var QIe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(QIe=Ws.WireType||(Ws.WireType={}))});var lE=g(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.varint32read=br.varint32write=br.int64toString=br.int64fromString=br.varint64write=br.varint64read=void 0;function xIe(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(xIe,"varint64read");br.varint64read=xIe;function bIe(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(bIe,"varint64write");br.varint64write=bIe;var cE=65536*65536;function wIe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=cE&&(s=s+(n/cE|0),n=n%cE)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(wIe,"int64fromString");br.int64fromString=wIe;function NIe(t,e){if(e>>>0<=2097151)return""+(cE*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function A(u,d){let m=u?String(u):"";return d?"0000000".slice(m.length)+m:m}return o(A,"decimalFrom1e7"),A(c,0)+A(a,c)+A(i,1)}o(NIe,"int64toString");br.int64toString=NIe;function SIe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(SIe,"varint32write");br.varint32write=SIe;function RIe(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(RIe,"varint32read");br.varint32read=RIe});var Do=g(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.PbLong=vo.PbULong=vo.detectBi=void 0;var cm=lE(),Pe;function $4(){let t=new DataView(new ArrayBuffer(8));Pe=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"
Line truncated
|
||||
`)}};LE.RpcError=zP});var YP=g(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.mergeRpcOptions=void 0;var NW=ut();function KBe(t,e){if(!e)return t;let r={};_E(t,r),_E(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=NW.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=NW.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},_E(t.meta,r.meta),_E(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(KBe,"mergeRpcOptions");FE.mergeRpcOptions=KBe;function _E(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(_E,"copy")});var JP=g(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.Deferred=Ja.DeferredState=void 0;var Ks;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ks=Ja.DeferredState||(Ja.DeferredState={}));var VP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ks.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ks.PENDING)throw new Error(`cannot resolve ${Ks[this.state].toLowerCase()}`);this._resolve(e),this._state=Ks.RESOLVED}reject(e){if(this.state!==Ks.PENDING)throw new Error(`cannot reject ${Ks[this.state].toLowerCase()}`);this._reject(e),this._state=Ks.REJECTED}resolvePending(e){this._state===Ks.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ks.PENDING&&this.reject(e)}};Ja.Deferred=VP});var $P=g(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE.RpcOutputStreamController=void 0;var SW=JP(),Wa=ut(),WP=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Wa.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Wa.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Wa.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Wa.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;Wa.assert(e,"bad state"),Wa.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new SW.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Wa.assert(n.state==SW.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};UE.RpcOutputStreamController=WP});var KP=g(tA=>{"use strict";var XBe=tA&&tA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};Object.defineProperty(tA,"__esModule",{value:!0});tA.UnaryCall=void 0;var jP=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return XBe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};tA.UnaryCall=jP});var ZP=g(rA=>{"use strict";var ZBe=rA&&rA.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){t
Line truncated
|
||||
You can add a runtime option to disable the check or this warning:
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Hxe,"logUnexpecedPropertyAccessOnce");function zxe(){Object.keys(nC).forEach(function(t){delete nC[t]})}o(zxe,"resetLoggedProperties")});var iC=f(Xs=>{"use strict";Xs.__esModule=!0;Xs.HandlebarsEnvironment=Vv;function MW(t){return t&&t.__esModule?t:{default:t}}o(MW,"_interopRequireDefault");var Ka=ir(),Gxe=en(),Gv=MW(Gxe),Yxe=Ov(),Vxe=vW(),Jxe=Hv(),sC=MW(Jxe),Wxe=zv(),$xe="4.7.9";Xs.VERSION=$xe;var jxe=8;Xs.COMPILER_REVISION=jxe;var Kxe=7;Xs.LAST_COMPATIBLE_COMPILER_REVISION=Kxe;var Xxe={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Xs.REVISION_CHANGES=Xxe;var Yv="[object Object]";function Vv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Yxe.registerDefaultHelpers(this),Vxe.registerDefaultDecorators(this)}o(Vv,"HandlebarsEnvironment");Vv.prototype={constructor:Vv,logger:sC.default,log:sC.default.log,registerHelper:o(function(e,r){if(Ka.toString.call(e)===Yv){if(r)throw new Gv.default("Arg not supported with multiple helpers");Ka.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(Ka.toString.call(e)===Yv)Ka.extend(this.partials,e);else{if(typeof r>"u")throw new Gv.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(Ka.toString.call(e)===Yv){if(r)throw new Gv.default("Arg not supported with multiple decorators");Ka.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Wxe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Zxe=sC.default.log;Xs.log=Zxe;Xs.createFrame=Ka.createFrame;Xs.logger=sC.default});var FW=f((oC,LW)=>{"use strict";oC.__esModule=!0;function Jv(t){this.string=t}o(Jv,"SafeString");Jv.prototype.toString=Jv.prototype.toHTML=function(){return""+this.string};oC.default=Jv;LW.exports=oC.default});var _W=f(Wv=>{"use strict";Wv.__esModule=!0;Wv.wrapHelper=ebe;function ebe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(ebe,"wrapHelper")});var GW=f(ko=>{"use strict";ko.__esModule=!0;ko.checkRevision=obe;ko.template=abe;ko.wrapProgram=aC;ko.resolvePartial=cbe;ko.invokePartial=lbe;ko.noop=HW;function tbe(t){return t&&t.__esModule?t:{default:t}}o(tbe,"_interopRequireDefault");function rbe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(rbe,"_interopRequireWildcard");var nbe=ir(),dA=rbe(nbe),sbe=en(),_i=tbe(sbe),Ui=iC(),UW=Ov(),ibe=_W(),OW=zv();function obe(t){var e=t&&t[0]||1,r=Ui.COMPILER_REVISION;if(!(e>=Ui.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ui.COMPILER_REVISION))if(e<Ui.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ui.REVISION_CHANGES[r],s=Ui.REVISION_CHANGES[e];throw new _i.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new _i.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(obe,"checkRevision");function abe(t,e){if(!e)throw new _i.default("No environment passed to template");if(!t||!t.main)throw new _i.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=dA.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var A=e.VM.invokePartial.call(this,a,c,l);if(A==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),A=l.partials[l.name](c,l)),A!=null){if(l.indent){for(var u=A.split(`
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Wxe,"logUnexpecedPropertyAccessOnce");function $xe(){Object.keys(cC).forEach(function(t){delete cC[t]})}o($xe,"resetLoggedProperties")});var AC=g(ei=>{"use strict";ei.__esModule=!0;ei.HandlebarsEnvironment=Zv;function H8(t){return t&&t.__esModule?t:{default:t}}o(H8,"_interopRequireDefault");var ec=or(),jxe=tn(),Kv=H8(jxe),Kxe=Jv(),Xxe=F8(),Zxe=$v(),lC=H8(Zxe),ebe=jv(),tbe="4.7.9";ei.VERSION=tbe;var rbe=8;ei.COMPILER_REVISION=rbe;var nbe=7;ei.LAST_COMPATIBLE_COMPILER_REVISION=nbe;var sbe={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};ei.REVISION_CHANGES=sbe;var Xv="[object Object]";function Zv(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Kxe.registerDefaultHelpers(this),Xxe.registerDefaultDecorators(this)}o(Zv,"HandlebarsEnvironment");Zv.prototype={constructor:Zv,logger:lC.default,log:lC.default.log,registerHelper:o(function(e,r){if(ec.toString.call(e)===Xv){if(r)throw new Kv.default("Arg not supported with multiple helpers");ec.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(ec.toString.call(e)===Xv)ec.extend(this.partials,e);else{if(typeof r>"u")throw new Kv.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(ec.toString.call(e)===Xv){if(r)throw new Kv.default("Arg not supported with multiple decorators");ec.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){ebe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var ibe=lC.default.log;ei.log=ibe;ei.createFrame=ec.createFrame;ei.logger=lC.default});var G8=g((uC,z8)=>{"use strict";uC.__esModule=!0;function eD(t){this.string=t}o(eD,"SafeString");eD.prototype.toString=eD.prototype.toHTML=function(){return""+this.string};uC.default=eD;z8.exports=uC.default});var Y8=g(tD=>{"use strict";tD.__esModule=!0;tD.wrapHelper=obe;function obe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(obe,"wrapHelper")});var K8=g(Mo=>{"use strict";Mo.__esModule=!0;Mo.checkRevision=dbe;Mo.template=mbe;Mo.wrapProgram=dC;Mo.resolvePartial=pbe;Mo.invokePartial=hbe;Mo.noop=$8;function abe(t){return t&&t.__esModule?t:{default:t}}o(abe,"_interopRequireDefault");function cbe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(cbe,"_interopRequireWildcard");var lbe=or(),pA=cbe(lbe),Abe=tn(),Ui=abe(Abe),Oi=AC(),V8=Jv(),ube=Y8(),J8=jv();function dbe(t){var e=t&&t[0]||1,r=Oi.COMPILER_REVISION;if(!(e>=Oi.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Oi.COMPILER_REVISION))if(e<Oi.LAST_COMPATIBLE_COMPILER_REVISION){var n=Oi.REVISION_CHANGES[r],s=Oi.REVISION_CHANGES[e];throw new Ui.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ui.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(dbe,"checkRevision");function mbe(t,e){if(!e)throw new Ui.default("No environment passed to template");if(!t||!t.main)throw new Ui.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=pA.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var A=e.VM.invokePartial.call(this,a,c,l);if(A==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),A=l.partials[l.name](c,l)),A!=null){if(l.indent){for(var u=A.split(`
|
||||
`),d=0,m=u.length;d<m&&!(!u[d]&&d+1===m);d++)u[d]=l.indent+u[d];A=u.join(`
|
||||
`)}return A}else throw new _i.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,A){if(!c||!(l in c))throw new _i.default('"'+l+'" not defined in '+c,{loc:A});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var A=c[l];if(A==null||Object.prototype.hasOwnProperty.call(c,l)||OW.resultIsAllowed(A,s.protoAccessControl,l))return A},"lookupProperty"),lookup:o(function(c,l){for(var A=c.length,u=0;u<A;u++){var d=c[u]&&s.lookupProperty(c[u],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:dA.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,A,u,d){var m=this.programs[c],p=this.fn(c);return l||d||u||A?m=aC(this,c,p,l,A,u,d):m||(m=this.programs[c]=aC(this,c,p)),m},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var A=c||l;return c&&l&&c!==l&&(A=dA.extend({},l,c)),A},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=Abe(a,l));var A=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?A=a!=c.depths[0]?[a].concat(c.depths):c.depths:A=[a]);function d(m){return""+t.main(s,m,s.helpers,s.partials,l,u,A)}return o(d,"main"),d=zW(t.main,d,s,c.depths||[],l,u),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};qW(c,e.helpers,s),qW(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=dA.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=OW.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;UW.moveHelperToHooks(s,"helperMissing",l),UW.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,A){if(t.useBlockParams&&!l)throw new _i.default("must pass block params");if(t.useDepths&&!A)throw new _i.default("must pass parent depths");return aC(s,a,t[a],c,0,l,A)},i}o(abe,"template");function aC(t,e,r,n,s,i,a){function c(l){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(u=[l].concat(a)),r(t,l,t.helpers,t.partials,A.data||n,i&&[A.blockParams].concat(i),u)}return o(c,"prog"),c=zW(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(aC,"wrapProgram");function cbe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=cC(r.partials,t)):r.name==="@partial-block"?t=cC(r.data,"partial-block"):t=cC(r.partials,r.name),t}o(cbe,"resolvePartial");function lbe(t,e,r){var n=cC(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==HW&&(function(){r.data=Ui.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Ui.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=dA.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new _i.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(lbe,"invokePartial");function HW(){return""}o(HW,"noop");function cC(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(cC,"lookupOwnProperty");function Abe(t,e){return(!e||!("root"in e))&&(e=e?Ui.createFrame(e):{},e.root=t),e}o(Abe,"initData");function zW(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),dA.extend(e,a)}return e}o(zW,"executeDecorators");function qW(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=ube(s,r)})}o(qW,"addHelpers");function ube(t,e){var r=e.lookupProperty;return ibe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(ube,"passLookupPropertyOption")});var $v=f((lC,YW)=>{"use strict";lC.__esModule=!0;lC.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};YW.exports=lC.default});var jW=f((AC,$W)=>{"use strict";AC.__esModule=!0;function Kv(t){return t&&t.__esModule?t:{default:t}}o(Kv,"_interopRequireDefault");function Xv(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(Xv,"_interopRequireWildcard");var dbe=iC(),VW=Xv(dbe),mbe=FW(),pbe=Kv(mbe),hbe=en(),fbe=Kv(hbe),gbe=ir(),jv=Xv(gbe),ybe=GW(),JW=Xv(ybe),Ebe=$v()
Line truncated
|
||||
`)}return A}else throw new Ui.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,A){if(!c||!(l in c))throw new Ui.default('"'+l+'" not defined in '+c,{loc:A});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var A=c[l];if(A==null||Object.prototype.hasOwnProperty.call(c,l)||J8.resultIsAllowed(A,s.protoAccessControl,l))return A},"lookupProperty"),lookup:o(function(c,l){for(var A=c.length,u=0;u<A;u++){var d=c[u]&&s.lookupProperty(c[u],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:pA.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,A,u,d){var m=this.programs[c],p=this.fn(c);return l||d||u||A?m=dC(this,c,p,l,A,u,d):m||(m=this.programs[c]=dC(this,c,p)),m},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var A=c||l;return c&&l&&c!==l&&(A=pA.extend({},l,c)),A},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=fbe(a,l));var A=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?A=a!=c.depths[0]?[a].concat(c.depths):c.depths:A=[a]);function d(m){return""+t.main(s,m,s.helpers,s.partials,l,u,A)}return o(d,"main"),d=j8(t.main,d,s,c.depths||[],l,u),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};W8(c,e.helpers,s),W8(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=pA.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=J8.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;V8.moveHelperToHooks(s,"helperMissing",l),V8.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,A){if(t.useBlockParams&&!l)throw new Ui.default("must pass block params");if(t.useDepths&&!A)throw new Ui.default("must pass parent depths");return dC(s,a,t[a],c,0,l,A)},i}o(mbe,"template");function dC(t,e,r,n,s,i,a){function c(l){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(u=[l].concat(a)),r(t,l,t.helpers,t.partials,A.data||n,i&&[A.blockParams].concat(i),u)}return o(c,"prog"),c=j8(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(dC,"wrapProgram");function pbe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=mC(r.partials,t)):r.name==="@partial-block"?t=mC(r.data,"partial-block"):t=mC(r.partials,r.name),t}o(pbe,"resolvePartial");function hbe(t,e,r){var n=mC(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==$8&&(function(){r.data=Oi.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Oi.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=pA.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ui.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(hbe,"invokePartial");function $8(){return""}o($8,"noop");function mC(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(mC,"lookupOwnProperty");function fbe(t,e){return(!e||!("root"in e))&&(e=e?Oi.createFrame(e):{},e.root=t),e}o(fbe,"initData");function j8(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),pA.extend(e,a)}return e}o(j8,"executeDecorators");function W8(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=gbe(s,r)})}o(W8,"addHelpers");function gbe(t,e){var r=e.lookupProperty;return ube.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(gbe,"passLookupPropertyOption")});var rD=g((pC,X8)=>{"use strict";pC.__esModule=!0;pC.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};X8.exports=pC.default});var n$=g((hC,r$)=>{"use strict";hC.__esModule=!0;function sD(t){return t&&t.__esModule?t:{default:t}}o(sD,"_interopRequireDefault");function iD(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(iD,"_interopRequireWildcard");var ybe=AC(),Z8=iD(ybe),Ebe=G8(),Cbe=sD(Ebe),Ibe=tn(),Bbe=sD(Ibe),Qbe=or(),nD=iD(Qbe),xbe=K8(),e$=iD(xbe),bbe=rD()
Line truncated
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+me.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ut="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ut,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:me})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+B);switch(_[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(_[1]),B=null,N?(B=N,N=null):(m=this.lexer.yyleng,u=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case 2:if(te=this.productions_[_[1]][1],xe.$=c[c.length-te],xe._$={first_line:l[l.length-(te||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(te||1)].first_column,last_column:l[l.length-1].last_column},y&&(xe._$.range=[l[l.length-(te||1)].range[0],l[l.length-1].range[1]]),Ee=this.performAction.call(xe,u,m,d,this.yy,_[1],c,l),typeof Ee<"u")return Ee;te&&(a=a.slice(0,-1*te*2),c=c.slice(0,-1*te),l=l.slice(0,-1*te)),a.push(this.productions_[_[1]][0]),c.push(xe.$),l.push(xe._$),U=A[a[a.length-2]][a[a.length-1]],a.push(U);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
||||
Expecting `+ee.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Yt="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Yt,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ee})}}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(F[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(F[1]),B=null,b?(B=b,b=null):(m=this.lexer.yyleng,u=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,p>0&&p--);break;case 2:if(ie=this.productions_[F[1]][1],Ee.$=c[c.length-ie],Ee._$={first_line:l[l.length-(ie||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ie||1)].first_column,last_column:l[l.length-1].last_column},y&&(Ee._$.range=[l[l.length-(ie||1)].range[0],l[l.length-1].range[1]]),ye=this.performAction.call(Ee,u,m,d,this.yy,F[1],c,l),typeof ye<"u")return ye;ie&&(a=a.slice(0,-1*ie*2),c=c.slice(0,-1*ie),l=l.slice(0,-1*ie)),a.push(this.productions_[F[1]][0]),c.push(Ee.$),l.push(Ee._$),ve=A[a[a.length-2]][a[a.length-1]],a.push(ve);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
||||
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,A,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),m=0;m<d.length&&(c=this._input.match(this.rules[d[m]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=m,!this.options.flex)));m++);return a?(u=a[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,d[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function A(d,m){return a.yytext=a.yytext.substring(d,a.yyleng-m+d)}o(A,"strip");var u=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(A(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(A(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(A(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=A(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=A(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();dC.default=Ibe;ZW.exports=dC.default});var fC=f((hC,n$)=>{"use strict";hC.__esModule=!0;function Bbe(t){return t&&t.__esModule?t:{default:t}}o(Bbe,"_interopRequireDefault");var Qbe=en(),eD=Bbe(Qbe);function mC(){this.parents=[]}o(mC,"Visitor");mC.prototype={constructor:mC,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!mC.prototype[n.type])throw new eD.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new eD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new eD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:pC,Decorator:pC,BlockStatement:t$,DecoratorBlock:t$,PartialStatement:r$,PartialBlockStatement:o(function(e){r$.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:pC,PathExpression:o(function(){},"PathExpression"),StrLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new tc(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof tc?e:(e=BD(e,this,r),new tc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=BD(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(BD(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};xC.default=_$;U$.exports=xC.default});var Y$=f((bC,G$)=>{"use strict";bC.__esModule=!0;function z$(t){return t&&t.__esModule?t:{default:t}}o(z$,"_interopRequireDefault");var q$=iC(),Cwe=en(),xD=z$(Cwe),Iwe=ir(),Bwe=O$(),H$=z$(Bwe);function yA(t){this.value=t}o(yA,"Literal");function EA(){}o(EA,"JavaScriptCompiler");EA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=q$.COMPILER_REVISION,r=q$.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return Iwe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,A=void 0;for(l=0,A=i.length;l<A;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new xD.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function A(d,m){return a.yytext=a.yytext.substring(d,a.yyleng-m+d)}o(A,"strip");var u=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(A(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(A(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(A(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=A(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=A(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();gC.default=Nbe;o$.exports=gC.default});var IC=g((CC,A$)=>{"use strict";CC.__esModule=!0;function Sbe(t){return t&&t.__esModule?t:{default:t}}o(Sbe,"_interopRequireDefault");var Rbe=tn(),aD=Sbe(Rbe);function yC(){this.parents=[]}o(yC,"Visitor");yC.prototype={constructor:yC,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!yC.prototype[n.type])throw new aD.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new aD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new aD.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:EC,Decorator:EC,BlockStatement:c$,DecoratorBlock:c$,PartialStatement:l$,PartialBlockStatement:o(function(e){l$.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:EC,PathExpression:o(function(){},"PathExpression"),StrLine truncated
|
||||
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new sc(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof sc?e:(e=RD(e,this,r),new sc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=RD(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(RD(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};RC.default=Y$;V$.exports=RC.default});var X$=g((PC,K$)=>{"use strict";PC.__esModule=!0;function j$(t){return t&&t.__esModule?t:{default:t}}o(j$,"_interopRequireDefault");var W$=AC(),wwe=tn(),vD=j$(wwe),Nwe=or(),Swe=J$(),$$=j$(Swe);function CA(t){this.value=t}o(CA,"Literal");function IA(){}o(IA,"JavaScriptCompiler");IA.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=W$.COMPILER_REVISION,r=W$.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return Nwe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,A=void 0;for(l=0,A=i.length;l<A;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new vD.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
||||
`),this.decorators.push(`}
|
||||
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(s);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var m=this.context,p=m.programs,h=m.decorators;for(l=0,A=p.length;l<A;l++)d[l]=p[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),s?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new H$.default(this.options.srcName),this.decorators=new H$.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var A=r.aliases[l];A.children&&A.referenceCount>1&&(n+=", alias"+ ++i+"="+l,A.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(s);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var m=this.context,p=m.programs,h=m.decorators;for(l=0,A=p.length;l<A;l++)d[l]=p[l],h[l]&&(d[l+"_d"]=h[l],d.useDecorators=!0);return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),s?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),r.srcName?(d=d.toStringWithSourceMap({file:r.destName}),d.map=d.map&&d.map.toString()):d=d.toString()),d},"compile"),preamble:o(function(){this.lastContext=0,this.source=new $$.default(this.options.srcName),this.decorators=new $$.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var A=r.aliases[l];A.children&&A.referenceCount>1&&(n+=", alias"+ ++i+"="+l,A.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
||||
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
|
||||
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
|
||||
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
||||
@@ -86,49 +86,49 @@ Expecting `+me.join(", ")+", got '"+(this.terminals_[B]||B)+"'":ut="Parse error
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Qwe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(u){a.replaceStack(function(d){var m=a.nameLookup(d,r[u],e);return s?[" && ",m]:[" != null ? ",m," : ",d]})},"_loop"),A=n;A<c;A++)l(A)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};tt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};tt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};tt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};tt.prototype.BlockStatement=tt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};tt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};tt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};tt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};tt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};tt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};tt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};tt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};tt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};tt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};tt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};tt.prototype.NullLiteral=function(){return"NULL"};tt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};tt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Z$=f((GXe,X$)=>{var SC=W$().default,K$=$$();SC.PrintVisitor=K$.PrintVisitor;SC.print=K$.print;X$.exports=SC;function j$(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=SC.compile(n)}o(j$,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=j$,require.extensions[".hbs"]=j$)});var kD=Q(require("os"),1);function ti(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ti,"toCommandValue");function PC(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(PC,"toCommandProperties");function qi(t,e,r){let n=new vC(t,e,r);process.stdout.write(n.toString()+kD.EOL)}o(qi,"issueCommand");function DC(t,e=""){qi(t,{},e)}o(DC,"issue");var DD="::",vC=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=DD+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${y5(s)}`)}}return e+=`${DD}${g5(this.message)}`,e}};function g5(t){return ti(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(g5,"escapeData");function y5(t){return ti(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(y5,"escapeProperty");var TD=Q(require("crypto"),1),Um=Q(require("fs"),1),_m=Q(require("os"),1);function kC(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Um.existsSync(r))throw new Error(`Missing file at path: ${r}`);Um.appendFileSync(r,`${ti(e)}${_m.EOL}`,{encoding:"utf8"})}o(kC,"issueFileCommand");function TC(t,e){let r=`ghadelimiter_${TD.randomUUID()}`,n=ti(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${_m.EOL}${n}${_m.EOL}${r}`}o(TC,"prepareKeyValueMessage");var Bx=Q(require("os"),1);var Th=Q(FC(),1),Die=Q(ax(),1);var us;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Qx,"getBooleanInput");function TU(t,e){if(process.env.GITHUB_OUTPUT||"")return kC("OUTPUT",TC(t,e));process.stdout.write(Bx.EOL),qi("set-output",{name:t},ti(e))}o(TU,"setOutput");function MU(t){process.exitCode=Ix.Failure,nl(t)}o(MU,"setFailed");function ua(){return process.env.RUNNER_DEBUG==="1"}o(ua,"isDebug");function b(t){qi("debug",{},t)}o(b,"debug");function nl(t,e={}){qi("error",PC(e),t instanceof Error?t.toString():t)}o(nl,"error");function gt(t,e={}){qi("warning",PC(e),t instanceof Error?t.toString():t)}o(gt,"warning");function he(t){process.stdout.write(t+Bx.EOL)}o(he,"info");function Gie(t){DC("group",t)}o(Gie,"startGroup");function Yie(){DC("endgroup")}o(Yie,"endGroup");function ms(t,e){return zie(this,void 0,void 0,function*(){Gie(t);let r;try{r=yield e()}finally{Yie()}return r})}o(ms,"group");function Uh(t,e){if(process.env.GITHUB_STATE||"")return kC("STATE",TC(t,e));qi("save-state",{name:t},ti(e))}o(Uh,"saveState");function LU(t){return process.env[`STATE_${t}`]||""}o(LU,"getState");var HE=Q(require("fs"),1),Nv=Q(require("os"),1),Sv=Q(require("path"),1);var _U=Q(require("os"),1);function Su(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Su,"toCommandValue");function UU(t,e,r){let n=new xx(t,e,r);process.stdout.write(n.toString()+_U.EOL)}o(UU,"issueCommand");var FU="::",xx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=FU+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Jie(s)}`)}}return e+=`${FU}${Vie(this.message)}`,e}};function Vie(t){return Su(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Vie,"escapeData");function Jie(t){return Su(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Jie,"escapeProperty");var qU=require("os"),Ru=require("fs");var bx=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},{access:Wie,appendFile:$ie,writeFile:jie}=Ru.promises,OU="GITHUB_STEP_SUMMARY";var wx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return bx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[OU];if(!e)throw new Error(`Unable to find environment variable for $${OU}. Check if your runtime environment supports job summaries.`);try{yield Wie(e,Ru.constants.R_OK|Ru.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return bx(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?jie:$ie)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return bx(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(qU.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:A,rowspan:u}=a,d=c?"th":"td",m=Object.assign(Object.assign({},A&&{colspan:A}),u&&{rowspan:u});return this.wrap(d,l,m)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.Line truncated
|
||||
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(Rwe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(u){a.replaceStack(function(d){var m=a.nameLookup(d,r[u],e);return s?[" && ",m]:[" != null ? ",m," : ",d]})},"_loop"),A=n;A<c;A++)l(A)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h
Line truncated
|
||||
`,e};nt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};nt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};nt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};nt.prototype.BlockStatement=nt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};nt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};nt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};nt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};nt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};nt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};nt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};nt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};nt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};nt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};nt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};nt.prototype.NullLiteral=function(){return"NULL"};nt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};nt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var o5=g((VXe,i5)=>{var kC=t5().default,s5=r5();kC.PrintVisitor=s5.PrintVisitor;kC.print=s5.print;i5.exports=kC;function n5(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=kC.compile(n)}o(n5,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=n5,require.extensions[".hbs"]=n5)});var OD=Q(require("os"),1);function ri(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ri,"toCommandValue");function LC(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(LC,"toCommandProperties");function zi(t,e,r){let n=new _C(t,e,r);process.stdout.write(n.toString()+OD.EOL)}o(zi,"issueCommand");function FC(t,e=""){zi(t,{},e)}o(FC,"issue");var UD="::",_C=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=UD+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${x5(s)}`)}}return e+=`${UD}${Q5(this.message)}`,e}};function Q5(t){return ri(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Q5,"escapeData");function x5(t){return ri(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(x5,"escapeProperty");var qD=Q(require("crypto"),1),Gm=Q(require("fs"),1),zm=Q(require("os"),1);function UC(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Gm.existsSync(r))throw new Error(`Missing file at path: ${r}`);Gm.appendFileSync(r,`${ri(e)}${zm.EOL}`,{encoding:"utf8"})}o(UC,"issueFileCommand");function OC(t,e){let r=`ghadelimiter_${qD.randomUUID()}`,n=ri(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${zm.EOL}${n}${zm.EOL}${r}`}o(OC,"prepareKeyValueMessage");var Sx=Q(require("os"),1);var Uh=Q(zC(),1),Fie=Q(mx(),1);var ms;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Rx,"getBooleanInput");function qU(t,e){if(process.env.GITHUB_OUTPUT||"")return UC("OUTPUT",OC(t,e));process.stdout.write(Sx.EOL),zi("set-output",{name:t},ri(e))}o(qU,"setOutput");function HU(t){process.exitCode=Nx.Failure,il(t)}o(HU,"setFailed");function ma(){return process.env.RUNNER_DEBUG==="1"}o(ma,"isDebug");function w(t){zi("debug",{},t)}o(w,"debug");function il(t,e={}){zi("error",LC(e),t instanceof Error?t.toString():t)}o(il,"error");function ot(t,e={}){zi("warning",LC(e),t instanceof Error?t.toString():t)}o(ot,"warning");function he(t){process.stdout.write(t+Sx.EOL)}o(he,"info");function jie(t){FC("group",t)}o(jie,"startGroup");function Kie(){FC("endgroup")}o(Kie,"endGroup");function hs(t,e){return $ie(this,void 0,void 0,function*(){jie(t);let r;try{r=yield e()}finally{Kie()}return r})}o(hs,"group");function Gh(t,e){if(process.env.GITHUB_STATE||"")return UC("STATE",OC(t,e));zi("save-state",{name:t},ri(e))}o(Gh,"saveState");function zU(t){return process.env[`STATE_${t}`]||""}o(zU,"getState");var JE=Q(require("fs"),1),Tv=Q(require("os"),1),Mv=Q(require("path"),1);var YU=Q(require("os"),1);function vu(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(vu,"toCommandValue");function VU(t,e,r){let n=new Px(t,e,r);process.stdout.write(n.toString()+YU.EOL)}o(VU,"issueCommand");var GU="::",Px=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=GU+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${Zie(s)}`)}}return e+=`${GU}${Xie(this.message)}`,e}};function Xie(t){return vu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Xie,"escapeData");function Zie(t){return vu(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Zie,"escapeProperty");var WU=require("os"),Du=require("fs");var vx=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},{access:eoe,appendFile:toe,writeFile:roe}=Du.promises,JU="GITHUB_STEP_SUMMARY";var Dx=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return vx(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[JU];if(!e)throw new Error(`Unable to find environment variable for $${JU}. Check if your runtime environment supports job summaries.`);try{yield eoe(e,Du.constants.R_OK|Du.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return vx(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?roe:toe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return vx(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(WU.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:A,rowspan:u}=a,d=c?"th":"td",m=Object.assign(Object.assign({},A&&{colspan:A}),u&&{rowspan:u});return this.wrap(d,l,m)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let s=e.split(`
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Hu(i));return n.searchPaths.push(...rb(n.patterns)),n})}static stat(e,r,n){return cb(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ll.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){dn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield ll.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield ll.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){dn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Tle=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function pH(t,e){return Tle(this,void 0,void 0,function*(){return yield nf.create(t,e)})}o(pH,"create");var Cf=Q(require("crypto"),1),dl=Q(require("fs"),1),fa=Q(require("path"),1),iG=Q(nG(),1),oG=Q(require("util"),1);var Ku;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ku||(Ku={}));var Zt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Zt||(Zt={}));var Or;(function(t){t.GNU="gnu",t.BSD="bsd"})(Or||(Or={}));var yf=2,Ef=5e3,Sb=5e3,Rb=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sG=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Xu="cache.tar",Pb="manifest.txt",OMe=10*Math.pow(1024,3);var ul=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},vde=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(A){i({value:A,done:c})},a)}},Dde="1.0";function Zu(){return ul(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=fa.join(n,"actions","temp")}let r=fa.join(e,Cf.randomUUID());return yield Aa(r),r})}o(Zu,"createTempDirectory");function fs(t){return dl.statSync(t).size}o(fs,"getArchiveFileSizeInBytes");function vb(t){return ul(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield pH(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=vde(l.globGenerator()),d;d=yield u.next(),e=d.done,!e;A=!0){s=d.value,A=!1;let p=fa.relative(c,s).replace(new RegExp(`\\${fa.sep}`,"g"),"/");b(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(m){r={error:m}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return a})}o(vb,"resolvePaths");function ed(t){return ul(this,void 0,void 0,function*(){return oG.promisify(dl.unlink)(t)})}o(ed,"unlinkFile");function aG(t){return ul(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield ao(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){b(s.message)}return n=n.trim(),b(n),n})}o(aG,"getVersion");function td(){return ul(this,void 0,void 0,function*(){let t=yield aG("zstd",["--quiet"]),e=iG.clean(t);return b(`zstd version: ${e}`),t===""?Zt.Gzip:Zt.ZstdWithoutLong})}o(td,"getCompressionMethod");function ho(t){return t===Zt.Gzip?Ku.Gzip:Ku.Zstd}o(ho,"getCacheFileName");function cG(){return ul(this,void 0,void 0,function*(){return dl.existsSync(Rb)?Rb:(yield aG("tar")).toLowerCase().includes("gnu tar")?dr("tar"):""})}o(cG,"getGnuTarPathOnWindows");function Db(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(Db,"assertDefined");function ml(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Dde),Cf.createHash("sha256").update(n.join("|")).digest("hex")}o(ml,"getCacheVersion");function lG(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(lG,"getRuntimeToken");var nd=Q(require("http"),1),Mb=Q(require("https"),1);function kb(t){let e=t.protocol==="https:";if(kde(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Bf(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Bf(`http://${r}`)}else return}o(kb,"getProxyUrl");function kde(t){if(!t.hostname)return!1;let e=t.hostname;if(Tde(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(kde,"checkBypass");function Tde(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Tde,"isLoopbackAddress");var Bf=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var fo=Q(FC(),1),AG=Q(ax(),1);var it=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},Je;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Je||(Je={}));var er;(function(t){t.Accept="accept",t.ContentType="content-type"})(er||(er={}));var Ci;(function(t){t.ApplicationJson="application/json"})(Ci||(Ci={}));var Lde=[Je.MovedPermanently,Je.ResourceMoved,Je.SeeOther,Je.TemporaryRedirect,Je.PermanentRedirect],Fde=[Je.BadGateway,Je.ServiceUnavailable,Je.GatewayTimeout],_de=["OPTIONS","GET","DELETE","HEAD"],Ude=10,Ode=5,gs=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${$de.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Sf(t){return t instanceof tr?!0:ya(t)&&t.name==="RestError"}o(Sf,"isRestError");function hr(t,e){return Buffer.from(t,e)}o(hr,"stringToUint8Array");var Rf=Q(require("node:http"),1),Pf=Q(require("node:https"),1),Yb=Q(require("node:zlib"),1),SG=require("node:stream");var hn=sd("ts-http-runtime");var jde={};function id(t){return t&&typeof t.pipe=="function"}o(id,"isReadableStream");function NG(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(NG,"isStreamComplete");function RG(t){return t&&typeof t.byteLength=="number"}o(RG,"isArrayBuffer");var vf=class extends SG.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Vb=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ys("The operation was aborted. Request has already been canceled.");n=o(A=>{A.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Hn;hn.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let A=eme(c);A!==null&&e.headers.set("Content-Length",A)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new vf(h);g.on("error",C=>{hn.error("Error in upload progress",C)}),id(c)?c.pipe(g):g.end(c),c=g}let A=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let u=Kde(A),m={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),m;l=a?Xde(A,u):A;let p=e.onDownloadProgress;if(p){let h=new vf(p);h.on("error",g=>{hn.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await Zde(l),m}finally{if(e.abortSignal&&n){let A=Promise.resolve();id(c)&&(A=NG(c));let u=Promise.resolve();id(l)&&(u=NG(l)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(d=>{hn.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,A)=>{let u=i?Rf.default.request(c,l):Pf.default.request(c,l);u.once("error",d=>{A(new tr(d.message,{code:d.code??tr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new ys("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),A(d)}),n&&id(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):RG(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(hn.error("Unrecognized body type",n),A(new tr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Rf.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Rf.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Pf.default.globalAgent;let s=e.tlsSettings??jde,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(hn.info("No cached TLS Agent exist, creating a new Agent"),i=new Pf.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Kde(t){let e=qr();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(Kde,"getResponseHeaders");function Xde(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Yb.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Yb.default.createInflate();return t.pipe(n),n}return t}o(Xde,"getDecodedResponseStream");function Zde(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new tr(`Error reading response as text: ${s.message}`,{code:tr.PARSE_ERROR}))})})}o(Zde,"streamToText");function eme(t){return t?Buffer.isBuffer(t)?t.length:id(t)?nul
Line truncated
|
||||
`;return e}o(vpe,"encodeHeaders");function Dpe(t){return t instanceof Uint8Array?t.byteLength:tg(t)?t.size===-1?void 0:t.size:void 0}o(Dpe,"getLength");function kpe(t){let e=0;for(let r of t){let n=Dpe(r);if(n===void 0)return;e+=n}return e}o(kpe,"getTotalLength");async function Tpe(t,e,r){let n=[hr(`--${r}`,"utf-8"),...e.flatMap(i=>[hr(`\r
|
||||
`,"utf-8"),hr(vpe(i.headers),"utf-8"),hr(`\r
|
||||
`,"utf-8"),i.body,hr(`\r
|
||||
--${r}`,"utf-8")]),hr(`--\r
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Yu(i));return n.searchPaths.push(...cb(n.patterns)),n})}static stat(e,r,n){return pb(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ul.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){mn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield ul.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield ul.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){mn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Ole=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function IH(t,e){return Ole(this,void 0,void 0,function*(){return yield lf.create(t,e)})}o(IH,"create");var bf=Q(require("crypto"),1),pl=Q(require("fs"),1),ya=Q(require("path"),1),dG=Q(AG(),1),mG=Q(require("util"),1);var ed;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ed||(ed={}));var er;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(er||(er={}));var qr;(function(t){t.GNU="gnu",t.BSD="bsd"})(qr||(qr={}));var Qf=2,xf=5e3,Tb=5e3,Mb=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uG=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,td="cache.tar",Lb="manifest.txt",HMe=10*Math.pow(1024,3);var ml=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},_de=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(A){i({value:A,done:c})},a)}},Fde="1.0";function rd(){return ml(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=ya.join(n,"actions","temp")}let r=ya.join(e,bf.randomUUID());return yield da(r),r})}o(rd,"createTempDirectory");function ys(t){return pl.statSync(t).size}o(ys,"getArchiveFileSizeInBytes");function _b(t){return ml(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield IH(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=_de(l.globGenerator()),d;d=yield u.next(),e=d.done,!e;A=!0){s=d.value,A=!1;let p=ya.relative(c,s).replace(new RegExp(`\\${ya.sep}`,"g"),"/");w(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(m){r={error:m}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return a})}o(_b,"resolvePaths");function nd(t){return ml(this,void 0,void 0,function*(){return mG.promisify(pl.unlink)(t)})}o(nd,"unlinkFile");function pG(t){return ml(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),w(`Checking ${e} ${r.join(" ")}`);try{yield lo(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){w(s.message)}return n=n.trim(),w(n),n})}o(pG,"getVersion");function sd(){return ml(this,void 0,void 0,function*(){let t=yield pG("zstd",["--quiet"]),e=dG.clean(t);return w(`zstd version: ${e}`),t===""?er.Gzip:er.ZstdWithoutLong})}o(sd,"getCompressionMethod");function go(t){return t===er.Gzip?ed.Gzip:ed.Zstd}o(go,"getCacheFileName");function hG(){return ml(this,void 0,void 0,function*(){return pl.existsSync(Mb)?Mb:(yield pG("tar")).toLowerCase().includes("gnu tar")?mr("tar"):""})}o(hG,"getGnuTarPathOnWindows");function Fb(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(Fb,"assertDefined");function hl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Fde),bf.createHash("sha256").update(n.join("|")).digest("hex")}o(hl,"getCacheVersion");function fG(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(fG,"getRuntimeToken");var od=Q(require("http"),1),qb=Q(require("https"),1);function Ub(t){let e=t.protocol==="https:";if(Ude(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new Nf(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new Nf(`http://${r}`)}else return}o(Ub,"getProxyUrl");function Ude(t){if(!t.hostname)return!1;let e=t.hostname;if(Ode(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(Ude,"checkBypass");function Ode(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(Ode,"isLoopbackAddress");var Nf=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var yo=Q(zC(),1),gG=Q(mx(),1);var at=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},$e;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})($e||($e={}));var tr;(function(t){t.Accept="accept",t.ContentType="content-type"})(tr||(tr={}));var Ii;(function(t){t.ApplicationJson="application/json"})(Ii||(Ii={}));var Hde=[$e.MovedPermanently,$e.ResourceMoved,$e.SeeOther,$e.TemporaryRedirect,$e.PermanentRedirect],zde=[$e.BadGateway,$e.ServiceUnavailable,$e.GatewayTimeout],Gde=["OPTIONS","GET","DELETE","HEAD"],Yde=10,Vde=5,Es=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r)
Line truncated
|
||||
${tme.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function kf(t){return t instanceof rr?!0:Ca(t)&&t.name==="RestError"}o(kf,"isRestError");function fr(t,e){return Buffer.from(t,e)}o(fr,"stringToUint8Array");var Tf=Q(require("node:http"),1),Mf=Q(require("node:https"),1),Kb=Q(require("node:zlib"),1),MG=require("node:stream");var fn=ad("ts-http-runtime");var rme={};function cd(t){return t&&typeof t.pipe=="function"}o(cd,"isReadableStream");function TG(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(TG,"isStreamComplete");function LG(t){return t&&typeof t.byteLength=="number"}o(LG,"isArrayBuffer");var Lf=class extends MG.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},Xb=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Cs("The operation was aborted. Request has already been canceled.");n=o(A=>{A.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new zn;fn.info(`request to '${A.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let A=ome(c);A!==null&&e.headers.set("Content-Length",A)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,f=new Lf(h);f.on("error",C=>{fn.error("Error in upload progress",C)}),cd(c)?c.pipe(f):f.end(c),c=f}let A=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let u=nme(A),m={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),m;l=a?sme(A,u):A;let p=e.onDownloadProgress;if(p){let h=new Lf(p);h.on("error",f=>{fn.error("Error in download progress",f)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(m.status)?m.readableStreamBody=l:m.bodyAsText=await ime(l),m}finally{if(e.abortSignal&&n){let A=Promise.resolve();cd(c)&&(A=TG(c));let u=Promise.resolve();cd(l)&&(u=TG(l)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(d=>{fn.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,A)=>{let u=i?Tf.default.request(c,l):Mf.default.request(c,l);u.once("error",d=>{A(new rr(d.message,{code:d.code??rr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Cs("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(d),A(d)}),n&&cd(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):LG(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(fn.error("Unrecognized body type",n),A(new rr("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Tf.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Tf.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Mf.default.globalAgent;let s=e.tlsSettings??rme,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(fn.info("No cached TLS Agent exist, creating a new Agent"),i=new Mf.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function nme(t){let e=Hr();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(nme,"getResponseHeaders");function sme(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Kb.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Kb.default.createInflate();return t.pipe(n),n}return t}o(sme,"getDecodedResponseStream");function ime(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new rr(`Error reading response as text: ${s.message}`,{code:rr.PARSE_ERROR}))})})}o(ime,"streamToText");function ome(t){return t?Buffer.isBuffer(t)?t.length:cd(t)?nul
Line truncated
|
||||
`;return e}o(_pe,"encodeHeaders");function Fpe(t){return t instanceof Uint8Array?t.byteLength:og(t)?t.size===-1?void 0:t.size:void 0}o(Fpe,"getLength");function Upe(t){let e=0;for(let r of t){let n=Fpe(r);if(n===void 0)return;e+=n}return e}o(Upe,"getTotalLength");async function Ope(t,e,r){let n=[fr(`--${r}`,"utf-8"),...e.flatMap(i=>[fr(`\r
|
||||
`,"utf-8"),fr(_pe(i.headers),"utf-8"),fr(`\r
|
||||
`,"utf-8"),i.body,fr(`\r
|
||||
--${r}`,"utf-8")]),fr(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=kpe(n);s&&t.headers.set("Content-Length",s),t.body=await TY(n)}o(Tpe,"buildRequestBody");var cd="multipartPolicy",Mpe=70,Lpe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Fpe(t){if(t.length>Mpe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Lpe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(Fpe,"assertValidBoundary");function ng(){return{name:cd,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?Fpe(r):r=Ppe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Tpe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(ng,"multipartPolicy");function sg(){return Nf()}o(sg,"createEmptyPipeline");var MY=xf({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),_1e=MY.logger;function Is(t){return MY.createClientLogger(t)}o(Is,"createClientLogger");var Bs=Is("core-rest-pipeline");function Aw(t={}){return kf({logger:Bs.info,...t})}o(Aw,"logPolicy");var uw=Tf;function dw(t={}){return Mf(t)}o(dw,"redirectPolicy");var ig=Q(require("node:os"),1),og=Q(require("node:process"),1);function LY(){return"User-Agent"}o(LY,"getHeaderName");async function FY(t){if(og.default&&og.default.versions){let e=`${ig.default.type()} ${ig.default.release()}; ${ig.default.arch()}`,r=og.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(FY,"setPlatformSpecificData");var ag="1.22.2";function Ype(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Ype,"getUserAgentString");function _Y(){return LY()}o(_Y,"getUserAgentHeaderName");async function cg(t){let e=new Map;e.set("core-rest-pipeline",ag),await FY(e);let r=Ype(e);return t?`${t} ${r}`:r}o(cg,"getUserAgentValue");var UY=_Y(),OY="userAgentPolicy";function mw(t={}){let e=cg(t.userAgentPrefix);return{name:OY,async sendRequest(r,n){return r.headers.has(UY)||r.headers.set(UY,await e),n(r)}}}o(mw,"userAgentPolicy");var Yr=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function pw(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new Yr(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",A)}o(l,"removeListeners");function A(){r?.(),l(),c()}if(o(A,"onAbort"),n?.aborted)return c();try{t(u=>{l(),i(u)},u=>{l(),a(u)})}catch(u){a(u)}n?.addEventListener("abort",A)})}o(pw,"createAbortablePromise");var jpe="The delay was aborted.";function ld(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return pw(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??jpe})}o(ld,"delay");function yo(t){if(ya(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(yo,"getErrorMessage");function qY(t){return ya(t)}o(qY,"isError");function Bl(){return ga()}o(Bl,"randomUUID");var Be=Ia;var HY=Symbol("rawContent");function fw(t){return typeof t[HY]=="function"}o(fw,"hasRawContent");function zY(t){return fw(t)?t[HY]():t}o(zY,"getRawContent");var lg=cd;function gw(){let t=ng();return{name:lg,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)fw(n.body)&&(n.body=zY(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(gw,"multipartPolicy");var yw=Lf;function Ew(){return Ff()}o(Ew,"decompressResponsePolicy");function Cw(t={}){return Of(t)}o(Cw,"defaultRetryPolicy");function Iw(){return qf()}o(Iw,"formDataPolicy");function Eo(t){return iw(t)}o(Eo,"getDefaultProxySettings");function Bw(t,e){return Xf(t,e)}o(Bw,"proxyPolicy");var GY="setClientRequestIdPolicy";function Qw(t="x-ms-client-request-id"){return{name:GY,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(Qw,"setClientRequestIdPolicy");function xw(t){return Zf(t)}o(xw,"agentPolicy");function bw(t){return eg(t)}o(bw,"tlsPolicy");var Ql={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function YY(t={}){let e=new ww(t.parentContext);return t.span&&(e=e.setValue(Ql.span,t.span)),t.namespace&&(e=e.setValue(Ql.namespace,t.namespace)),e}o(YY,"createTracingContext");var ww=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context
Line truncated
|
||||
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!Cfe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",ot("InvalidTag",d,rr(t,i))}let A=hfe(t,i);if(A===!1)return ot("InvalidAttr","Attributes for '"+l+"' have open quote.",rr(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let d=i-u.length;u=u.substring(0,u.length-1);let m=SV(u,e);if(m===!0)n=!0;else return ot(m.err.code,m.err.msg,rr(t,d+m.err.line))}else if(c)if(A.tagClosed){if(u.trim().length>0)return ot("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",rr(t,a));if(r.length===0)return ot("InvalidTag","Closing tag '"+l+"' has not been opened.",rr(t,a));{let d=r.pop();if(l!==d.tagName){let m=rr(t,d.tagStartPos);return ot("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",rr(t,a))}r.length==0&&(s=!0)}}else return ot("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",rr(t,i));else{let d=SV(u,e);if(d!==!0)return ot(d.err.code,d.err.msg,rr(t,i-u.length+d.err.line));if(s===!0)return ot("InvalidXml","Multiple possible root nodes found.",rr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=NV(t,i);continue}else if(t[i+1]==="?"){if(i=wV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=yfe(t,i);if(d==-1)return ot("InvalidChar","char '&' is not expected.",rr(t,i));i=d}else if(s===!0&&!bV(t[i]))return ot("InvalidXml","Extra text at the end",rr(t,i));t[i]==="<"&&i--}}else{if(bV(t[i]))continue;return ot("InvalidChar","char '"+t[i]+"' is not expected.",rr(t,i))}if(n){if(r.length==1)return ot("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rr(t,r[0].tagStartPos));if(r.length>0)return ot("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ot("InvalidXml","Start tag expected.",1);return!0}o(Bg,"validate");function bV(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(bV,"isWhiteSpace");function wV(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return ot("InvalidXml","XML declaration allowed only at the start of the document.",rr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(wV,"readPI");function NV(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(NV,"readCommentAndCDATA");var mfe='"',pfe="'";function hfe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===mfe||t[e]===pfe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(hfe,"readAttributeStr");var ffe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function SV(t,e){let r=Cg(t,ffe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return ot("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Id(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return ot("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Id(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return ot("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Id(r[s]));let i=r[s][2];if(!Efe(i))return ot("InvalidAttr","Attribute '"+i+"' is an invalid name.",Id(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return ot("InvalidAttr","Attribute '"+i+"' is repeated.",Id(r[s]))}return!0}o(SV,"validateAttributeString");function gfe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(gfe,"validateNumberAmpersand");function yfe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,gfe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(yfe,"validateAmpersand");function ot(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(ot,"getErrorObject");function Efe(t){return Gw(t)}o(Efe,"validateAttrName");function Cfe(t){return Gw(t)}o(Cfe,"validateTagName");function rr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(rr,"getLineNumberForPosition");function Id(t){return t.startIndex+t[1].length}o(Id,"getPositionFromMatch");var RV={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},PV={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},vV={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
|
||||
`);let e=new Er("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new xd(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let A=t.charCodeAt(c+1);if(A===47){let u=Sl(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,u).trim();if(s.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=Xw(s.transformTagName,d,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(d&&s.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=u}else if(A===63){let u=Zw(t,c,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(d){let m=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),i.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let m=new Er(u.tagName);m.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=d),this.addChild(r,m,this.readonlyMatcher,c)}c=u.closeIndex+1}else if(A===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let u=Sl(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let d=t.substring(c+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:d}])}c=u}else if(A===33&&t.charCodeAt(c+2)===68){let u=i.readDocType(t,c);this.entityDecoder.addInputEntities(u.entities),c=u.i}else if(A===33&&t.charCodeAt(c+2)===91){let u=Sl(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:d}]):r.add(s.textNodeName,m),c=u+2}else{let u=Zw(t,c,s.removeNSPrefix);if(!u){let k=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${k}"`)}let d=u.tagName,m=u.rawTagName,p=u.tagExp,h=u.attrExpPresent,g=u.closeIndex;if({tagName:d,tagExp:p}=Xw(s.transformTagName,d,p,s),s.strictReservedNames&&(d===s.commentPropName||d===s.cdataPropName||d===s.textNodeName||d===s.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),h=d!==p);let E=null,I={},B;B=zfe(m),d!==e.tagname&&this.matcher.push(d,{},B),d!==p&&h&&(E=this.buildAttributesMap(p,this.matcher,d),E&&(I=Hfe(E,s))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let k="";if(y)c=u.closeIndex;else if(s.unpairedTagsSet.has(d))c=u.closeIndex;else{let ce=this.readStopNodeData(t,m,g+1);if(!ce)throw new Error(`Unexpected end of ${m}`);c=ce.i,k=ce.tagContent}let _=new Er(d);E&&(_[":@"]=E),_.add(s.textNodeName,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,N)}else{if(y){({tagName:d,tagExp:p}=Xw(s.transformTagName,d,p,s));let k=new Er(d);E&&(k[":@"]=E),this.addChild(r,k,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(d)){let k=new Er(d);E&&(k[":@"]=E),this.addChild(r,k,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=u.closeIndex;continue}else{let k=new Er(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(k[":@"]=E),this.addChild(r,k,this.readonlyMatcher,N),r=k}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function $fe(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o($fe,"addChild");function jfe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(jfe,"replaceEntitiesValue");function Kfe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(Kfe,"saveTextToParentTag");function Xfe(){return this.stopNodeExpressionsLine truncated
|
||||
`;function age(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(iN(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(age,"detectXmlVersionFromArray");function KV(t,e,r,n,s){return!r.sanitizeName||wa(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(KV,"resolveTagName");function sN(t,e){let r="";e.format&&(r=oge);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Wr(c)):c instanceof Wr&&n.push(c)}let s=age(t,e),i=new bs;return XV(t,e,r,i,n,s)}o(sN,"toXml");function XV(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=nN(l,e),l}return""}for(let l=0;l<t.length;l++){let A=t[l],u=iN(A);if(u===void 0)continue;let m=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:KV(u,!1,e,n,i),p=cge(A[":@"],e);n.push(m,p);let h=Age(n,s);if(m===e.textNodeName){let I=A[u];h||(I=e.tagValueProcessor(m,I),I=nN(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(m===e.cdataPropName){c&&(a+=r);let I=A[u][0][e.textNodeName],B=Ng(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(m===e.commentPropName){let I=A[u][0][e.textNodeName],B=wg(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(m[0]==="?"){let I=jV(A[":@"],e,h,n,i);a+=(m==="?xml"?"":r)+`<${m}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=jV(A[":@"],e,h,n,i),y=r+`<${m}${C}`,E;h?E=ZV(A[u],e):E=XV(A[u],e,g,n,s,i),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!E||E.length===0)&&e.suppressEmptyNode?a+=y+"/>":E&&E.endsWith(">")?a+=y+`>${E}${r}</${m}>`:(a+=y+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?a+=r+e.indentBy+E+r:a+=E,a+=`</${m}>`),c=!0,n.pop()}return a}o(XV,"arrToStr");function cge(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Bo(t[s]),n=!0}return n?r:null}o(cge,"extractAttributeValues");function ZV(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=iN(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=lge(s[":@"],e),c=ZV(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(ZV,"getRawContent");function lge(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Bo(s)}"`}return r}o(lge,"attr_to_str_raw");function iN(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(iN,"propName");function jV(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:KV(c,!0,e,n,s),A;r?A=t[a]:(A=e.attributeValueProcessor(a,t[a]),A=nN(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Bo(A)}"`}return i}o(jV,"attr_to_str");function Age(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(Age,"checkStopNode");function nN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(nN,"replaceEntitiesValue");function oN(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(oN,"getIgnoreAttributesFn");var uge={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ir(t){if(this.options=Object.assign({},uge,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
|
||||
`,"utf-8")],s=Upe(n);s&&t.headers.set("Content-Length",s),t.body=await qY(n)}o(Ope,"buildRequestBody");var ud="multipartPolicy",qpe=70,Hpe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zpe(t){if(t.length>qpe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Hpe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(zpe,"assertValidBoundary");function cg(){return{name:ud,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?zpe(r):r=Lpe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Ope(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(cg,"multipartPolicy");function lg(){return Df()}o(lg,"createEmptyPipeline");var HY=Rf({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),O1e=HY.logger;function Qs(t){return HY.createClientLogger(t)}o(Qs,"createClientLogger");var xs=Qs("core-rest-pipeline");function fw(t={}){return Ff({logger:xs.info,...t})}o(fw,"logPolicy");var gw=Uf;function yw(t={}){return Of(t)}o(yw,"redirectPolicy");var Ag=Q(require("node:os"),1),ug=Q(require("node:process"),1);function zY(){return"User-Agent"}o(zY,"getHeaderName");async function GY(t){if(ug.default&&ug.default.versions){let e=`${Ag.default.type()} ${Ag.default.release()}; ${Ag.default.arch()}`,r=ug.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(GY,"setPlatformSpecificData");var dg="1.22.2";function Kpe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(Kpe,"getUserAgentString");function YY(){return zY()}o(YY,"getUserAgentHeaderName");async function mg(t){let e=new Map;e.set("core-rest-pipeline",dg),await GY(e);let r=Kpe(e);return t?`${t} ${r}`:r}o(mg,"getUserAgentValue");var VY=YY(),JY="userAgentPolicy";function Ew(t={}){let e=mg(t.userAgentPrefix);return{name:JY,async sendRequest(r,n){return r.headers.has(VY)||r.headers.set(VY,await e),n(r)}}}o(Ew,"userAgentPolicy");var Vr=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Cw(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new Vr(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",A)}o(l,"removeListeners");function A(){r?.(),l(),c()}if(o(A,"onAbort"),n?.aborted)return c();try{t(u=>{l(),i(u)},u=>{l(),a(u)})}catch(u){a(u)}n?.addEventListener("abort",A)})}o(Cw,"createAbortablePromise");var rhe="The delay was aborted.";function dd(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return Cw(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??rhe})}o(dd,"delay");function Co(t){if(Ca(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(Co,"getErrorMessage");function WY(t){return Ca(t)}o(WY,"isError");function xl(){return Ea()}o(xl,"randomUUID");var Be=Qa;var $Y=Symbol("rawContent");function Bw(t){return typeof t[$Y]=="function"}o(Bw,"hasRawContent");function jY(t){return Bw(t)?t[$Y]():t}o(jY,"getRawContent");var pg=ud;function Qw(){let t=cg();return{name:pg,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Bw(n.body)&&(n.body=jY(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(Qw,"multipartPolicy");var xw=qf;function bw(){return Hf()}o(bw,"decompressResponsePolicy");function ww(t={}){return Yf(t)}o(ww,"defaultRetryPolicy");function Nw(){return Vf()}o(Nw,"formDataPolicy");function Io(t){return uw(t)}o(Io,"getDefaultProxySettings");function Sw(t,e){return ng(t,e)}o(Sw,"proxyPolicy");var KY="setClientRequestIdPolicy";function Rw(t="x-ms-client-request-id"){return{name:KY,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(Rw,"setClientRequestIdPolicy");function Pw(t){return sg(t)}o(Pw,"agentPolicy");function vw(t){return ig(t)}o(vw,"tlsPolicy");var bl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function XY(t={}){let e=new Dw(t.parentContext);return t.span&&(e=e.setValue(bl.span,t.span)),t.namespace&&(e=e.setValue(bl.namespace,t.namespace)),e}o(XY,"createTracingContext");var Dw=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context
Line truncated
|
||||
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!wfe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",ct("InvalidTag",d,nr(t,i))}let A=Ife(t,i);if(A===!1)return ct("InvalidAttr","Attributes for '"+l+"' have open quote.",nr(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let d=i-u.length;u=u.substring(0,u.length-1);let m=MV(u,e);if(m===!0)n=!0;else return ct(m.err.code,m.err.msg,nr(t,d+m.err.line))}else if(c)if(A.tagClosed){if(u.trim().length>0)return ct("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",nr(t,a));if(r.length===0)return ct("InvalidTag","Closing tag '"+l+"' has not been opened.",nr(t,a));{let d=r.pop();if(l!==d.tagName){let m=nr(t,d.tagStartPos);return ct("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",nr(t,a))}r.length==0&&(s=!0)}}else return ct("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",nr(t,i));else{let d=MV(u,e);if(d!==!0)return ct(d.err.code,d.err.msg,nr(t,i-u.length+d.err.line));if(s===!0)return ct("InvalidXml","Multiple possible root nodes found.",nr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=TV(t,i);continue}else if(t[i+1]==="?"){if(i=kV(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=xfe(t,i);if(d==-1)return ct("InvalidChar","char '&' is not expected.",nr(t,i));i=d}else if(s===!0&&!DV(t[i]))return ct("InvalidXml","Extra text at the end",nr(t,i));t[i]==="<"&&i--}}else{if(DV(t[i]))continue;return ct("InvalidChar","char '"+t[i]+"' is not expected.",nr(t,i))}if(n){if(r.length==1)return ct("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",nr(t,r[0].tagStartPos));if(r.length>0)return ct("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ct("InvalidXml","Start tag expected.",1);return!0}o(Ng,"validate");function DV(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}o(DV,"isWhiteSpace");function kV(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return ct("InvalidXml","XML declaration allowed only at the start of the document.",nr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(kV,"readPI");function TV(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(TV,"readCommentAndCDATA");var Efe='"',Cfe="'";function Ife(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Efe||t[e]===Cfe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(Ife,"readAttributeStr");var Bfe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function MV(t,e){let r=bg(t,Bfe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return ct("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",xd(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return ct("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",xd(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return ct("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",xd(r[s]));let i=r[s][2];if(!bfe(i))return ct("InvalidAttr","Attribute '"+i+"' is an invalid name.",xd(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return ct("InvalidAttr","Attribute '"+i+"' is repeated.",xd(r[s]))}return!0}o(MV,"validateAttributeString");function Qfe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(Qfe,"validateNumberAmpersand");function xfe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Qfe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(xfe,"validateAmpersand");function ct(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(ct,"getErrorObject");function bfe(t){return jw(t)}o(bfe,"validateAttrName");function wfe(t){return jw(t)}o(wfe,"validateTagName");function nr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(nr,"getLineNumberForPosition");function xd(t){return t.startIndex+t[1].length}o(xd,"getPositionFromMatch");var LV={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},_V={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},FV={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
|
||||
`);let e=new Cr("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Nd(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let A=t.charCodeAt(c+1);if(A===47){let u=Pl(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,u).trim();if(s.removeNSPrefix){let p=d.indexOf(":");p!==-1&&(d=d.substr(p+1))}d=sN(s.transformTagName,d,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(d&&s.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=u}else if(A===63){let u=iN(t,c,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(d){let m=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),i.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let m=new Cr(u.tagName);m.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=d),this.addChild(r,m,this.readonlyMatcher,c)}c=u.closeIndex+1}else if(A===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let u=Pl(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let d=t.substring(c+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:d}])}c=u}else if(A===33&&t.charCodeAt(c+2)===68){let u=i.readDocType(t,c);this.entityDecoder.addInputEntities(u.entities),c=u.i}else if(A===33&&t.charCodeAt(c+2)===91){let u=Pl(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:d}]):r.add(s.textNodeName,m),c=u+2}else{let u=iN(t,c,s.removeNSPrefix);if(!u){let S=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${S}"`)}let d=u.tagName,m=u.rawTagName,p=u.tagExp,h=u.attrExpPresent,f=u.closeIndex;if({tagName:d,tagExp:p}=sN(s.transformTagName,d,p,s),s.strictReservedNames&&(d===s.commentPropName||d===s.cdataPropName||d===s.textNodeName||d===s.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let C=r;C&&s.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),p=d):p=p.substr(0,p.length-1),h=d!==p);let E=null,I={},B;B=$fe(m),d!==e.tagname&&this.matcher.push(d,{},B),d!==p&&h&&(E=this.buildAttributesMap(p,this.matcher,d),E&&(I=Wfe(E,s))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let b=c;if(this.isCurrentNodeStopNode){let S="";if(y)c=u.closeIndex;else if(s.unpairedTagsSet.has(d))c=u.closeIndex;else{let me=this.readStopNodeData(t,m,f+1);if(!me)throw new Error(`Unexpected end of ${m}`);c=me.i,S=me.tagContent}let F=new Cr(d);E&&(F[":@"]=E),F.add(s.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,b)}else{if(y){({tagName:d,tagExp:p}=sN(s.transformTagName,d,p,s));let S=new Cr(d);E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,b),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(d)){let S=new Cr(d);E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,b),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=u.closeIndex;continue}else{let S=new Cr(d);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),E&&(S[":@"]=E),this.addChild(r,S,this.readonlyMatcher,b),r=S}n="",c=f}}}else n+=t[c];return e.child},"parseXml");function tge(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(tge,"addChild");function rge(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(rge,"replaceEntitiesValue");function nge(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(nge,"saveTextToParentTag");function sge(){return this.stopNodeExpressionsLine truncated
|
||||
`;function mge(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(uN(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(mge,"detectXmlVersionFromArray");function sJ(t,e,r,n,s){return!r.sanitizeName||Sa(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(sJ,"resolveTagName");function AN(t,e){let r="";e.format&&(r=dge);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new $r(c)):c instanceof $r&&n.push(c)}let s=mge(t,e),i=new Ns;return iJ(t,e,r,i,n,s)}o(AN,"toXml");function iJ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=lN(l,e),l}return""}for(let l=0;l<t.length;l++){let A=t[l],u=uN(A);if(u===void 0)continue;let m=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:sJ(u,!1,e,n,i),p=pge(A[":@"],e);n.push(m,p);let h=fge(n,s);if(m===e.textNodeName){let I=A[u];h||(I=e.tagValueProcessor(m,I),I=lN(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(m===e.cdataPropName){c&&(a+=r);let I=A[u][0][e.textNodeName],B=Dg(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(m===e.commentPropName){let I=A[u][0][e.textNodeName],B=vg(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(m[0]==="?"){let I=nJ(A[":@"],e,h,n,i);a+=(m==="?xml"?"":r)+`<${m}${I}?>`,c=!0,n.pop();continue}let f=r;f!==""&&(f+=e.indentBy);let C=nJ(A[":@"],e,h,n,i),y=r+`<${m}${C}`,E;h?E=oJ(A[u],e):E=iJ(A[u],e,f,n,s,i),e.unpairedTags.indexOf(m)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!E||E.length===0)&&e.suppressEmptyNode?a+=y+"/>":E&&E.endsWith(">")?a+=y+`>${E}${r}</${m}>`:(a+=y+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?a+=r+e.indentBy+E+r:a+=E,a+=`</${m}>`),c=!0,n.pop()}return a}o(iJ,"arrToStr");function pge(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=xo(t[s]),n=!0}return n?r:null}o(pge,"extractAttributeValues");function oJ(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=uN(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=hge(s[":@"],e),c=oJ(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(oJ,"getRawContent");function hge(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${xo(s)}"`}return r}o(hge,"attr_to_str_raw");function uN(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(uN,"propName");function nJ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:sJ(c,!0,e,n,s),A;r?A=t[a]:(A=e.attributeValueProcessor(a,t[a]),A=lN(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${xo(A)}"`}return i}o(nJ,"attr_to_str");function fge(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(fge,"checkStopNode");function lN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(lN,"replaceEntitiesValue");function dN(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(dN,"getIgnoreAttributesFn");var gge={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Br(t){if(this.options=Object.assign({},gge,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
|
||||
`,this.newLine=`
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Ir,"Builder");function dge(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(dge,"detectXmlVersionFromObj");function aN(t,e,r,n,s){return!r.sanitizeName||wa(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(aN,"resolveTagName");Ir.prototype.build=function(t){if(this.options.preserveOrder)return sN(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new bs,r=dge(t,this.options);return this.j2x(t,0,e,r).val}};Ir.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let u=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:aN(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],u,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let m=aN(d,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(m)}else{r.push(u);let m=this.checkStopNode(r);if(r.pop(),m){let p=""+t[l];p===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+p+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[l],u,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,m="",p="";for(let h=0;h<d;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let C=this.j2x(g,e+1,r,n);r.pop(),m+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(p+=C.attrStr)}else m+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(u,g);C=this.replaceEntitiesValue(C),m+=C}else{r.push(u);let C=this.checkStopNode(r);if(r.pop(),C){let y=""+g;y===""?m+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:m+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else m+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(m=this.buildObjectNode(m,u,p,e)),i+=m}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),m=d.length;for(let p=0;p<m;p++){let h=aN(d[p],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][d[p]],c)}}else i+=this.processTextOrObjNode(t[l],u,e,r,n)}return{attrStr:s,val:i}};Ir.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Bo(e)+'"'};function mge(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,A,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(mge,"processTextOrObjNode");Ir.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Bo(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=Bo(t[n]),r=!0)}return r?e:null};Ir.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o
Line truncated
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Br,"Builder");function yge(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(yge,"detectXmlVersionFromObj");function mN(t,e,r,n,s){return!r.sanitizeName||Sa(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(mN,"resolveTagName");Br.prototype.build=function(t){if(this.options.preserveOrder)return AN(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Ns,r=yge(t,this.options);return this.j2x(t,0,e,r).val}};Br.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let u=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:mN(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],u,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let m=mN(d,!0,this.options,r,n);s+=this.buildAttrPairStr(m,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let m=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(m)}else{r.push(u);let m=this.checkStopNode(r);if(r.pop(),m){let p=""+t[l];p===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+p+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[l],u,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,m="",p="";for(let h=0;h<d;h++){let f=t[l][h];if(!(typeof f>"u"))if(f===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){r.push(u);let C=this.j2x(f,e+1,r,n);r.pop(),m+=C.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(p+=C.attrStr)}else m+=this.processTextOrObjNode(f,u,e,r,n);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(u,f);C=this.replaceEntitiesValue(C),m+=C}else{r.push(u);let C=this.checkStopNode(r);if(r.pop(),C){let y=""+f;y===""?m+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:m+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else m+=this.buildTextValNode(f,u,"",e,r)}}this.options.oneListGroup&&(m=this.buildObjectNode(m,u,p,e)),i+=m}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),m=d.length;for(let p=0;p<m;p++){let h=mN(d[p],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][d[p]],c)}}else i+=this.processTextOrObjNode(t[l],u,e,r,n)}return{attrStr:s,val:i}};Br.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+xo(e)+'"'};function Ege(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,A,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(Ege,"processTextOrObjNode");Br.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=xo(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=xo(t[n]),r=!0)}return r?e:null};Br.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ee.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ee.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ee.PREFIX_FOR_STORAGE));r.sort((s,i)=>_g(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),n}getCanonicalizedResourceString(e){let r=Mg(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Lg(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return n}};var We=class extends Ra{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Rd(e,r,this)}computeHMACSHA256(e){return(0,aJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Et=Is("storage-common");var En;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(En||(En={}));var xo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:En.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Bge=new Yr("The operation was aborted."),Pd=class extends ws{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=xo){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:xo.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):xo.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:xo.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:xo.maxRetryDelayInMs):xo.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:xo.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:xo.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Tg(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Qo(s.url,bi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Et.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(Et.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Et.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Et.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Et.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Et.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ee.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Et.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case En.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case En.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Et.info(`RetryPolicy: Delay for ${s}ms`),Fg(s,n,Bge)}};var vd=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Pd(e,r,this.retryOptions)}};var Qge="storageBrowserPolicy";function cJ(){return{name:Qge,async sendRequest(t,e){return Be||((t.method==="GET"||t.method==="HEAD")&&(t.url=Qo(t.url,bi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ee.COOKIE),t.headers.delete(ee.CONTENT_LENGTH)),e(t)}}}o(cJ,"storageBrowserPolicy");var xge="StorageCorrectContentLengthPolicy";function lJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ee.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:xge,async sendRequest(e,r){return t(e),r(e)}}}o(lJ,"storageCorrectContentLengthPolicy");var bge="storageRetryPolicy",Pl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:En.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wge=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Nge=new Yr("The operation was aborted.");function AJ(t={}){let e=t.retryPolicyType??Pl.retryPolicyType,r=t.maxTries??Pl.maxTries,n=t.retryDelayInMs??Pl.retryDelayInMs,s=t.maxRetryDelayInMs??Pl.maxRetryDelayInMs,i=t.secondaryHost??Pl.secondaryHost,a=t.tryTimeoutInMs??Pl.tryTimeoutInMs;function c({isPrimaryRetry:A,attempt:u,response:d,error:m}){if(u>=r)return Et.inf
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Z.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Z.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(Z.PREFIX_FOR_STORAGE));r.sort((s,i)=>zg(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),n}getCanonicalizedResourceString(e){let r=Og(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=qg(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
|
||||
${c}:${decodeURIComponent(i[c])}`}return n}};var je=class extends va{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Dd(e,r,this)}computeHMACSHA256(e){return(0,pJ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Et=Qs("storage-common");var Cn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Cn||(Cn={}));var wo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Cn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Sge=new Vr("The operation was aborted."),kd=class extends Ss{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=wo){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:wo.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):wo.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:wo.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:wo.maxRetryDelayInMs):wo.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:wo.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:wo.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=Ug(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=bo(s.url,wi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Et.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(Et.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Et.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Et.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Et.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Et.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Z.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Et.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Cn.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Cn.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Et.info(`RetryPolicy: Delay for ${s}ms`),Hg(s,n,Sge)}};var Td=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kd(e,r,this.retryOptions)}};var Rge="storageBrowserPolicy";function hJ(){return{name:Rge,async sendRequest(t,e){return Be||((t.method==="GET"||t.method==="HEAD")&&(t.url=bo(t.url,wi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Z.COOKIE),t.headers.delete(Z.CONTENT_LENGTH)),e(t)}}}o(hJ,"storageBrowserPolicy");var Pge="StorageCorrectContentLengthPolicy";function fJ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Z.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Pge,async sendRequest(e,r){return t(e),r(e)}}}o(fJ,"storageCorrectContentLengthPolicy");var vge="storageRetryPolicy",Dl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Cn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Dge=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],kge=new Vr("The operation was aborted.");function gJ(t={}){let e=t.retryPolicyType??Dl.retryPolicyType,r=t.maxTries??Dl.maxTries,n=t.retryDelayInMs??Dl.retryDelayInMs,s=t.maxRetryDelayInMs??Dl.maxRetryDelayInMs,i=t.secondaryHost??Dl.secondaryHost,a=t.tryTimeoutInMs??Dl.tryTimeoutInMs;function c({isPrimaryRetry:A,attempt:u,response:d,error:m}){if(u>=r)return Et.info(`RLine truncated
|
||||
`)+`
|
||||
`+n(i)+s(i),c=(0,uJ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ee.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ee.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,A]of i.headers)l.toLowerCase().startsWith(ee.PREFIX_FOR_STORAGE)&&a.push({name:l,value:A});a.sort((l,A)=>_g(l.name.toLowerCase(),A.name.toLowerCase())),a=a.filter((l,A,u)=>!(A>0&&l.name.toLowerCase()===u[A-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
||||
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=Mg(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=Lg(i.url),A={};if(l){let u=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let m=d.toLowerCase();A[m]=l[d],u.push(m)}u.sort();for(let d of u)c+=`
|
||||
${d}:${decodeURIComponent(A[d])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:Sge,async sendRequest(i,a){return e(i),a(i)}}}o(dN,"storageSharedKeyCredentialPolicy");var Rge="storageRequestFailureDetailsParserPolicy";function dJ(){return{name:Rge,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
||||
`),r}}}}o(dJ,"storageRequestFailureDetailsParserPolicy");var mJ=require("node:crypto");var Ug=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,mJ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var Og="12.31.0",qg="2026-02-06";var Hg="https://storage.azure.com/.default",wi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var zn="",mN="*",Pge=1*1024*1024;var vge=4*Pge;var pJ="AES256",hJ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",fJ=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],gJ=["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"],yJ="BlobUsesCustomerSpecifiedEncryption",EJ="BlobDoesNotUseCustomerSpecifiedEncryption",CJ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ni(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Ni,"isPipelineLike");var Dd=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function at(t,e={}){t||(t=new qe);let r=new Dd([],e);return r._credential=t,r}o(at,"newPipeline");function Dge(t){let e=[kge,IJ,Tge,Mge,Lge,Fge,Uge];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>_ge(s));return{wrappedPolicies:Hw(r),afterRetry:n}}}}o(Dge,"processDownlevelPipeline");function pN(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?zw(e):uN(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Og}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pd({...r,loggingOptions:{additionalAllowedHeaderNames:fJ,additionalAllowedQueryParameters:gJ,logger:Rg.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:Sg,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:lN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:yw}),s.addPolicy(lJ()),s.addPolicy(AJ(r.retryOptions),{phase:"Retry"}),s.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Wn(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(DEe,"generateBlobSASQueryParameters20150405");function kEe(t,e){if(t=_a(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Jn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(kEe,"generateBlobSASQueryParameters20181109");function TEe(t,e){if(t=_a(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Jn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(TEe,"generateBlobSASQueryParameters20201206");function MEe(t,e){if(t=_a(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Jn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(MEe,"generateBlobSASQueryParametersUDK20181109");function LEe(t,e){if(t=_a(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Jn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(LEe,"generateBlobSASQueryParametersUDK20200210");function FEe(t,e){if(t=_a(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Jn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(FEe,"generateBlobSASQueryParametersUDK20201206");function _Ee(t,e){if(t=_a(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=zs.parse(t.permissions.toString()).toString():s=Gs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Fa(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Jn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Wn(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(_Ee,"generateBlobSASQueryParametersUDK20250705");function Fa(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Fa,"getCanonicalName");function _a(t){let e=t.version?t.version:qg;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(_a,"SASSignatureValuesSanityCheckAndAutofill");var Gd=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Bl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==zn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-acquireLease",r,async n=>V(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==zn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==zn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=V(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==zn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==zn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return H.withSpan("BlobLeaseClient-releaseLease",e,async r=>V(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==zn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==zn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Hl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ha=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ha.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var em=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var WCe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},sP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function x4(t,e,r){return WCe(this,void 0,void 0,function*(){var n;let s=new Ti(t),i=s.getBlockBlobClient(),a=new sP((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new Vy(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw gt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(x4,"uploadCacheArchiveSDK");var w4=Q(require("buffer"),1),Ys=Q(require("fs"),1),N4=Q(require("stream"),1),S4=Q(require("util"),1);var Jy=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function Wy(t){return t?t>=200&&t<300:!1}o(Wy,"isSuccessStatusCode");function $Ce(t){return t?t>=500:!0}o($Ce,"isServerErrorStatusCode");function jCe(t){return t?[Je.BadGateway,Je.ServiceUnavailable,Je.GatewayTimeout].includes(t):!1}o(jCe,"isRetryableStatusCode");function KCe(t){return Jy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(KCe,"sleep");function b4(t,e,r){return Jy(this,arguments,void 0,function*(n,s,i,a=yf,c=Ef,l=void 0){let A="",u=1;for(;u<=a;){let d,m,p=!1;try{d=yield s()}catch(h){l&&(d=l(h)),p=!0,A=h.message}if(d&&(m=i(d),!$Ce(m)))return d;if(m&&(p=jCe(m),A=`Cache service responded with ${m}`),b(`${n} - Attempt ${u} of ${a} failed with error: ${A}`),!p){b(`${n} - Error is not retryable`);break}yield KCe(c),u++}throw Error(`${n} failed: ${A}`)})}o(b4,"retry");function tm(t,e){return Jy(this,arguments,void 0,function*(r,n,s=yf,i=Ef){return yield b4(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof gs)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(tm,"retryTypedResponse");function zl(t,e){return Jy(this,arguments,void 0,function*(r,n,s=yf,i=Ef){return yield b4(r,n,a=>a.message.statusCode,s,i)})}o(zl,"retryHttpClientResponse");var xn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function XCe(t,e){return xn(this,void 0,void 0,function*(){yield S4.promisify(N4.pipeline)(t.message,e)})}o(XCe,"pipeResponseToStream");var $y=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,b(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receive
Line truncated
|
||||
Other caches with similar key:`);for(let c of i?.artifactCaches||[])b(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(iIe,"printCachesListForDiagnostics");function cP(t,e,r){return Qr(this,void 0,void 0,function*(){let n=new _4.URL(t),s=D4(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield P4(t,e,s):s.concurrentBlobDownloads?yield R4(t,e,s):yield jy(t,e):yield jy(t,e)})}o(cP,"downloadCache");function O4(t,e,r){return Qr(this,void 0,void 0,function*(){let n=aP(),s=ml(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tm("reserveCache",()=>Qr(this,void 0,void 0,function*(){return n.postJson(nm("caches"),i)}))})}o(O4,"reserveCache");function F4(t,e){return`bytes ${t}-${e}/*`}o(F4,"getContentRange");function oIe(t,e,r,n,s){return Qr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${F4(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":F4(n,s)},a=yield zl(`uploadChunk (start: ${n}, end: ${s})`,()=>Qr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Wy(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(oIe,"uploadChunk");function aIe(t,e,r,n){return Qr(this,void 0,void 0,function*(){let s=fs(r),i=nm(`caches/${e.toString()}`),a=Gl.openSync(r,"r"),c=iP(n),l=Db("uploadConcurrency",c.uploadConcurrency),A=Db("uploadChunkSize",c.uploadChunkSize),u=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>Qr(this,void 0,void 0,function*(){for(;d<s;){let m=Math.min(s-d,A),p=d,h=d+m-1;d+=A,yield oIe(t,i,()=>Gl.createReadStream(r,{fd:a,start:p,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),p,h)}})))}finally{Gl.closeSync(a)}})}o(aIe,"uploadFile");function cIe(t,e,r){return Qr(this,void 0,void 0,function*(){let n={size:r};return yield tm("commitCache",()=>Qr(this,void 0,void 0,function*(){return t.postJson(nm(`caches/${e.toString()}`),n)}))})}o(cIe,"commitCache");function lP(t,e,r,n){return Qr(this,void 0,void 0,function*(){if(iP(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield x4(r,e,n)}else{let i=aP();b("Upload cache"),yield aIe(i,t,e,n),b("Commiting cache");let a=fs(e);he(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield cIe(i,t,a);if(!Wy(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);he("Cache saved successfully")}})}o(lP,"saveCache");var T8=Q(N8(),1),At=Q(lt(),1),Kr=Q(lt(),1),Ja=Q(lt(),1),Wa=Q(lt(),1),$a=Q(lt(),1);var nv=Q(lt(),1),sv=Q(lt(),1),v8=Q(lt(),1),D8=Q(lt(),1),k8=Q(lt(),1);var ev=Q(lt(),1),tv=Q(lt(),1),S8=Q(lt(),1),R8=Q(lt(),1),P8=Q(lt(),1);var rv=class extends P8.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,R8.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,S8.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let u=e.skip(l);A!==!1&&(A===!0?tv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,ev.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,ev.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?tv.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},FE=new rv;var iv=class extends k8.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>FE,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,D8.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,v8.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(FE.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let u=e.skip(l);A!==!1&&(A===!0?sv.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,nv.WireTyp
Line truncated
|
||||
`));let n=yield Cv(r,"create");yield Iv(n,t)})}o(Qv,"createTar");var aA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},Kn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},oA=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},qE=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function _8(t){if(!t||t.length===0)throw new Kn("Path Validation Error: At least one directory or file path is required")}o(_8,"checkPaths");function xv(t){if(t.length>512)throw new Kn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Kn(`Key Validation Error: ${t} cannot contain commas.`)}o(xv,"checkKey");function bv(){return rm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(bv,"isFeatureAvailable");function U8(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,a,c,l=!1){let A=rm();return b(`Cache service version: ${A}`),_8(s),A==="v2"?yield QQe(s,i,a,c,l):yield BQe(s,i,a,c,l)})}o(U8,"restoreCache");function BQe(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,a,c,l=!1){a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new Kn("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)xv(m);let u=yield td(),d="";try{let m=yield U4(A,s,{compressionMethod:u,enableCrossOsArchive:l});if(!m?.archiveLocation)return;if(c?.lookupOnly)return he("Lookup only - skipping download"),m.cacheKey;d=Em.join(yield Zu(),ho(u)),b(`Archive Path: ${d}`),yield cP(m.archiveLocation,d,c),ua()&&(yield ym(d,u));let p=fs(d);return he(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield Bv(d,u),he("Cache restored successfully"),m.cacheKey}catch(m){let p=m;if(p.name===Kn.name)throw m;p instanceof gs&&typeof p.statusCode=="number"&&p.statusCode>=500?nl(`Failed to restore: ${m.message}`):gt(`Failed to restore: ${m.message}`)}finally{try{yield ed(d)}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(BQe,"restoreCacheV1");function QQe(t,e,r,n){return aA(this,arguments,void 0,function*(s,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new Kn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)xv(d);let u="";try{let d=Ev(),m=yield td(),p={key:i,restoreKeys:a,version:ml(s,m,l)},h=yield d.GetCacheEntryDownloadURL(p);if(!h.ok){b(`Cache not found for version ${p.version} of keys: ${A.join(", ")}`);return}if(p.key!==h.matchedKey?he(`Cache hit for restore-key: ${h.matchedKey}`):he(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return he("Lookup only - skipping download"),h.matchedKey;u=Em.join(yield Zu(),ho(m)),b(`Archive path: ${u}`),b(`Starting download of archive to: ${u}`),yield cP(h.signedDownloadUrl,u,c);let C=fs(u);return he(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),ua()&&(yield ym(u,m)),yield Bv(u,m),he("Cache restored successfully"),h.matchedKey}catch(d){let m=d;if(m.name===Kn.name)throw d;m instanceof gs&&typeof m.statusCode=="number"&&m.statusCode>=500?nl(`Failed to restore: ${d.message}`):gt(`Failed to restore: ${d.message}`)}finally{try{u&&(yield ed(u))}catch(d){b(`Failed to delete archive: ${d}`)}}})}o(QQe,"restoreCacheV2");function wv(t,e,r){return aA(this,arguments,void 0,function*(n,s,i,a=!1){let c=rm();return b(`Cache service version: ${c}`),_8(n),xv(s),c==="v2"?yield bQe(n,s,i,a):yield xQe(n,s,i,a)})}o(wv,"saveCache");function xQe(t,e,r){return aA(this,arguments,void 0,function*(n,s,i,a=!1){var c,l,A,u,d;let m=yield td(),p=-1,h=yield vb(n);if(b("Cache Paths:"),b(`${JSON.stringify(h)}`),h.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let g=yield Zu(),C=Em.join(g,ho(m));b(`Archive Path: ${C}`);try{yield Qv(g,h,m),ua()&&(yield ym(C,m));let y=10*1024*1024*1024,E=fs(C);if(b(`File Size: ${E}`),E>y&&!oP())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);b("Reserving Cache");let I=yield O4(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:E});if(!((c=I?.result)===null||c===void 0)&&c.cacheId)p=(l=I?.result)===null||l===void 0?void 0:l.cacheId;else throw I?.statusCode===400?new Error((u=(A=I?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(E/(1024*Line truncated
|
||||
`,a).length:d,A?(c===null?0:c.length)+l.length:0,A?l.length+d:0);return m<p},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,encoding:A,from_line:u,ltrim:d,max_record_size:m,raw:p,relax_quotes:h,rtrim:g,skip_empty_lines:C,to:y,to_line:E}=this.options,{comment:I,escape:B,quote:N,record_delimiter:k}=this.options,{bomSkipped:_,previousBuf:ce,rawBuffer:Ee,escapeIsQuote:xe}=this.state,z;if(ce===void 0)if(n===void 0){a();return}else z=n;else ce!==void 0&&n===void 0?z=ce:z=Buffer.concat([ce,n]);if(_===!1)if(c===!1)this.state.bomSkipped=!0;else if(z.length<3){if(s===!1){this.state.previousBuf=z;return}}else{for(let me in IA)if(IA[me].compare(z,0,IA[me].length)===0){let ut=IA[me].length;this.state.bufBytesStart+=ut,z=z.slice(ut);let Ge=RD({...this.original_options,encoding:me});for(let rt in Ge)this.options[rt]=Ge[rt];({comment:I,escape:B,quote:N}=this.options);break}this.state.bomSkipped=!0}let te=z.length,U;for(U=0;U<te&&!this.__needMoreData(U,te,s);U++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,a();return}this.state.quoting===!1&&k.length===0&&this.__autoDiscoverRecordDelimiter(z,U)&&(k=this.options.record_delimiter);let me=z[U];if(p===!0&&Ee.append(me),(me===Gwe||me===Ywe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(z,U,me)&&U+B.length<te)if(xe){if(this.__isQuote(z,U+B.length)){this.state.escaping=!0,U+=B.length-1;continue}}else{this.state.escaping=!0,U+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(z,U))if(this.state.quoting===!0){let rt=z[U+N.length],ei=g&&this.__isCharTrimable(z,U+N.length),Nr=I!==null&&this.__compareBytes(I,z,U+N.length,rt),es=this.__isDelimiter(z,U+N.length,rt),Mo=k.length===0?this.__autoDiscoverRecordDelimiter(z,U+N.length):this.__isRecordDelimiter(rt,z,U+N.length);if(B!==null&&this.__isEscape(z,U,me)&&this.__isQuote(z,U+B.length))U+=B.length-1;else if(!rt||es||Mo||Nr||ei){this.state.quoting=!1,this.state.wasQuoting=!0,U+=N.length-1;continue}else if(h===!1){let rc=this.__error(new ye("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(rt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(rc!==void 0)return rc}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),U+=N.length-1}else if(this.state.field.length!==0){if(h===!1){let rt=this.__infoField(),ei=Object.keys(IA).map(es=>IA[es].equals(this.state.field.toString())?es:!1).filter(Boolean)[0],Nr=this.__error(new ye("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(rt.column)} at line ${rt.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,ei?`(${ei} bom)`:void 0],this.options,rt,{field:this.state.field}));if(Nr!==void 0)return Nr}}else{this.state.quoting=!0,U+=N.length-1;continue}if(this.state.quoting===!1){let rt=this.__isRecordDelimiter(me,z,U);if(rt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),U+=rt-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,U+=rt-1;continue}this.info.bytes=this.state.bufBytesStart+U;let es=this.__onField();if(es!==void 0)return es;this.info.bytes=this.state.bufBytesStart+U+rt;let Mo=this.__onRecord(i);if(Mo!==void 0)return Mo;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,U+=rt-1;continue}if(this.state.commenting)continue;if(I!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,z,U,me)!==0){this.state.commenting=!0;continue}let ei=this.__isDelimiter(z,U,me);if(ei!==0){this.info.bytes=this.state.bufBytesStart+U;let Nr=this.__onField();if(Nr!==void 0)return Nr;U+=ei-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new ye("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let ut=d===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(z,U),Ge=g===!1||this.state.wasQuoting===!1;if(ut===!0&&Ge===!0)this.state.field.append(me);else{if(g===!0&&!this.__isCharTrimable(z,U))return this.__error(new ye("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));ut===!1&&(U+=this.__isCharTrimable(z,U)-1)
Line truncated
|
||||
`+n(i)+s(i),c=(0,yJ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(Z.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===Z.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,A]of i.headers)l.toLowerCase().startsWith(Z.PREFIX_FOR_STORAGE)&&a.push({name:l,value:A});a.sort((l,A)=>zg(l.name.toLowerCase(),A.name.toLowerCase())),a=a.filter((l,A,u)=>!(A>0&&l.name.toLowerCase()===u[A-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
||||
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=Og(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=qg(i.url),A={};if(l){let u=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let m=d.toLowerCase();A[m]=l[d],u.push(m)}u.sort();for(let d of u)c+=`
|
||||
${d}:${decodeURIComponent(A[d])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:Tge,async sendRequest(i,a){return e(i),a(i)}}}o(yN,"storageSharedKeyCredentialPolicy");var Mge="storageRequestFailureDetailsParserPolicy";function EJ(){return{name:Mge,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
||||
`),r}}}}o(EJ,"storageRequestFailureDetailsParserPolicy");var CJ=require("node:crypto");var Gg=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,CJ.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var Yg="12.31.0",Vg="2026-02-06";var Jg="https://storage.azure.com/.default",Ni={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Gn="",EN="*",Lge=1*1024*1024;var _ge=4*Lge;var IJ="AES256",BJ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",QJ=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],xJ=["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"],bJ="BlobUsesCustomerSpecifiedEncryption",wJ="BlobDoesNotUseCustomerSpecifiedEncryption",NJ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Si(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(Si,"isPipelineLike");var Md=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function lt(t,e={}){t||(t=new ze);let r=new Md([],e);return r._credential=t,r}o(lt,"newPipeline");function Fge(t){let e=[Uge,SJ,Oge,qge,Hge,zge,Yge];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Gge(s));return{wrappedPolicies:Ww(r),afterRetry:n}}}}o(Fge,"processDownlevelPipeline");function CN(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?$w(e):gN(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Yg}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=gd({...r,loggingOptions:{additionalAllowedHeaderNames:QJ,additionalAllowedQueryParameters:xJ,logger:Tg.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:kg,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:hN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:xw}),s.addPolicy(fJ()),s.addPolicy(gJ(r.retryOptions),{phase:"Retry"}),s.addPo
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new $n(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(FEe,"generateBlobSASQueryParameters20150405");function UEe(t,e){if(t=Oa(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ys.parse(t.permissions.toString()).toString():s=Vs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Ua(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new $n(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(UEe,"generateBlobSASQueryParameters20181109");function OEe(t,e){if(t=Oa(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ys.parse(t.permissions.toString()).toString():s=Vs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Ua(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new $n(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(OEe,"generateBlobSASQueryParameters20201206");function qEe(t,e){if(t=Oa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ys.parse(t.permissions.toString()).toString():s=Vs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Ua(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new $n(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(qEe,"generateBlobSASQueryParametersUDK20181109");function HEe(t,e){if(t=Oa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ys.parse(t.permissions.toString()).toString():s=Vs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Ua(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(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,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new $n(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(HEe,"generateBlobSASQueryParametersUDK20200210");function zEe(t,e){if(t=Oa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ys.parse(t.permissions.toString()).toString():s=Vs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Ua(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(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,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new $n(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(zEe,"generateBlobSASQueryParametersUDK20201206");function GEe(t,e){if(t=Oa(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Ys.parse(t.permissions.toString()).toString():s=Vs.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Qe(t.startsOn,!1):"",t.expiresOn?Qe(t.expiresOn,!1):"",Ua(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Qe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Qe(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Wn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new $n(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(GEe,"generateBlobSASQueryParametersUDK20250705");function Ua(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Ua,"getCanonicalName");function Oa(t){let e=t.version?t.version:Vg;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Oa,"SASSignatureValuesSanityCheckAndAutofill");var Jd=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=xl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Gn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Gn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-acquireLease",r,async n=>Y(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Gn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Gn||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Y(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Gn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Gn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return q.withSpan("BlobLeaseClient-releaseLease",e,async r=>Y(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Gn||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Gn||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Gl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ga=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Ga.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var nm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var eIe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},AP=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);he(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function v4(t,e,r){return eIe(this,void 0,void 0,function*(){var n;let s=new Mi(t),i=s.getBlockBlobClient(),a=new AP((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),w(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new Ky(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ot(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(v4,"uploadCacheArchiveSDK");var k4=Q(require("buffer"),1),Js=Q(require("fs"),1),T4=Q(require("stream"),1),M4=Q(require("util"),1);var Xy=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function Zy(t){return t?t>=200&&t<300:!1}o(Zy,"isSuccessStatusCode");function tIe(t){return t?t>=500:!0}o(tIe,"isServerErrorStatusCode");function rIe(t){return t?[$e.BadGateway,$e.ServiceUnavailable,$e.GatewayTimeout].includes(t):!1}o(rIe,"isRetryableStatusCode");function nIe(t){return Xy(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(nIe,"sleep");function D4(t,e,r){return Xy(this,arguments,void 0,function*(n,s,i,a=Qf,c=xf,l=void 0){let A="",u=1;for(;u<=a;){let d,m,p=!1;try{d=yield s()}catch(h){l&&(d=l(h)),p=!0,A=h.message}if(d&&(m=i(d),!tIe(m)))return d;if(m&&(p=rIe(m),A=`Cache service responded with ${m}`),w(`${n} - Attempt ${u} of ${a} failed with error: ${A}`),!p){w(`${n} - Error is not retryable`);break}yield nIe(c),u++}throw Error(`${n} failed: ${A}`)})}o(D4,"retry");function sm(t,e){return Xy(this,arguments,void 0,function*(r,n,s=Qf,i=xf){return yield D4(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof Es)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(sm,"retryTypedResponse");function Yl(t,e){return Xy(this,arguments,void 0,function*(r,n,s=Qf,i=xf){return yield D4(r,n,a=>a.message.statusCode,s,i)})}o(Yl,"retryHttpClientResponse");var bn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})};function sIe(t,e){return bn(this,void 0,void 0,function*(){yield M4.promisify(T4.pipeline)(t.message,e)})}o(sIe,"pipeResponseToStream");var eE=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,w(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receive
Line truncated
|
||||
Other caches with similar key:`);for(let c of i?.artifactCaches||[])w(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(uIe,"printCachesListForDiagnostics");function pP(t,e,r){return xr(this,void 0,void 0,function*(){let n=new Y4.URL(t),s=U4(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield _4(t,e,s):s.concurrentBlobDownloads?yield L4(t,e,s):yield tE(t,e):yield tE(t,e)})}o(pP,"downloadCache");function J4(t,e,r){return xr(this,void 0,void 0,function*(){let n=mP(),s=hl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield sm("reserveCache",()=>xr(this,void 0,void 0,function*(){return n.postJson(om("caches"),i)}))})}o(J4,"reserveCache");function G4(t,e){return`bytes ${t}-${e}/*`}o(G4,"getContentRange");function dIe(t,e,r,n,s){return xr(this,void 0,void 0,function*(){w(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${G4(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":G4(n,s)},a=yield Yl(`uploadChunk (start: ${n}, end: ${s})`,()=>xr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Zy(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(dIe,"uploadChunk");function mIe(t,e,r,n){return xr(this,void 0,void 0,function*(){let s=ys(r),i=om(`caches/${e.toString()}`),a=Vl.openSync(r,"r"),c=uP(n),l=Fb("uploadConcurrency",c.uploadConcurrency),A=Fb("uploadChunkSize",c.uploadChunkSize),u=[...new Array(l).keys()];w("Awaiting all uploads");let d=0;try{yield Promise.all(u.map(()=>xr(this,void 0,void 0,function*(){for(;d<s;){let m=Math.min(s-d,A),p=d,h=d+m-1;d+=A,yield dIe(t,i,()=>Vl.createReadStream(r,{fd:a,start:p,end:h,autoClose:!1}).on("error",f=>{throw new Error(`Cache upload failed because file read failed with ${f.message}`)}),p,h)}})))}finally{Vl.closeSync(a)}})}o(mIe,"uploadFile");function pIe(t,e,r){return xr(this,void 0,void 0,function*(){let n={size:r};return yield sm("commitCache",()=>xr(this,void 0,void 0,function*(){return t.postJson(om(`caches/${e.toString()}`),n)}))})}o(pIe,"commitCache");function hP(t,e,r,n){return xr(this,void 0,void 0,function*(){if(uP(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield v4(r,e,n)}else{let i=mP();w("Upload cache"),yield mIe(i,t,e,n),w("Commiting cache");let a=ys(e);he(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield pIe(i,t,a);if(!Zy(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);he("Cache saved successfully")}})}o(hP,"saveCache");var qW=Q(TW(),1),dt=Q(ut(),1),Xr=Q(ut(),1),$a=Q(ut(),1),ja=Q(ut(),1),Ka=Q(ut(),1);var lv=Q(ut(),1),Av=Q(ut(),1),FW=Q(ut(),1),UW=Q(ut(),1),OW=Q(ut(),1);var ov=Q(ut(),1),av=Q(ut(),1),MW=Q(ut(),1),LW=Q(ut(),1),_W=Q(ut(),1);var cv=class extends _W.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,LW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,MW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let u=e.skip(l);A!==!1&&(A===!0?av.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,ov.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,ov.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?av.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},HE=new cv;var uv=class extends OW.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>HE,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,UW.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FW.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(HE.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let u=e.skip(l);A!==!1&&(A===!0?Av.UnknownFieldHandler.onRead:A)(this.typeName,i,c,l,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,lv.WireTyp
Line truncated
|
||||
`));let n=yield wv(r,"create");yield Nv(n,t)})}o(Rv,"createTar");var lA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(u){try{A(n.next(u))}catch(d){a(d)}}o(c,"fulfilled");function l(u){try{A(n.throw(u))}catch(d){a(d)}}o(l,"rejected");function A(u){u.done?i(u.value):s(u.value).then(c,l)}o(A,"step"),A((n=n.apply(t,e||[])).next())})},Xn=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Xa=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Pv="cache write denied:",cA=class t extends Xa{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},VE=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function YW(t){if(!t||t.length===0)throw new Xn("Path Validation Error: At least one directory or file path is required")}o(YW,"checkPaths");function vv(t){if(t.length>512)throw new Xn(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Xn(`Key Validation Error: ${t} cannot contain commas.`)}o(vv,"checkKey");function Dv(){return im()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(Dv,"isFeatureAvailable");function VW(t,e,r,n){return lA(this,arguments,void 0,function*(s,i,a,c,l=!1){let A=im();return w(`Cache service version: ${A}`),YW(s),A==="v2"?yield RQe(s,i,a,c,l):yield SQe(s,i,a,c,l)})}o(VW,"restoreCache");function SQe(t,e,r,n){return lA(this,arguments,void 0,function*(s,i,a,c,l=!1){a=a||[];let A=[i,...a];if(w("Resolved Keys:"),w(JSON.stringify(A)),A.length>10)throw new Xn("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)vv(m);let u=yield sd(),d="";try{let m=yield V4(A,s,{compressionMethod:u,enableCrossOsArchive:l});if(!m?.archiveLocation)return;if(c?.lookupOnly)return he("Lookup only - skipping download"),m.cacheKey;d=Bm.join(yield rd(),go(u)),w(`Archive Path: ${d}`),yield pP(m.archiveLocation,d,c),ma()&&(yield Im(d,u));let p=ys(d);return he(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`),yield Sv(d,u),he("Cache restored successfully"),m.cacheKey}catch(m){let p=m;if(p.name===Xn.name)throw m;p instanceof Es&&typeof p.statusCode=="number"&&p.statusCode>=500?il(`Failed to restore: ${m.message}`):ot(`Failed to restore: ${m.message}`)}finally{try{yield nd(d)}catch(m){w(`Failed to delete archive: ${m}`)}}})}o(SQe,"restoreCacheV1");function RQe(t,e,r,n){return lA(this,arguments,void 0,function*(s,i,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(w("Resolved Keys:"),w(JSON.stringify(A)),A.length>10)throw new Xn("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)vv(d);let u="";try{let d=bv(),m=yield sd(),p={key:i,restoreKeys:a,version:hl(s,m,l)},h=yield d.GetCacheEntryDownloadURL(p);if(!h.ok){w(`Cache not found for version ${p.version} of keys: ${A.join(", ")}`);return}if(p.key!==h.matchedKey?he(`Cache hit for restore-key: ${h.matchedKey}`):he(`Cache hit for: ${h.matchedKey}`),c?.lookupOnly)return he("Lookup only - skipping download"),h.matchedKey;u=Bm.join(yield rd(),go(m)),w(`Archive path: ${u}`),w(`Starting download of archive to: ${u}`),yield pP(h.signedDownloadUrl,u,c);let C=ys(u);return he(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),ma()&&(yield Im(u,m)),yield Sv(u,m),he("Cache restored successfully"),h.matchedKey}catch(d){let m=d;if(m.name===Xn.name)throw d;m instanceof Es&&typeof m.statusCode=="number"&&m.statusCode>=500?il(`Failed to restore: ${d.message}`):ot(`Failed to restore: ${d.message}`)}finally{try{u&&(yield nd(u))}catch(d){w(`Failed to delete archive: ${d}`)}}})}o(RQe,"restoreCacheV2");function kv(t,e,r){return lA(this,arguments,void 0,function*(n,s,i,a=!1){let c=im();return w(`Cache service version: ${c}`),YW(n),vv(s),c==="v2"?yield vQe(n,s,i,a):yield PQe(n,s,i,a)})}o(kv,"saveCache");function PQe(t,e,r){return lA(this,arguments,void 0,function*(n,s,i,a=!1){var c,l,A,u,d,m;let p=yield sd(),h=-1,f=yield _b(n);if(w("Cache Paths:"),w(`${JSON.stringify(f)}`),f.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 C=yield rd(),y=Bm.join(C,go(p));w(`Archive Path: ${y}`);try{yield Rv(C,f,p),ma()&&(yield Im(y,p));let E=10*1024*1024*1024,I=ys(y);if(w(`File Size: ${I}`),I>E&&!dP())throw new Error(`Cache size of ~${Math.round(I/(1024*1024))} MB (${I} B) is over the 10GB limit, not saving cache.`);w("Reserving Cache");let B=yield J4(s,n,{compressionMethod:p,enableCrossOsArchive:a,cacheSize:I});if(!((c=B?.result)===null||c===void 0)&&c.cacheId)h=(l=B?.result)=
Line truncated
|
||||
`,a).length:d,A?(c===null?0:c.length)+l.length:0,A?l.length+d:0);return m<p},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:A,encoding:u,from_line:d,ltrim:m,max_record_size:p,raw:h,relax_quotes:f,rtrim:C,skip_empty_lines:y,to:E,to_line:I}=this.options,{comment:B,escape:b,quote:S,record_delimiter:F}=this.options,{bomSkipped:me,delimiterDiscovered:ye,delimiterBufPrevious:Ee,rawBuffer:xe,escapeIsQuote:ie}=this.state;if(!ye&&A){let be;if(Ee===void 0?be=n:Ee!==void 0&&n===void 0?be=Ee:be=Buffer.concat([Ee,n]),n=void 0,s||be.length>A.size)this.options.delimiter=[Buffer.from(l5(be,this.options.delimiter_auto))],this.state.previousBuf=be,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=be;return}}let{previousBuf:ve}=this.state,ee;if(ve===void 0)if(n===void 0){a();return}else ee=n;else ve!==void 0&&n===void 0?ee=ve:ee=Buffer.concat([ve,n]);if(me===!1)if(c===!1)this.state.bomSkipped=!0;else if(ee.length<3){if(s===!1){this.state.previousBuf=ee;return}}else{for(let be in xA)if(xA[be].compare(ee,0,xA[be].length)===0){let ts=xA[be].length;this.state.bufBytesStart+=ts,ee=ee.slice(ts);let Hi=QA({...this.original_options,encoding:be});for(let Je in Hi)this.options[Je]=Hi[Je];({comment:B,escape:b,quote:S}=this.options);break}this.state.bomSkipped=!0}let Yt=ee.length,H;for(H=0;H<Yt&&!this.__needMoreData(H,Yt,s);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&F.length===0&&this.__autoDiscoverRecordDelimiter(ee,H)&&(F=this.options.record_delimiter);let be=ee[H];if(h===!0&&xe.append(be),(be===Vwe||be===Jwe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(b!==null&&this.state.quoting===!0&&this.__isEscape(ee,H,be)&&H+b.length<Yt)if(ie){if(this.__isQuote(ee,H+b.length)){this.state.escaping=!0,H+=b.length-1;continue}}else{this.state.escaping=!0,H+=b.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ee,H))if(this.state.quoting===!0){let Je=ee[H+S.length],rs=C&&this.__isCharTrimable(ee,H+S.length),Sr=B!==null&&this.__compareBytes(B,ee,H+S.length,Je),_o=this.__isDelimiter(ee,H+S.length,Je),qm=F.length===0?this.__autoDiscoverRecordDelimiter(ee,H+S.length):this.__isRecordDelimiter(Je,ee,H+S.length);if(b!==null&&this.__isEscape(ee,H,be)&&this.__isQuote(ee,H+b.length))H+=b.length-1;else if(!Je||_o||qm||Sr||rs){this.state.quoting=!1,this.state.wasQuoting=!0,H+=S.length-1;continue}else if(f===!1){let FD=this.__error(new Ae("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Je)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(FD!==void 0)return FD}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),H+=S.length-1}else if(this.state.field.length!==0){if(f===!1){let Je=this.__infoField(),rs=Object.keys(xA).map(_o=>xA[_o].equals(this.state.field.toString())?_o:!1).filter(Boolean)[0],Sr=this.__error(new Ae("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Je.column)} at line ${Je.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,rs?`(${rs} bom)`:void 0],this.options,Je,{field:this.state.field}));if(Sr!==void 0)return Sr}}else{this.state.quoting=!0,H+=S.length-1;continue}if(this.state.quoting===!1){let Je=this.__isRecordDelimiter(be,ee,H);if(Je!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=Je-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=Je-1;continue}this.info.bytes=this.state.bufBytesStart+H;let _o=this.__onField();if(_o!==void 0)return _o;this.info.bytes=this.state.bufBytesStart+H+Je;let qm=this.__onRecord(i);if(qm!==void 0)return qm;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=Je-1;continue}if(this.state.commenting)continue;if(B!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(B,ee,H,be)!==0){this.state.commenting=!0;continue}let rs=this.__isDelimiter(ee,H,be);if(rs!==0){this.info.bytes=this.state.bufBytesStart+H;let Sr=this.__onField();if(Sr!==void 0)return Sr;H+=rs-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new Ae("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${p}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let ts=m===!1||thi
Line truncated
|
||||
`,i),Buffer.from(`
|
||||
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let A=0;A<l;A++)if(a[c][A]!==n[s+A])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var i5=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=s5(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var BA=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(rl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=i5(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=rl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await dr("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return o5.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return PD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return PD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return a5.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Mm.default.resolve(e);return Mm.default.resolve(r).startsWith(n.endsWith(Mm.default.sep)?n:`${n}${Mm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Zn=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Lm.default.join(c5.default.homedir(),".docker")}static configFile(){let e=Lm.default.join(t.configDir,"config.json");if(vD.default.existsSync(e))return JSON.parse(vD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await dr("docker",!0).then(e=>(b(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(b(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static
Line truncated
|
||||
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let A=0;A<l;A++)if(a[c][A]!==n[s+A])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var u5=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=MC(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var bA=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(sl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=u5(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=sl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await mr("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return d5.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return LD.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return LD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return m5.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Um.default.resolve(e);return Um.default.resolve(r).startsWith(n.endsWith(Um.default.sep)?n:`${n}${Um.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var es=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Om.default.join(p5.default.homedir(),".docker")}static configFile(){let e=Om.default.join(t.configDir,"config.json");if(_D.default.existsSync(e))return JSON.parse(_D.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await mr("docker",!0).then(e=>(w(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(w(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "ooBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,GAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,GAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,GAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,GACvBR,GAAQ,cAAgBS,GACxBT,GAAQ,cAAgBU,GACxBV,GAAQ,eAAiBW,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,GAAA,gBAMT,SAASC,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,GAAA,iBAQT,SAASC,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,GAAA,iBAMT,SAASC,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,GAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,GAAK,SAASO,GAAgBT,GAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,GAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
|
||||
}
|
||||
+25
-679
@@ -3,11 +3,10 @@ https://www.npmjs.com/package/generate-license-file
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @sigstore/bundle@4.0.0
|
||||
- @sigstore/core@3.2.1
|
||||
- @sigstore/bundle@5.0.0
|
||||
- @sigstore/core@4.0.1
|
||||
- @sigstore/protobuf-specs@0.5.0
|
||||
- @sigstore/sign@4.1.1
|
||||
- @sigstore/tuf@4.0.2
|
||||
- @sigstore/tuf@5.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -217,7 +216,7 @@ Apache License
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @docker/actions-toolkit@0.91.0
|
||||
- @docker/actions-toolkit@0.92.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -1759,12 +1758,11 @@ SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @isaacs/balanced-match@4.0.1
|
||||
- balanced-match@4.0.4
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
(MIT)
|
||||
|
||||
@@ -1794,7 +1792,7 @@ SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- js-yaml@4.2.0
|
||||
- js-yaml@5.2.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -1822,46 +1820,11 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- negotiator@1.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2012-2014 Federico Romero
|
||||
Copyright (c) 2012-2014 Isaac Z. Schlueter
|
||||
Copyright (c) 2014-2015 Douglas Christopher Wilson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- agent-base@7.1.1
|
||||
- agent-base@7.1.4
|
||||
- https-proxy-agent@7.0.4
|
||||
- https-proxy-agent@7.0.6
|
||||
- socks-proxy-agent@8.0.3
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -2060,12 +2023,11 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- path-scurry@1.11.1
|
||||
- path-scurry@2.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
# Blue Oak Model License
|
||||
|
||||
@@ -2128,9 +2090,7 @@ software or this license, under any kind of legal claim.***
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- jackspeak@3.4.3
|
||||
- jackspeak@4.1.1
|
||||
- minimatch@10.1.1
|
||||
- minimatch@10.2.4
|
||||
- minimatch@10.2.5
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -2238,35 +2198,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @npmcli/fs@4.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this
|
||||
software for any purpose with or without fee is hereby
|
||||
granted, provided that the above copyright notice and this
|
||||
permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
|
||||
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- argparse@2.0.1
|
||||
@@ -2700,7 +2631,7 @@ END OF TERMS AND CONDITIONS
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @sigstore/verify@3.1.1
|
||||
- @sigstore/verify@4.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -2708,39 +2639,6 @@ Apache-2.0
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- sprintf-js@1.1.3
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of this software nor the names of its contributors may be
|
||||
used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- async@3.2.5
|
||||
@@ -2769,63 +2667,6 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- iconv-lite@0.7.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (c) 2011 Alexander Shtuchkin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- ip-address@9.0.5
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (C) 2011 by Beau Gunderson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @gar/promise-retry@1.0.3
|
||||
@@ -3037,34 +2878,6 @@ OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @gar/promise-retry@1.0.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright (c) 2014 IndigoUnited
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- archiver-utils@5.0.2
|
||||
@@ -3311,24 +3124,6 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- http-cache-semantics@4.1.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright 2016-2018 Kornel Lesiński
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- emoji-regex@8.0.0
|
||||
@@ -3388,20 +3183,6 @@ IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- unique-filename@4.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Copyright npm, Inc
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- lodash@4.18.1
|
||||
@@ -3458,184 +3239,12 @@ terms above.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @npmcli/agent@4.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
ISC
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- cacache@20.0.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright (c) npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
|
||||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- make-fetch-happen@15.0.4
|
||||
- make-fetch-happen@15.0.6
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright 2017-2022 (c) npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
|
||||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- ssri@12.0.0
|
||||
- ssri@13.0.1
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
ISC License
|
||||
|
||||
Copyright 2021 (c) npm, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for
|
||||
any purpose with or without fee is hereby granted, provided that the
|
||||
above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
|
||||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
||||
USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- jsbn@1.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Licensing
|
||||
---------
|
||||
|
||||
This software is covered under the following copyright:
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003-2005 Tom Wu
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be
|
||||
* included in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
||||
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
|
||||
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
|
||||
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
|
||||
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
|
||||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
* In addition, the following condition applies:
|
||||
*
|
||||
* All redistributions must retain an intact copy of this copyright notice
|
||||
* and disclaimer.
|
||||
*/
|
||||
|
||||
Address all questions regarding this license to:
|
||||
|
||||
Tom Wu
|
||||
tjw@cs.Stanford.EDU
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minizlib@3.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
Minizlib was created by Isaac Z. Schlueter.
|
||||
It is a derivative work of the Node.js project.
|
||||
|
||||
"""
|
||||
Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
|
||||
Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
|
||||
Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
"""
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @nodable/entities@2.1.0
|
||||
- binary@0.3.0
|
||||
- browserify-zlib@0.1.4
|
||||
- eastasianwidth@0.2.0
|
||||
- imurmurhash@0.1.4
|
||||
- is-gzip@1.0.0
|
||||
- isarray@1.0.0
|
||||
- xml-naming@0.1.0
|
||||
@@ -3829,36 +3438,6 @@ SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- safer-buffer@2.1.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @octokit/plugin-retry@8.1.0
|
||||
@@ -3922,8 +3501,8 @@ SOFTWARE.
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @tufjs/canonical-json@2.0.0
|
||||
- @tufjs/models@4.1.0
|
||||
- tuf-js@4.1.0
|
||||
- @tufjs/models@5.0.0
|
||||
- tuf-js@6.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4044,36 +3623,6 @@ SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @npmcli/redact@4.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 npm
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- fast-xml-builder@1.2.0
|
||||
@@ -4157,7 +3706,6 @@ The following npm packages may be included in this product:
|
||||
- ansi-regex@6.0.1
|
||||
- ansi-styles@6.2.1
|
||||
- is-stream@2.0.1
|
||||
- p-map@7.0.3
|
||||
- string-width@5.1.2
|
||||
- strip-ansi@7.1.0
|
||||
- wrap-ansi@7.0.0
|
||||
@@ -4201,12 +3749,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @isaacs/brace-expansion@5.0.1
|
||||
- brace-expansion@5.0.4
|
||||
- brace-expansion@5.0.7
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
@@ -4392,12 +3939,11 @@ IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- glob@10.5.0
|
||||
- glob@11.0.3
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
@@ -4417,12 +3963,11 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- lru-cache@10.2.2
|
||||
- lru-cache@11.2.2
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
@@ -4516,40 +4061,15 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- foreground-child@3.1.1
|
||||
- foreground-child@3.3.1
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass@3.3.6
|
||||
- foreground-child@3.1.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
|
||||
Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -4590,54 +4110,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass-collect@2.0.1
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2019-2023 Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- proc-log@6.1.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright (c) GitHub, Inc.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- inherits@2.0.4
|
||||
@@ -4664,21 +4136,14 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- fs-minipass@3.0.3
|
||||
- isexe@2.0.0
|
||||
- lru-cache@6.0.0
|
||||
- minimatch@3.1.2
|
||||
- minipass-flush@1.0.5
|
||||
- minipass-pipeline@1.2.4
|
||||
- minipass-sized@2.0.0
|
||||
- once@1.4.0
|
||||
- semver@7.6.0
|
||||
- semver@7.7.3
|
||||
- semver@7.7.4
|
||||
- semver@7.8.1
|
||||
- semver@7.8.5
|
||||
- which@2.0.2
|
||||
- wrappy@1.0.2
|
||||
- yallist@4.0.0
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
@@ -4700,30 +4165,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- unique-slug@5.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The ISC License
|
||||
|
||||
Copyright npm, Inc
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- buffer-crc32@1.0.0
|
||||
@@ -4818,7 +4259,7 @@ THE SOFTWARE.
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- csv-parse@6.2.1
|
||||
- csv-parse@7.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@@ -4876,64 +4317,6 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- socks@2.8.3
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 Josh Glazebrook
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- smart-buffer@4.2.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013-2017 Josh Glazebrook
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- base64-js@1.5.1
|
||||
@@ -5518,47 +4901,10 @@ THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minipass-fetch@5.0.2
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
Copyright (c) 2016 David Frank
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
---
|
||||
|
||||
Note: This is a derivative work based on "node-fetch" by David Frank,
|
||||
modified and distributed under the terms of the MIT license above.
|
||||
https://github.com/bitinn/node-fetch
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- @actions/artifact@6.2.1
|
||||
- @actions/cache@6.0.1
|
||||
- @actions/cache@6.1.0
|
||||
- @actions/core@3.0.0
|
||||
- @actions/core@3.0.1
|
||||
- @actions/exec@3.0.0
|
||||
|
||||
Reference in new issue
Block a user