mirror of
https://github.com/gradle/actions.git
synced 2026-10-16 19:57:12 +08:00
[bot] Update dist directory
This commit is contained in:
10 files changed
+613
-613
No files matched your search
Vendored
+158
-158
@@ -1,120 +1,120 @@
|
||||
import {createRequire} from 'module';const require=createRequire(import.meta.url);
|
||||
var YOe=Object.create;var jF=Object.defineProperty;var VOe=Object.getOwnPropertyDescriptor;var WOe=Object.getOwnPropertyNames;var JOe=Object.getPrototypeOf,zOe=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ca=(t,e)=>{for(var r in e)jF(t,r,{get:e[r],enumerable:!0})},jOe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of WOe(e))!zOe.call(t,s)&&s!==r&&jF(t,s,{get:()=>e[s],enumerable:!(n=VOe(e,s))||n.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?YOe(JOe(t)):{},jOe(e||!t||!t.__esModule?jF(r,"default",{value:t,enumerable:!0}):r,t));var qX=E(Ep=>{"use strict";var Kqt=b("net"),t3e=b("tls"),XF=b("http"),OX=b("https"),r3e=b("events"),$qt=b("assert"),n3e=b("util");Ep.httpOverHttp=s3e;Ep.httpsOverHttp=i3e;Ep.httpOverHttps=o3e;Ep.httpsOverHttps=a3e;function s3e(t){var e=new jc(t);return e.request=XF.request,e}function i3e(t){var e=new jc(t);return e.request=XF.request,e.createSocket=HX,e.defaultPort=443,e}function o3e(t){var e=new jc(t);return e.request=OX.request,e}function a3e(t){var e=new jc(t);return e.request=OX.request,e.createSocket=HX,e.defaultPort=443,e}function jc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||XF.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=GX(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}n3e.inherits(jc,r3e.EventEmitter);jc.prototype.addRequest=function(e,r,n,s){var i=this,o=ZF({request:e},i.options,GX(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};jc.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=ZF({},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")),El("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){El("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){El("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return El("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),El(`tunneling socket could not be established, cause=%s
|
||||
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};jc.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function HX(t,e){var r=this;jc.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=ZF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=t3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function GX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function ZF(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var El;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?El=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)}:El=function(){};Ep.debug=El});var eM=E((Zqt,YX)=>{YX.exports=qX()});var yr=E((eYt,VX)=>{VX.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 Lt=E((tYt,pZ)=>{"use strict";var WX=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[WX]===!0}[WX]=!0},JX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tM=class extends Br{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[JX]===!0}[JX]=!0},zX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rM=class extends Br{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[zX]===!0}[zX]=!0},jX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nM=class extends Br{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[jX]===!0}[jX]=!0},KX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sM=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KX]===!0}[KX]=!0},$X=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iM=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function b4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(a4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function Q4e(){return"allowed"}function w4e(){return"success"}function S4e(){return"success"}function N4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function T4e(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&&KM(t.origin)&&!KM(rI(t))&&(e=null);break;case"same-origin":L1(t,rI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Tp(t,e){return t}function x4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Tp(t.domainLookupStartTime,r),domainLookupEndTime:Tp(t.domainLookupEndTime,r),connectionStartTime:Tp(t.connectionStartTime,r),connectionEndTime:Tp(t.connectionEndTime,r),secureConnectionStartTime:Tp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function R4e(t){return Tp(d4e.now(),t)}function D4e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Ree(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function k4e(t){return{referrerPolicy:t.referrerPolicy}}function v4e(t){let e=t.referrerPolicy;Th(e);let r=null;if(t.referrer==="client"){let a=Qee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=jM(r),s=jM(r,!0);n.toString().length>4096&&(n=s);let i=L1(t,n),o=tI(n)&&!tI(t.url);switch(e){case"origin":return s??jM(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=rI(t);return L1(n,a)?n:tI(n)&&!tI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function jM(t,e){return Th(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function tI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function _4e(t,e){if(M1===void 0)return!0;let r=Dee(e);if(r==="no metadata"||r.length===0)return!0;let n=M4e(r),s=L4e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=M1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),U4e(A,a))return!0}return!1}var F4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Dee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=F4e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();See.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function M4e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function L4e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}function U4e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function P4e(t){}function L1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function O4e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function H4e(t){return t.controller.state==="aborted"}function G4e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function q4e(t){return g4e[t.toLowerCase()]??t}function Y4e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Th(typeof e=="string"),e}var V4e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function kee(t,e,r=0,n=1){class s{
Line truncated
|
||||
`);function y6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function B6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function b6e(t,e){P1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&O1(t,C6e,i)||i.position===t.length-4&&O1(t,I6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=Q6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",y6e(u)||(u=""),h=new m6e([d],c,{type:u})):h=d6e(Buffer.from(d)),P1(Yee(A)),P1(typeof h=="string"&&Yee(h)||f6e(h)),s.push(g6e(A,h,c))}}function Q6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Rp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=nL(o,!0,!0,a=>a===9||a===32),!h6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Rp(a=>a===32||a===9,t,e),l6e(o)){case"content-disposition":{if(r=n=null,!O1(t,E6e,e)||(e.position+=17,r=Jee(t,e),r===null))return"failure";if(O1(t,Wee,e)){let a=e.position+Wee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Jee(t,e),n===null))return"failure"}break}case"content-type":{let a=Rp(A=>A!==10&&A!==13,t,e);a=nL(a,!1,!0,A=>A===9||A===32),s=Vee(a);break}case"content-transfer-encoding":{let a=Rp(A=>A!==10&&A!==13,t,e);a=nL(a,!1,!0,A=>A===9||A===32),i=Vee(a);break}default:Rp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Jee(t,e){P1(t[e.position-1]===34);let r=Rp(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function Rp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function nL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function O1(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}zee.exports={multipartFormDataParser:b6e,validateBoundary:B6e}});var vp=E((SYt,ite)=>{"use strict";var iI=dt(),{ReadableStreamFrom:w6e,isBlobLike:Kee,isReadableStreamLike:S6e,readableStreamClose:N6e,createDeferredPromise:T6e,fullyReadBody:x6e,extractMimeType:R6e,utf8DecodeBytes:Zee}=Ni(),{FormData:$ee}=sI(),{kState:kp}=Cl(),{webidl:D6e}=Wn(),{Blob:k6e}=b("node:buffer"),sL=b("node:assert"),{isErrored:ete,isDisturbed:v6e}=b("node:stream"),{isArrayBuffer:_6e}=b("node:util/types"),{serializeAMimeType:F6e}=$s(),{multipartFormDataParser:M6e}=jee(),iL;try{let t=b("node:crypto");iL=e=>t.randomInt(0,e)}catch{iL=t=>Math.floor(Math.random(t))}var H1=new TextEncoder;function L6e(){}var tte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,rte;tte&&(rte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!v6e(e)&&!ete(e)&&e.cancel("Response object has been garbage collected").catch(L6e)}));function nte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Kee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?H1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>N6e(A))},start(){},type:"bytes"}),sL(S6e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(_6e(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(iI.isFormDataLike(t)){let A=`----formdata-undici-0${`${iL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
|
||||
var WOe=Object.create;var eM=Object.defineProperty;var JOe=Object.getOwnPropertyDescriptor;var zOe=Object.getOwnPropertyNames;var jOe=Object.getPrototypeOf,KOe=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ia=(t,e)=>{for(var r in e)eM(t,r,{get:e[r],enumerable:!0})},$Oe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zOe(e))!KOe.call(t,n)&&n!==r&&eM(t,n,{get:()=>e[n],enumerable:!(s=JOe(e,n))||s.enumerable});return t};var fe=(t,e,r)=>(r=t!=null?WOe(jOe(t)):{},$Oe(e||!t||!t.__esModule?eM(r,"default",{value:t,enumerable:!0}):r,t));var GX=E(Ip=>{"use strict";var tYt=b("net"),s3e=b("tls"),sM=b("http"),PX=b("https"),n3e=b("events"),rYt=b("assert"),i3e=b("util");Ip.httpOverHttp=o3e;Ip.httpsOverHttp=a3e;Ip.httpOverHttps=A3e;Ip.httpsOverHttps=c3e;function o3e(t){var e=new Kc(t);return e.request=sM.request,e}function a3e(t){var e=new Kc(t);return e.request=sM.request,e.createSocket=OX,e.defaultPort=443,e}function A3e(t){var e=new Kc(t);return e.request=PX.request,e}function c3e(t){var e=new Kc(t);return e.request=PX.request,e.createSocket=OX,e.defaultPort=443,e}function Kc(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||sM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=HX(n,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}i3e.inherits(Kc,n3e.EventEmitter);Kc.prototype.addRequest=function(e,r,s,n){var i=this,o=nM({request:e},i.options,HX(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};Kc.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=nM({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),El("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){El("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}if(h.length>0){El("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),s.removeSocket(n);return}return El("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}function u(l){o.removeAllListeners(),El(`tunneling socket could not be established, cause=%s
|
||||
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}};Kc.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function OX(t,e){var r=this;Kc.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=nM({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=s3e.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function HX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function nM(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var El;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?El=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)}:El=function(){};Ip.debug=El});var iM=E((nYt,qX)=>{qX.exports=GX()});var Ir=E((iYt,YX)=>{YX.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 Lt=E((oYt,gZ)=>{"use strict";var VX=Symbol.for("undici.error.UND_ERR"),yr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[VX]===!0}[VX]=!0},WX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),oM=class extends yr{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[WX]===!0}[WX]=!0},JX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),aM=class extends yr{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[JX]===!0}[JX]=!0},zX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),AM=class extends yr{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[zX]===!0}[zX]=!0},jX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),cM=class extends yr{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jX]===!0}[jX]=!0},KX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),uM=class extends yr{constructor(e,r,s,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.st
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function w4e(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(c4e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function S4e(){return"allowed"}function N4e(){return"success"}function T4e(){return"success"}function x4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function R4e(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&&tL(t.origin)&&!tL(iI(t))&&(e=null);break;case"same-origin":G1(t,iI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Rp(t,e){return t}function D4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Rp(t.domainLookupStartTime,r),domainLookupEndTime:Rp(t.domainLookupEndTime,r),connectionStartTime:Rp(t.connectionStartTime,r),connectionEndTime:Rp(t.connectionEndTime,r),secureConnectionStartTime:Rp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function k4e(t){return Rp(f4e.now(),t)}function v4e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function xee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function _4e(t){return{referrerPolicy:t.referrerPolicy}}function F4e(t){let e=t.referrerPolicy;Rh(e);let r=null;if(t.referrer==="client"){let a=bee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=eL(r),n=eL(r,!0);s.toString().length>4096&&(s=n);let i=G1(t,s),o=nI(s)&&!nI(t.url);switch(e){case"origin":return n??eL(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=iI(t);return G1(s,a)?s:nI(s)&&!nI(a)?"no-referrer":n}default:return o?"no-referrer":n}}function eL(t,e){return Rh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function nI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function M4e(t,e){if(H1===void 0)return!0;let r=Ree(e);if(r==="no metadata"||r.length===0)return!0;let s=U4e(r),n=P4e(r,s);for(let i of n){let o=i.algo,a=i.hash,A=H1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),O4e(A,a))return!0}return!1}var L4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ree(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=L4e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();wee.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function U4e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function P4e(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function O4e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function H4e(t){}function G1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function G4e(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}function q4e(t){return t.controller.state==="aborted"}function Y4e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function V4e(t){return m4e[t.toLowerCase()]??t}function W4e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Rh(typeof e=="string"),e}var J4e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Dee(t,e,r=0,s=1){class n{
Line truncated
|
||||
`);function b6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function Q6e(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function w6e(t,e){Y1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&V1(t,y6e,i)||i.position===t.length-4&&V1(t,B6e,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=S6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(s.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",b6e(u)||(u=""),h=new C6e([d],c,{type:u})):h=f6e(Buffer.from(d)),Y1(qee(A)),Y1(typeof h=="string"&&qee(h)||p6e(h)),n.push(m6e(A,h,c))}}function S6e(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=kp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=AL(o,!0,!0,a=>a===9||a===32),!g6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,kp(a=>a===32||a===9,t,e),h6e(o)){case"content-disposition":{if(r=s=null,!V1(t,I6e,e)||(e.position+=17,r=Wee(t,e),r===null))return"failure";if(V1(t,Vee,e)){let a=e.position+Vee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=Wee(t,e),s===null))return"failure"}break}case"content-type":{let a=kp(A=>A!==10&&A!==13,t,e);a=AL(a,!1,!0,A=>A===9||A===32),n=Yee(a);break}case"content-transfer-encoding":{let a=kp(A=>A!==10&&A!==13,t,e);a=AL(a,!1,!0,A=>A===9||A===32),i=Yee(a);break}default:kp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Wee(t,e){Y1(t[e.position-1]===34);let r=kp(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function kp(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function AL(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function V1(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}Jee.exports={multipartFormDataParser:w6e,validateBoundary:Q6e}});var Fp=E((DYt,nte)=>{"use strict";var AI=lt(),{ReadableStreamFrom:N6e,isBlobLike:jee,isReadableStreamLike:T6e,readableStreamClose:x6e,createDeferredPromise:R6e,fullyReadBody:D6e,extractMimeType:k6e,utf8DecodeBytes:Xee}=Qi(),{FormData:Kee}=aI(),{kState:_p}=Cl(),{webidl:v6e}=Ws(),{Blob:_6e}=b("node:buffer"),cL=b("node:assert"),{isErrored:Zee,isDisturbed:F6e}=b("node:stream"),{isArrayBuffer:M6e}=b("node:util/types"),{serializeAMimeType:L6e}=Jn(),{multipartFormDataParser:U6e}=zee(),uL;try{let t=b("node:crypto");uL=e=>t.randomInt(0,e)}catch{uL=t=>Math.floor(Math.random(t))}var W1=new TextEncoder;function P6e(){}var ete=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,tte;ete&&(tte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!F6e(e)&&!Zee(e)&&e.cancel("Response object has been garbage collected").catch(P6e)}));function rte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof n=="string"?W1.encode(n):n;c.byteLength&&A.enqueue(c),queueMicrotask(()=>x6e(A))},start(){},type:"bytes"}),cL(T6e(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(M6e(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(AI.isFormDataLike(t)){let A=`----formdata-undici-0${`${uL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
|
||||
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=H1.encode(c+`; name="${u(l(I))}"\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=W1.encode(c+`; name="${u(l(I))}"\r
|
||||
\r
|
||||
${l(m)}\r
|
||||
`);d.push(C),i+=C.byteLength}else{let C=H1.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
|
||||
`);d.push(C),i+=C.byteLength}else{let C=W1.encode(`${c}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
|
||||
Content-Type: ${m.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=H1.encode(`--${A}--\r
|
||||
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Kee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(iI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:w6e(t)}if((typeof s=="string"||iI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!ete(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function U6e(t,e=!1){return t instanceof ReadableStream&&(sL(!iI.isDisturbed(t),"The body has already been consumed."),sL(!t.locked,"The stream is locked.")),nte(t,e)}function P6e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function O6e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function H6e(t){return{blob(){return Dp(this,r=>{let n=Xee(this);return n===null?n="":n&&(n=F6e(n)),new k6e([r],{type:n})},t)},arrayBuffer(){return Dp(this,r=>new Uint8Array(r).buffer,t)},text(){return Dp(this,Zee,t)},json(){return Dp(this,q6e,t)},formData(){return Dp(this,r=>{let n=Xee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=M6e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new $ee;return i[kp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new $ee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Dp(this,r=>new Uint8Array(r),t)}}}function G6e(t){Object.assign(t.prototype,H6e(t))}async function Dp(t,e,r){if(D6e.brandCheck(t,r),ste(t))throw new TypeError("Body is unusable: Body has already been read");O6e(t[kp]);let n=T6e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[kp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await x6e(t[kp].body,i,s),n.promise)}function ste(t){let e=t[kp].body;return e!=null&&(e.stream.locked||iI.isDisturbed(e.stream))}function q6e(t){return JSON.parse(Zee(t))}function Xee(t){let e=t[kp].headersList,r=R6e(e);return r==="failure"?null:r}ite.exports={extractBody:nte,safelyExtractBody:U6e,cloneBody:P6e,mixinBody:G6e,streamRegistry:rte,hasFinalizationRegistry:tte,bodyUnusable:ste}});var pte=E((NYt,gte)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:ote}=Ip(),oL=HM(),{RequestContentLengthMismatchError:xh,ResponseContentLengthMismatchError:Y6e,RequestAbortedError:dte,HeadersTimeoutError:V6e,HeadersOverflowError:W6e,SocketError:J1,InformationalError:_p,BodyTimeoutError:J6e,HTTPParserError:z6e,ResponseExceededMaxSizeError:j6e}=Lt(),{kUrl:hte,kReset:Xs,kClient:uL,kParser:Fr,kBlocking:AI,kRunning:is,kPending:K6e,kSize:ate,kWriting:yl,kQueue:Ia,kNoRef:oI,kKeepAliveDefaultTimeout:$6e,kHostHeader:X6e,kPendingIdx:Z6e,kRunningIdx:mo,kError:Eo,kPipelining:V1,kSocket:Fp,kKeepAliveTimeoutValue:z1,kMaxHeadersSize:aL,kKeepAliveMaxTimeout:e5e,kKeepAliveTimeoutThreshold:t5e,kHeadersTimeout:r5e,kBodyTimeout:n5e,kStrictContentLength:lL,kMaxRequests:Ate,kCounter:s5e,kMaxResponseSize:i5e,kOnError:o5e,kResume:Il,kHTTPContext:fte}=yr(),hA=ree(),a5e=Buffer.alloc(0),G1=Buffer[Symbol.species],q1=Xe.addListener,A5e=Xe.removeAllListeners,AL;async function c5e(){let t=process.env.JEST_WORKER_ID?YM():void 0,e;try{e=await WebAssembly.compile(iee())}catch{e=await WebAssembly.compile(t||YM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(hn.ptr===r);let i=n-gA+fA.byteOffset;return hn.onStatus(new G1(fA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(hn.ptr===r),hn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(hn.ptr===r);let i=n-gA+fA.byteOffset;return hn.onHeaderField(new G1(fA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(hn.ptr===r);let i=n-gA+fA.byteOffset;return hn.onHeaderValue(new G1(fA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(hn.ptr===r),hn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(hn.ptr===r);let i=n-gA+fA.byteOffset;return hn.onBody(new G1(fA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(hn.ptr===r),hn.onMessageComplete()||0)}})}var cL=null,dL=c5e();dL.catch();var hn=null,fA=null,Y1=0,gA=null,u5e=0,aI=1,Mp=2|aI,W1=4|aI,hL=8|u5e,fL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[aL])&&e[aL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(hA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi
Line truncated
|
||||
`;if(typeof s=="string"?p+=`host: ${s}\r
|
||||
`:p+=t[X6e],i?p+=`connection: upgrade\r
|
||||
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=W1.encode(`--${A}--\r
|
||||
`);d.push(p),i+=p.byteLength,f&&(i=null),n=t,s=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(jee(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(AI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:N6e(t)}if((typeof n=="string"||AI.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let A;r=new ReadableStream({async start(){A=s(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Zee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function O6e(t,e=!1){return t instanceof ReadableStream&&(cL(!AI.isDisturbed(t),"The body has already been consumed."),cL(!t.locked,"The stream is locked.")),rte(t,e)}function H6e(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function G6e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function q6e(t){return{blob(){return vp(this,r=>{let s=$ee(this);return s===null?s="":s&&(s=L6e(s)),new _6e([r],{type:s})},t)},arrayBuffer(){return vp(this,r=>new Uint8Array(r).buffer,t)},text(){return vp(this,Xee,t)},json(){return vp(this,V6e,t)},formData(){return vp(this,r=>{let s=$ee(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=U6e(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Kee;return i[_p]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new Kee;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return vp(this,r=>new Uint8Array(r),t)}}}function Y6e(t){Object.assign(t.prototype,q6e(t))}async function vp(t,e,r){if(v6e.brandCheck(t,r),ste(t))throw new TypeError("Body is unusable: Body has already been read");G6e(t[_p]);let s=R6e(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[_p].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await D6e(t[_p].body,i,n),s.promise)}function ste(t){let e=t[_p].body;return e!=null&&(e.stream.locked||AI.isDisturbed(e.stream))}function V6e(t){return JSON.parse(Xee(t))}function $ee(t){let e=t[_p].headersList,r=k6e(e);return r==="failure"?null:r}nte.exports={extractBody:rte,safelyExtractBody:O6e,cloneBody:H6e,mixinBody:Y6e,streamRegistry:tte,hasFinalizationRegistry:ete,bodyUnusable:ste}});var gte=E((kYt,fte)=>{"use strict";var Ge=b("node:assert"),$e=lt(),{channels:ite}=Bp(),lL=WM(),{RequestContentLengthMismatchError:Dh,ResponseContentLengthMismatchError:W6e,RequestAbortedError:lte,HeadersTimeoutError:J6e,HeadersOverflowError:z6e,SocketError:X1,InformationalError:Mp,BodyTimeoutError:j6e,HTTPParserError:K6e,ResponseExceededMaxSizeError:$6e}=Lt(),{kUrl:dte,kReset:zn,kClient:gL,kParser:Fr,kBlocking:lI,kRunning:on,kPending:X6e,kSize:ote,kWriting:yl,kQueue:ya,kNoRef:cI,kKeepAliveDefaultTimeout:Z6e,kHostHeader:e5e,kPendingIdx:t5e,kRunningIdx:go,kError:po,kPipelining:K1,kSocket:Lp,kKeepAliveTimeoutValue:Z1,kMaxHeadersSize:dL,kKeepAliveMaxTimeout:r5e,kKeepAliveTimeoutThreshold:s5e,kHeadersTimeout:n5e,kBodyTimeout:i5e,kStrictContentLength:pL,kMaxRequests:ate,kCounter:o5e,kMaxResponseSize:a5e,kOnError:A5e,kResume:Il,kHTTPContext:hte}=Ir(),fA=tee(),c5e=Buffer.alloc(0),J1=Buffer[Symbol.species],z1=$e.addListener,u5e=$e.removeAllListeners,hL;async function l5e(){let t=process.env.JEST_WORKER_ID?jM():void 0,e;try{e=await WebAssembly.compile(nee())}catch{e=await WebAssembly.compile(t||jM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onStatus(new J1(gA.buffer,i,n))||0},wasm_on_message_begin:r=>(Ge(hs.ptr===r),hs.onMessageBegin()||0),wasm_on_header_field:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onHeaderField(new J1(gA.buffer,i,n))||0},wasm_on_header_value:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onHeaderValue(new J1(gA.buffer,i,n))||0},wasm_on_headers_complete:(r,s,n,i)=>(Ge(hs.ptr===r),hs.onHeadersComplete(s,!!n,!!i)||0),wasm_on_body:(r,s,n)=>{Ge(hs.ptr===r);let i=s-pA+gA.byteOffset;return hs.onBody(new J1(gA.buffer,i,n))||0},wasm_on_message_complete:r=>(Ge(hs.ptr===r),hs.onMessageComplete()||0)}})}var fL=null,mL=l5e();mL.catch();var hs=null,gA=null,j1=0,pA=null,d5e=0,uI=1,Up=2|uI,$1=4|uI,EL=8|d5e,CL=class{constructor(e,r,{exports:s}){Ge(Number.isFinite(e[dL])&&e[dL]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(fA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi
Line truncated
|
||||
`;if(typeof n=="string"?p+=`host: ${n}\r
|
||||
`:p+=t[e5e],i?p+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[V1]&&!h[Xs]?p+=`connection: keep-alive\r
|
||||
`:t[K1]&&!h[zn]?p+=`connection: keep-alive\r
|
||||
`:p+=`connection: close\r
|
||||
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
|
||||
`;else p+=`${m}: ${C}\r
|
||||
`}return ote.sendHeaders.hasSubscribers&&ote.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?ute(f,null,t,e,h,u,p,l):Xe.isBuffer(A)?ute(f,A,t,e,h,u,p,l):Xe.isBlobLike(A)?typeof A.stream=="function"?lte(f,A.stream(),t,e,h,u,p,l):p5e(f,A,t,e,h,u,p,l):Xe.isStream(A)?g5e(f,A,t,e,h,u,p,l):Xe.isIterable(A)?lte(f,A,t,e,h,u,p,l):Ge(!1),!0}function g5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new j1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Xe.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new dte;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[yl]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function ute(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`}return ite.sendHeaders.hasSubscribers&&ite.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?cte(f,null,t,e,h,u,p,l):$e.isBuffer(A)?cte(f,A,t,e,h,u,p,l):$e.isBlobLike(A)?typeof A.stream=="function"?ute(f,A.stream(),t,e,h,u,p,l):E5e(f,A,t,e,h,u,p,l):$e.isStream(A)?m5e(f,A,t,e,h,u,p,l):$e.isIterable(A)?ute(f,A,t,e,h,u,p,l):Ge(!1),!0}function m5e(t,e,r,s,n,i,o,a){Ge(i!==0||r[on]===0,"stream body cannot be pipelined");let A=!1,c=new eS({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){$e.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new lte;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(n.destroyed||n[yl]&&r[on]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function cte(t,e,r,s,n,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Xs]=!0)):i===0?s.write(`${o}content-length: 0\r
|
||||
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[zn]=!0)):i===0?n.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
|
||||
`,"latin1")),n.onRequestSent(),r[Il]()}catch(A){t(A)}}async function p5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`,"latin1"):(Ge(i===null,"no body must not have content length"),n.write(`${o}\r
|
||||
`,"latin1")),s.onRequestSent(),r[Il]()}catch(A){t(A)}}async function E5e(t,e,r,s,n,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Dh;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Xs]=!0),r[Il]()}catch(A){t(A)}}async function lte(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Eo]?h(s[Eo]):A=d});s.on("close",c).on("drain",c);let l=new j1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Eo])throw s[Eo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var j1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[yl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Eo])throw r[Eo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[lL])throw new xh;process.emitWarning(new xh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Xs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${A}content-length: ${s}\r
|
||||
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[zn]=!0),r[Il]()}catch(A){t(A)}}async function ute(t,e,r,s,n,i,o,a){Ge(i!==0||r[on]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),n[po]?h(n[po]):A=d});n.on("close",c).on("drain",c);let l=new eS({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[po])throw n[po];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var eS=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[yl]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[po])throw r[po];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[pL])throw new Dh;process.emitWarning(new Dh)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[zn]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${A}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&r.write(`\r
|
||||
`,"latin1")),n===null&&r.write(`\r
|
||||
${c.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Mp&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yl]=!1,e[Eo])throw e[Eo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Fr].timeout&&r[Fr].timeoutType===Up&&r[Fr].timeout.refresh&&r[Fr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yl]=!1,e[po])throw e[po];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${o}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[lL])throw new xh;process.emitWarning(new xh)}e[Fr].timeout&&e[Fr].timeoutType===Mp&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),n[Il]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[yl]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};gte.exports=l5e});var Qte=E((TYt,bte)=>{"use strict";var Co=b("node:assert"),{pipeline:m5e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:gL,RequestAbortedError:mte,SocketError:cI,InformationalError:pL}=Lt(),{kUrl:K1,kReset:X1,kClient:Lp,kRunning:Z1,kPending:E5e,kQueue:Bl,kPendingIdx:mL,kRunningIdx:ya,kError:ba,kSocket:Nn,kStrictContentLength:C5e,kOnError:EL,kMaxConcurrentStreams:Bte,kHTTP2Session:Ba,kResume:bl,kSize:I5e,kHTTPContext:y5e}=yr(),tu=Symbol("open streams"),Ete,Cte=!1,$1;try{$1=b("node:http2")}catch{$1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:B5e,HTTP2_HEADER_METHOD:b5e,HTTP2_HEADER_PATH:Q5e,HTTP2_HEADER_SCHEME:w5e,HTTP2_HEADER_CONTENT_LENGTH:S5e,HTTP2_HEADER_EXPECT:N5e,HTTP2_HEADER_STATUS:T5e}}=$1;function x5e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function R5e(t,e){t[Nn]=e,Cte||(Cte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=$1.connect(t[K1],{createConnection:()=>e,peerMaxConcurrentStreams:t[Bte]});r[tu]=0,r[Lp]=t,r[Nn]=e,mt.addListener(r,"error",k5e),mt.addListener(r,"frameError",v5e),mt.addListener(r,"end",_5e),mt.addListener(r,"goaway",F5e),mt.addListener(r,"close",function(){let{[Lp]:s}=this,{[Nn]:i}=s,o=this[Nn][ba]||this[ba]||new cI("closed",mt.getSocketInfo(i));if(s[Ba]=null,s.destroyed){Co(s[E5e]===0);let a=s[Bl].splice(s[ya]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[Ba]=r,e[Ba]=r,mt.addListener(e,"error",function(s){Co(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ba]=s,this[Lp][EL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new cI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[ba]||new cI("closed",mt.getSocketInfo(this));t[Nn]=null,this[Ba]!=null&&this[Ba].destroy(s),t[mL]=t[ya],Co(t[Z1]===0),t.emit("disconnect",t[K1],[t],s),t[bl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return L5e(t,...s)},resume(){D5e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function D5e(t){let e=t[Nn];e?.destroyed===!1&&(t[I5e]===0&&t[Bte]===0?(e.unref(),t[Ba].unref()):(e.ref(),t[Ba].ref()))}function k5e(t){Co(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Nn][ba]=t,this[Lp][EL](t)}function v5e(t,e,r){if(r===0){let n=new pL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Nn][ba]=n,this[Lp][EL](n)}}function _5e(){let t=new cI("other side closed",mt.getSocketInfo(this[Nn]));this.destroy(t),mt.destroy(this[Nn],t)}function F5e(t){let e=this[ba]||new cI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Lp];if(r[Nn]=null,r[y5e]=null,this[Ba]!=null&&(this[Ba].destroy(e),this[Ba]=null),mt.destroy(this[Nn],e),r[ya]<r[Bl].length){let n=r[Bl][r[ya]];r[Bl][r[ya]++]=null,mt.errorRequest(r,n,e),r[mL]=r[ya]}Co(r[Z1]===0),r.emit("disconnect",r[K1],[r],e),r[bl]()}function M5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function L5e(t,e){let r=t[Ba],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<c.length;N+=2){let M=c[N+0],G=c[N+1];if(Array.isArray(G))for(let k=0;k<G.length;k++)l[M]?l[M]+=`,${G[k]}`:l[M]=G[k];else l[M]=G}let d,{hostname:h,port:f}=t[K1];l[B5e]=i||`${h}${f?`:${f}`:""}`,l[b5e]=n;let p=N=>{e.aborted||e.completed||(N=N||new mte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[Bl][t[ya]++]=null,t[bl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[tu],t[Bl][t[ya]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[tu],t[Bl][t[ya]++]=null}),d.once("close",()=>{r[tu]-=1,r[tu]===0&&r.unref()}),!0;l[Q5e]=s,l[w5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){Ete??=vp().extractBody;let[N,M]=Ete(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),M5e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[C5e])return mt.errorRequest(t,e,new gL),!1;process.emitWarning(new gL)}m!=null&&(Co(u,"no body must not have content length"),l[S5e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[N5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont
Line truncated
|
||||
`,this[cHe]=A??3e5,this[AHe]=s??3e5,this[uHe]=C??!0,this[lHe]=N,this[BL]=G,this[wl]=null,this[pHe]=P>-1?P:-1,this[EHe]=Z??100,this[zr]=null,this[Qa]=[],this[nu]=0,this[wa]=0,this[hI]=Ae=>QL(this,Ae),this[mHe]=Ae=>Mte(this,Ae)}get pipelining(){return this[nS]}set pipelining(e){this[nS]=e,this[hI](!0)}get[pI](){return this[Qa].length-this[wa]}get[gI](){return this[wa]-this[nu]}get[fI](){return this[Qa].length-this[nu]}get[tHe](){return!!this[zr]&&!this[Pp]&&!this[zr].destroyed}get[yL](){return!!(this[zr]?.busy(null)||this[fI]>=(Fte(this)||1)||this[pI]>0)}[eHe](e){Lte(this),this.once("connect",e)}[gHe](e,r){let n=e.origin||this[mA].origin,s=new z5e(n,e,r);return this[Qa].push(s),this[Dh]||(Rh.bodyLength(s.body)==null&&Rh.isIterable(s.body)?(this[Dh]=1,queueMicrotask(()=>QL(this))):this[hI](!0)),this[Dh]&&this[Sl]!==2&&this[yL]&&(this[Sl]=2),this[Sl]<2}async[hHe](){return new Promise(e=>{this[fI]?this[wl]=e:e(null)})}async[fHe](e){return new Promise(r=>{let n=this[Qa].splice(this[wa]);for(let i=0;i<n.length;i++){let o=n[i];Rh.errorRequest(this,o,e)}let s=()=>{this[wl]&&(this[wl](),this[wl]=null),r(null)};this[zr]?(this[zr].destroy(e,s),this[zr]=null):queueMicrotask(s),this[hI]()})}},yHe=rS();function Mte(t,e){if(t[gI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ru(t[wa]===t[nu]);let r=t[Qa].splice(t[nu]);for(let n=0;n<r.length;n++){let s=r[n];Rh.errorRequest(t,s,e)}ru(t[fI]===0)}}async function Lte(t){ru(!t[Pp]),ru(!t[zr]);let{host:e,hostname:r,protocol:n,port:s}=t[mA];if(r[0]==="["){let i=r.indexOf("]");ru(i!==-1);let o=r.substring(1,i);ru(_te.isIP(o)),r=o}t[Pp]=!0,Up.beforeConnect.hasSubscribers&&Up.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Ql],localAddress:t[dI]},connector:t[lI]});try{let i=await new Promise((o,a)=>{t[lI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ql],localAddress:t[dI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Rh.destroy(i.on("error",kte),new $5e);return}ru(i);try{t[zr]=i.alpnProtocol==="h2"?await IHe(t,i):await CHe(t,i)}catch(o){throw i.destroy().on("error",kte),o}t[Pp]=!1,i[dHe]=0,i[BL]=t[BL],i[Z5e]=t,i[nHe]=null,Up.connected.hasSubscribers&&Up.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Ql],localAddress:t[dI]},connector:t[lI],socket:i}),t.emit("connect",t[mA],[t])}catch(i){if(t.destroyed)return;if(t[Pp]=!1,Up.connectError.hasSubscribers&&Up.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[zr]?.version,servername:t[Ql],localAddress:t[dI]},connector:t[lI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ru(t[gI]===0);t[pI]>0&&t[Qa][t[wa]].servername===t[Ql];){let o=t[Qa][t[wa]++];Rh.errorRequest(t,o,i)}else Mte(t,i);t.emit("connectionError",t[mA],[t],i)}t[hI]()}function vte(t){t[Sl]=0,t.emit("drain",t[mA],[t])}function QL(t,e){t[Dh]!==2&&(t[Dh]=2,BHe(t,e),t[Dh]=0,t[nu]>256&&(t[Qa].splice(0,t[nu]),t[wa]-=t[nu],t[nu]=0))}function BHe(t,e){for(;;){if(t.destroyed){ru(t[pI]===0);return}if(t[wl]&&!t[fI]){t[wl](),t[wl]=null;return}if(t[zr]&&t[zr].resume(),t[yL])t[Sl]=2;else if(t[Sl]===2){e?(t[Sl]=1,queueMicrotask(()=>vte(t))):vte(t);continue}if(t[pI]===0||t[gI]>=(Fte(t)||1))return;let r=t[Qa][t[wa]];if(t[mA].protocol==="https:"&&t[Ql]!==r.servername){if(t[gI]>0)return;t[Ql]=r.servername,t[zr]?.destroy(new K5e("servername changed"),()=>{t[zr]=null,QL(t)})}if(t[Pp])return;if(!t[zr]){Lte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[wa]++:t[Qa].splice(t[wa],1)}}Ute.exports=bL});var wL=E((vYt,Pte)=>{"use strict";var sS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Pte.exports=class{constructor(){this.head=this.tail=new sS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new sS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Hte=E((_Yt,Ote)=>{var{kFree:bHe,kConnected:QHe,kPending:wHe,kQueued:SHe,kRunning:NHe,kSize:THe}=yr(),kh=Symbol("pool"),SL=class{constructor(e){this[kh]=e}get connected(){return this[kh][QHe]}get free(){return this[kh][bHe]}get pending(){return this[kh][wHe]}get queued(){return this[kh][SHe]}get running(){return this[kh][NHe]}get size(){return this[kh][THe]}};Ote.exports=SL});var kL=E((FYt,$te)=>{"use strict";var xHe=Qp(),RHe=wL(),{kConnected:NL,kSize:Gte,kRunning:qte,kPending:Yte,kQueued:mI,kBusy:DHe,kFree:kHe,kUrl:vHe,kClose:_He,kDestroy:FHe,kDispatch:MHe}=yr(),LHe=Hte(),Zs=Symbol("clients"),Ns=Symbol("needDrain"),EI=Symbol("queue"),TL=Symbol("closed resolve"),xL=Symbol("onDrain"),Vte=Symbol("onConnect"),Wte=Symbol("onDisconnect"),Jte=Symbol("onCo
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
`,"latin1"),r!==null&&n!==r){if(s[pL])throw new Dh;process.emitWarning(new Dh)}e[Fr].timeout&&e[Fr].timeoutType===Up&&e[Fr].timeout.refresh&&e[Fr].timeout.refresh(),s[Il]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[yl]=!1,e&&(Ge(s[on]<=1,"pipeline should only contain this request"),n(e))}};fte.exports=h5e});var bte=E((vYt,Bte)=>{"use strict";var mo=b("node:assert"),{pipeline:C5e}=b("node:stream"),mt=lt(),{RequestContentLengthMismatchError:IL,RequestAbortedError:pte,SocketError:dI,InformationalError:yL}=Lt(),{kUrl:tS,kReset:sS,kClient:Pp,kRunning:nS,kPending:I5e,kQueue:Bl,kPendingIdx:BL,kRunningIdx:Ba,kError:Qa,kSocket:Ns,kStrictContentLength:y5e,kOnError:bL,kMaxConcurrentStreams:yte,kHTTP2Session:ba,kResume:bl,kSize:B5e,kHTTPContext:b5e}=Ir(),ru=Symbol("open streams"),mte,Ete=!1,rS;try{rS=b("node:http2")}catch{rS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Q5e,HTTP2_HEADER_METHOD:w5e,HTTP2_HEADER_PATH:S5e,HTTP2_HEADER_SCHEME:N5e,HTTP2_HEADER_CONTENT_LENGTH:T5e,HTTP2_HEADER_EXPECT:x5e,HTTP2_HEADER_STATUS:R5e}}=rS;function D5e(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function k5e(t,e){t[Ns]=e,Ete||(Ete=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rS.connect(t[tS],{createConnection:()=>e,peerMaxConcurrentStreams:t[yte]});r[ru]=0,r[Pp]=t,r[Ns]=e,mt.addListener(r,"error",_5e),mt.addListener(r,"frameError",F5e),mt.addListener(r,"end",M5e),mt.addListener(r,"goaway",L5e),mt.addListener(r,"close",function(){let{[Pp]:n}=this,{[Ns]:i}=n,o=this[Ns][Qa]||this[Qa]||new dI("closed",mt.getSocketInfo(i));if(n[ba]=null,n.destroyed){mo(n[I5e]===0);let a=n[Bl].splice(n[Ba]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(n,c,o)}}}),r.unref(),t[ba]=r,e[ba]=r,mt.addListener(e,"error",function(n){mo(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qa]=n,this[Pp][bL](n)}),mt.addListener(e,"end",function(){mt.destroy(this,new dI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let n=this[Qa]||new dI("closed",mt.getSocketInfo(this));t[Ns]=null,this[ba]!=null&&this[ba].destroy(n),t[BL]=t[Ba],mo(t[nS]===0),t.emit("disconnect",t[tS],[t],n),t[bl]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return P5e(t,...n)},resume(){v5e(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function v5e(t){let e=t[Ns];e?.destroyed===!1&&(t[B5e]===0&&t[yte]===0?(e.unref(),t[ba].unref()):(e.ref(),t[ba].ref()))}function _5e(t){mo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ns][Qa]=t,this[Pp][bL](t)}function F5e(t,e,r){if(r===0){let s=new yL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ns][Qa]=s,this[Pp][bL](s)}}function M5e(){let t=new dI("other side closed",mt.getSocketInfo(this[Ns]));this.destroy(t),mt.destroy(this[Ns],t)}function L5e(t){let e=this[Qa]||new dI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Pp];if(r[Ns]=null,r[b5e]=null,this[ba]!=null&&(this[ba].destroy(e),this[ba]=null),mt.destroy(this[Ns],e),r[Ba]<r[Bl].length){let s=r[Bl][r[Ba]];r[Bl][r[Ba]++]=null,mt.errorRequest(r,s,e),r[BL]=r[Ba]}mo(r[nS]===0),r.emit("disconnect",r[tS],[r],e),r[bl]()}function U5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function P5e(t,e){let r=t[ba],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<c.length;N+=2){let M=c[N+0],q=c[N+1];if(Array.isArray(q))for(let k=0;k<q.length;k++)l[M]?l[M]+=`,${q[k]}`:l[M]=q[k];else l[M]=q}let d,{hostname:h,port:f}=t[tS];l[Q5e]=i||`${h}${f?`:${f}`:""}`,l[w5e]=s;let p=N=>{e.aborted||e.completed||(N=N||new pte,mt.errorRequest(t,e,N),d!=null&&mt.destroy(d,N),mt.destroy(u,N),t[Bl][t[Ba]++]=null,t[bl]())};try{e.onConnect(p)}catch(N){mt.errorRequest(t,e,N)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ru],t[Bl][t[Ba]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ru],t[Bl][t[Ba]++]=null}),d.once("close",()=>{r[ru]-=1,r[ru]===0&&r.unref()}),!0;l[S5e]=n,l[N5e]="https";let I=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){mte??=Fp().extractBody;let[N,M]=mte(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),U5e(s)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[y5e])return mt.errorRequest(t,e,new IL),!1;process.emitWarning(new IL)}m!=null&&(mo(u,"no body must not have content length"),l[T5e]=`${m}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(l[x5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont
Line truncated
|
||||
`,this[lHe]=A??3e5,this[uHe]=n??3e5,this[dHe]=C??!0,this[hHe]=N,this[NL]=q,this[wl]=null,this[EHe]=P>-1?P:-1,this[IHe]=Z??100,this[zr]=null,this[wa]=[],this[nu]=0,this[Sa]=0,this[pI]=Ae=>xL(this,Ae),this[CHe]=Ae=>Fte(this,Ae)}get pipelining(){return this[AS]}set pipelining(e){this[AS]=e,this[pI](!0)}get[CI](){return this[wa].length-this[Sa]}get[EI](){return this[Sa]-this[nu]}get[mI](){return this[wa].length-this[nu]}get[sHe](){return!!this[zr]&&!this[Hp]&&!this[zr].destroyed}get[SL](){return!!(this[zr]?.busy(null)||this[mI]>=(_te(this)||1)||this[CI]>0)}[rHe](e){Mte(this),this.once("connect",e)}[mHe](e,r){let s=e.origin||this[EA].origin,n=new K5e(s,e,r);return this[wa].push(n),this[vh]||(kh.bodyLength(n.body)==null&&kh.isIterable(n.body)?(this[vh]=1,queueMicrotask(()=>xL(this))):this[pI](!0)),this[vh]&&this[Sl]!==2&&this[SL]&&(this[Sl]=2),this[Sl]<2}async[gHe](){return new Promise(e=>{this[mI]?this[wl]=e:e(null)})}async[pHe](e){return new Promise(r=>{let s=this[wa].splice(this[Sa]);for(let i=0;i<s.length;i++){let o=s[i];kh.errorRequest(this,o,e)}let n=()=>{this[wl]&&(this[wl](),this[wl]=null),r(null)};this[zr]?(this[zr].destroy(e,n),this[zr]=null):queueMicrotask(n),this[pI]()})}},bHe=aS();function Fte(t,e){if(t[EI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[Sa]===t[nu]);let r=t[wa].splice(t[nu]);for(let s=0;s<r.length;s++){let n=r[s];kh.errorRequest(t,n,e)}su(t[mI]===0)}}async function Mte(t){su(!t[Hp]),su(!t[zr]);let{host:e,hostname:r,protocol:s,port:n}=t[EA];if(r[0]==="["){let i=r.indexOf("]");su(i!==-1);let o=r.substring(1,i);su(vte.isIP(o)),r=o}t[Hp]=!0,Op.beforeConnect.hasSubscribers&&Op.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[zr]?.version,servername:t[Ql],localAddress:t[gI]},connector:t[fI]});try{let i=await new Promise((o,a)=>{t[fI]({host:e,hostname:r,protocol:s,port:n,servername:t[Ql],localAddress:t[gI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){kh.destroy(i.on("error",Dte),new Z5e);return}su(i);try{t[zr]=i.alpnProtocol==="h2"?await BHe(t,i):await yHe(t,i)}catch(o){throw i.destroy().on("error",Dte),o}t[Hp]=!1,i[fHe]=0,i[NL]=t[NL],i[tHe]=t,i[iHe]=null,Op.connected.hasSubscribers&&Op.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[zr]?.version,servername:t[Ql],localAddress:t[gI]},connector:t[fI],socket:i}),t.emit("connect",t[EA],[t])}catch(i){if(t.destroyed)return;if(t[Hp]=!1,Op.connectError.hasSubscribers&&Op.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[zr]?.version,servername:t[Ql],localAddress:t[gI]},connector:t[fI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[EI]===0);t[CI]>0&&t[wa][t[Sa]].servername===t[Ql];){let o=t[wa][t[Sa]++];kh.errorRequest(t,o,i)}else Fte(t,i);t.emit("connectionError",t[EA],[t],i)}t[pI]()}function kte(t){t[Sl]=0,t.emit("drain",t[EA],[t])}function xL(t,e){t[vh]!==2&&(t[vh]=2,QHe(t,e),t[vh]=0,t[nu]>256&&(t[wa].splice(0,t[nu]),t[Sa]-=t[nu],t[nu]=0))}function QHe(t,e){for(;;){if(t.destroyed){su(t[CI]===0);return}if(t[wl]&&!t[mI]){t[wl](),t[wl]=null;return}if(t[zr]&&t[zr].resume(),t[SL])t[Sl]=2;else if(t[Sl]===2){e?(t[Sl]=1,queueMicrotask(()=>kte(t))):kte(t);continue}if(t[CI]===0||t[EI]>=(_te(t)||1))return;let r=t[wa][t[Sa]];if(t[EA].protocol==="https:"&&t[Ql]!==r.servername){if(t[EI]>0)return;t[Ql]=r.servername,t[zr]?.destroy(new X5e("servername changed"),()=>{t[zr]=null,xL(t)})}if(t[Hp])return;if(!t[zr]){Mte(t);return}if(t[zr].destroyed||t[zr].busy(r))return;!r.aborted&&t[zr].write(r)?t[Sa]++:t[wa].splice(t[Sa],1)}}Lte.exports=TL});var RL=E((UYt,Ute)=>{"use strict";var cS=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Ute.exports=class{constructor(){this.head=this.tail=new cS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new cS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ote=E((PYt,Pte)=>{var{kFree:wHe,kConnected:SHe,kPending:NHe,kQueued:THe,kRunning:xHe,kSize:RHe}=Ir(),_h=Symbol("pool"),DL=class{constructor(e){this[_h]=e}get connected(){return this[_h][SHe]}get free(){return this[_h][wHe]}get pending(){return this[_h][NHe]}get queued(){return this[_h][THe]}get running(){return this[_h][xHe]}get size(){return this[_h][RHe]}};Pte.exports=DL});var LL=E((OYt,Kte)=>{"use strict";var DHe=Sp(),kHe=RL(),{kConnected:kL,kSize:Hte,kRunning:Gte,kPending:qte,kQueued:II,kBusy:vHe,kFree:_He,kUrl:FHe,kClose:MHe,kDestroy:LHe,kDispatch:UHe}=Ir(),PHe=Ote(),jn=Symbol("clients"),bn=Symbol("needDrain"),yI=Symbol("queue"),vL=Symbol("closed resolve"),_L=Symbol("onDrain"),Yte=Symbol("onConnect"),Vte=Symbol("onDisconnect"),Wte=Symbol("onCo
Line truncated
|
||||
${s.count} ${s.noun} ${s.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};nse.exports=kU});var BS=E((cVt,Ase)=>{"use strict";var ise=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:cqe}=Lt(),uqe=Gp();ase()===void 0&&ose(new uqe);function ose(t){if(!t||typeof t.dispatch!="function")throw new cqe("Argument agent must implement Agent");Object.defineProperty(globalThis,ise,{value:t,writable:!0,enumerable:!1,configurable:!1})}function ase(){return globalThis[ise]}Ase.exports={setGlobalDispatcher:ose,getGlobalDispatcher:ase}});var bS=E((lVt,cse)=>{"use strict";cse.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var lse=E((dVt,use)=>{"use strict";var lqe=tS();use.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new lqe(r,o,s,i);return r(a,A)}}});var hse=E((hVt,dse)=>{"use strict";var dqe=dS();dse.exports=t=>e=>function(n,s){return e(n,new dqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var gse=E((fVt,fse)=>{"use strict";var hqe=dt(),{InvalidArgumentError:fqe,RequestAbortedError:gqe}=Lt(),pqe=bS(),vU=class extends pqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new fqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=hqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new gqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function mqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new vU({maxSize:i},s);return e(n,o)}}fse.exports=mqe});var Ese=E((gVt,mse)=>{"use strict";var{isIP:Eqe}=b("node:net"),{lookup:Cqe}=b("node:dns"),Iqe=bS(),{InvalidArgumentError:Xp,InformationalError:yqe}=Lt(),pse=Math.pow(2,31)-1,_U=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new yqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){Cqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===pse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===pse?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new FU(this,e,r)}},FU=class extends Iqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${i}`;break;case"retry":$oe(i)&&(r[s]=i);break;case"id":Xoe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&$oe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Xoe(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}}};Zoe.exports={EventSourceStream:IP}});var Aae=E((WVt,aae)=>{"use strict";var{pipeline:DWe}=b("node:stream"),{fetching:kWe}=DI(),{makeRequest:vWe}=tm(),{webidl:Au}=Wn(),{EventSourceStream:_We}=eae(),{parseMIMEType:FWe}=$s(),{createFastMessageEvent:MWe}=am(),{isNetworkError:tae}=xI(),{delay:LWe}=EP(),{kEnumerableProperty:Jh}=dt(),{environmentSettingsObject:rae}=Ni(),nae=!1,sae=3e3,YI=0,iae=1,VI=2,UWe="anonymous",PWe="use-credentials",dm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=YI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Au.util.markAsUncloneable(this);let n="EventSource constructor";Au.argumentLengthCheck(arguments,1,n),nae||(nae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Au.converters.USVString(e,n,"url"),r=Au.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:sae};let s=rae,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=UWe;r.withCredentials&&(o=PWe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=rae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=vWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===VI)return;this.#r=YI;let e={request:this.#s,dispatcher:this.#a},r=n=>{tae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(tae(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?FWe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=iae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new _We({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(MWe(A.type,A.options))}});DWe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=kWe(e)}async#c(){this.#r!==VI&&(this.#r=YI,this.dispatchEvent(new Event("error")),await LWe(this.#o.reconnectionTime),this.#r===YI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){Au.brandCheck(this,t),this.#r!==VI&&(this.#r=VI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},oae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:YI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:iae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:VI,writable:!1}};Object.defineProperties(dm,oae);Object.defineProperties(dm.prototype,oae);Object.defineProperties(dm.prototype,{close:Jh,onerror:Jh,onmessage:Jh,onopen:Jh,readyState:Jh,url:Jh,withCredentials:Jh});Au.converters.EventSourceInitDict=Au.dictionaryConverter([{key:"withCredentials",converter:Au.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Au.converters.any}]);aae.exports={EventSource:dm,defaultReconnectionTime:sae}});var lN=E((JVt,Ye)=>{"use strict";var OWe=Op(),cae=jC(),HWe=Hp(),GWe=ore(),qWe=Gp(),YWe=VL(),VWe=Rre(),WWe=Mre(),uae=Lt(),uN=dt(),{InvalidArgumentError:cN}=uae,hm=Bne(),JWe=$C(),zWe=SU(),jWe=sse(),KWe=xU(),$We=hU(),XWe=dS(),{getGlobalDispatcher:lae,setGlobalDispatcher:ZWe}=BS(),eJe=bS(),tJe=tS(),rJe=rS();Object.assign(cae.prototype,hm);Ye.exports.Dispatcher=cae;Ye.exports.Client=OWe;Ye.exports.Pool=HWe;Ye.exports.BalancedPool=GWe;Ye.exports.Agent=qWe;Ye.exports.ProxyAgent=YWe;Ye.exports.EnvHttpProxyAgent=VWe;Ye.exports
Line truncated
|
||||
%s`,M,M,C,n);var G=C.type==="*"?pO:C.type==="?"?gO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+G+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),re=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);re+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==vN&&(Ke="$");var it=z+Z+Ae+Ke+re;n=it}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===vN)return[n,s];if(!s)return $je(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Mi.makeRe=function(t,e){return new an(t,e||{}).makeRe()};an.prototype.makeRe=Kje;function Kje(){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?pO:e.dot?Gje:qje,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===Zh?r:typeof o=="string"?Xje(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Mi.match=function(t,e,r){r=r||{};var n=new an(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};an.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;ry.sep!=="/"&&(e=e.split(ry.sep).join("/")),e=e.split($Ae),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};an.prototype.matchOne=function(t,e,r){return e.indexOf(Zh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};an.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===Zh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Zh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<c.length;N++){var M=c[N];M===Zh?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var G=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[G--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};an.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};an.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===Zh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function $je(t){return t.replace(/\\(.)/g,"$1")}function Xje(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ym=E((GWt,sce)=>{"use strict";var oKe="2.0.0",aKe=Number.MAX_SAFE_INTEGER||9007199254740991,AKe=16,cKe=250,uKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:AKe,MAX_SAFE_BUILD_LENGTH:cKe,MAX_SAFE_INTEGER:aKe,RELEASE_TYPES:uKe,SEMVER_SPEC_VERSION:oKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var oy=E((qWt,ice)=>{"use strict";var lKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};ice.exports=lKe});var Bm=E((wA,oce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:EO,MAX_SAFE_BUILD_LENGTH:dKe,MAX_LENGTH:hKe}=ym(),fKe=oy();wA=oce.exports={};var gKe=wA.re=[],pKe=wA.safeRe=[],me=wA.src=[],mKe=wA.safeSrc=[],Ee=wA.t={},EKe=0,CO="[a-zA-Z0-9-]",CKe=[["\\s",1],["\\d",hKe],[CO,dKe]],IKe=t=>{for(let[e,r]of CKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
|
||||
`.trim())}};rne.exports=LU});var NS=E((fVt,ane)=>{"use strict";var nne=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:lqe}=Lt(),dqe=Yp();one()===void 0&&ine(new dqe);function ine(t){if(!t||typeof t.dispatch!="function")throw new lqe("Argument agent must implement Agent");Object.defineProperty(globalThis,nne,{value:t,writable:!0,enumerable:!1,configurable:!1})}function one(){return globalThis[nne]}ane.exports={setGlobalDispatcher:ine,getGlobalDispatcher:one}});var TS=E((pVt,Ane)=>{"use strict";Ane.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var une=E((mVt,cne)=>{"use strict";var hqe=oS();cne.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let A=new hqe(r,o,n,i);return r(a,A)}}});var dne=E((EVt,lne)=>{"use strict";var fqe=mS();lne.exports=t=>e=>function(s,n){return e(s,new fqe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var fne=E((CVt,hne)=>{"use strict";var gqe=lt(),{InvalidArgumentError:pqe,RequestAbortedError:mqe}=Lt(),Eqe=TS(),UU=class extends Eqe{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new pqe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=gqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new mqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Cqe({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new UU({maxSize:i},n);return e(s,o)}}hne.exports=Cqe});var mne=E((IVt,pne)=>{"use strict";var{isIP:Iqe}=b("node:net"),{lookup:yqe}=b("node:dns"),Bqe=TS(),{InvalidArgumentError:em,InformationalError:bqe}=Lt(),gne=Math.pow(2,31)-1,PU=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new bqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#s.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){yqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===gne?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?a=i[s]:a=i[s===4?6:4]):a=i[s],a==null||a.ips.length===0)return n;a.offset==null||a.offset===gne?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return n=a.ips[A]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(A,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=n.records[i.family]??{ips:[]};o.ips.push(i),n.records[i.family]=o}this.#s.set(e.hostname,n)}getHandler(e,r){return new OU(this,e,r)}},OU=class extends Bqe{#e=null;#t=null;#s=null;#r=null;#n=null;constructor(e,{origin:r,handler:s,dispatch:n},i){super(s),this.#n=r,this.#r=s,this.#t={...i},this.#e=e,this.#s=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(r,s)=>{if(r)
Line truncated
|
||||
${i}`;break;case"retry":Koe(i)&&(r[n]=i);break;case"id":$oe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&Koe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&$oe(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}}};Xoe.exports={EventSourceStream:wP}});var aae=E(($Vt,oae)=>{"use strict";var{pipeline:vWe}=b("node:stream"),{fetching:_We}=_I(),{makeRequest:FWe}=sm(),{webidl:cu}=Ws(),{EventSourceStream:MWe}=Zoe(),{parseMIMEType:LWe}=Jn(),{createFastMessageEvent:UWe}=cm(),{isNetworkError:eae}=kI(),{delay:PWe}=bP(),{kEnumerableProperty:jh}=lt(),{environmentSettingsObject:tae}=Qi(),rae=!1,sae=3e3,JI=0,nae=1,zI=2,OWe="anonymous",HWe="use-credentials",fm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=JI;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),cu.util.markAsUncloneable(this);let s="EventSource constructor";cu.argumentLengthCheck(arguments,1,s),rae||(rae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=cu.converters.USVString(e,s,"url"),r=cu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:sae};let n=tae,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=OWe;r.withCredentials&&(o=HWe,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=tae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=FWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===zI)return;this.#r=JI;let e={request:this.#n,dispatcher:this.#a},r=s=>{eae(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(eae(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?LWe(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=nae,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new MWe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(UWe(A.type,A.options))}});vWe(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=_We(e)}async#c(){this.#r!==zI&&(this.#r=JI,this.dispatchEvent(new Event("error")),await PWe(this.#o.reconnectionTime),this.#r===JI&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){cu.brandCheck(this,t),this.#r!==zI&&(this.#r=zI,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},iae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:JI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:nae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:zI,writable:!1}};Object.defineProperties(fm,iae);Object.defineProperties(fm.prototype,iae);Object.defineProperties(fm.prototype,{close:jh,onerror:jh,onmessage:jh,onopen:jh,readyState:jh,url:jh,withCredentials:jh});cu.converters.EventSourceInitDict=cu.dictionaryConverter([{key:"withCredentials",converter:cu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:cu.converters.any}]);oae.exports={EventSource:fm,defaultReconnectionTime:sae}});var pN=E((XVt,Ye)=>{"use strict";var GWe=Gp(),Aae=XC(),qWe=qp(),YWe=ire(),VWe=Yp(),WWe=KL(),JWe=xre(),zWe=Fre(),cae=Lt(),gN=lt(),{InvalidArgumentError:fN}=cae,gm=yse(),jWe=eI(),KWe=DU(),$We=sne(),XWe=_U(),ZWe=EU(),eJe=mS(),{getGlobalDispatcher:uae,setGlobalDispatcher:tJe}=NS(),rJe=TS(),sJe=oS(),nJe=aS();Object.assign(Aae.prototype,gm);Ye.exports.Dispatcher=Aae;Ye.exports.Client=GWe;Ye.exports.Pool=qWe;Ye.exports.BalancedPool=YWe;Ye.exports.Agent=VWe;Ye.exports.ProxyAgent=WWe;Ye.exports.EnvHttpProxyAgent=JWe;Ye.exports
Line truncated
|
||||
%s`,M,M,C,s);var q=C.type==="*"?yO:C.type==="?"?IO:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+q+"\\("+M}f(),i&&(s+="\\\\");var k=!1;switch(s.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=s.slice(0,D.reStart),Z=s.slice(D.reStart,D.reEnd-8),ee=s.slice(D.reEnd-8,D.reEnd),Ae=s.slice(D.reEnd);ee+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==UN&&(Ke="$");var nt=z+Z+Ae+Ke+ee;s=nt}if(s!==""&&n&&(s="(?=.)"+s),k&&(s=d+s),e===UN)return[s,n];if(!n)return Zje(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+s+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=s,vt}vi.makeRe=function(t,e){return new os(t,e||{}).makeRe()};os.prototype.makeRe=Xje;function Xje(){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?yO:e.dot?Yje:Vje,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===tf?r:typeof o=="string"?eKe(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}vi.match=function(t,e,r){r=r||{};var s=new os(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};os.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;iy.sep!=="/"&&(e=e.split(iy.sep).join("/")),e=e.split(KAe),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],A=e;s.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};os.prototype.matchOne=function(t,e,r){return e.indexOf(tf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};os.prototype._matchGlobstar=function(t,e,r,s,n){var i,o=-1;for(i=n;i<e.length;i++)if(e[i]===tf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===tf){a=i;break}var A=e.slice(n,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(s,s+A.length);if(!this._matchOne(l,A,r,0,0))return!1;s+=A.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=s;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<c.length;N++){var M=c[N];M===tf?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var q=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[q--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,s,0,r,0,!!d)};os.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,o){var a=e[s];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,n,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,s+1,n,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return n||null};os.prototype._matchOne=function(t,e,r,s,n){var i,o,a,A;for(i=s,o=n,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===tf)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function Zje(t){return t.replace(/\\(.)/g,"$1")}function eKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var bm=E((JWt,sce)=>{"use strict";var AKe="2.0.0",cKe=Number.MAX_SAFE_INTEGER||9007199254740991,uKe=16,lKe=250,dKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:uKe,MAX_SAFE_BUILD_LENGTH:lKe,MAX_SAFE_INTEGER:cKe,RELEASE_TYPES:dKe,SEMVER_SPEC_VERSION:AKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var cy=E((zWt,nce)=>{"use strict";var hKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};nce.exports=hKe});var Qm=E((SA,ice)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:bO,MAX_SAFE_BUILD_LENGTH:fKe,MAX_LENGTH:gKe}=bm(),pKe=cy();SA=ice.exports={};var mKe=SA.re=[],EKe=SA.safeRe=[],me=SA.src=[],CKe=SA.safeSrc=[],Ee=SA.t={},IKe=0,QO="[a-zA-Z0-9-]",yKe=[["\\s",1],["\\d",gKe],[QO,fKe]],BKe=t=>{for(let[e,r]of yKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+ET.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=aet()+e+" "+t[0]}function aet(){return xn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Aet(...t){return process.stderr.write(mT.formatWithOptions(xn.inspectOpts,...t)+`
|
||||
`)}function cet(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function uet(){return process.env.DEBUG}function det(t){t.inspectOpts={};let e=Object.keys(xn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xn.inspectOpts[e[r]]}ET.exports=o3()(xn);var{formatters:Ple}=ET.exports;Ple.o=function(t){return this.inspectOpts.colors=this.useColors,mT.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Ple.O=function(t){return this.inspectOpts.colors=this.useColors,mT.inspect(t,this.inspectOpts)}});var CT=E((fjt,c3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?c3.exports=vle():c3.exports=Ole()});var qle=E(ii=>{"use strict";var het=ii&&ii.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fet=ii&&ii.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hle=ii&&ii.__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)&&het(e,t,r);return fet(e,t),e};Object.defineProperty(ii,"__esModule",{value:!0});ii.req=ii.json=ii.toBuffer=void 0;var get=Hle(b("http")),pet=Hle(b("https"));async function Gle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ii.toBuffer=Gle;async function met(t){let r=(await Gle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ii.json=met;function Eet(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?pet:get).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ii.req=Eet});var l3=E(Pi=>{"use strict";var Vle=Pi&&Pi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Cet=Pi&&Pi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wle=Pi&&Pi.__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)&&Vle(e,t,r);return Cet(e,t),e},Iet=Pi&&Pi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Vle(e,t,r)};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Agent=void 0;var yet=Wle(b("net")),Yle=Wle(b("http")),Bet=b("https");Iet(qle(),Pi);var TA=Symbol("AgentBaseInternalState"),u3=class extends Yle.Agent{constructor(e){super(e),this[TA]={}}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 yet.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)?Bet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof Yle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[TA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[TA].currentSocket;if(this[TA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[TA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[TA]&&(this[TA].defaultPort=e)}get protocol(){return this[TA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[TA]&&(this[TA].protocol=e)}};Pi.Agent=u3});var Jle=E(Dm=>{"use strict";var bet=Dm&&Dm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dm,"__esModule",{value:!0});Dm.parseProxyResponse=void 0;var Qet=bet(CT()),IT=(0,Qet.default)("https-proxy-agent:parse-proxy-response");function wet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),IT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),IT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
|
||||
`+i),t.push(n+"m+"+BT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=cet()+e+" "+t[0]}function cet(){return xs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function uet(...t){return process.stderr.write(yT.formatWithOptions(xs.inspectOpts,...t)+`
|
||||
`)}function det(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function het(){return process.env.DEBUG}function fet(t){t.inspectOpts={};let e=Object.keys(xs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=xs.inspectOpts[e[r]]}BT.exports=h3()(xs);var{formatters:_le}=BT.exports;_le.o=function(t){return this.inspectOpts.colors=this.useColors,yT.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};_le.O=function(t){return this.inspectOpts.colors=this.useColors,yT.inspect(t,this.inspectOpts)}});var bT=E((Qjt,p3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?p3.exports=Tle():p3.exports=Fle()});var Ule=E(ri=>{"use strict";var get=ri&&ri.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pet=ri&&ri.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Mle=ri&&ri.__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)&&get(e,t,r);return pet(e,t),e};Object.defineProperty(ri,"__esModule",{value:!0});ri.req=ri.json=ri.toBuffer=void 0;var met=Mle(b("http")),Eet=Mle(b("https"));async function Lle(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}ri.toBuffer=Lle;async function Cet(t){let r=(await Lle(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}ri.json=Cet;function Iet(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Eet:met).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}ri.req=Iet});var E3=E(Mi=>{"use strict";var Ole=Mi&&Mi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),yet=Mi&&Mi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hle=Mi&&Mi.__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)&&Ole(e,t,r);return yet(e,t),e},Bet=Mi&&Mi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ole(e,t,r)};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Agent=void 0;var bet=Hle(b("net")),Ple=Hle(b("http")),Qet=b("https");Bet(Ule(),Mi);var xA=Symbol("AgentBaseInternalState"),m3=class extends Ple.Agent{constructor(e){super(e),this[xA]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new bet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Qet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof Ple.Agent)try{return a.addRequest(e,n)}catch(A){return s(A)}this[xA].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[xA].currentSocket;if(this[xA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[xA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[xA]&&(this[xA].defaultPort=e)}get protocol(){return this[xA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[xA]&&(this[xA].protocol=e)}};Mi.Agent=m3});var Gle=E(vm=>{"use strict";var wet=vm&&vm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vm,"__esModule",{value:!0});vm.parseProxyResponse=void 0;var Net=wet(bT()),QT=(0,Net.default)("https-proxy-agent:parse-proxy-response");function Tet(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),QT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),QT("onerror %o",u),r(u)}function c(u){n.push(u),s+=u.length;let l=Buffer.concat(n,s),d=l.indexOf(`\r
|
||||
\r
|
||||
`);if(d===-1){IT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),G=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,G]:Array.isArray(k)?k.push(G):C[M]=G}IT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Dm.parseProxyResponse=wet});var Zle=E(xo=>{"use strict";var Net=xo&&xo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tet=xo&&xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$le=xo&&xo.__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)&&Net(e,t,r);return Tet(e,t),e},Xle=xo&&xo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xo,"__esModule",{value:!0});xo.HttpsProxyAgent=void 0;var yT=$le(b("net")),zle=$le(b("tls")),xet=Xle(b("assert")),Ret=Xle(CT()),Det=l3(),ket=b("url"),vet=Jle(),Cy=(0,Ret.default)("https-proxy-agent"),jle=t=>t.servername===void 0&&t.host&&!yT.isIP(t.host)?{...t,servername:t.host}:t,BT=class extends Det.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new ket.URL(e):e,this.proxyHeaders=r?.headers??{},Cy("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?Kle(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:"?(Cy("Creating `tls.Socket`: %o",this.connectOpts),s=zle.connect(jle(this.connectOpts))):(Cy("Creating `net.Socket`: %o",this.connectOpts),s=yT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=yT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
|
||||
`;let A=(0,vet.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",_et),r.secureEndpoint?(Cy("Upgrading socket connection to TLS"),zle.connect({...Kle(jle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new yT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Cy("Replaying proxy buffer for failed request"),(0,xet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};BT.protocols=["http","https"];xo.HttpsProxyAgent=BT;function _et(t){t.resume()}function Kle(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var rde=E(Ro=>{"use strict";var Fet=Ro&&Ro.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Met=Ro&&Ro.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tde=Ro&&Ro.__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)&&Fet(e,t,r);return Met(e,t),e},Let=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.HttpProxyAgent=void 0;var Uet=tde(b("net")),Pet=tde(b("tls")),Oet=Let(CT()),Het=b("events"),Get=l3(),ede=b("url"),km=(0,Oet.default)("http-proxy-agent"),bT=class extends Get.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ede.URL(e):e,this.proxyHeaders=r?.headers??{},km("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?qet(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new ede.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;km("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(km("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
`);if(d===-1){QT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),q=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,q]:Array.isArray(k)?k.push(q):C[M]=q}QT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}vm.parseProxyResponse=Tet});var zle=E(No=>{"use strict";var xet=No&&No.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Ret=No&&No.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wle=No&&No.__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)&&xet(e,t,r);return Ret(e,t),e},Jle=No&&No.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(No,"__esModule",{value:!0});No.HttpsProxyAgent=void 0;var wT=Wle(b("net")),qle=Wle(b("tls")),Det=Jle(b("assert")),ket=Jle(bT()),vet=E3(),_et=b("url"),Fet=Gle(),by=(0,ket.default)("https-proxy-agent"),Yle=t=>t.servername===void 0&&t.host&&!wT.isIP(t.host)?{...t,servername:t.host}:t,ST=class extends vet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new _et.URL(e):e,this.proxyHeaders=r?.headers??{},by("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Vle(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(by("Creating `tls.Socket`: %o",this.connectOpts),n=qle.connect(Yle(this.connectOpts))):(by("Creating `net.Socket`: %o",this.connectOpts),n=wT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=wT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
|
||||
`;let A=(0,Fet.parseProxyResponse)(n);n.write(`${a}\r
|
||||
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Met),r.secureEndpoint?(by("Upgrading socket connection to TLS"),qle.connect({...Vle(Yle(r),"host","path","port"),socket:n})):n;n.destroy();let l=new wT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{by("Replaying proxy buffer for failed request"),(0,Det.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};ST.protocols=["http","https"];No.HttpsProxyAgent=ST;function Met(t){t.resume()}function Vle(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var $le=E(To=>{"use strict";var Let=To&&To.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Uet=To&&To.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kle=To&&To.__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)&&Let(e,t,r);return Uet(e,t),e},Pet=To&&To.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpProxyAgent=void 0;var Oet=Kle(b("net")),Het=Kle(b("tls")),Get=Pet(bT()),qet=b("events"),Yet=E3(),jle=b("url"),_m=(0,Get.default)("http-proxy-agent"),NT=class extends Yet.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new jle.URL(e):e,this.proxyHeaders=r?.headers??{},_m("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Vet(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new jle.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let c=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;_m("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(_m("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),km("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(km("Creating `tls.Socket`: %o",this.connectOpts),i=Pet.connect(this.connectOpts)):(km("Creating `net.Socket`: %o",this.connectOpts),i=Uet.connect(this.connectOpts)),await(0,Het.once)(i,"connect"),i}};bT.protocols=["http","https"];Ro.HttpProxyAgent=bT;function qet(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var _de=E(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.state=void 0;LT.state={instrumenterImplementation:void 0}});var $de=E(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.state=void 0;GT.state={operationRequestMap:new WeakMap}});var uge=E((Glr,Uot)=>{Uot.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var dge=E((qlr,lge)=>{var Pot=uge();lge.exports={version:Pot.version}});var dR=E(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.isJsonObject=e0.typeofJsonValue=void 0;function zot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}e0.typeofJsonValue=zot;function jot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}e0.isJsonObject=jot});var fR=E(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.base64encode=t0.base64decode=void 0;var xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),hR=[];for(let t=0;t<xu.length;t++)hR[xu[t].charCodeAt(0)]=t;hR[45]=xu.indexOf("+");hR[95]=xu.indexOf("/");function Kot(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=hR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}t0.base64decode=Kot;function $ot(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=xu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=xu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=xu[s|n>>6],e+=xu[n&63],r=0;break}return r&&(e+=xu[s],e+="=",r==1&&(e+="=")),e}t0.base64encode=$ot});var mge=E(gR=>{"use strict";Object.defineProperty(gR,"__esModule",{value:!0});gR.utf8read=void 0;var sH=t=>String.fromCharCode.apply(String,t);function Xot(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(sH(n)),s=0);return r.length?(s&&r.push(sH(n.slice(0,s))),r.join("")):sH(n.slice(0,s))}gR.utf8read=Xot});var hB=E(ZA=>{"use strict";Object.defineProperty(ZA,"__esModule",{value:!0});ZA.WireType=ZA.mergeBinaryOptions=ZA.UnknownFieldHandler=void 0;var Zot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Zot=ZA.UnknownFieldHandler||(ZA.UnknownFieldHandler={}));function eat(t,e){return Object.assign(Object.assign({},t),e)}ZA.mergeBinaryOptions=eat;var tat;(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"})(tat=ZA.WireType||(ZA.WireType={}))});var mR=E(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.varint32read=li.varint32write=li.int64toString=li.int64fromString=li.varint64write=li.varint64read=void 0;function rat(){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")}li.varint64read=rat;function nat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}li.varint64write=nat;var pR=65536*65536;function sat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=pR&&(s=s+(n/pR|0),n=n%pR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}li.int64fromString=sat;function iat(t,e){if(e>>>0<=2097151)return""+(pR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}li.int64toString=iat;function oat(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)}}li.varint32write=oat;function aat(){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}li.varint32read=aat});var sd=E(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.PbLong=nd.PbULong=nd.detectBi=void 0;var fB=mR(),or;function Ege(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}nd.detectBi=Ege;Ege();function Cge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Ige=/^-?[0-9]+$/,CR=4294967296,ER=2147483648,IR=c
Line truncated
|
||||
`)}};YR.RpcError=DH});var vH=E(WR=>{"use strict";Object.defineProperty(WR,"__esModule",{value:!0});WR.mergeRpcOptions=void 0;var Kge=ct();function xAt(t,e){if(!e)return t;let r={};VR(t,r),VR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Kge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Kge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},VR(t.meta,r.meta),VR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}WR.mergeRpcOptions=xAt;function VR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var FH=E(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.Deferred=kf.DeferredState=void 0;var rc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(rc=kf.DeferredState||(kf.DeferredState={}));var _H=class{constructor(e=!0){this._state=rc.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!==rc.PENDING)throw new Error(`cannot resolve ${rc[this.state].toLowerCase()}`);this._resolve(e),this._state=rc.RESOLVED}reject(e){if(this.state!==rc.PENDING)throw new Error(`cannot reject ${rc[this.state].toLowerCase()}`);this._reject(e),this._state=rc.REJECTED}resolvePending(e){this._state===rc.PENDING&&this.resolve(e)}rejectPending(e){this._state===rc.PENDING&&this.reject(e)}};kf.Deferred=_H});var LH=E(JR=>{"use strict";Object.defineProperty(JR,"__esModule",{value:!0});JR.RpcOutputStreamController=void 0;var $ge=FH(),vf=ct(),MH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){vf.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){vf.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){vf.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(){vf.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;vf.assert(e,"bad state"),vf.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 $ge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;vf.assert(n.state==$ge.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};JR.RpcOutputStreamController=MH});var PH=E(A0=>{"use strict";var RAt=A0&&A0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(A0,"__esModule",{value:!0});A0.UnaryCall=void 0;var UH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return RAt(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}})}};A0.UnaryCall=UH});var HH=E(c0=>{"use strict";var DAt=c0&&c0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(c0,"__esModule",{value:!0});c0.ServerStreamingCall=void 0;var OH=class{constructor(e
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+s.substring(n),_m("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(_m("Creating `tls.Socket`: %o",this.connectOpts),i=Het.connect(this.connectOpts)):(_m("Creating `net.Socket`: %o",this.connectOpts),i=Oet.connect(this.connectOpts)),await(0,qet.once)(i,"connect"),i}};NT.protocols=["http","https"];To.HttpProxyAgent=NT;function Vet(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Dde=E(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.state=void 0;GT.state={instrumenterImplementation:void 0}});var zde=E(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.state=void 0;JT.state={operationRequestMap:new WeakMap}});var age=E((adr,Yot)=>{Yot.exports={name:"@actions/cache",version:"6.0.1",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var cge=E((Adr,Age)=>{var Vot=age();Age.exports={version:Vot.version}});var mR=E(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.isJsonObject=r0.typeofJsonValue=void 0;function eat(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}r0.typeofJsonValue=eat;function tat(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}r0.isJsonObject=tat});var CR=E(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.base64encode=s0.base64decode=void 0;var xu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ER=[];for(let t=0;t<xu.length;t++)ER[xu[t].charCodeAt(0)]=t;ER[45]=xu.indexOf("+");ER[95]=xu.indexOf("/");function rat(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),s=0,n=0,i,o=0;for(let a=0;a<t.length;a++){if(i=ER[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":n=0;case`
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}s0.base64decode=rat;function sat(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=xu[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=xu[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=xu[n|s>>6],e+=xu[s&63],r=0;break}return r&&(e+=xu[n],e+="=",r==1&&(e+="=")),e}s0.base64encode=sat});var fge=E(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.utf8read=void 0;var AH=t=>String.fromCharCode.apply(String,t);function nat(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(AH(s)),n=0);return r.length?(n&&r.push(AH(s.slice(0,n))),r.join("")):AH(s.slice(0,n))}IR.utf8read=nat});var EB=E(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.WireType=ec.mergeBinaryOptions=ec.UnknownFieldHandler=void 0;var iat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(iat=ec.UnknownFieldHandler||(ec.UnknownFieldHandler={}));function oat(t,e){return Object.assign(Object.assign({},t),e)}ec.mergeBinaryOptions=oat;var aat;(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"})(aat=ec.WireType||(ec.WireType={}))});var BR=E(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.varint32read=Ai.varint32write=Ai.int64toString=Ai.int64fromString=Ai.varint64write=Ai.varint64read=void 0;function Aat(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Ai.varint64read=Aat;function cat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}Ai.varint64write=cat;var yR=65536*65536;function uat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let A=Number(t.slice(o,a));n*=r,s=s*r+A,s>=yR&&(n=n+(s/yR|0),s=s%yR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Ai.int64fromString=uat;function lat(t,e){if(e>>>0<=2097151)return""+(yR*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}Ai.int64toString=lat;function dat(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)}}Ai.varint32write=dat;function hat(){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}Ai.varint32read=hat});var od=E(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.PbLong=id.PbULong=id.detectBi=void 0;var CB=BR(),ir;function gge(){let t=new DataView(new ArrayBuffer(8));ir=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}id.detectBi=gge;gge();function pge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var mge=/^-?[0-9]+$/,QR=4294967296,bR=2147483648,wR=c
Line truncated
|
||||
`)}};jR.RpcError=FH});var LH=E($R=>{"use strict";Object.defineProperty($R,"__esModule",{value:!0});$R.mergeRpcOptions=void 0;var Jge=At();function FAt(t,e){if(!e)return t;let r={};KR(t,r),KR(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Jge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Jge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},KR(t.meta,r.meta),KR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}$R.mergeRpcOptions=FAt;function KR(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var PH=E(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.Deferred=vf.DeferredState=void 0;var sc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sc=vf.DeferredState||(vf.DeferredState={}));var UH=class{constructor(e=!0){this._state=sc.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==sc.PENDING)throw new Error(`cannot resolve ${sc[this.state].toLowerCase()}`);this._resolve(e),this._state=sc.RESOLVED}reject(e){if(this.state!==sc.PENDING)throw new Error(`cannot reject ${sc[this.state].toLowerCase()}`);this._reject(e),this._state=sc.REJECTED}resolvePending(e){this._state===sc.PENDING&&this.resolve(e)}rejectPending(e){this._state===sc.PENDING&&this.reject(e)}};vf.Deferred=UH});var HH=E(XR=>{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});XR.RpcOutputStreamController=void 0;var zge=PH(),_f=At(),OH=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){_f.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){_f.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){_f.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(){_f.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;_f.assert(e,"bad state"),_f.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 zge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;_f.assert(s.state==zge.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};XR.RpcOutputStreamController=OH});var qH=E(u0=>{"use strict";var MAt=u0&&u0.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(u0,"__esModule",{value:!0});u0.UnaryCall=void 0;var GH=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return MAt(this,void 0,void 0,function*(){let[e,r,s,n]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:n}})}};u0.UnaryCall=GH});var VH=E(l0=>{"use strict";var LAt=l0&&l0.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};Object.defineProperty(l0,"__esModule",{value:!0});l0.ServerStreamingCall=void 0;var YH=class{constructor(e
Line truncated
|
||||
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
|
||||
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
|
||||
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
|
||||
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
|
||||
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var cCe=E(ACe=>{"use strict";var Fq=Hu().Buffer;ACe._dbcs=Gu;var Kn=-1,aCe=-2,Zo=-10,Os=-1e3,G0=new Array(256),fb=-1;for(B2=0;B2<256;B2++)G0[B2]=Kn;var B2;function Gu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=G0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(G0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(G0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=aCe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function YEt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(xEt.has(s)){r=s;break}}return r}function VEt(t,e){let r=YEt(e);r!==""&&(t.referrerPolicy=r)}function WEt(){return"allowed"}function JEt(){return"success"}function zEt(){return"success"}function jEt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function KEt(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&&ZY(t.origin)&&!ZY(Ag(t))&&(e=null);break;case"same-origin":bb(t,Ag(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function J0(t,e){return t}function $Et(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:J0(t.domainLookupStartTime,r),domainLookupEndTime:J0(t.domainLookupEndTime,r),connectionStartTime:J0(t.connectionStartTime,r),connectionEndTime:J0(t.connectionEndTime,r),secureConnectionStartTime:J0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function XEt(t){return J0(vEt.now(),t)}function ZEt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Pye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function eCt(t){return{referrerPolicy:t.referrerPolicy}}function tCt(t){let e=t.referrerPolicy;Qb(e);let r=null;if(t.referrer==="client"){let i=_ye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Nd.is.URL(t.referrer)&&(r=t.referrer);let n=XY(r),s=XY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??XY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Ag(t);return ag(n)&&!ag(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Ag(t);return bb(n,i)?n:ag(n)&&!ag(i)?"no-referrer":s}case"same-origin":return bb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return bb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Ag(t);return ag(n)&&!ag(i)?"no-referrer":n}}}function XY(t,e=!1){return Qb(Nd.is.URL(t)),t=new URL(t),qye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var rCt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),nCt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Oye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),nCt(t)):rCt(t)}function sCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Oye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function ag(t){return Nd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:sCt(t.origin):!1}function iCt(t){}function bb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function oCt(t){return t.controller.state==="aborted"}function aCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ACt(t){return FEt[t.toLowerCase()]??t}var cCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Hye(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,cCt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function uCt(t,e,r,n=0,s=1){let i=Hye(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Nd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Nd.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ra(a=>AV(a)&&a!==59,t,e);i=oV.decode(o)}return{name:n,value:i}}function _Ct(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ci("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ra(a=>a!==10&&a!==13&&a!==58,t,e);if(o=aV(o,!0,!0,a=>a===9||a===32),!SCt.test(o.toString()))throw Ci("header name does not match the field-name token production");if(t[e.position]!==58)throw Ci("expected :");switch(e.position++,ra(a=>a===32||a===9,t,e),wCt(o)){case"content-disposition":{if(r=n=null,ra(A=>AV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ci("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=vCt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ci("name attribute is required in content-disposition header");break}case"content-type":{let a=ra(A=>A!==10&&A!==13,t,e);a=aV(a,!1,!0,A=>A===9||A===32),s=jye(a);break}case"content-transfer-encoding":{let a=ra(A=>A!==10&&A!==13,t,e);a=aV(a,!1,!0,A=>A===9||A===32),i=jye(a);break}default:ra(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ci("expected CRLF");e.position+=2}}function ra(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function aV(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function FCt(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}function Ci(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function MCt(t){return t<=31||t===127}function LCt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function AV(t){return t<=127&&t!==32&&t!==9&&!MCt(t)&&!LCt(t)}Kye.exports={multipartFormDataParser:kCt,validateBoundary:DCt}});var wb=E((WEr,Xye)=>{"use strict";function UCt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Xye.exports={createDeferredPromise:UCt}});var K0=E((JEr,nBe)=>{"use strict";var lV=Ze(),{ReadableStreamFrom:PCt,readableStreamClose:OCt,fullyReadBody:HCt,extractMimeType:GCt}=$i(),{FormData:Zye,setFormDataState:qCt}=J2(),{webidl:Ka}=$n(),cV=b("node:assert"),{isErrored:uV,isDisturbed:YCt}=b("node:stream"),{isUint8Array:VCt}=b("node:util/types"),{serializeAMimeType:WCt}=ta(),{multipartFormDataParser:JCt}=$ye(),{createDeferredPromise:zCt}=wb(),{parseJSONFromBytes:jCt}=Vu(),{utf8DecodeBytes:KCt}=H2(),{runtimeFeatures:$Ct}=Wu(),XCt=$Ct.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),z2=new TextEncoder;function ZCt(){}var eIt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!YCt(e)&&!uV(e)&&e.cancel("Response object has been garbage collected").catch(ZCt)});function tBe(t,e=!1){let r=null,n=null;Ka.is.ReadableStream(t)?r=t:Ka.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),cV(Ka.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Ka.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Ka.is.BufferSource(t))i=Ka.util.getCopyOfBytesHeldByBufferSource(t);else if(Ka.is.FormData(t)){let c=`----formdata-undici-0${`${XCt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
|
||||
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var oCe=E(iCe=>{"use strict";var Pq=Hu().Buffer;iCe._dbcs=Gu;var Ks=-1,nCe=-2,$o=-10,Mn=-1e3,Y0=new Array(256),Cb=-1;for(N2=0;N2<256;N2++)Y0[N2]=Ks;var N2;function Gu(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=Y0.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(Y0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(Y0.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Mn-o[s]],A=48;A<=57;A++){if(a[A]===Ks)a[A]=Mn-n;else if(a[A]>Mn)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Mn-a[A]],u=129;u<=254;u++){if(c[u]===Ks)c[u]=Mn-i;else{if(c[u]===Mn-i)continue;if(c[u]>Mn)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Mn-c[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=nCe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function KEt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let s=e.length;s!==0;s--){let n=e[s-1].trim();if(FEt.has(n)){r=n;break}}return r}function $Et(t,e){let r=KEt(e);r!==""&&(t.referrerPolicy=r)}function XEt(){return"allowed"}function ZEt(){return"success"}function eCt(){return"success"}function tCt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function rCt(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&&sV(t.origin)&&!sV(cg(t))&&(e=null);break;case"same-origin":Tb(t,cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function j0(t,e){return t}function sCt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:j0(t.domainLookupStartTime,r),domainLookupEndTime:j0(t.domainLookupEndTime,r),connectionStartTime:j0(t.connectionStartTime,r),connectionEndTime:j0(t.connectionEndTime,r),secureConnectionStartTime:j0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function nCt(t){return j0(PEt.now(),t)}function iCt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Mye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function oCt(t){return{referrerPolicy:t.referrerPolicy}}function aCt(t){let e=t.referrerPolicy;xb(e);let r=null;if(t.referrer==="client"){let i=Dye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else xd.is.URL(t.referrer)&&(r=t.referrer);let s=rV(r),n=rV(r,!0);switch(s.toString().length>4096&&(s=n),e){case"no-referrer":return"no-referrer";case"origin":return n??rV(r,!0);case"unsafe-url":return s;case"strict-origin":{let i=cg(t);return Ag(s)&&!Ag(i)?"no-referrer":n}case"strict-origin-when-cross-origin":{let i=cg(t);return Tb(s,i)?s:Ag(s)&&!Ag(i)?"no-referrer":n}case"same-origin":return Tb(t,s)?s:"no-referrer";case"origin-when-cross-origin":return Tb(t,s)?s:n;case"no-referrer-when-downgrade":{let i=cg(t);return Ag(s)&&!Ag(i)?"no-referrer":s}}}function rV(t,e=!1){return xb(xd.is.URL(t)),t=new URL(t),Oye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var ACt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),cCt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Lye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),cCt(t)):ACt(t)}function uCt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Lye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ag(t){return xd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:uCt(t.origin):!1}function lCt(t){}function Tb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function dCt(t){return t.controller.state==="aborted"}function hCt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function fCt(t){return HEt[t.toLowerCase()]??t}var gCt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Uye(t,e,r=0,s=1){class n{#e;#t;#s;constructor(o,a){this.#e=o,this.#t=a,this.#s=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#s,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[s]:u}=a[o];this.#s=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete n.prototype.constructor,Object.setPrototypeOf(n.prototype,gCt),Object.defineProperties(n.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new n(i,o)}}function pCt(t,e,r,s=0,n=1){let i=Uye(t,r,s,n),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return xd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return xd.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ea(a=>dV(a)&&a!==59,t,e);i=uV.decode(o)}return{name:s,value:i}}function OCt(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw pi("header name is null");return{name:r,filename:s,contentType:n,encoding:i}}let o=ea(a=>a!==10&&a!==13&&a!==58,t,e);if(o=lV(o,!0,!0,a=>a===9||a===32),!kCt.test(o.toString()))throw pi("header name does not match the field-name token production");if(t[e.position]!==58)throw pi("expected :");switch(e.position++,ea(a=>a===32||a===9,t,e),DCt(o)){case"content-disposition":{if(r=s=null,ea(A=>dV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw pi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=PCt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(s=A.value)}if(r===null)throw pi("name attribute is required in content-disposition header");break}case"content-type":{let a=ea(A=>A!==10&&A!==13,t,e);a=lV(a,!1,!0,A=>A===9||A===32),n=Wye(a);break}case"content-transfer-encoding":{let a=ea(A=>A!==10&&A!==13,t,e);a=lV(a,!1,!0,A=>A===9||A===32),i=Wye(a);break}default:ea(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw pi("expected CRLF");e.position+=2}}function ea(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function lV(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function HCt(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}function pi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function GCt(t){return t<=31||t===127}function qCt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function dV(t){return t<=127&&t!==32&&t!==9&&!GCt(t)&&!qCt(t)}Jye.exports={multipartFormDataParser:UCt,validateBoundary:LCt}});var Rb=E((lCr,jye)=>{"use strict";function YCt(){let t,e;return{promise:new Promise((s,n)=>{t=s,e=n}),resolve:t,reject:e}}jye.exports={createDeferredPromise:YCt}});var X0=E((dCr,eBe)=>{"use strict";var gV=Xe(),{ReadableStreamFrom:VCt,readableStreamClose:WCt,fullyReadBody:JCt,extractMimeType:zCt}=zi(),{FormData:Kye,setFormDataState:jCt}=X2(),{webidl:$a}=$s(),hV=b("node:assert"),{isErrored:fV,isDisturbed:KCt}=b("node:stream"),{isUint8Array:$Ct}=b("node:util/types"),{serializeAMimeType:XCt}=Zo(),{multipartFormDataParser:ZCt}=zye(),{createDeferredPromise:eIt}=Rb(),{parseJSONFromBytes:tIt}=Vu(),{utf8DecodeBytes:rIt}=W2(),{runtimeFeatures:sIt}=Wu(),nIt=sIt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Z2=new TextEncoder;function iIt(){}var oIt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!KCt(e)&&!fV(e)&&e.cancel("Response object has been garbage collected").catch(iIt)});function Xye(t,e=!1){let r=null,s=null;$a.is.ReadableStream(t)?r=t:$a.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){s=c},cancel(){},type:"bytes"}),hV($a.is.ReadableStream(r));let n=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if($a.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if($a.is.BufferSource(t))i=$a.util.getCopyOfBytesHeldByBufferSource(t);else if($a.is.FormData(t)){let c=`----formdata-undici-0${`${nIt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
|
||||
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
|
||||
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=z2.encode(u+`; name="${l(d(m))}"\r
|
||||
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Z2.encode(u+`; name="${l(d(m))}"\r
|
||||
\r
|
||||
${d(C)}\r
|
||||
`);h.push(y),o+=y.byteLength}else{let y=z2.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
|
||||
`);h.push(y),o+=y.byteLength}else{let y=Z2.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
|
||||
Content-Type: ${C.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=z2.encode(`--${c}--\r
|
||||
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if(Ka.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(lV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Ka.is.ReadableStream(t)?t:PCt(t)}return(typeof i=="string"||VCt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(uV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!uV(r)&&n.enqueue(typeof c=="string"?z2.encode(c):new Uint8Array(c));queueMicrotask(()=>OCt(n))})(),[{stream:r,source:i,length:o},a]}function tIt(t,e=!1){return Ka.is.ReadableStream(t)&&(cV(!lV.isDisturbed(t),"The body has already been consumed."),cV(!t.locked,"The stream is locked.")),tBe(t,e)}function rIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function nIt(t,e){return{blob(){return j0(this,n=>{let s=eBe(e(this));return s===null?s="":s&&(s=WCt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return j0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return j0(this,KCt,t,e)},json(){return j0(this,jCt,t,e)},formData(){return j0(this,n=>{let s=eBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=JCt(n,s),o=new Zye;return qCt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Zye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return j0(this,n=>new Uint8Array(n),t,e)}}}function sIt(t,e){Object.assign(t.prototype,nIt(t,e))}function j0(t,e,r,n){try{Ka.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),rBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=zCt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(HCt(t.body,o,i),s.promise)}function rBe(t){let e=t.body;return e!=null&&(e.stream.locked||lV.isDisturbed(e.stream))}function eBe(t){let e=t.headersList,r=GCt(e);return r==="failure"?null:r}nBe.exports={extractBody:tBe,safelyExtractBody:tIt,cloneBody:rIt,mixinBody:sIt,streamRegistry:eIt,bodyUnusable:rBe}});var fBe=E((zEr,hBe)=>{"use strict";var Ve=b("node:assert"),We=Ze(),{channels:sBe}=wd(),dV=Jq(),{RequestContentLengthMismatchError:cg,ResponseContentLengthMismatchError:iIt,RequestAbortedError:uBe,HeadersTimeoutError:oIt,HeadersOverflowError:aIt,SocketError:Tb,InformationalError:$0,BodyTimeoutError:AIt,HTTPParserError:cIt,ResponseExceededMaxSizeError:uIt}=je(),{kUrl:lBe,kReset:Ii,kClient:CV,kParser:Yr,kBlocking:xb,kRunning:fs,kPending:lIt,kSize:iBe,kWriting:xd,kQueue:$a,kNoRef:Sb,kKeepAliveDefaultTimeout:dIt,kHostHeader:hIt,kPendingIdx:fIt,kRunningIdx:na,kError:sa,kPipelining:$2,kSocket:X0,kKeepAliveTimeoutValue:Z2,kMaxHeadersSize:gIt,kKeepAliveMaxTimeout:pIt,kKeepAliveTimeoutThreshold:mIt,kHeadersTimeout:EIt,kBodyTimeout:CIt,kStrictContentLength:gV,kMaxRequests:oBe,kCounter:IIt,kMaxResponseSize:yIt,kOnError:BIt,kResume:Td,kHTTPContext:dBe,kClosed:pV}=$t(),lc=nye(),bIt=Buffer.alloc(0),j2=Buffer[Symbol.species],QIt=We.removeAllListeners,hV;function wIt(){let t=process.env.JEST_WORKER_ID?PY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(oye())}catch{}return e||(e=new WebAssembly.Module(t||PY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(In.ptr===n);let o=s-hc+dc.byteOffset;return In.onStatus(new j2(dc.buffer,o,i))},wasm_on_message_begin:n=>(Ve(In.ptr===n),In.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(In.ptr===n);let o=s-hc+dc.byteOffset;return In.onHeaderField(new j2(dc.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(In.ptr===n);let o=s-hc+dc.byteOffset;return In.onHeaderValue(new j2(dc.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(In.ptr===n),In.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(In.ptr===n);let o=s-hc+dc.byteOffset;return In.onBody(new j2(dc.buffer,o,i))},wasm_on_message_complete:n=>(Ve(In.ptr===n),In.onMessageComplete())}})}var fV=null,In=null,dc=null,K2=0,hc=null,SIt=0,Nb=1,Z0=2|Nb,X2=4|Nb,mV=8|SIt,EV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(lc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[gIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[yIt]}setTi
Line truncated
|
||||
`;if(typeof s=="string"?p+=`host: ${s}\r
|
||||
`:p+=t[hIt],i?p+=`connection: upgrade\r
|
||||
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Z2.encode(`--${c}--\r
|
||||
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,n=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${c}`}else if($a.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(gV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=$a.is.ReadableStream(t)?t:VCt(t)}return(typeof i=="string"||$Ct(i))&&(n=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),n!=null&&(async()=>{let c=n(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(fV(r))break;l.length&&s.enqueue(new Uint8Array(l))}else c?.length&&!fV(r)&&s.enqueue(typeof c=="string"?Z2.encode(c):new Uint8Array(c));queueMicrotask(()=>WCt(s))})(),[{stream:r,source:i,length:o},a]}function aIt(t,e=!1){return $a.is.ReadableStream(t)&&(hV(!gV.isDisturbed(t),"The body has already been consumed."),hV(!t.locked,"The stream is locked.")),Xye(t,e)}function AIt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function cIt(t,e){return{blob(){return $0(this,s=>{let n=$ye(e(this));return n===null?n="":n&&(n=XCt(n)),new Blob([s],{type:n})},t,e)},arrayBuffer(){return $0(this,s=>new Uint8Array(s).buffer,t,e)},text(){return $0(this,rIt,t,e)},json(){return $0(this,tIt,t,e)},formData(){return $0(this,s=>{let n=$ye(e(this));if(n!==null)switch(n.essence){case"multipart/form-data":{let i=ZCt(s,n),o=new Kye;return jCt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(s.toString()),o=new Kye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return $0(this,s=>new Uint8Array(s),t,e)}}}function uIt(t,e){Object.assign(t.prototype,cIt(t,e))}function $0(t,e,r,s){try{$a.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=s(t),Zye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let n=eIt(),i=n.reject,o=a=>{try{n.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),n.promise):(JCt(t.body,o,i),n.promise)}function Zye(t){let e=t.body;return e!=null&&(e.stream.locked||gV.isDisturbed(e.stream))}function $ye(t){let e=t.headersList,r=zCt(e);return r==="failure"?null:r}eBe.exports={extractBody:Xye,safelyExtractBody:aIt,cloneBody:AIt,mixinBody:uIt,streamRegistry:oIt,bodyUnusable:Zye}});var lBe=E((hCr,uBe)=>{"use strict";var Ve=b("node:assert"),We=Xe(),{channels:tBe}=Nd(),pV=$q(),{RequestContentLengthMismatchError:ug,ResponseContentLengthMismatchError:lIt,RequestAbortedError:aBe,HeadersTimeoutError:dIt,HeadersOverflowError:hIt,SocketError:vb,InformationalError:Z0,BodyTimeoutError:fIt,HTTPParserError:gIt,ResponseExceededMaxSizeError:pIt}=je(),{kUrl:ABe,kReset:mi,kClient:bV,kParser:Yr,kBlocking:_b,kRunning:gn,kPending:mIt,kSize:rBe,kWriting:Dd,kQueue:Xa,kNoRef:Db,kKeepAliveDefaultTimeout:EIt,kHostHeader:CIt,kPendingIdx:IIt,kRunningIdx:ta,kError:ra,kPipelining:rk,kSocket:eE,kKeepAliveTimeoutValue:nk,kMaxHeadersSize:yIt,kKeepAliveMaxTimeout:BIt,kKeepAliveTimeoutThreshold:bIt,kHeadersTimeout:QIt,kBodyTimeout:wIt,kStrictContentLength:CV,kMaxRequests:sBe,kCounter:SIt,kMaxResponseSize:NIt,kOnError:TIt,kResume:Rd,kHTTPContext:cBe,kClosed:IV}=Kt(),dc=eye(),xIt=Buffer.alloc(0),ek=Buffer[Symbol.species],RIt=We.removeAllListeners,mV;function DIt(){let t=process.env.JEST_WORKER_ID?qY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(sye())}catch{}return e||(e=new WebAssembly.Module(t||qY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(s,n,i)=>0,wasm_on_status:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onStatus(new ek(hc.buffer,o,i))},wasm_on_message_begin:s=>(Ve(Is.ptr===s),Is.onMessageBegin()),wasm_on_header_field:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onHeaderField(new ek(hc.buffer,o,i))},wasm_on_header_value:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onHeaderValue(new ek(hc.buffer,o,i))},wasm_on_headers_complete:(s,n,i,o)=>(Ve(Is.ptr===s),Is.onHeadersComplete(n,i===1,o===1)),wasm_on_body:(s,n,i)=>{Ve(Is.ptr===s);let o=n-fc+hc.byteOffset;return Is.onBody(new ek(hc.buffer,o,i))},wasm_on_message_complete:s=>(Ve(Is.ptr===s),Is.onMessageComplete())}})}var EV=null,Is=null,hc=null,tk=0,fc=null,kIt=0,kb=1,tE=2|kb,sk=4|kb,yV=8|kIt,BV=class{constructor(e,r,{exports:s}){this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(dc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[yIt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[NIt]}setTi
Line truncated
|
||||
`;if(typeof n=="string"?p+=`host: ${n}\r
|
||||
`:p+=t[CIt],i?p+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[$2]&&!h[Ii]?p+=`connection: keep-alive\r
|
||||
`:t[rk]&&!h[mi]?p+=`connection: keep-alive\r
|
||||
`:p+=`connection: close\r
|
||||
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let m=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
|
||||
`;else p+=`${m}: ${C}\r
|
||||
`}return sBe.sendHeaders.hasSubscribers&&sBe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?ABe(f,null,t,e,h,u,p,l):We.isBuffer(A)?ABe(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?cBe(f,A.stream(),t,e,h,u,p,l):LIt(f,A,t,e,h,u,p,l):We.isStream(A)?MIt(f,A,t,e,h,u,p,l):We.isIterable(A)?cBe(f,A,t,e,h,u,p,l):Ve(!1),!0}function MIt(t,e,r,n,s,i,o,a){Ve(i!==0||r[fs]===0,"stream body cannot be pipelined");let A=!1,c=new ek({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new uBe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[xd]&&r[fs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function ABe(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`}return tBe.sendHeaders.hasSubscribers&&tBe.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?iBe(f,null,t,e,h,u,p,l):We.isBuffer(A)?iBe(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?oBe(f,A.stream(),t,e,h,u,p,l):qIt(f,A,t,e,h,u,p,l):We.isStream(A)?GIt(f,A,t,e,h,u,p,l):We.isIterable(A)?oBe(f,A,t,e,h,u,p,l):Ve(!1),!0}function GIt(t,e,r,s,n,i,o,a){Ve(i!==0||r[gn]===0,"stream body cannot be pipelined");let A=!1,c=new ik({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new aBe;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(n.destroyed||n[Dd]&&r[gn]<=1),n.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function iBe(t,e,r,s,n,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Ii]=!0)):i===0?s.write(`${o}content-length: 0\r
|
||||
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[mi]=!0)):i===0?n.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
|
||||
`,"latin1")),n.onRequestSent(),r[Td]()}catch(A){t(A)}}async function LIt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new cg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`,"latin1"):(Ve(i===null,"no body must not have content length"),n.write(`${o}\r
|
||||
`,"latin1")),s.onRequestSent(),r[Rd]()}catch(A){t(A)}}async function qIt(t,e,r,s,n,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ug;let A=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Ii]=!0),r[Td]()}catch(A){t(A)}}async function cBe(t,e,r,n,s,i,o,a){Ve(i!==0||r[fs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[sa]?h(s[sa]):A=d});s.on("close",c).on("drain",c);let l=new ek({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[sa])throw s[sa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var ek=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[xd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[sa])throw r[sa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[gV])throw new cg;process.emitWarning(new cg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Ii]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${A}content-length: ${s}\r
|
||||
`,"latin1"),n.write(A),n.uncork(),s.onBodySent(A),s.onRequestSent(),!a&&s.reset!==!1&&(n[mi]=!0),r[Rd]()}catch(A){t(A)}}async function oBe(t,e,r,s,n,i,o,a){Ve(i!==0||r[gn]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),n[ra]?h(n[ra]):A=d});n.on("close",c).on("drain",c);let l=new ik({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(n[ra])throw n[ra];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{n.off("close",c).off("drain",c)}}var ik=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Dd]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[ra])throw r[ra];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(n!==null&&o+c>n){if(i[CV])throw new ug;process.emitWarning(new ug)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[mi]=!0),n===null?r.write(`${A}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${A}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&r.write(`\r
|
||||
`,"latin1")),n===null&&r.write(`\r
|
||||
${c.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===Z0&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[xd]=!1,e[sa])throw e[sa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Yr].timeout&&r[Yr].timeoutType===tE&&r[Yr].timeout.refresh&&r[Yr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Dd]=!1,e[ra])throw e[ra];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${o}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[gV])throw new cg;process.emitWarning(new cg)}e[Yr].timeout&&e[Yr].timeoutType===Z0&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[Td]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[xd]=!1,e&&(Ve(n[fs]<=1,"pipeline should only contain this request"),s(e))}};hBe.exports=NIt});var bBe=E((jEr,BBe)=>{"use strict";var oa=b("node:assert"),{pipeline:UIt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:bV,RequestAbortedError:PIt,SocketError:vb,InformationalError:Rd,InvalidArgumentError:OIt}=je(),{kUrl:kb,kReset:sk,kClient:Xi,kRunning:_b,kPending:HIt,kQueue:Dd,kPendingIdx:wV,kRunningIdx:Xa,kError:Zi,kSocket:Dr,kStrictContentLength:GIt,kOnError:eE,kMaxConcurrentStreams:rk,kPingInterval:gBe,kHTTP2Session:zu,kHTTP2InitialWindowSize:qIt,kHTTP2ConnectionWindowSize:YIt,kResume:fc,kSize:VIt,kHTTPContext:SV,kClosed:QV,kBodyTimeout:WIt,kEnableConnectProtocol:Rb,kRemoteSettings:Db,kHTTP2Stream:tk,kHTTP2SessionState:NV}=$t(),{channels:pBe}=wd(),ia=Symbol("open streams"),mBe,nk;try{nk=b("node:http2")}catch{nk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:JIt,HTTP2_HEADER_METHOD:EBe,HTTP2_HEADER_PATH:CBe,HTTP2_HEADER_SCHEME:IV,HTTP2_HEADER_CONTENT_LENGTH:zIt,HTTP2_HEADER_EXPECT:jIt,HTTP2_HEADER_STATUS:yV,HTTP2_HEADER_PROTOCOL:KIt,NGHTTP2_REFUSED_STREAM:$It,NGHTTP2_CANCEL:XIt}}=nk;function BV(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}function ZIt(t,e){t[Dr]=e;let r=t[qIt],n=t[YIt],s=nk.connect(t[kb],{createConnection:()=>e,peerMaxConcurrentStreams:t[rk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ia]=0,s[Xi]=t,s[Dr]=e,s[NV]={ping:{interval:t[gBe]===0?null:setInterval(nyt,t[gBe],s).unref()}},s[Rb]=!1,s[Db]=!1,n&&ut.addListener(s,"connect",tyt.bind(s,n)),ut.addListener(s,"error",syt),ut.addListener(s,"frameError",iyt),ut.addListener(s,"end",oyt),ut.addListener(s,"goaway",ayt),ut.addListener(s,"close",Ayt),ut.addListener(s,"remoteSettings",ryt),s.unref(),t[zu]=s,e[zu]=s,ut.addListener(e,"error",uyt),ut.addListener(e,"end",lyt),ut.addListener(e,"close",cyt),e[QV]=!1,e.on("close",dyt),{version:"h2",defaultPipelining:1/0,write(i){return fyt(t,i)},resume(){eyt(t)},destroy(i,o){e[QV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[_b]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Db]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Db]===!1;return!1}}}function eyt(t){let e=t[Dr];e?.destroyed===!1&&(t[VIt]===0||t[rk]===0?(e.unref(),t[zu].unref()):(e.ref(),t[zu].ref()))}function tyt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function ryt(t){if(this[Xi][rk]=t.maxConcurrentStreams??this[Xi][rk],this[Db]===!0&&this[Rb]===!0&&t.enableConnectProtocol===!1){let e=new Rd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][Zi]=e,this[Xi][eE](e);return}this[Rb]=t.enableConnectProtocol??this[Rb],this[Db]=!0,this[Xi][fc]()}function nyt(t){let e=t[NV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[Xi],o=this[Xi];if(n!=null){let a=new Rd(`HTTP/2: "PING" errored - type ${n.message}`);o[Zi]=a,i[eE](a)}else i.emit("ping",s)}}function syt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][Zi]=t,this[Xi][eE](t)}function iyt(t,e,r){if(r===0){let n=new Rd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][Zi]=n,this[Xi][eE](n)}}function oyt(){let t=new vb("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function ayt(t){let e=this[Zi]||new vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[Xi];if(r[Dr]=null,r[SV]=null,this.close(),this[zu]=null,ut.destroy(this[Dr],e),r[Xa]<r[Dd].length){let n=r[Dd][r[Xa]];r[Dd][r[Xa]++]=null,ut.errorRequest(r,n,e),r[wV]=r[Xa]}oa(r[_b]===0),r.emit("disconnect",r[kb],[r],e),r.emit("connectionError",r[kb],[r],e),r[fc]()}function Ayt(){let{[Xi]:t,[NV]:e}=this,{[Dr]:r}=t,n=this[Dr][Zi]||this[Zi]||new vb("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[SV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){oa(t[HIt]===0);let s=t[Dd].splice(t[Xa]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function cyt(){let t=this[Zi]||new vb("closed",ut.getSocketInfo(this)),e=this[zu][Xi];e[Dr]=null,e[SV]=null,this[zu]!==null&&this[zu].destroy(t),e[wV]=e[Xa],oa(e[_b]===0),e.emit("disconnect",e[kb],[e],t),e[fc]()}function uyt(t){oa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zi]=t,this[Xi][eE](t)}function lyt(){ut.destroy(this,new vb("other side closed",ut.getSocketInfo(this)))}func
Line truncated
|
||||
`;pBe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;A?(h[jIt]="100-continue",f=n.request(h,{endStream:N,signal:c}),f[tk]=!0,f.once("continue",G)):(f=n.request(h,{endStream:N,signal:c}),f[tk]=!0,G()),++n[ia],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[yV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),BV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Dd][t[Xa]++]=null,t[fc]()):(m(new Rd("HTTP/2: stream half-closed (remote)")),t[Dd][t[Xa]++]=null,t[wV]=t[Xa],t[fc]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Rd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Rd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ia]-=1,n[ia]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function G(){!d||y===0?IBe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?IBe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?yBe(m,f,d.stream(),t,e,t[Dr],y,C):pyt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?gyt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?yBe(m,f,d,t,e,t[Dr],y,C):oa(!1)}}function IBe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(oa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[sk]=!0),s.onRequestSent(),n[fc]()}catch(A){t(A)}}function gyt(t,e,r,n,s,i,o,a){oa(a!==0||i[_b]===0,"stream body cannot be pipelined");let A=UIt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[sk]=!0),i[fc]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function pyt(t,e,r,n,s,i,o,a){oa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new bV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[sk]=!0),n[fc]()}catch(A){t(A)}}async function yBe(t,e,r,n,s,i,o,a){oa(o!==0||n[_b]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{oa(A===null),i[Zi]?d(i[Zi]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Zi])throw i[Zi];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[sk]=!0),n[fc]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}BBe.exports=ZIt});var Md=E((KEr,kBe)=>{"use strict";var ju=b("node:assert"),TBe=b("node:net"),Fb=b("node:http"),ug=Ze(),{ClientStats:myt}=BY(),{channels:tE}=wd(),Eyt=VIe(),Cyt=sg(),{InvalidArgumentError:gr,InformationalError:Iyt,ClientDestroyedError:yyt}=je(),Byt=ig(),{kUrl:gc,kServerName:Fd,kClient:byt,kBusy:TV,kConnect:Qyt,kResuming:lg,kRunning:Pb,kPending:Ob,kSize:Mb,kQueue:Za,kConnected:wyt,kConnecting:rE,kNeedDrain:vd,kKeepAliveDefaultTimeout:QBe,kHostHeader:Syt,kPendingIdx:eA,kRunningIdx:Ku,kError:Nyt,kPipelining:ik,kKeepAliveTimeoutValue:Tyt,kMaxHeadersSize:xyt,kKeepAliveMaxTimeout:Ryt,kKeepAliveTimeoutThreshold:Dyt,kHeadersTimeout:kyt,kBodyTimeout:vyt,kStrictContentLength:_yt,kConnector:Lb,kMaxRequests:xV,kCounter:Fyt,kClose:Myt,kDestroy:Lyt,kDispatch:Uyt,kLocalAddress:Ub,kMaxResponseSize:Pyt,kOnError:Oyt,kHTTPContext:rn,kMaxConcurrentStreams:Hyt,kHTTP2InitialWindowSize:Gyt,kHTTP2ConnectionWindowSize:qyt,kResume:_d,kPingInterval:Yyt}=$t(),Vyt=fBe(),Wyt=bBe(),kd=Symbol("kClosedResolve"),Jyt=Fb&&Fb.maxHeaderSize&&Number.isInteger(Fb.maxHeaderSize)&&Fb.maxHeaderSize>0?()=>Fb.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},wBe=()=>{};function xBe(t){return t[ik]??t[rn]?.defaultPipelining??1}var RV=class extends Cyt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:G,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:re,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("unsu
Line truncated
|
||||
`,this[vyt]=a??3e5,this[kyt]=n??3e5,this[_yt]=m??!0,this[xV]=N,this[kd]=null,this[Pyt]=G>-1?G:-1,this[rn]=null,this[Hyt]=D??100,this[Gyt]=re??262144,this[qyt]=Ae??524288,this[Yyt]=ge??6e4,this[Za]=[],this[Ku]=0,this[eA]=0,this[_d]=De=>DV(this,De),this[Oyt]=De=>RBe(this,De)}get pipelining(){return this[ik]}set pipelining(e){this[ik]=e,this[_d](!0)}get stats(){return new myt(this)}get[Ob](){return this[Za].length-this[eA]}get[Pb](){return this[eA]-this[Ku]}get[Mb](){return this[Za].length-this[Ku]}get[wyt](){return!!this[rn]&&!this[rE]&&!this[rn].destroyed}get[TV](){return!!(this[rn]?.busy(null)||this[Mb]>=(xBe(this)||1)||this[Ob]>0)}[Qyt](e){DBe(this),this.once("connect",e)}[Uyt](e,r){let n=new Eyt(this[gc].origin,e,r);return this[Za].push(n),this[lg]||(ug.bodyLength(n.body)==null&&ug.isIterable(n.body)?(this[lg]=1,queueMicrotask(()=>DV(this))):this[_d](!0)),this[lg]&&this[vd]!==2&&this[TV]&&(this[vd]=2),this[vd]<2}[Myt](){return new Promise(e=>{this[Mb]?this[kd]=e:e(null)})}[Lyt](e){return new Promise(r=>{let n=this[Za].splice(this[eA]);for(let i=0;i<n.length;i++){let o=n[i];ug.errorRequest(this,o,e)}let s=()=>{this[kd]&&(this[kd](),this[kd]=null),r(null)};this[rn]?(this[rn].destroy(e,s),this[rn]=null):queueMicrotask(s),this[_d]()})}};function RBe(t,e){if(t[Pb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ju(t[eA]===t[Ku]);let r=t[Za].splice(t[Ku]);for(let n=0;n<r.length;n++){let s=r[n];ug.errorRequest(t,s,e)}ju(t[Mb]===0)}}function DBe(t){ju(!t[rE]),ju(!t[rn]);let{host:e,hostname:r,protocol:n,port:s}=t[gc];if(r[0]==="["){let i=r.indexOf("]");ju(i!==-1);let o=r.substring(1,i);ju(TBe.isIPv6(o)),r=o}t[rE]=!0,tE.beforeConnect.hasSubscribers&&tE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Fd],localAddress:t[Ub]},connector:t[Lb]}),t[Lb]({host:e,hostname:r,protocol:n,port:s,servername:t[Fd],localAddress:t[Ub]},(i,o)=>{if(i){SBe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[_d]();return}if(t.destroyed){ug.destroy(o.on("error",wBe),new yyt),t[_d]();return}ju(o);try{t[rn]=o.alpnProtocol==="h2"?Wyt(t,o):Vyt(t,o)}catch(a){o.destroy().on("error",wBe),SBe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[_d]();return}t[rE]=!1,o[Fyt]=0,o[xV]=t[xV],o[byt]=t,o[Nyt]=null,tE.connected.hasSubscribers&&tE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[rn]?.version,servername:t[Fd],localAddress:t[Ub]},connector:t[Lb],socket:o}),t.emit("connect",t[gc],[t]),t[_d]()})}function SBe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[rE]=!1,tE.connectError.hasSubscribers&&tE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[rn]?.version,servername:t[Fd],localAddress:t[Ub]},connector:t[Lb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ju(t[Pb]===0);t[Ob]>0&&t[Za][t[eA]].servername===t[Fd];){let o=t[Za][t[eA]++];ug.errorRequest(t,o,e)}else RBe(t,e);t.emit("connectionError",t[gc],[t],e)}}function NBe(t){t[vd]=0,t.emit("drain",t[gc],[t])}function DV(t,e){t[lg]!==2&&(t[lg]=2,zyt(t,e),t[lg]=0,t[Ku]>256&&(t[Za].splice(0,t[Ku]),t[eA]-=t[Ku],t[Ku]=0))}function zyt(t,e){for(;;){if(t.destroyed){ju(t[Ob]===0);return}if(t[kd]&&!t[Mb]){t[kd](),t[kd]=null;return}if(t[rn]&&t[rn].resume(),t[TV])t[vd]=2;else if(t[vd]===2){e?(t[vd]=1,queueMicrotask(()=>NBe(t))):NBe(t);continue}if(t[Ob]===0||t[Pb]>=(xBe(t)||1))return;let r=t[Za][t[eA]];if(r===null)return;if(t[gc].protocol==="https:"&&t[Fd]!==r.servername){if(t[Pb]>0)return;t[Fd]=r.servername,t[rn]?.destroy(new Iyt("servername changed"),()=>{t[rn]=null,DV(t)})}if(t[rE])return;if(!t[rn]){DBe(t);return}if(t[rn].destroyed||t[rn].busy(r))return;!r.aborted&&t[rn].write(r)?t[eA]++:t[Za].splice(t[eA],1)}}kBe.exports=RV});var kV=E((XEr,vBe)=>{"use strict";var ok=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};vBe.exports=class{constructor(){this.head=this.tail=new ok}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ok),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ak=E((ZEr,GBe)=>{"use strict";var{PoolStats:jyt}=BY(),Kyt=sg(),$yt=kV(),{kConnected:vV,kSize:_Be,kRunning:FBe,kPending:MBe,kQueued:Hb,kBusy:Xyt,kFree:Zyt,kUrl:eBt,kClose:tBt,kDestroy:rBt,kDispatch:nBt}=$t(),Hn=Symbol("clients"),Hs=Symbol("needDrain"),Gb=Symbol("queue"),_V=Symbol("closed resolve"),FV=Symbol("onDrain"),LBe=Symbol("onConnect"),UBe=Symbol("onDisconnect"),PBe=Symbol("onConnectionError"),MV=Symbol("get dispatcher"),OBe=Symbol("add client"),HBe=Symbol("remove client"),LV=class extends Kyt{[Gb]=new $yt;[Hb]=0;[Hn]=[];[Hs]=!1;[FV](e,r,n){let s=this[Gb],i=!1;for(;!i;){let o=s.shi
Line truncated
|
||||
`,"latin1"),r!==null&&n!==r){if(s[CV])throw new ug;process.emitWarning(new ug)}e[Yr].timeout&&e[Yr].timeoutType===tE&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),s[Rd]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Dd]=!1,e&&(Ve(s[gn]<=1,"pipeline should only contain this request"),n(e))}};uBe.exports=vIt});var IBe=E((fCr,CBe)=>{"use strict";var na=b("node:assert"),{pipeline:YIt}=b("node:stream"),ct=Xe(),{RequestContentLengthMismatchError:NV,RequestAbortedError:VIt,SocketError:Ub,InformationalError:kd,InvalidArgumentError:WIt}=je(),{kUrl:Lb,kReset:ck,kClient:ji,kRunning:Pb,kPending:JIt,kQueue:vd,kPendingIdx:xV,kRunningIdx:Za,kError:Ki,kSocket:Rr,kStrictContentLength:zIt,kOnError:rE,kMaxConcurrentStreams:ak,kPingInterval:dBe,kHTTP2Session:zu,kHTTP2InitialWindowSize:jIt,kHTTP2ConnectionWindowSize:KIt,kResume:gc,kSize:$It,kHTTPContext:RV,kClosed:TV,kBodyTimeout:XIt,kEnableConnectProtocol:Fb,kRemoteSettings:Mb,kHTTP2Stream:ok,kHTTP2SessionState:DV}=Kt(),{channels:hBe}=Nd(),sa=Symbol("open streams"),fBe,Ak;try{Ak=b("node:http2")}catch{Ak={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:ZIt,HTTP2_HEADER_METHOD:gBe,HTTP2_HEADER_PATH:pBe,HTTP2_HEADER_SCHEME:QV,HTTP2_HEADER_CONTENT_LENGTH:eyt,HTTP2_HEADER_EXPECT:tyt,HTTP2_HEADER_STATUS:wV,HTTP2_HEADER_PROTOCOL:ryt,NGHTTP2_REFUSED_STREAM:syt,NGHTTP2_CANCEL:nyt}}=Ak;function SV(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}function iyt(t,e){t[Rr]=e;let r=t[jIt],s=t[KIt],n=Ak.connect(t[Lb],{createConnection:()=>e,peerMaxConcurrentStreams:t[ak],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Rr]=e,n[sa]=0,n[ji]=t,n[Rr]=e,n[DV]={ping:{interval:t[dBe]===0?null:setInterval(cyt,t[dBe],n).unref()}},n[Fb]=!1,n[Mb]=!1,s&&ct.addListener(n,"connect",ayt.bind(n,s)),ct.addListener(n,"error",uyt),ct.addListener(n,"frameError",lyt),ct.addListener(n,"end",dyt),ct.addListener(n,"goaway",hyt),ct.addListener(n,"close",fyt),ct.addListener(n,"remoteSettings",Ayt),n.unref(),t[zu]=n,e[zu]=n,ct.addListener(e,"error",pyt),ct.addListener(e,"end",myt),ct.addListener(e,"close",gyt),e[TV]=!1,e.on("close",Eyt),{version:"h2",defaultPipelining:1/0,write(i){return Iyt(t,i)},resume(){oyt(t)},destroy(i,o){e[TV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Pb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mb]===!1||ct.bodyLength(i.body)!==0&&(ct.isStream(i.body)||ct.isAsyncIterable(i.body)||ct.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&n[Mb]===!1;return!1}}}function oyt(t){let e=t[Rr];e?.destroyed===!1&&(t[$It]===0||t[ak]===0?(e.unref(),t[zu].unref()):(e.ref(),t[zu].ref()))}function ayt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Ayt(t){if(this[ji][ak]=t.maxConcurrentStreams??this[ji][ak],this[Mb]===!0&&this[Fb]===!0&&t.enableConnectProtocol===!1){let e=new kd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Rr][Ki]=e,this[ji][rE](e);return}this[Fb]=t.enableConnectProtocol??this[Fb],this[Mb]=!0,this[ji][gc]()}function cyt(t){let e=t[DV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(s,n){let i=this[ji],o=this[ji];if(s!=null){let a=new kd(`HTTP/2: "PING" errored - type ${s.message}`);o[Ki]=a,i[rE](a)}else i.emit("ping",n)}}function uyt(t){na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Rr][Ki]=t,this[ji][rE](t)}function lyt(t,e,r){if(r===0){let s=new kd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Rr][Ki]=s,this[ji][rE](s)}}function dyt(){let t=new Ub("other side closed",ct.getSocketInfo(this[Rr]));this.destroy(t),ct.destroy(this[Rr],t)}function hyt(t){let e=this[Ki]||new Ub(`HTTP/2: "GOAWAY" frame received with code ${t}`,ct.getSocketInfo(this[Rr])),r=this[ji];if(r[Rr]=null,r[RV]=null,this.close(),this[zu]=null,ct.destroy(this[Rr],e),r[Za]<r[vd].length){let s=r[vd][r[Za]];r[vd][r[Za]++]=null,ct.errorRequest(r,s,e),r[xV]=r[Za]}na(r[Pb]===0),r.emit("disconnect",r[Lb],[r],e),r.emit("connectionError",r[Lb],[r],e),r[gc]()}function fyt(){let{[ji]:t,[DV]:e}=this,{[Rr]:r}=t,s=this[Rr][Ki]||this[Ki]||new Ub("closed",ct.getSocketInfo(r));if(t[Rr]=null,t[RV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){na(t[JIt]===0);let n=t[vd].splice(t[Za]);for(let i=0;i<n.length;i++){let o=n[i];ct.errorRequest(t,o,s)}}}function gyt(){let t=this[Ki]||new Ub("closed",ct.getSocketInfo(this)),e=this[zu][ji];e[Rr]=null,e[RV]=null,this[zu]!==null&&this[zu].destroy(t),e[xV]=e[Za],na(e[Pb]===0),e.emit("disconnect",e[Lb],[e],t),e[gc]()}function pyt(t){na(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ki]=t,this[ji][rE](t)}function myt(){ct.destroy(this,new Ub("other side closed",ct.getSocketInfo(this)))}func
Line truncated
|
||||
`;hBe.sendHeaders.publish({request:e,headers:k,socket:s[Rr]})}let N=n==="GET"||n==="HEAD"||d===null;A?(h[tyt]="100-continue",f=s.request(h,{endStream:N,signal:c}),f[ok]=!0,f.once("continue",q)):(f=s.request(h,{endStream:N,signal:c}),f[ok]=!0,q()),++s[sa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[wV]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),SV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[vd][t[Za]++]=null,t[gc]()):(m(new kd("HTTP/2: stream half-closed (remote)")),t[vd][t[Za]++]=null,t[xV]=t[Za],t[gc]())}),f.once("close",()=>{f.removeAllListeners("data"),s[sa]-=1,s[sa]===0&&s.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new kd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new kd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),s[sa]-=1,s[sa]===0&&s.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function q(){!d||y===0?mBe(m,f,null,t,e,t[Rr],y,C):ct.isBuffer(d)?mBe(m,f,d,t,e,t[Rr],y,C):ct.isBlobLike(d)?typeof d.stream=="function"?EBe(m,f,d.stream(),t,e,t[Rr],y,C):Byt(m,f,d,t,e,t[Rr],y,C):ct.isStream(d)?yyt(m,t[Rr],C,f,d,t,e,y):ct.isIterable(d)?EBe(m,f,d,t,e,t[Rr],y,C):na(!1)}}function mBe(t,e,r,s,n,i,o,a){try{r!=null&&ct.isBuffer(r)&&(na(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),n.onBodySent(r)),a||(i[ck]=!0),n.onRequestSent(),s[gc]()}catch(A){t(A)}}function yyt(t,e,r,s,n,i,o,a){na(a!==0||i[Pb]===0,"stream body cannot be pipelined");let A=YIt(n,s,u=>{u?(ct.destroy(A,u),t(u)):(ct.removeAllListeners(A),o.onRequestSent(),r||(e[ck]=!0),i[gc]())});ct.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function Byt(t,e,r,s,n,i,o,a){na(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new NV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),n.onBodySent(A),n.onRequestSent(),a||(i[ck]=!0),s[gc]()}catch(A){t(A)}}async function EBe(t,e,r,s,n,i,o,a){na(o!==0||s[Pb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{na(A===null),i[Ki]?d(i[Ki]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[Ki])throw i[Ki];let d=e.write(l);n.onBodySent(l),d||await u()}e.end(),n.onRequestSent(),a||(i[ck]=!0),s[gc]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}CBe.exports=iyt});var Ud=E((gCr,xBe)=>{"use strict";var ju=b("node:assert"),wBe=b("node:net"),Ob=b("node:http"),lg=Xe(),{ClientStats:byt}=SY(),{channels:sE}=Nd(),Qyt=GIe(),wyt=ig(),{InvalidArgumentError:fr,InformationalError:Syt,ClientDestroyedError:Nyt}=je(),Tyt=og(),{kUrl:pc,kServerName:Ld,kClient:xyt,kBusy:kV,kConnect:Ryt,kResuming:dg,kRunning:Yb,kPending:Vb,kSize:Hb,kQueue:eA,kConnected:Dyt,kConnecting:nE,kNeedDrain:Fd,kKeepAliveDefaultTimeout:yBe,kHostHeader:kyt,kPendingIdx:tA,kRunningIdx:Ku,kError:vyt,kPipelining:uk,kKeepAliveTimeoutValue:_yt,kMaxHeadersSize:Fyt,kKeepAliveMaxTimeout:Myt,kKeepAliveTimeoutThreshold:Lyt,kHeadersTimeout:Uyt,kBodyTimeout:Pyt,kStrictContentLength:Oyt,kConnector:Gb,kMaxRequests:vV,kCounter:Hyt,kClose:Gyt,kDestroy:qyt,kDispatch:Yyt,kLocalAddress:qb,kMaxResponseSize:Vyt,kOnError:Wyt,kHTTPContext:rs,kMaxConcurrentStreams:Jyt,kHTTP2InitialWindowSize:zyt,kHTTP2ConnectionWindowSize:jyt,kResume:Md,kPingInterval:Kyt}=Kt(),$yt=lBe(),Xyt=IBe(),_d=Symbol("kClosedResolve"),Zyt=Ob&&Ob.maxHeaderSize&&Number.isInteger(Ob.maxHeaderSize)&&Ob.maxHeaderSize>0?()=>Ob.maxHeaderSize:()=>{throw new fr("http module not available or http.maxHeaderSize invalid")},BBe=()=>{};function SBe(t){return t[uk]??t[rs]?.defaultPipelining??1}var _V=class extends wyt{constructor(e,{maxHeaderSize:r,headersTimeout:s,socketTimeout:n,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:q,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ee,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new fr("unsupported keepAlive, use pipelining=0 instead");if(n!==void 0)throw new fr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new fr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new fr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new fr("unsu
Line truncated
|
||||
`,this[Pyt]=a??3e5,this[Uyt]=s??3e5,this[Oyt]=m??!0,this[vV]=N,this[_d]=null,this[Vyt]=q>-1?q:-1,this[rs]=null,this[Jyt]=D??100,this[zyt]=ee??262144,this[jyt]=Ae??524288,this[Kyt]=ge??6e4,this[eA]=[],this[Ku]=0,this[tA]=0,this[Md]=De=>FV(this,De),this[Wyt]=De=>NBe(this,De)}get pipelining(){return this[uk]}set pipelining(e){this[uk]=e,this[Md](!0)}get stats(){return new byt(this)}get[Vb](){return this[eA].length-this[tA]}get[Yb](){return this[tA]-this[Ku]}get[Hb](){return this[eA].length-this[Ku]}get[Dyt](){return!!this[rs]&&!this[nE]&&!this[rs].destroyed}get[kV](){return!!(this[rs]?.busy(null)||this[Hb]>=(SBe(this)||1)||this[Vb]>0)}[Ryt](e){TBe(this),this.once("connect",e)}[Yyt](e,r){let s=new Qyt(this[pc].origin,e,r);return this[eA].push(s),this[dg]||(lg.bodyLength(s.body)==null&&lg.isIterable(s.body)?(this[dg]=1,queueMicrotask(()=>FV(this))):this[Md](!0)),this[dg]&&this[Fd]!==2&&this[kV]&&(this[Fd]=2),this[Fd]<2}[Gyt](){return new Promise(e=>{this[Hb]?this[_d]=e:e(null)})}[qyt](e){return new Promise(r=>{let s=this[eA].splice(this[tA]);for(let i=0;i<s.length;i++){let o=s[i];lg.errorRequest(this,o,e)}let n=()=>{this[_d]&&(this[_d](),this[_d]=null),r(null)};this[rs]?(this[rs].destroy(e,n),this[rs]=null):queueMicrotask(n),this[Md]()})}};function NBe(t,e){if(t[Yb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ju(t[tA]===t[Ku]);let r=t[eA].splice(t[Ku]);for(let s=0;s<r.length;s++){let n=r[s];lg.errorRequest(t,n,e)}ju(t[Hb]===0)}}function TBe(t){ju(!t[nE]),ju(!t[rs]);let{host:e,hostname:r,protocol:s,port:n}=t[pc];if(r[0]==="["){let i=r.indexOf("]");ju(i!==-1);let o=r.substring(1,i);ju(wBe.isIPv6(o)),r=o}t[nE]=!0,sE.beforeConnect.hasSubscribers&&sE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[rs]?.version,servername:t[Ld],localAddress:t[qb]},connector:t[Gb]}),t[Gb]({host:e,hostname:r,protocol:s,port:n,servername:t[Ld],localAddress:t[qb]},(i,o)=>{if(i){bBe(t,i,{host:e,hostname:r,protocol:s,port:n}),t[Md]();return}if(t.destroyed){lg.destroy(o.on("error",BBe),new Nyt),t[Md]();return}ju(o);try{t[rs]=o.alpnProtocol==="h2"?Xyt(t,o):$yt(t,o)}catch(a){o.destroy().on("error",BBe),bBe(t,a,{host:e,hostname:r,protocol:s,port:n}),t[Md]();return}t[nE]=!1,o[Hyt]=0,o[vV]=t[vV],o[xyt]=t,o[vyt]=null,sE.connected.hasSubscribers&&sE.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[rs]?.version,servername:t[Ld],localAddress:t[qb]},connector:t[Gb],socket:o}),t.emit("connect",t[pc],[t]),t[Md]()})}function bBe(t,e,{host:r,hostname:s,protocol:n,port:i}){if(!t.destroyed){if(t[nE]=!1,sE.connectError.hasSubscribers&&sE.connectError.publish({connectParams:{host:r,hostname:s,protocol:n,port:i,version:t[rs]?.version,servername:t[Ld],localAddress:t[qb]},connector:t[Gb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ju(t[Yb]===0);t[Vb]>0&&t[eA][t[tA]].servername===t[Ld];){let o=t[eA][t[tA]++];lg.errorRequest(t,o,e)}else NBe(t,e);t.emit("connectionError",t[pc],[t],e)}}function QBe(t){t[Fd]=0,t.emit("drain",t[pc],[t])}function FV(t,e){t[dg]!==2&&(t[dg]=2,eBt(t,e),t[dg]=0,t[Ku]>256&&(t[eA].splice(0,t[Ku]),t[tA]-=t[Ku],t[Ku]=0))}function eBt(t,e){for(;;){if(t.destroyed){ju(t[Vb]===0);return}if(t[_d]&&!t[Hb]){t[_d](),t[_d]=null;return}if(t[rs]&&t[rs].resume(),t[kV])t[Fd]=2;else if(t[Fd]===2){e?(t[Fd]=1,queueMicrotask(()=>QBe(t))):QBe(t);continue}if(t[Vb]===0||t[Yb]>=(SBe(t)||1))return;let r=t[eA][t[tA]];if(r===null)return;if(t[pc].protocol==="https:"&&t[Ld]!==r.servername){if(t[Yb]>0)return;t[Ld]=r.servername,t[rs]?.destroy(new Syt("servername changed"),()=>{t[rs]=null,FV(t)})}if(t[nE])return;if(!t[rs]){TBe(t);return}if(t[rs].destroyed||t[rs].busy(r))return;!r.aborted&&t[rs].write(r)?t[tA]++:t[eA].splice(t[tA],1)}}xBe.exports=_V});var MV=E((mCr,RBe)=>{"use strict";var lk=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};RBe.exports=class{constructor(){this.head=this.tail=new lk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new lk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var dk=E((ECr,PBe)=>{"use strict";var{PoolStats:tBt}=SY(),rBt=ig(),sBt=MV(),{kConnected:LV,kSize:DBe,kRunning:kBe,kPending:vBe,kQueued:Wb,kBusy:nBt,kFree:iBt,kUrl:oBt,kClose:aBt,kDestroy:ABt,kDispatch:cBt}=Kt(),Hs=Symbol("clients"),Ln=Symbol("needDrain"),Jb=Symbol("queue"),UV=Symbol("closed resolve"),PV=Symbol("onDrain"),_Be=Symbol("onConnect"),FBe=Symbol("onDisconnect"),MBe=Symbol("onConnectionError"),OV=Symbol("get dispatcher"),LBe=Symbol("add client"),UBe=Symbol("remove client"),HV=class extends rBt{[Jb]=new sBt;[Wb]=0;[Hs]=[];[Ln]=!1;[PV](e,r,s){let n=this[Jb],i=!1;for(;!i;){let o=n.shi
Line truncated
|
||||
|
||||
${e.format(r)}`.trim():`${r.length} interceptors are pending:
|
||||
|
||||
${e.format(r)}`.trim())}};uwe.exports=X7});var eW=E((RCr,fwe)=>{"use strict";var{InvalidArgumentError:ewt}=je(),{runtimeFeatures:twt}=Wu();function rwt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var lwe=twt.has("crypto")?b("node:crypto"):null,nwt=lwe?.hash?t=>lwe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function hwe(t){return Array.isArray(t)&&(t.length&1)===0}function swt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function iwt(t){let e={};if(!t)return e;if(hwe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var dwe=["record","playback","update"];function owt(t){if(!dwe.includes(t))throw new ewt(`Invalid snapshot mode: ${t}. Must be one of: ${dwe.join(", ")}`)}fwe.exports={createHeaderFilters:rwt,hashId:nwt,isUndiciHeaders:hwe,normalizeHeaders:iwt,isUrlExcludedFactory:swt,validateSnapshotMode:owt}});var bwe=E((DCr,Bwe)=>{"use strict";var{writeFile:awt,readFile:Awt,mkdir:cwt}=b("node:fs/promises"),{dirname:uwt,resolve:gwe}=b("node:path"),{setTimeout:lwt,clearTimeout:pwe}=b("node:timers"),{InvalidArgumentError:mwe,UndiciError:dwt}=je(),{hashId:hwt,isUrlExcludedFactory:fwt,normalizeHeaders:Ewe,createHeaderFilters:Cwe}=eW();function rQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Ewe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Iwe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Iwe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function ywe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function nQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return hwt(r)}var tW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Cwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=fwt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=rQ(e,this.#a,this.matchOptions),s=nQ(n),i=Ewe(r.headers),o={statusCode:r.statusCode,headers:ywe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=rQ(e,this.#a,this.matchOptions),n=nQ(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new mwe("Snapshot path is required");try{let n=await Awt(gwe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new dwt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new mwe("Snapshot path is required");let n=gwe(r);await cwt(uwt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await awt(n,JSON.s
Line truncated
|
||||
${e.format(r)}`.trim())}};awe.exports=rW});var nW=E((jCr,lwe)=>{"use strict";var{InvalidArgumentError:owt}=je(),{runtimeFeatures:awt}=Wu();function Awt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:s=[],caseSensitive:n=!1}=t;return{ignore:new Set(e.map(i=>n?i:i.toLowerCase())),exclude:new Set(r.map(i=>n?i:i.toLowerCase())),match:new Set(s.map(i=>n?i:i.toLowerCase()))}}var Awe=awt.has("crypto")?b("node:crypto"):null,cwt=Awe?.hash?t=>Awe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function uwe(t){return Array.isArray(t)&&(t.length&1)===0}function uwt(t=[]){return t.length===0?()=>!1:function(r){let s;for(let n of t)if(typeof n=="string"){if(s||(s=r.toLowerCase()),s.includes(n.toLowerCase()))return!0}else if(n instanceof RegExp&&n.test(r))return!0;return!1}}function lwt(t){let e={};if(!t)return e;if(uwe(t)){for(let r=0;r<t.length;r+=2){let s=t[r],n=t[r+1];if(s&&n!==void 0){let i=Buffer.isBuffer(s)?s.toString():s,o=Buffer.isBuffer(n)?n.toString():n;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,s]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(s)?s.join(", "):String(s));return e}var cwe=["record","playback","update"];function dwt(t){if(!cwe.includes(t))throw new owt(`Invalid snapshot mode: ${t}. Must be one of: ${cwe.join(", ")}`)}lwe.exports={createHeaderFilters:Awt,hashId:cwt,isUndiciHeaders:uwe,normalizeHeaders:lwt,isUrlExcludedFactory:uwt,validateSnapshotMode:dwt}});var Iwe=E((KCr,Cwe)=>{"use strict";var{writeFile:hwt,readFile:fwt,mkdir:gwt}=b("node:fs/promises"),{dirname:pwt,resolve:dwe}=b("node:path"),{setTimeout:mwt,clearTimeout:hwe}=b("node:timers"),{InvalidArgumentError:fwe,UndiciError:Ewt}=je(),{hashId:Cwt,isUrlExcludedFactory:Iwt,normalizeHeaders:gwe,createHeaderFilters:pwe}=nW();function aQ(t,e,r={}){let s=new URL(t.path,t.origin),n=t._normalizedHeaders||gwe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=n),{method:t.method||"GET",url:r.matchQuery!==!1?s.toString():`${s.origin}${s.pathname}`,headers:mwe(n,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function mwe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=s?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(n[u]=c)}return n}function Ewe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:s=!1}=r,n={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=s?o:o.toLowerCase();i.has(A)||(n[A]=a)}return n}function AQ(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let s=Object.keys(t.headers).sort();for(let n of s){let i=Array.isArray(t.headers[n])?t.headers[n]:[t.headers[n]];e.push(n);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Cwt(r)}var iW=class{#e;#t;#s=new Map;#r;#n=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#n=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=pwe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Iwt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let s=aQ(e,this.#a,this.matchOptions),n=AQ(s),i=gwe(r.headers),o={statusCode:r.statusCode,headers:Ewe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#s.size>=this.#n&&!this.#s.has(n)){let A=this.#s.keys().next().value;this.#s.delete(A)}let a=this.#s.get(n);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#s.set(n,{request:s,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=aQ(e,this.#a,this.matchOptions),s=AQ(r),n=this.#s.get(s);if(!n)return;let i=n.callCount||0,o=Math.min(i,n.responses.length-1);return n.callCount=i+1,{...n,response:n.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new fwe("Snapshot path is required");try{let s=await fwt(dwe(r),"utf8"),n=JSON.parse(s);if(Array.isArray(n)){this.#s.clear();for(let{hash:i,snapshot:o}of n)this.#s.set(i,o)}else this.#s=new Map(Object.entries(n))}catch(s){if(s.code==="ENOENT")this.#s.clear();else throw new Ewt(`Failed to load snapshots from ${r}`,{cause:s})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new fwe("Snapshot path is required");let s=dwe(r);await gwt(pwt(s),{recursive:!0});let n=Array.from(this.#s.entries()).map(([i,o])=>({hash:i,snapshot:o}));await hwt(s,JSON.s
Line truncated
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
PRAGMA temp_store = memory;
|
||||
PRAGMA optimize;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ro} (
|
||||
CREATE TABLE IF NOT EXISTS cacheInterceptorV${Zi} (
|
||||
-- Data specific to us
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
url TEXT NOT NULL,
|
||||
@@ -133,9 +133,9 @@ ${e.format(r)}`.trim())}};uwe.exports=X7});var eW=E((RCr,fwe)=>{"use strict";var
|
||||
staleAt INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_getValuesQuery ON cacheInterceptorV${ro}(url, method, deleteAt);
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ro}_deleteByUrlQuery ON cacheInterceptorV${ro}(deleteAt);
|
||||
`),this.#r=this.#n.prepare(`
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Zi}_getValuesQuery ON cacheInterceptorV${Zi}(url, method, deleteAt);
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${Zi}_deleteByUrlQuery ON cacheInterceptorV${Zi}(deleteAt);
|
||||
`),this.#r=this.#s.prepare(`
|
||||
SELECT
|
||||
id,
|
||||
body,
|
||||
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};uwe.exports=X7});var eW=E((RCr,fwe)=>{"use strict";var
|
||||
vary,
|
||||
cachedAt,
|
||||
staleAt
|
||||
FROM cacheInterceptorV${ro}
|
||||
FROM cacheInterceptorV${Zi}
|
||||
WHERE
|
||||
url = ?
|
||||
AND method = ?
|
||||
ORDER BY
|
||||
deleteAt ASC
|
||||
`),this.#s=this.#n.prepare(`
|
||||
UPDATE cacheInterceptorV${ro} SET
|
||||
`),this.#n=this.#s.prepare(`
|
||||
UPDATE cacheInterceptorV${Zi} SET
|
||||
body = ?,
|
||||
deleteAt = ?,
|
||||
statusCode = ?,
|
||||
@@ -167,8 +167,8 @@ ${e.format(r)}`.trim())}};uwe.exports=X7});var eW=E((RCr,fwe)=>{"use strict";var
|
||||
staleAt = ?
|
||||
WHERE
|
||||
id = ?
|
||||
`),this.#i=this.#n.prepare(`
|
||||
INSERT INTO cacheInterceptorV${ro} (
|
||||
`),this.#i=this.#s.prepare(`
|
||||
INSERT INTO cacheInterceptorV${Zi} (
|
||||
url,
|
||||
method,
|
||||
body,
|
||||
@@ -182,88 +182,88 @@ ${e.format(r)}`.trim())}};uwe.exports=X7});var eW=E((RCr,fwe)=>{"use strict";var
|
||||
cachedAt,
|
||||
staleAt
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE url = ?`),this.#A=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ro}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ro} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#n.prepare(`
|
||||
DELETE FROM cacheInterceptorV${ro}
|
||||
`),this.#o=this.#s.prepare(`DELETE FROM cacheInterceptorV${Zi} WHERE url = ?`),this.#A=this.#s.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${Zi}`),this.#a=this.#s.prepare(`DELETE FROM cacheInterceptorV${Zi} WHERE deleteAt <= ?`),this.#c=this.#t===1/0?null:this.#s.prepare(`
|
||||
DELETE FROM cacheInterceptorV${Zi}
|
||||
WHERE id IN (
|
||||
SELECT
|
||||
id
|
||||
FROM cacheInterceptorV${ro}
|
||||
FROM cacheInterceptorV${Zi}
|
||||
ORDER BY cachedAt DESC
|
||||
LIMIT ?
|
||||
)
|
||||
`)}close(){this.#n.close()}get(e){bW(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){bW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){bW(e),eSt(r);let n=0,s=[],i=this;return new Z1t({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!tSt(s[l],u[l])){c=!1;break}}if(c)return A}}};function tSt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var wg=E((ZCr,R1e)=>{"use strict";var{kConstruct:rSt}=$t(),{kEnumerableProperty:mE}=Ze(),{iteratorMixin:nSt,isValidHeaderName:aQ,isValidHeaderValue:w1e}=$i(),{webidl:Qt}=$n(),wW=b("node:assert"),Uk=b("node:util");function Q1e(t){return t===10||t===13||t===9||t===32}function S1e(t){let e=0,r=t.length;for(;r>e&&Q1e(t.charCodeAt(r-1));)--r;for(;r>e&&Q1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function N1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Qt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});SW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)SW(t,r[n],e[r[n]])}else throw Qt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function SW(t,e,r){if(r=S1e(r),aQ(e)){if(!w1e(r))throw Qt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Qt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(x1e(t)==="immutable")throw new TypeError("immutable");return Ok(t).append(e,r,!1)}function sSt(t){let e=Ok(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function T1e(t,e){return t[0]<e[0]?-1:1}var Pk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!
Line truncated
|
||||
${i}`;break;case"retry":LNe(i)&&(r[s]=i);break;case"id":UNe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&LNe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&UNe(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}}};PNe.exports={EventSourceStream:cJ}});var zNe=E((QIr,JNe)=>{"use strict";var{pipeline:yRt}=b("node:stream"),{fetching:BRt}=dQ(),{makeRequest:bRt}=CE(),{webidl:qs}=$n(),{EventSourceStream:QRt}=ONe(),{parseMIMEType:wRt}=ta(),{createFastMessageEvent:SRt}=lv(),{isNetworkError:HNe}=cQ(),{kEnumerableProperty:vg}=Ze(),{environmentSettingsObject:GNe}=$i(),qNe=!1,YNe=3e3,CQ=0,VNe=1,IQ=2,NRt="anonymous",TRt="use-credentials",xE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=CQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),qNe||(qNe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=GNe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=NRt;r.withCredentials===!0&&(o=TRt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=GNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=bRt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===IQ)return;this.#r=CQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!HNe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(HNe(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?wRt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=VNe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new QRt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(SRt(A.type,A.options))}});yRt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=BRt(e)}#c(){this.#r!==IQ&&(this.#r=CQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===CQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==IQ&&(this.#r=IQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},WNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:CQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:VNe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:IQ,writable:!1}};Object.defineProperties(xE,WNe);Object.defineProperties(xE.prototype,WNe);Object.defineProperties(xE.prototype,{close:vg,onerror:vg,onmessage:vg,onopen:vg,readyState:vg,url:vg,withCredentials:vg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>YNe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);JNe.exports={EventSource:xE,defaultReconnectionTime:YNe}});var eTe=E((wIr,pe)=>{"use strict";var xRt=Md(),KNe=Eb(),RRt=dg(),DRt=KBe(),kRt=ebe(),vRt=gg(),_Rt=n7(),FRt=ZV(),MRt=Lbe(),LRt=qbe(),URt=Wbe(),$Ne=je(),Qv=Ze(),{InvalidArgumentError:bv}=$Ne,RE=NQe(),PRt=ig(),ORt=H7(),{MockCallHistory:HR
Line truncated
|
||||
`)}close(){this.#s.close()}get(e){NW(e);let r=this.#h(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){NW(e);let s=this.#d(e),n=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=n?.byteLength;if(i&&i>this.#e)return;let o=this.#h(e,!0);o?this.#n.run(n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(s,e.method,n,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){NW(e),oSt(r);let s=0,n=[],i=this;return new iSt({decodeStrings:!0,write(o,a,A){s+=o.byteLength,s<i.#e?n.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:n}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#h(e,r=!1){let s=this.#d(e),{headers:n,method:i}=e,o=this.#r.all(s,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!aSt(n[l],u[l])){c=!1;break}}if(c)return A}}};function aSt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,s)=>r===e[s]):t===e}});var Sg=E((EIr,N1e)=>{"use strict";var{kConstruct:ASt}=Kt(),{kEnumerableProperty:CE}=Xe(),{iteratorMixin:cSt,isValidHeaderName:dQ,isValidHeaderValue:B1e}=zi(),{webidl:wt}=$s(),xW=b("node:assert"),qk=b("node:util");function y1e(t){return t===10||t===13||t===9||t===32}function b1e(t){let e=0,r=t.length;for(;r>e&&y1e(t.charCodeAt(r-1));)--r;for(;r>e&&y1e(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Q1e(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let s=e[r];if(s.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${s.length}.`});RW(t,s[0],s[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let s=0;s<r.length;++s)RW(t,r[s],e[r[s]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function RW(t,e,r){if(r=b1e(r),dQ(e)){if(!B1e(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(S1e(t)==="immutable")throw new TypeError("immutable");return Vk(t).append(e,r,!1)}function uSt(t){let e=Vk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],s=e.toSortedArray(),n=e.cookies;if(n===null||n.length===1)return e.sortedMap=s;for(let i=0;i<s.length;++i){let{0:o,1:a}=s[i];if(o==="set-cookie")for(let A=0;A<n.length;++A)r.push([o,n[A]]);else r.push([o,a])}return e.sortedMap=r}function w1e(t,e){return t[0]<e[0]?-1:1}var Yk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase(),i=this.headersMap.get(n);if(i){let o=n==="cookie"?"; ":", ";this.headersMap.set(n,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(n,{name:e,value:r});n==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,s){this.sortedMap=null;let n=s?e:e.toLowerCase();n==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(n,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:s}of this.headersMap.values())e[r]=s;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!
Line truncated
|
||||
${i}`;break;case"retry":_Ne(i)&&(r[n]=i);break;case"id":FNe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&_Ne(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&FNe(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}}};MNe.exports={EventSourceStream:hJ}});var VNe=E((qIr,YNe)=>{"use strict";var{pipeline:NRt}=b("node:stream"),{fetching:TRt}=mQ(),{makeRequest:xRt}=yE(),{webidl:Pn}=$s(),{EventSourceStream:RRt}=LNe(),{parseMIMEType:DRt}=Zo(),{createFastMessageEvent:kRt}=pv(),{isNetworkError:UNe}=fQ(),{kEnumerableProperty:_g}=Xe(),{environmentSettingsObject:PNe}=zi(),ONe=!1,HNe=3e3,QQ=0,GNe=1,wQ=2,vRt="anonymous",_Rt="use-credentials",DE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#s=!1;#r=QQ;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Pn.util.markAsUncloneable(this);let s="EventSource constructor";Pn.argumentLengthCheck(arguments,1,s),ONe||(ONe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Pn.converters.USVString(e),r=Pn.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let n=PNe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=vRt;r.withCredentials===!0&&(o=_Rt,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=PNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=xRt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#A(){if(this.#r===wQ)return;this.#r=QQ;let e={request:this.#n,dispatcher:this.#a},r=s=>{if(!UNe(s))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(UNe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?DRt(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=GNe,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let a=new RRt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(kRt(A.type,A.options))}});NRt(s.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=TRt(e)}#c(){this.#r!==wQ&&(this.#r=QQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===QQ&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){Pn.brandCheck(this,t),this.#r!==wQ&&(this.#r=wQ,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Pn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=Pn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=Pn.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},qNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:QQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:GNe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:wQ,writable:!1}};Object.defineProperties(DE,qNe);Object.defineProperties(DE.prototype,qNe);Object.defineProperties(DE.prototype,{close:_g,onerror:_g,onmessage:_g,onopen:_g,readyState:_g,url:_g,withCredentials:_g});Pn.converters.EventSourceInitDict=Pn.dictionaryConverter([{key:"withCredentials",converter:Pn.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Pn.converters.any},{key:"node",converter:Pn.dictionaryConverter([{key:"reconnectionTime",converter:Pn.converters["unsigned long"],defaultValue:()=>HNe},{key:"dispatcher",converter:Pn.converters.any}]),defaultValue:()=>({})}]);YNe.exports={EventSource:DE,defaultReconnectionTime:HNe}});var $Ne=E((YIr,pe)=>{"use strict";var FRt=Ud(),JNe=bb(),MRt=hg(),LRt=JBe(),URt=$Be(),PRt=pg(),ORt=a7(),HRt=s7(),GRt=_be(),qRt=Obe(),YRt=qbe(),zNe=je(),xv=Xe(),{InvalidArgumentError:Tv}=zNe,kE=QQe(),VRt=og(),WRt=V7(),{MockCallHistory:JR
Line truncated
|
||||
`).slice(1).join(`
|
||||
`);t.stack=r?`${r}
|
||||
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return XRt(e,r).catch(n=>{throw jNe?ZNe(n,jNe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=wg().Headers;pe.exports.Response=cQ().Response;pe.exports.Request=CE().Request;pe.exports.FormData=J2().FormData;var{setGlobalOrigin:ZRt,getGlobalOrigin:eDt}=GY();pe.exports.setGlobalOrigin=ZRt;pe.exports.getGlobalOrigin=eDt;var{CacheStorage:tDt}=vSe(),{kConstruct:rDt}=$t();pe.exports.caches=new tDt(rDt);var{deleteCookie:nDt,getCookies:sDt,getSetCookies:iDt,setCookie:oDt,parseCookie:aDt}=WSe();pe.exports.deleteCookie=nDt;pe.exports.getCookies=sDt;pe.exports.getSetCookies=iDt;pe.exports.setCookie=oDt;pe.exports.parseCookie=aDt;var{parseMIMEType:ADt,serializeAMimeType:cDt}=ta();pe.exports.parseMIMEType=ADt;pe.exports.serializeAMimeType=cDt;var{CloseEvent:uDt,ErrorEvent:lDt,MessageEvent:dDt}=lv(),{WebSocket:hDt,ping:fDt}=SNe();pe.exports.WebSocket=hDt;pe.exports.CloseEvent=uDt;pe.exports.ErrorEvent=lDt;pe.exports.MessageEvent=dDt;pe.exports.ping=fDt;pe.exports.WebSocketStream=_Ne().WebSocketStream;pe.exports.WebSocketError=sJ().WebSocketError;pe.exports.request=yQ(RE.request);pe.exports.stream=yQ(RE.stream);pe.exports.pipeline=yQ(RE.pipeline);pe.exports.connect=yQ(RE.connect);pe.exports.upgrade=yQ(RE.upgrade);pe.exports.MockClient=ORt;pe.exports.MockCallHistory=HRt;pe.exports.MockCallHistoryLog=GRt;pe.exports.MockPool=YRt;pe.exports.MockAgent=qRt;pe.exports.SnapshotAgent=VRt;pe.exports.mockErrors=WRt;var{EventSource:gDt}=zNe();pe.exports.EventSource=gDt;function pDt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=pDt});var BQ=E(jd=>{"use strict";jd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");jd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");jd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";jd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);jd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);jd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());jd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var rTe=E((TIr,tTe)=>{"use strict";var{asciiLowercase:wv,solelyContainsHTTPTokenCodePoints:mDt,soleyContainsHTTPQuotedStringTokenCodePoints:EDt}=BQ();tTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=wv(String(e)),this._map.get(e)}has(e){return e=wv(String(e)),this._map.has(e)}set(e,r){if(e=wv(String(e)),r=String(r),!mDt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!EDt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=wv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var iTe=E((xIr,sTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:CDt,removeTrailingHTTPWhitespace:nTe,isHTTPWhitespaceChar:IDt,solelyContainsHTTPTokenCodePoints:uJ,soleyContainsHTTPQuotedStringTokenCodePoints:yDt,asciiLowercase:lJ,collectAnHTTPQuotedString:BDt}=BQ();sTe.exports=t=>{t=CDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!uJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=nTe(n),n.length===0||!uJ(n))return null;let s={type:lJ(r),subtype:lJ(n),parameters:new Map};for(;e<t.length;){for(++e;IDt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=lJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=BDt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=nTe(o),o==="")continue}i.length>0&&uJ(i)&&yDt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var aTe=E((RIr,oTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:bDt}=BQ();oTe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!bDt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var lTe=E((kIr,uTe)=>{"use strict";var QDt=rTe(),wDt=iTe(),SDt=aTe(),{asciiLowercase:ATe,solelyContainsHTTPTokenCodePoints:cTe}=BQ();uTe.exports=class{constructor(e){e=String(e);let r=wDt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new QDt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=ATe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!cTe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=ATe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!cTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return SDt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var NTe=E((Vyr,VDt)=>{VDt.exports={name:"@actions/artifact",version:"6.1.0",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
|
||||
%s`,k,k,f,s);let P=f.type==="*"?iz:f.type==="?"?Az:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=o2t[s.charAt(0)];for(let k=A.length-1;k>-1;k--){let P=A[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),re=s.slice(P.reEnd-8,P.reEnd)+Z,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=Z;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==oz?"(?:$|\\/)":"";s=D+z+Z+Ke+re}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===oz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return A2t(e);let G=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",G),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?iz:r.dot?s2t:i2t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?u2t(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;az.sep!=="/"&&(e=e.split(az.sep).join("/")),e=e.split(exe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return ao.defaults(e).Minimatch}};ao.Minimatch=ME});var Axe=E((yBr,axe)=>{axe.exports=oxe;var lz=b("fs"),{EventEmitter:d2t}=b("events"),{Minimatch:uz}=nxe(),{resolve:h2t}=b("path");function f2t(t,e){return new Promise((r,n)=>{lz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function sxe(t,e){return new Promise((r,n)=>{(e?lz.stat:lz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?sxe(t,!1):null):r(null):r(o)})})}async function*ixe(t,e,r,n,s,i){let o=await f2t(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await sxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*ixe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*g2t(t,e,r,n){yield*ixe("",t,e,r,n,!0)}function p2t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var kv=class extends d2t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=p2t(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new uz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new uz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new uz(i,{dot:!0}))}this.iterator=g2t(h2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab
Line truncated
|
||||
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function LC(Q){let B=MC(Q.toString()),w=B.match(OF);if(w||(w=B.match(HF)),!w)throw new Error(`could not parse args in autoInject
|
||||
${i}`:n.stack}pe.exports.fetch=function(e,r=void 0){return nDt(e,r).catch(s=>{throw WNe?KNe(s,WNe):s&&typeof s=="object"&&Error.captureStackTrace(s,pe.exports.fetch),s})};pe.exports.Headers=Sg().Headers;pe.exports.Response=fQ().Response;pe.exports.Request=yE().Request;pe.exports.FormData=X2().FormData;var{setGlobalOrigin:iDt,getGlobalOrigin:oDt}=WY();pe.exports.setGlobalOrigin=iDt;pe.exports.getGlobalOrigin=oDt;var{CacheStorage:aDt}=RSe(),{kConstruct:ADt}=Kt();pe.exports.caches=new aDt(ADt);var{deleteCookie:cDt,getCookies:uDt,getSetCookies:lDt,setCookie:dDt,parseCookie:hDt}=qSe();pe.exports.deleteCookie=cDt;pe.exports.getCookies=uDt;pe.exports.getSetCookies=lDt;pe.exports.setCookie=dDt;pe.exports.parseCookie=hDt;var{parseMIMEType:fDt,serializeAMimeType:gDt}=Zo();pe.exports.parseMIMEType=fDt;pe.exports.serializeAMimeType=gDt;var{CloseEvent:pDt,ErrorEvent:mDt,MessageEvent:EDt}=pv(),{WebSocket:CDt,ping:IDt}=bNe();pe.exports.WebSocket=CDt;pe.exports.CloseEvent=pDt;pe.exports.ErrorEvent=mDt;pe.exports.MessageEvent=EDt;pe.exports.ping=IDt;pe.exports.WebSocketStream=DNe().WebSocketStream;pe.exports.WebSocketError=AJ().WebSocketError;pe.exports.request=SQ(kE.request);pe.exports.stream=SQ(kE.stream);pe.exports.pipeline=SQ(kE.pipeline);pe.exports.connect=SQ(kE.connect);pe.exports.upgrade=SQ(kE.upgrade);pe.exports.MockClient=WRt;pe.exports.MockCallHistory=JRt;pe.exports.MockCallHistoryLog=zRt;pe.exports.MockPool=KRt;pe.exports.MockAgent=jRt;pe.exports.SnapshotAgent=$Rt;pe.exports.mockErrors=XRt;var{EventSource:yDt}=VNe();pe.exports.EventSource=yDt;function BDt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=BDt});var NQ=E($d=>{"use strict";$d.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");$d.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");$d.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";$d.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);$d.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);$d.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());$d.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let s=t[e];if(++e,s==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var ZNe=E((JIr,XNe)=>{"use strict";var{asciiLowercase:Rv,solelyContainsHTTPTokenCodePoints:bDt,soleyContainsHTTPQuotedStringTokenCodePoints:QDt}=NQ();XNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Rv(String(e)),this._map.get(e)}has(e){return e=Rv(String(e)),this._map.has(e)}set(e,r){if(e=Rv(String(e)),r=String(r),!bDt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!QDt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Rv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var rTe=E((zIr,tTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:wDt,removeTrailingHTTPWhitespace:eTe,isHTTPWhitespaceChar:SDt,solelyContainsHTTPTokenCodePoints:fJ,soleyContainsHTTPQuotedStringTokenCodePoints:NDt,asciiLowercase:gJ,collectAnHTTPQuotedString:TDt}=NQ();tTe.exports=t=>{t=wDt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!fJ(r)||e>=t.length)return null;++e;let s="";for(;e<t.length&&t[e]!==";";)s+=t[e],++e;if(s=eTe(s),s.length===0||!fJ(s))return null;let n={type:gJ(r),subtype:gJ(s),parameters:new Map};for(;e<t.length;){for(++e;SDt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=gJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=TDt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=eTe(o),o==="")continue}i.length>0&&fJ(i)&&NDt(o)&&!n.parameters.has(i)&&n.parameters.set(i,o)}return n}});var nTe=E((jIr,sTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:xDt}=NQ();sTe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,s]of t.parameters)e+=";",e+=r,e+="=",(!xDt(s)||s.length===0)&&(s=s.replace(/(["\\])/ug,"\\$1"),s=`"${s}"`),e+=s;return e}});var ATe=E(($Ir,aTe)=>{"use strict";var RDt=ZNe(),DDt=rTe(),kDt=nTe(),{asciiLowercase:iTe,solelyContainsHTTPTokenCodePoints:oTe}=NQ();aTe.exports=class{constructor(e){e=String(e);let r=DDt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new RDt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=iTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!oTe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=iTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!oTe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return kDt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var QTe=E((uBr,JDt)=>{JDt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
|
||||
%s`,k,k,f,n);let P=f.type==="*"?iz:f.type==="?"?Az:"\\"+f.type;i=!0,n=n.slice(0,f.reStart)+P+"\\("+k}N(),o&&(n+="\\\\");let M=A2t[n.charAt(0)];for(let k=A.length-1;k>-1;k--){let P=A[k],D=n.slice(0,P.reStart),z=n.slice(P.reStart,P.reEnd-8),Z=n.slice(P.reEnd),ee=n.slice(P.reEnd-8,P.reEnd)+Z,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=Z;for(let nt=0;nt<ge;nt++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==oz?"(?:$|\\/)":"";n=D+z+Z+Ke+ee}if(n!==""&&i&&(n="(?=.)"+n),M&&(n=C()+n),r===oz)return[n,i];if(s.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return u2t(e);let q=s.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",q),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,s=r.noglobstar?iz:r.dot?o2t:a2t,n=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?d2t(a):a===On?On:a._src).reduce((a,A)=>(a[a.length-1]===On&&A===On||a.push(A),a),[]),o.forEach((a,A)=>{a!==On||o[A-1]===On||(A===0?o.length>1?o[A+1]="(?:\\/|"+s+"\\/)?"+o[A+1]:o[A]=s:A===o.length-1?o[A-1]+="(?:\\/|"+s+")?":(o[A-1]+="(?:\\/|\\/"+s+"\\/)"+o[A+1],o[A+1]=On))}),o.filter(a=>a!==On).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let s=this.options;az.sep!=="/"&&(e=e.split(az.sep).join("/")),e=e.split($Te),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<n.length;o++){let a=n[o],A=e;if(s.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return io.defaults(e).Minimatch}};io.Minimatch=PE});var ixe=E((OBr,nxe)=>{nxe.exports=sxe;var lz=b("fs"),{EventEmitter:f2t}=b("events"),{Minimatch:uz}=exe(),{resolve:g2t}=b("path");function p2t(t,e){return new Promise((r,s)=>{lz.readdir(t,{withFileTypes:!0},(n,i)=>{if(n)switch(n.code){case"ENOTDIR":e?s(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:s(n);break}else r(i)})})}function txe(t,e){return new Promise((r,s)=>{(e?lz.stat:lz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?txe(t,!1):null):r(null):r(o)})})}async function*rxe(t,e,r,s,n,i){let o=await p2t(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,s=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(s||r)&&(d=await txe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?n(u)||(yield{relative:u,absolute:l,stats:d},yield*rxe(c,e,r,s,n,!1)):yield{relative:u,absolute:l,stats:d}}}async function*m2t(t,e,r,s){yield*rxe("",t,e,r,s,!0)}function E2t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Mv=class extends f2t{constructor(e,r,s){if(super(),typeof r=="function"&&(s=r,r=null),this.options=E2t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(i=>new uz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(i=>new uz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(i=>new uz(i,{dot:!0}))}this.iterator=m2t(g2t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,s&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>s(n)),this.on("end",()=>s(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let s=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(s)))&&!this.ignoreMatchers.some(n=>n.match(s))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let s=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(s+="/",n+="/"),this.options.stat?this.emit("match",{relative:s,absolute:n,stat:e.value.stats}):this.emit("match",{relative:s,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab
Line truncated
|
||||
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function OC(Q){let B=PC(Q.toString()),w=B.match(VF);if(w||(w=B.match(WF)),!w)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Vw).map(H=>H.replace(Ww,"").trim())}function UC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),w[F]=Y.concat(Y.length>0?ee:H);else if(j)w[F]=H;else{if(Y=LC(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(ee)}function ee(Se,yt){var Ft=Y.map(wt=>Se[wt]);Ft.push(yt),I(H)(...Ft)}}),FC(w,B)}class PC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):OC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):OC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function OC(Q,B){Q.length=1,Q.head=Q.tail=B}function hp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function ee(Ue,be){let Pe=(...St)=>{Se(Ue,Pe),be(...St)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function wt(Ue,be,Pe,St){if(St!=null&&typeof St!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,wn;function go(bh,...JC){if(bh)return Pe?wn(bh):Ir();if(JC.length<=1)return Ir(JC[0]);Ir(JC)}var mp=Mt._createTaskItem(Ue,Pe?go:St||go);if(be?Mt._tasks.unshift(mp):Mt._tasks.push(mp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!St)return new Promise((bh,JC)=>{Ir=bh,wn=JC})}function fo(Ue){return function(be,...Pe){H-=1;for(var St=0,Ir=Ue.length;St<Ir;St++){var wn=Ue[St],go=Y.indexOf(wn);go===0?Y.shift():go>0&&Y.splice(go,1),wn.callback(be,...Pe),be!=null&&yt("error",be,wn.data)}H<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function pp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>yt("drain")),!0):!1}let Bh=Ue=>be=>{if(!be)return new Promise((Pe,St)=>{ee(Ue,(Ir,wn)=>{if(Ir)return St(Ir);Pe(wn)})});Se(Ue),j(Ue,be)};var WC=!1,Mt={_tasks:new PC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?pp(Ue)?void 0:Ue.map(Pe=>wt(Pe,!1,!1,be)):wt(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?pp(Ue)?void 0:Ue.map(Pe=>wt(Pe,!1,!0,be)):wt(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?pp(Ue)?void 0:Ue.map(Pe=>wt(Pe,!0,!1,be)):wt(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?pp(Ue)?void 0:Ue.map(Pe=>wt(Pe,!0,!0,be)):wt(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!WC){for(WC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var St=0;St<Pe;St++){var Ir=Mt._tasks.shift();Ue.push(Ir),Y.push(Ir),be.push(Ir.data)}H+=1,Mt._tasks.length===0&&yt("empty"),H===Mt.concurrency&&yt("saturated");var wn=re(fo(Ue));F(be,wn)}WC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return Y},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Bh("saturated")},unsaturated:{writable:!1,value:Bh("unsaturated")},empty:{writable:!1,value:Bh("empty")},drain:{writable:!1,value:Bh("drain")},error:{writable:!1,value:Bh("error")}}),Mt}function HC(Q,B){return hp(Q,1,B)}function fp(Q,B,w){return hp(Q,B,w)}function ho(Q,B,w,F){F=G(F);var H=I(w);return Ks(Q,(Y,J,j)=>{H(B,Y,(ee,Se)=>{B=Se,j(ee)})},Y=>F(Y,B))}var Ea=m(ho,4);function gp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=zc(),Ea(B,w,(Y,J,j)=>{J.apply(F,Y.concat((ee,...Se)=>{j(ee,Se)}))},(Y,J)=>H(Y,...J)),H[Jc]}}function Jw(...Q){return gp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=m(we,4);function T(Q,B,w,F){var H=I(w);return O(Q,B,(Y,J)=>{H(Y,(j,...ee)=>j?J(j):J(j,ee))},(Y,J)=>{for(var j=[],ee=0;ee<J.length;ee++)J[ee]&&(j=j.concat(...J[ee]));return F(Y,j)})}var q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur
Line truncated
|
||||
GFS4: `),console.error(t)});kr[Zn]||(Exe=global[Zn]||[],Ixe(kr,Exe),kr.close=(function(t){function e(r,n){return t.call(kr,r,function(s){s||Cxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Lv,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),Cxe()}return Object.defineProperty(e,Lv,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Mg(kr[Zn]),b("assert").equal(kr[Zn].length,0)}));var Exe;global[Zn]||Ixe(global,kr[Zn]);gz.exports=hz(w2t(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(gz.exports=hz(kr),kr.__patched=!0);function hz(t){b2t(t),t.gracefulify=hz,t.createReadStream=M,t.createWriteStream=G;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),re(D,z,Z);function re(Ae,ge,De,Ke){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?LE([re,[Ae,ge,De],it,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(D,z,Z,re);function Ae(ge,De,Ke,it,Wt){return n(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?LE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(D,z,Z,re);function Ae(ge,De,Ke,it,Wt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?LE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,Z,re){return typeof Z=="function"&&(re=Z,Z=0),Ae(D,z,Z,re);function Ae(ge,De,Ke,it,Wt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?LE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var re=u.test(process.version)?function(De,Ke,it,Wt){return c(De,Ae(De,Ke,it,Wt))}:function(De,Ke,it,Wt){return c(De,Ke,Ae(De,Ke,it,Wt))};return re(D,z,Z);function Ae(ge,De,Ke,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?LE([re,[ge,De,Ke],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Q2t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function G(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,re){return typeof Z=="function"&&(re=Z,Z=null),Ae(D,z,Z,re);function Ae(ge,De,Ke,it,Wt){return k(ge,De,Ke,function(vt,dn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?LE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function LE(t){Mg("ENQUEUE",t[0].name,t[1]),kr[Zn].push(t),fz()}var Mv;function Cxe(){for(var t=Date.now(),e=0;e<kr[Zn].length;++e)kr[Zn][e].length>2&&(kr[Zn][e][3]=t,kr[Zn][e][4]=t);fz()}function fz(){if(clearTimeout(Mv),Mv=void 0,kr[Zn].length!==0){var t=kr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Mg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Mg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Mg("RETRY",e.name,r),e.apply(null,r.concat([s]))):kr[Zn].push(t)}Mv===void 0&&(Mv=setTimeout(fz,0))}}});var Uv=E((SBr,yxe)=>{"use strict";var vc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vc.writable=t=>vc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vc.readable=t=>vc(t)&&t.readable!==!1&&typeo
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};ZDe.exports={AggregateError:$z,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Xz=E((Mbr,e2e)=>{"use strict";e2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Bs=E((Lbr,n2e)=>{"use strict";var{format:zFt,inspect:n_}=Xz(),{AggregateError:jFt}=Tr(),KFt=globalThis.AggregateError||jFt,$Ft=Symbol("kIsNodeError"),XFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],ZFt=/^([A-Z][a-z0-9]*)+$/,eMt="__node_internal_",s_={};function Pg(t,e){if(!t)throw new s_.ERR_INTERNAL_ASSERTION(e)}function t2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function tMt(t,e,r){if(typeof e=="function")return Pg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Pg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:zFt(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(tMt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[$Ft]=!0,s_[t]=n}function r2e(t){let e=eMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function rMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KFt([e,t],e.message);return r.code=e.code,r}return t||e}var Zz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new s_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Pg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)Pg(typeof A=="string","All expected entries have to be of type string"),XFt.includes(A)?s.push(A.toLowerCase()):ZFt.test(A)?i.push(A):(Pg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
|
||||
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Kw).map(H=>H.replace($w,"").trim())}function HC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),w[F]=Y.concat(Y.length>0?te:H);else if(j)w[F]=H;else{if(Y=OC(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),w[F]=Y.concat(te)}function te(Se,yt){var Ft=Y.map(St=>Se[St]);Ft.push(yt),I(H)(...Ft)}}),UC(w,B)}class GC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):qC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):qC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function qC(Q,B){Q.length=1,Q.head=Q.tail=B}function gp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Cr,ws;function ho(wh,...KC){if(wh)return Pe?ws(wh):Cr();if(KC.length<=1)return Cr(KC[0]);Cr(KC)}var Cp=Mt._createTaskItem(Ue,Pe?ho:Nt||ho);if(be?Mt._tasks.unshift(Cp):Mt._tasks.push(Cp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((wh,KC)=>{Cr=wh,ws=KC})}function lo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,Cr=Ue.length;Nt<Cr;Nt++){var ws=Ue[Nt],ho=Y.indexOf(ws);ho===0?Y.shift():ho>0&&Y.splice(ho,1),ws.callback(be,...Pe),be!=null&&yt("error",be,ws.data)}H<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function Ep(Ue){return Ue.length===0&&Mt.idle()?(c(()=>yt("drain")),!0):!1}let Qh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Cr,ws)=>{if(Cr)return Nt(Cr);Pe(ws)})});Se(Ue),j(Ue,be)};var jC=!1,Mt={_tasks:new GC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Ep(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!jC){for(jC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Cr=Mt._tasks.shift();Ue.push(Cr),Y.push(Cr),be.push(Cr.data)}H+=1,Mt._tasks.length===0&&yt("empty"),H===Mt.concurrency&&yt("saturated");var ws=ee(lo(Ue));F(be,ws)}jC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return Y},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Qh("saturated")},unsaturated:{writable:!1,value:Qh("unsaturated")},empty:{writable:!1,value:Qh("empty")},drain:{writable:!1,value:Qh("drain")},error:{writable:!1,value:Qh("error")}}),Mt}function YC(Q,B){return gp(Q,1,B)}function pp(Q,B,w){return gp(Q,B,w)}function uo(Q,B,w,F){F=q(F);var H=I(w);return Wn(Q,(Y,J,j)=>{H(B,Y,(te,Se)=>{B=Se,j(te)})},Y=>F(Y,B))}var Ca=m(uo,4);function mp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=jc(),Ca(B,w,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[zc]}}function Xw(...Q){return mp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=m(we,4);function T(Q,B,w,F){var H=I(w);return O(Q,B,(Y,J)=>{H(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var G=m(T,4);function K(Q,B,w){return G(Q,1/0,B,w)}var $=m(K,3);function oe(Q,B,w){retur
Line truncated
|
||||
GFS4: `),console.error(t)});kr[Zs]||(gxe=global[Zs]||[],mxe(kr,gxe),kr.close=(function(t){function e(r,s){return t.call(kr,r,function(n){n||pxe(),typeof s=="function"&&s.apply(this,arguments)})}return Object.defineProperty(e,Hv,{value:t}),e})(kr.close),kr.closeSync=(function(t){function e(r){t.apply(kr,arguments),pxe()}return Object.defineProperty(e,Hv,{value:t}),e})(kr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ug(kr[Zs]),b("assert").equal(kr[Zs].length,0)}));var gxe;global[Zs]||mxe(global,kr[Zs]);gz.exports=hz(N2t(kr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!kr.__patched&&(gz.exports=hz(kr),kr.__patched=!0);function hz(t){w2t(t),t.gracefulify=hz,t.createReadStream=M,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ee(D,z,Z);function ee(Ae,ge,De,Ke){return e(Ae,ge,function(nt){nt&&(nt.code==="EMFILE"||nt.code==="ENFILE")?OE([ee,[Ae,ge,De],nt,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var s=t.writeFile;t.writeFile=n;function n(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return s(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=0),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ee=u.test(process.version)?function(De,Ke,nt,Yt){return c(De,Ae(De,Ke,nt,Yt))}:function(De,Ke,nt,Yt){return c(De,Ke,Ae(De,Ke,nt,Yt))};return ee(D,z,Z);function Ae(ge,De,Ke,nt){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?OE([ee,[ge,De,Ke],Yt,nt||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=S2t(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function q(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,Z,ee){return typeof Z=="function"&&(ee=Z,Z=null),Ae(D,z,Z,ee);function Ae(ge,De,Ke,nt,Yt){return k(ge,De,Ke,function(vt,ds){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?OE([Ae,[ge,De,Ke,nt],vt,Yt||Date.now(),Date.now()]):typeof nt=="function"&&nt.apply(this,arguments)})}}return t}function OE(t){Ug("ENQUEUE",t[0].name,t[1]),kr[Zs].push(t),fz()}var Ov;function pxe(){for(var t=Date.now(),e=0;e<kr[Zs].length;++e)kr[Zs][e].length>2&&(kr[Zs][e][3]=t,kr[Zs][e][4]=t);fz()}function fz(){if(clearTimeout(Ov),Ov=void 0,kr[Zs].length!==0){var t=kr[Zs].shift(),e=t[0],r=t[1],s=t[2],n=t[3],i=t[4];if(n===void 0)Ug("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Ug("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,s)}else{var a=Date.now()-i,A=Math.max(i-n,1),c=Math.min(A*1.2,100);a>=c?(Ug("RETRY",e.name,r),e.apply(null,r.concat([n]))):kr[Zs].push(t)}Ov===void 0&&(Ov=setTimeout(fz,0))}}});var Gv=E((VBr,Exe)=>{"use strict";var _c=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";_c.writable=t=>_c(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";_c.readable=t=>_c(t)&&t.readable!==!1&&typeo
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};KDe.exports={AggregateError:$z,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Xz=E((tQr,$De)=>{"use strict";$De.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,s]){let n=e.shift();return s==="f"?n.toFixed(6):s==="j"?JSON.stringify(n):s==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var En=E((rQr,e2e)=>{"use strict";var{format:KFt,inspect:a_}=Xz(),{AggregateError:$Ft}=Nr(),XFt=globalThis.AggregateError||$Ft,ZFt=Symbol("kIsNodeError"),eMt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],tMt=/^([A-Z][a-z0-9]*)+$/,rMt="__node_internal_",A_={};function Hg(t,e){if(!t)throw new A_.ERR_INTERNAL_ASSERTION(e)}function XDe(t){let e="",r=t.length,s=t[0]==="-"?1:0;for(;r>=s+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function sMt(t,e,r){if(typeof e=="function")return Hg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let s=(e.match(/%[dfijoOs]/g)||[]).length;return Hg(s===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${s}).`),r.length===0?e:KFt(e,...r)}function tn(t,e,r){r||(r=Error);class s extends r{constructor(...i){super(sMt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(s.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),s.prototype.code=t,s.prototype[ZFt]=!0,A_[t]=s}function ZDe(t){let e=rMt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function nMt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new XFt([e,t],e.message);return r.code=e.code,r}return t||e}var Zz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new A_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};tn("ERR_ASSERTION","%s",Error);tn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Hg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";t.endsWith(" argument")?s+=`${t} `:s+=`"${t}" ${t.includes(".")?"property":"argument"} `,s+="must be ";let n=[],i=[],o=[];for(let A of e)Hg(typeof A=="string","All expected entries have to be of type string"),eMt.includes(A)?n.push(A.toLowerCase()):tMt.test(A)?i.push(A):(Hg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=n.indexOf("object");A!==-1&&(n.splice(n,A,1),i.push("Object"))}if(n.length>0){switch(n.length){case 1:s+=`of type ${n[0]}`;break;case 2:s+=`one of type ${n[0]} or ${n[1]}`;break;default:{lLine truncated
|
||||
`)),e.linkname&&(r+=D$(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=D$(" "+s+"="+n[s]+`
|
||||
`);return kt.from(r)};QC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};QC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,fh(e.mode&hGt,6),100),kt.write(r,fh(e.uid,6),108),kt.write(r,fh(e.gid,6),116),IGt(e.size,r,124),kt.write(r,fh(e.mtime.getTime()/1e3|0,11),136),r[156]=kF+EGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(wUe,r,Lw),kt.copy(uGt,r,k$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,fh(e.devmajor||0,6),329),kt.write(r,fh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,fh(NUe(r),6),148),r)};QC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-kF,i=bC(e,0,100,r),o=hh(e,100,8),a=hh(e,108,8),A=hh(e,116,8),c=hh(e,124,12),u=hh(e,136,12),l=mGt(s),d=e[157]===0?null:bC(e,157,100,r),h=bC(e,265,32),f=bC(e,297,32),p=hh(e,329,8),I=hh(e,337,8),m=NUe(e);if(m===256)return null;if(m!==hh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(fGt(e))e[345]&&(i=bC(e,345,155,r)+"/"+i);else if(!gGt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function fGt(t){return kt.equals(wUe,t.subarray(Lw,Lw+6))}function gGt(t){return kt.equals(lGt,t.subarray(Lw,Lw+6))&&kt.equals(dGt,t.subarray(k$,k$+2))}function pGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function mGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function EGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function SUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function NUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function fh(t,e){return t=t.toString(8),t.length>e?cGt.slice(0,e)+" ":AGt.slice(0,e-t.length)+t+" "}function CGt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function IGt(t,e,r){t.toString(8).length>11?CGt(t,e,r):kt.write(e,fh(t,11),r)}function yGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function hh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return yGt(t);{for(;e<t.length&&t[e]===32;)e++;let n=pGt(SUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function bC(t,e,r,n){return kt.toString(t.subarray(e,SUe(t,0,e,e+r)),n)}function D$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var kUe=E((c1r,DUe)=>{var{Writable:BGt,Readable:bGt,getStreamError:TUe}=R$(),QGt=g$(),xUe=EC(),wC=v$(),wGt=xUe.alloc(0),F$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new QGt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return wGt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return xUe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},M$=class extends bGt{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(TUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=RUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},L$=class extends BGt{constru
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function FP(t){process.exitCode=vP.Failure,du(t)}function Pl(){return process.env.RUNNER_DEBUG==="1"}function V(t){Qh("debug",{},t)}function du(t,e={}){Qh("error",h1(e),t instanceof Error?t.toString():t)}function et(t,e={}){Qh("warning",h1(e),t instanceof Error?t.toString():t)}function Sae(t,e={}){Qh("notice",h1(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+wae.EOL)}function KI(t,e){if(process.env.GITHUB_STATE||"")return UX("STATE",PX(t,e));Qh("save-state",{name:t},ml(e))}function QA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as VJe,existsSync as WJe}from"fs";import{EOL as JJe}from"os";var fm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(WJe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(VJe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${JJe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var PP=fe(Dae(),1),kae=fe(lN(),1),oze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function vae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function _ae(t){return new PP.HttpClient().getAgent(t)}function aze(t){return new PP.HttpClient().getAgentDispatcher(t)}function Fae(t){let e=aze(t);return(n,s)=>oze(this,void 0,void 0,function*(){return(0,kae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Mae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function OP(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function wN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function SN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>SN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Lae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Uae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Pae=Function.bind,Oae=Pae.bind(Pae);function Hae(t,e,r){let n=Oae(Uae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Oae(Lae,null).apply(null,i)})}function cze(){let t=Symbol("Singular"),e={registry:{}},r=SN.bind(null,e,t);return Hae(r,e,t),r}function uze(){let t={registry:{}},e=SN.bind(null,t);return Hae(e,t),e}var Gae={Singular:cze,Collection:uze};var nO=fe(ZP(),1);var fAe=fe(ZP(),1);var nje="0.0.0-development";function sje(t){return`Request failed due to following response errors:
|
||||
`));let s=e.pax;if(s)for(let n in s)r+=D$(" "+n+"="+s[n]+`
|
||||
`);return kt.from(r)};NC.decodePax=function(e){let r={};for(;e.length;){let s=0;for(;s<e.length&&e[s]!==32;)s++;let n=parseInt(kt.toString(e.subarray(0,s)),10);if(!n)return r;let i=kt.toString(e.subarray(s+1,n-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(n)}return r};NC.encode=function(e){let r=kt.alloc(512),s=e.name,n="";if(e.typeflag===5&&s[s.length-1]!=="/"&&(s+="/"),kt.byteLength(s)!==s.length)return null;for(;kt.byteLength(s)>100;){let i=s.indexOf("/");if(i===-1)return null;n+=n?"/"+s.slice(0,i):s.slice(0,i),s=s.slice(i+1)}return kt.byteLength(s)>100||kt.byteLength(n)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,s),kt.write(r,ph(e.mode&gGt,6),100),kt.write(r,ph(e.uid,6),108),kt.write(r,ph(e.gid,6),116),BGt(e.size,r,124),kt.write(r,ph(e.mtime.getTime()/1e3|0,11),136),r[156]=MF+IGt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(BUe,r,Hw),kt.copy(dGt,r,k$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,ph(e.devmajor||0,6),329),kt.write(r,ph(e.devminor||0,6),337),n&&kt.write(r,n,345),kt.write(r,ph(QUe(r),6),148),r)};NC.decode=function(e,r,s){let n=e[156]===0?0:e[156]-MF,i=SC(e,0,100,r),o=gh(e,100,8),a=gh(e,108,8),A=gh(e,116,8),c=gh(e,124,12),u=gh(e,136,12),l=CGt(n),d=e[157]===0?null:SC(e,157,100,r),h=SC(e,265,32),f=SC(e,297,32),p=gh(e,329,8),I=gh(e,337,8),m=QUe(e);if(m===256)return null;if(m!==gh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(pGt(e))e[345]&&(i=SC(e,345,155,r)+"/"+i);else if(!mGt(e)){if(!s)throw new Error("Invalid tar header: unknown format.")}return n===0&&i&&i[i.length-1]==="/"&&(n=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function pGt(t){return kt.equals(BUe,t.subarray(Hw,Hw+6))}function mGt(t){return kt.equals(hGt,t.subarray(Hw,Hw+6))&&kt.equals(fGt,t.subarray(k$,k$+2))}function EGt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function CGt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function IGt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function bUe(t,e,r,s){for(;r<s;r++)if(t[r]===e)return r;return s}function QUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function ph(t,e){return t=t.toString(8),t.length>e?lGt.slice(0,e)+" ":uGt.slice(0,e-t.length)+t+" "}function yGt(t,e,r){e[r]=128;for(let s=11;s>0;s--)e[r+s]=t&255,t=Math.floor(t/256)}function BGt(t,e,r){t.toString(8).length>11?yGt(t,e,r):kt.write(e,ph(t,11),r)}function bGt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],s;for(s=t.length-1;s>0;s--){let o=t[s];e?r.push(o):r.push(255-o)}let n=0,i=r.length;for(s=0;s<i;s++)n+=r[s]*Math.pow(256,s);return e?n:-1*n}function gh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return bGt(t);{for(;e<t.length&&t[e]===32;)e++;let s=EGt(bUe(t,32,e,t.length),t.length,t.length);for(;e<s&&t[e]===0;)e++;return s===e?0:parseInt(kt.toString(t.subarray(e,s)),8)}}function SC(t,e,r,s){return kt.toString(t.subarray(e,bUe(t,0,e,e+r)),s)}function D$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var xUe=E((T1r,TUe)=>{var{Writable:QGt,Readable:wGt,getStreamError:wUe}=R$(),SGt=g$(),SUe=yC(),TC=v$(),NGt=SUe.alloc(0),F$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new SGt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return NGt;let r=this._next(e);if(e===r.byteLength)return r;let s=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),s.push(r);return SUe.concat(s)}_next(e){let r=this.queue.peek(),s=r.byteLength-this._offset;if(e>=s){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=s,this.shifted+=s,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},M$=class extends wGt{constructor(e,r,s){super(),this.header=r,this.offset=s,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(wUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=NUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},L$=class extends QGt{constru
Line truncated
|
||||
`).filter(s=>s!=="");return e&&e.trimWhitespace===!1?r:r.map(s=>s.trim())}function OP(t){process.exitCode=UP.Failure,yo(t)}function Pl(){return process.env.RUNNER_DEBUG==="1"}function V(t){Sh("debug",{},t)}function yo(t,e={}){Sh("error",E1(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Sh("warning",E1(e),t instanceof Error?t.toString():t)}function wae(t,e={}){Sh("notice",E1(e),t instanceof Error?t.toString():t)}function se(t){process.stdout.write(t+Qae.EOL)}function ZI(t,e){if(process.env.GITHUB_STATE||"")return LX("STATE",UX(t,e));Sh("save-state",{name:t},ml(e))}function wA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as JJe,existsSync as zJe}from"fs";import{EOL as jJe}from"os";var pm=class{constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zJe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(JJe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${jJe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var YP=fe(Rae(),1),Dae=fe(pN(),1),Aze=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function kae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function vae(t){return new YP.HttpClient().getAgent(t)}function cze(t){return new YP.HttpClient().getAgentDispatcher(t)}function _ae(t){let e=cze(t);return(s,n)=>Aze(this,void 0,void 0,function*(){return(0,Dae.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))})}function Fae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function VP(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}function RN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function DN(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>DN.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}function Mae(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=(i,o)=>Promise.resolve().then(n.bind(null,o)).then(i.bind(null,o))),e==="after"&&(s=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,n(a,o))).then(()=>a)}),e==="error"&&(s=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>n(a,o))),t.registry[r].push({hook:s,orig:n})}function Lae(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}var Uae=Function.bind,Pae=Uae.bind(Uae);function Oae(t,e,r){let s=Pae(Lae,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=Pae(Mae,null).apply(null,i)})}function lze(){let t=Symbol("Singular"),e={registry:{}},r=DN.bind(null,e,t);return Oae(r,e,t),r}function dze(){let t={registry:{}},e=DN.bind(null,t);return Oae(e,t),e}var Hae={Singular:lze,Collection:dze};var AO=fe(nO(),1);var hAe=fe(nO(),1);var ije="0.0.0-development";function oje(t){return`Request failed due to following response errors:
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var ije=class extends Error{constructor(t,e,r){super(sje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},oje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],aje=["query","method","url"],hAe=/\/api\/v3\/?$/;function Aje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(aje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>oje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return hAe.test(i)&&(s.url=i.replace(hAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new ije(s,a,o.data)}return o.data.data})}function eO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Aje(r,s,i),{defaults:eO.bind(null,r),endpoint:r.endpoint})}var J7t=eO(fAe.request,{headers:{"user-agent":`octokit-graphql.js/${nje} ${wN()}`},method:"POST",url:"/graphql"});function gAe(t){return eO(t,{method:"POST",url:"/graphql"})}var tO="(?:[a-zA-Z0-9_-]+)",pAe="\\.",mAe=new RegExp(`^${tO}${pAe}${tO}${pAe}${tO}$`),cje=mAe.test.bind(mAe);async function uje(t){let e=cje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function lje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function dje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=lje(t),e(s)}var EAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(uje.bind(null,e),{hook:dje.bind(null,e)})};var rO="7.0.6";var CAe=()=>{},hje=console.warn.bind(console),fje=console.error.bind(console);function gje(t={}){return typeof t.debug!="function"&&(t.debug=CAe),typeof t.info!="function"&&(t.info=CAe),typeof t.warn!="function"&&(t.warn=hje),typeof t.error!="function"&&(t.error=fje),t}var IAe=`octokit-core.js/${rO} ${wN()}`,xN=class{static VERSION=rO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Gae.Collection,n={baseUrl:nO.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${IAe}`:IAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=nO.request.defaults(n),this.graphql=gAe(this.request).defaults(n),this.log=gje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=EAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var sO="17.0.0";var pje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr
Line truncated
|
||||
`)}var aje=class extends Error{constructor(t,e,r){super(oje(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},Aje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],cje=["query","method","url"],dAe=/\/api\/v3\/?$/;function uje(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(cje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>Aje.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return dAe.test(i)&&(n.url=i.replace(dAe,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new aje(n,a,o.data)}return o.data.data})}function iO(t,e){let r=t.defaults(e);return Object.assign((n,i)=>uje(r,n,i),{defaults:iO.bind(null,r),endpoint:r.endpoint})}var X7t=iO(hAe.request,{headers:{"user-agent":`octokit-graphql.js/${ije} ${RN()}`},method:"POST",url:"/graphql"});function fAe(t){return iO(t,{method:"POST",url:"/graphql"})}var oO="(?:[a-zA-Z0-9_-]+)",gAe="\\.",pAe=new RegExp(`^${oO}${gAe}${oO}${gAe}${oO}$`),lje=pAe.test.bind(pAe);async function dje(t){let e=lje(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function hje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function fje(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=hje(t),e(n)}var mAe=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(dje.bind(null,e),{hook:fje.bind(null,e)})};var aO="7.0.6";var EAe=()=>{},gje=console.warn.bind(console),pje=console.error.bind(console);function mje(t={}){return typeof t.debug!="function"&&(t.debug=EAe),typeof t.info!="function"&&(t.info=EAe),typeof t.warn!="function"&&(t.warn=gje),typeof t.error!="function"&&(t.error=pje),t}var CAe=`octokit-core.js/${aO} ${RN()}`,_N=class{static VERSION=aO;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new Hae.Collection,s={baseUrl:AO.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${CAe}`:CAe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=AO.request.defaults(s),this.graphql=fAe(this.request).defaults(s),this.log=mje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=mAe(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var cO="17.0.0";var Eje={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr
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 sy(i));return n.searchPaths.push(...dO(n.patterns)),n})}static stat(e,r,n){return mO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Im.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 Im.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Im.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var sKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function nce(t,e){return sKe(this,void 0,void 0,function*(){return yield FN.create(t,e)})}var Kue=fe(zue(),1);import*as $N from"crypto";import*as Qm from"fs";import*as nf from"path";import*as $ue from"util";var ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ly||(ly={}));var ks;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ks||(ks={}));var Li;(function(t){t.GNU="gnu",t.BSD="bsd"})(Li||(Li={}));var jN=2,KN=5e3,UO=5e3,PO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,jue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,dy="cache.tar",OO="manifest.txt",vJt=10*Math.pow(1024,3);var bm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},dZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},hZe="1.0";function hy(){return bm(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=nf.join(n,"actions","temp")}let r=nf.join(e,$N.randomUUID());return yield gN(r),r})}function SA(t){return Qm.statSync(t).size}function HO(t){return bm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield nce(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var c=!0,u=dZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=nf.relative(a,s).replace(new RegExp(`\\${nf.sep}`,"g"),"/");V(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function fy(t){return bm(this,void 0,void 0,function*(){return $ue.promisify(Qm.unlink)(t)})}function Xue(t){return bm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield EN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){V(s.message)}return n=n.trim(),V(n),n})}function gy(){return bm(this,void 0,void 0,function*(){let t=yield Xue("zstd",["--quiet"]),e=Kue.clean(t);return V(`zstd version: ${e}`),t===""?ks.Gzip:ks.ZstdWithoutLong})}function Vl(t){return t===ks.Gzip?ly.Gzip:ly.Zstd}function Zue(){return bm(this,void 0,void 0,function*(){return Qm.existsSync(PO)?PO:(yield Xue("tar")).toLowerCase().includes("gnu tar")?lu("tar"):""})}function GO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function wm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(hZe),$N.createHash("sha256").update(n.join("|")).digest("hex")}function ele(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as Zm from"fs";import{URL as Oot}from"url";var NA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as fZe}from"node:os";import gZe from"node:util";import pZe from"node:process";function tle(t,...e){pZe.stderr.write(`${gZe.format(t,...e)}${fZe}`)}var rle=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,sle,qO=[],YO=[],ZN=[];rle&&VO(rle);var ile=Object.assign(t=>ole(t),{enable:VO,enabled:WO,disable:mZe,log:tle});function VO(t){sle=t,qO=[],YO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?YO.push(r.substring(1)):qO.push(r);for(let r of ZN)r.enabled=WO(r.namespace)}function WO(t){if(t.endsWith("*"))return!0;for(let e of YO)if(nle(t,e))return!1;for(let e of qO)if(nle(t,e))return!0;return!1}function nle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function mZe(){let t=sle||"";return VO(""),t}function ole(t){let e=Object.assign(r,{enabled:WO(t),destroy:EZe,log:ile.log,namespace:t,extend:CZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ZN.push(e),e}function EZe(){let t=ZN.indexOf(this);return t>=0?(ZN.splice(t,1),!0):!1}function CZe(t){let e=ole(`${this.namespace}:${t}`);return e.log=this.log,e}var Sm=ile;var JO=["verbose","info","warning","error"],ale={verbose:400,info:300,warning:200,error:100};function Ale(t,e){e.log=(...r)=>{t.log(...r)}}function cle(t){return JO.includes(t)}function IZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Sm(t.namespace);s.log=(...u)=>{Sm.log(...u)};function i(u){if(u&&!cle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${JO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Sm.enable(l.join(","))}r&&(cle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${JO.join(", ")}.`));function o(u){return!!(n&&ale[u.level]<=ale[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Ale(u,d),o(d)){let h=Sm.disable();Sm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return Ale(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var ule=IZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),yZe=ule.logger;function py(t){return ule.createClientLogger(t)}function eT(t){return t.toLowerCase()}function*BZe(t){for(let e of t.values())yield[e.name,e.value]}var zO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(eT(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(eT(e))?.value}has(e){return this._headersMap.has(eT(e))}delete(e){this._headersMap.delete(eT(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=
Line truncated
|
||||
${SZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function nT(t){return t instanceof vs?!0:of(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import XO from"node:http";import ZO from"node:https";import hle from"node:zlib";import{Transform as NZe}from"node:stream";var No=py("ts-http-runtime");var TZe={};function my(t){return t&&typeof t.pipe=="function"}function fle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function gle(t){return t&&typeof t.byteLength=="number"}var sT=class extends NZe{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}},e3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new NA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new ka;No.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=kZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new sT(f);p.on("error",I=>{No.error("Error in upload progress",I)}),my(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=xZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?RZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new sT(h);f.on("error",p=>{No.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await DZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();my(a)&&(c=fle(a));let u=Promise.resolve();my(A)&&(u=fle(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{No.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?XO.request(a,A):ZO.request(a,A);u.once("error",l=>{c(new vs(l.message,{code:l.code??vs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new NA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&my(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):gle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(No.error("Unrecognized body type",n),c(new vs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?XO.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new XO.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return ZO.globalAgent;let s=e.tlsSettings??TZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(No.info("No cached TLS Agent exist, creating a new Agent"),i=new ZO.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function xZe(t){let e=Ui();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}function RZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=hle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=hle.createInflate();return t.pipe(n),n}return t}function DZe(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 vs(`Error reading response as text: ${s.message}`,{code:vs.PARSE_ERROR}))})})}function kZe(t){return t?Buffer.isBuffer(t)?t.length:my(t)?null:gle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ple(){return new e3}function iT(){return ple()}var t3="logPolicy";function oT(t={}){let e=t.logger??No.info,r=new ka({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:t3,async sendRequest(n,s){if(!e.
Line truncated
|
||||
`;return e}function rtt(t){return t instanceof Uint8Array?t.byteLength:TT(t)?t.size===-1?void 0:t.size:void 0}function ntt(t){let e=0;for(let r of t){let n=rtt(r);if(n===void 0)return;e+=n}return e}async function stt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
|
||||
`,"utf-8"),ni(ttt(i.headers),"utf-8"),ni(`\r
|
||||
`,"utf-8"),i.body,ni(`\r
|
||||
--${r}`,"utf-8")]),ni(`--\r
|
||||
`));let n=e.split(`
|
||||
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new ay(i));return s.searchPaths.push(...mO(s.patterns)),s})}static stat(e,r,s){return BO(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Bm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield Bm.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Bm.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var oKe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function rce(t,e){return oKe(this,void 0,void 0,function*(){return yield ON.create(t,e)})}var jue=fe(Jue(),1);import*as rT from"crypto";import*as Sm from"fs";import*as of from"path";import*as Kue from"util";var fy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(fy||(fy={}));var Tn;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Tn||(Tn={}));var _i;(function(t){t.GNU="gnu",t.BSD="bsd"})(_i||(_i={}));var eT=2,tT=5e3,qO=5e3,YO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,zue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,gy="cache.tar",VO="manifest.txt",UJt=10*Math.pow(1024,3);var wm=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},fZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},gZe="1.0";function py(){return wm(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=of.join(s,"actions","temp")}let r=of.join(e,rT.randomUUID());return yield IN(r),r})}function NA(t){return Sm.statSync(t).size}function WO(t){return wm(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield rce(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var c=!0,u=fZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){n=l.value,c=!1;let h=of.relative(a,n).replace(new RegExp(`\\${of.sep}`,"g"),"/");V(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function my(t){return wm(this,void 0,void 0,function*(){return Kue.promisify(Sm.unlink)(t)})}function $ue(t){return wm(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),V(`Checking ${e} ${r.join(" ")}`);try{yield bN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){V(n.message)}return s=s.trim(),V(s),s})}function Ey(){return wm(this,void 0,void 0,function*(){let t=yield $ue("zstd",["--quiet"]),e=jue.clean(t);return V(`zstd version: ${e}`),t===""?Tn.Gzip:Tn.ZstdWithoutLong})}function Vl(t){return t===Tn.Gzip?fy.Gzip:fy.Zstd}function Xue(){return wm(this,void 0,void 0,function*(){return Sm.existsSync(YO)?YO:(yield $ue("tar")).toLowerCase().includes("gnu tar")?du("tar"):""})}function JO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Nm(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(gZe),rT.createHash("sha256").update(s.join("|")).digest("hex")}function Zue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as t0 from"fs";import{URL as Wot}from"url";var TA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as pZe}from"node:os";import mZe from"node:util";import EZe from"node:process";function ele(t,...e){EZe.stderr.write(`${mZe.format(t,...e)}${pZe}`)}import Cy from"node:process";function nT(t){return Cy.env[t]}var tle=typeof Cy.versions.deno=="string"&&Cy.versions.deno.length>0,rle=typeof Cy.versions.bun=="string"&&Cy.versions.bun.length>0,iT=!0;var sle=nT("DEBUG"),ile,zO=[],jO=[],oT=[];sle&&KO(sle);var ole=Object.assign(t=>ale(t),{enable:KO,enabled:$O,disable:CZe,log:ele});function KO(t){ile=t,zO=[],jO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?jO.push(r.substring(1)):zO.push(r);for(let r of oT)r.enabled=$O(r.namespace)}function $O(t){if(t.endsWith("*"))return!0;for(let e of jO)if(nle(t,e))return!1;for(let e of zO)if(nle(t,e))return!0;return!1}function nle(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,A=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=A+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;A=s,s++,n++;continue}else return!1;let c=s===t.length,u=n===r.length,l=n===r.length-1&&r[n]==="*";return c&&(u||l)}function CZe(){let t=ile||"";return KO(""),t}function ale(t){let e=Object.assign(r,{enabled:$O(t),destroy:IZe,log:ole.log,namespace:t,extend:yZe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return oT.push(e),e}function IZe(){let t=oT.indexOf(this);return t>=0?(oT.splice(t,1),!0):!1}function yZe(t){let e=ale(`${this.namespace}:${t}`);return e.log=this.log,e}var Tm=ole;var XO=["verbose","info","warning","error"],Ale={verbose:400,info:300,warning:200,error:100};function cle(t,e){e.log=(...r)=>{t.log(...r)}}function ule(t){return XO.includes(t)}function BZe(t){let e=new Set,r=nT(t.logLevelEnvVarName),s,n=Tm(t.namespace);n.log=(...u)=>{Tm.log(...u)};function i(u){if(u&&!ule(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${XO.join(",")}`);s=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Tm.enable(l.join(","))}r&&(ule(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${XO.join(", ")}.`));function o(u){return!!(s&&Ale[u.level]<=Ale[s])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(cle(u,d),o(d)){let h=Tm.disable();Tm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return s}function c(u){let l=n.extend(u);return cle(n,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:n}}var lle=BZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),bZe=lle.logger;function Iy(t){return lle.createClientLogger(t)}function aT(t){return t.toLowerCase()}function QZe(t){return String(t).trim().replace(/[\r\n]/g,"")}function*wZe(t){for(let e of t.values())yield[e.name,e.value]}var ZO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(aT(e),{name:e,value:QZe(r)})}get(e){return this._headersMap.get(aT(e))?.value}has(e){return this
Line truncated
|
||||
${xZe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function xm(t){return t instanceof xn?!0:Af(t)&&t.name==="RestError"}function Zn(t,e){return Buffer.from(t,e)}import s3 from"node:http";import n3 from"node:https";import fle from"node:zlib";import{Transform as RZe}from"node:stream";var ei=Iy("ts-http-runtime");var DZe={};function yy(t){return t&&typeof t.pipe=="function"}function gle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function ple(t){return t&&typeof t.byteLength=="number"}var uT=class extends RZe{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},i3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new TA("The operation was aborted. Request has already been canceled.");s=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let c=new va;ei.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=FZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new uT(f);p.on("error",I=>{ei.error("Error in upload progress",I)}),yy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let u=kZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?vZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new uT(h);f.on("error",p=>{ei.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await _Ze(A),d}finally{if(e.abortSignal&&s){let c=Promise.resolve();yy(a)&&(c=gle(a));let u=Promise.resolve();yy(A)&&(u=gle(A)),Promise.all([c,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{ei.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?s3.request(a,A):n3.request(a,A);u.once("error",l=>{c(new xn(l.message,{code:l.code??xn.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new TA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),s&&yy(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):ple(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer,s.byteOffset,s.byteLength):Buffer.from(s)):(ei.error("Unrecognized body type",s),c(new xn("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?s3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new s3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return n3.globalAgent;let n=e.tlsSettings??DZe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(ei.info("No cached TLS Agent exist, creating a new Agent"),i=new n3.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function kZe(t){let e=Fi();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function vZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=fle.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=fle.createInflate();return t.pipe(s),s}return t}function _Ze(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new xn(`Error reading response as text: ${n.message}`,{code:xn.PARSE_ERROR}))})})}function FZe(t){return t?Buffer.isBuffer(t)?t.length:yy(t)?null:ple(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function mle(){return new i3}function lT(){return mle()}var o3="logPolicy";function dT(t={}){let e=t.logger??ei.info,r=new va({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:o3,asy
Line truncated
|
||||
`;return e}function ntt(t){return t instanceof Uint8Array?t.byteLength:Qy(t)?t.size===-1?void 0:t.size:void 0}function itt(t){let e=0;for(let r of t){let s=ntt(r);if(s===void 0)return;e+=s}return e}async function ott(t,e,r){let s=[Zn(`--${r}`,"utf-8"),...e.flatMap(i=>[Zn(`\r
|
||||
`,"utf-8"),Zn(stt(i.headers),"utf-8"),Zn(`\r
|
||||
`,"utf-8"),i.body,Zn(`\r
|
||||
--${r}`,"utf-8")]),Zn(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=ntt(n);s&&t.headers.set("Content-Length",s),t.body=await dde(n)}var Iy="multipartPolicy",itt=70,ott=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function att(t){if(t.length>itt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ott.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function xT(){return{name:Iy,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?att(r):r=ett(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await stt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function RT(){return rT()}import{EOL as ctt}from"node:os";import utt from"node:util";import*as hde from"node:process";function fde(t,...e){hde.stderr.write(`${utt.format(t,...e)}${ctt}`)}var gde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,pde,C3=[],I3=[],DT=[];gde&&y3(gde);var mde=Object.assign(t=>Ede(t),{enable:y3,enabled:B3,disable:ltt,log:fde});function y3(t){pde=t,C3=[],I3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?I3.push(new RegExp(`^${n.substr(1)}$`)):C3.push(new RegExp(`^${n}$`));for(let n of DT)n.enabled=B3(n.namespace)}function B3(t){if(t.endsWith("*"))return!0;for(let e of I3)if(e.test(t))return!1;for(let e of C3)if(e.test(t))return!0;return!1}function ltt(){let t=pde||"";return y3(""),t}function Ede(t){let e=Object.assign(r,{enabled:B3(t),destroy:dtt,log:mde.log,namespace:t,extend:htt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return DT.push(e),e}function dtt(){let t=DT.indexOf(this);return t>=0?(DT.splice(t,1),!0):!1}function htt(t){let e=Ede(`${this.namespace}:${t}`);return e.log=this.log,e}var vm=mde;var Ide=new Set,kT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,b3,Q3=vm("azure");Q3.log=(...t)=>{vm.log(...t)};var w3=["verbose","info","warning","error"];kT&&(bde(kT)?ftt(kT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${kT}'; logging is not enabled. Acceptable values: ${w3.join(", ")}.`));function ftt(t){if(t&&!bde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${w3.join(",")}`);b3=t;let e=[];for(let r of Ide)Bde(r)&&e.push(r.namespace);vm.enable(e.join(","))}var Cde={verbose:400,info:300,warning:200,error:100};function Do(t){let e=Q3.extend(t);return yde(Q3,e),{error:vT(e,"error"),warning:vT(e,"warning"),info:vT(e,"info"),verbose:vT(e,"verbose")}}function yde(t,e){e.log=(...r)=>{t.log(...r)}}function vT(t,e){let r=Object.assign(t.extend(e),{level:e});if(yde(t,r),Bde(r)){let n=vm.disable();vm.enable(n+","+r.namespace)}return Ide.add(r),r}function Bde(t){return!!(b3&&Cde[t.level]<=Cde[b3])}function bde(t){return w3.includes(t)}var xA=Do("core-rest-pipeline");function S3(t={}){return oT({logger:xA.info,...t})}var N3=aT;function T3(t={}){return AT(t)}import x3 from"node:os";import R3 from"node:process";function Qde(){return"User-Agent"}async function wde(t){if(R3&&R3.versions){let e=`${x3.type()} ${x3.release()}; ${x3.arch()}`,r=R3.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var _T="1.22.2";function ytt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Sde(){return Qde()}async function FT(t){let e=new Map;e.set("core-rest-pipeline",_T),await wde(e);let r=ytt(e);return t?`${t} ${r}`:r}var Nde=Sde(),Tde="userAgentPolicy";function D3(t={}){let e=FT(t.userAgentPrefix);return{name:Tde,async sendRequest(r,n){return r.headers.has(Nde)||r.headers.set(Nde,await e),n(r)}}}var yy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function k3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new yy(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var Stt="The delay was aborted.";function _m(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return k3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Stt})}function Jl(t){if(of(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function xde(t){return of(t)}function Fm(){return sf()}var Ot=cf;var Rde=S
Line truncated
|
||||
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Krt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Xr("InvalidTag",l,_s(t,i))}let c=Vrt(t,i);if(c===!1)return Xr("InvalidAttr","Attributes for '"+A+"' have open quote.",_s(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=phe(u,e);if(d===!0)n=!0;else return Xr(d.err.code,d.err.msg,_s(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",_s(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+A+"' has not been opened.",_s(t,o));{let l=r.pop();if(A!==l.tagName){let d=_s(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",_s(t,o))}r.length==0&&(s=!0)}}else return Xr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",_s(t,i));else{let l=phe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,_s(t,i-u.length+l.err.line));if(s===!0)return Xr("InvalidXml","Multiple possible root nodes found.",_s(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=ghe(t,i);continue}else if(t[i+1]==="?"){if(i=fhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=zrt(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",_s(t,i));i=l}else if(s===!0&&!hhe(t[i]))return Xr("InvalidXml","Extra text at the end",_s(t,i));t[i]==="<"&&i--}}else{if(hhe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",_s(t,i))}if(n){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",_s(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function hhe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function fhe(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 Xr("InvalidXml","XML declaration allowed only at the start of the document.",_s(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function ghe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var qrt='"',Yrt="'";function Vrt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===qrt||t[e]===Yrt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var Wrt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function phe(t,e){let r=JT(t,Wrt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",vy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",vy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",vy(r[s]));let i=r[s][2];if(!jrt(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",vy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",vy(r[s]))}return!0}function Jrt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function zrt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Jrt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function jrt(t){return Pm(t)}function Krt(t){return Pm(t)}function _s(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function vy(t){return t.startIndex+t[1].length}var mhe=t=>ky.includes(t)?"__"+t:t,$rt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:mhe};function Xrt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(ky.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(zT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Ehe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Ehe(!0)}var Che=function(t){let e=Object.assign({},$rt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&Xrt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=mhe),e.processEntities=Ehe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var KT;typeof Symbol!="function"?KT="@@xmlMetadata":KT=Symbol("XML Node Metadata");var oi=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
|
||||
`);let e=new oi("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Fy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=ff(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=u8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=l8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new oi(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=ff(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=ff(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=l8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=u8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},m;m=cnt(c),A!==e.tagname&&this.matcher.push(A,{},m),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=Ant(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let N=new oi(A);p&&(N[":@"]=p),N.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=u8(this.options.transformTagName,A,u,this.options));let y=new oi(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new oi(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new oi(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function pnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function mnt(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}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function p8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=Snt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Gi(o)):o instanceof Gi&&n.push(o)}let s=new kA;return Qhe(t,e,r,s,n)}function Qhe(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=g8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=She(A);if(c===void 0)continue;let u=Nnt(A[":@"],e);n.push(c,u);let l=xnt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=g8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=bhe(A[":@"],e,l),m=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=m+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=bhe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=whe(A[c],e):p=Qhe(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function Nnt(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]=t[s],n=!0}return n?r:null}function whe(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=She(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Tnt(s[":@"],e),a=whe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Tnt(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)}="${s}"`}return r}function She(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function bhe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=g8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function xnt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function g8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function m8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Rnt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{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};function Ai(t){if(this.options=Object.assign({},Rnt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Gi(r)):r instanceof Gi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=m8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=vnt),this.processTextOrObjNode=Dnt,this.options.format?(this.indentate=knt,this.tagEndChar=`>
|
||||
`,"utf-8")],n=itt(s);n&&t.headers.set("Content-Length",n),t.body=await cde(s)}var wy="multipartPolicy",att=70,Att=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ctt(t){if(t.length>att)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Att.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function _T(){return{name:wy,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?ctt(r):r=rtt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await ott(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function FT(){return cT()}import{EOL as ltt}from"node:os";import dtt from"node:util";import*as ude from"node:process";function lde(t,...e){ude.stderr.write(`${dtt.format(t,...e)}${ltt}`)}var dde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,hde,Q3=[],w3=[],MT=[];dde&&S3(dde);var fde=Object.assign(t=>gde(t),{enable:S3,enabled:N3,disable:htt,log:lde});function S3(t){hde=t,Q3=[],w3=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?w3.push(new RegExp(`^${s.substr(1)}$`)):Q3.push(new RegExp(`^${s}$`));for(let s of MT)s.enabled=N3(s.namespace)}function N3(t){if(t.endsWith("*"))return!0;for(let e of w3)if(e.test(t))return!1;for(let e of Q3)if(e.test(t))return!0;return!1}function htt(){let t=hde||"";return S3(""),t}function gde(t){let e=Object.assign(r,{enabled:N3(t),destroy:ftt,log:fde.log,namespace:t,extend:gtt});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return MT.push(e),e}function ftt(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function gtt(t){let e=gde(`${this.namespace}:${t}`);return e.log=this.log,e}var Fm=fde;var mde=new Set,LT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,T3,x3=Fm("azure");x3.log=(...t)=>{Fm.log(...t)};var R3=["verbose","info","warning","error"];LT&&(Ide(LT)?ptt(LT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${LT}'; logging is not enabled. Acceptable values: ${R3.join(", ")}.`));function ptt(t){if(t&&!Ide(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${R3.join(",")}`);T3=t;let e=[];for(let r of mde)Cde(r)&&e.push(r.namespace);Fm.enable(e.join(","))}var pde={verbose:400,info:300,warning:200,error:100};function xo(t){let e=x3.extend(t);return Ede(x3,e),{error:UT(e,"error"),warning:UT(e,"warning"),info:UT(e,"info"),verbose:UT(e,"verbose")}}function Ede(t,e){e.log=(...r)=>{t.log(...r)}}function UT(t,e){let r=Object.assign(t.extend(e),{level:e});if(Ede(t,r),Cde(r)){let s=Fm.disable();Fm.enable(s+","+r.namespace)}return mde.add(r),r}function Cde(t){return!!(T3&&pde[t.level]<=pde[T3])}function Ide(t){return R3.includes(t)}var RA=xo("core-rest-pipeline");function D3(t={}){return dT({logger:RA.info,...t})}var k3=kT;function v3(t={}){return vT(t)}import _3 from"node:os";import zl from"node:process";function yde(){return"User-Agent"}async function Bde(t){if(zl&&zl.versions){let e=`${_3.type()} ${_3.release()}; ${_3.arch()}`;zl.versions.bun?t.set("Bun",`${zl.versions.bun} (${e})`):zl.versions.deno?t.set("Deno",`${zl.versions.deno} (${e})`):zl.versions.node&&t.set("Node",`${zl.versions.node} (${e})`)}}var PT="1.24.0";function btt(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function bde(){return yde()}async function OT(t){let e=new Map;e.set("core-rest-pipeline",PT),await Bde(e);let r=btt(e);return t?`${t} ${r}`:r}var Qde=bde(),wde="userAgentPolicy";function F3(t={}){let e=OT(t.userAgentPrefix);return{name:wde,async sendRequest(r,s){return r.headers.has(Qde)||r.headers.set(Qde,await e),s(r)}}}var Sde=Symbol("rawContent");function M3(t){return typeof t[Sde]=="function"}function Nde(t){return M3(t)?t[Sde]():t}var HT=wy;function L3(){let t=_T();return{name:HT,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)M3(s.body)&&(s.body=Nde(s.body));return t.sendRequest(e,r)}}}var U3=RT;function P3(){return DT()}function O3(t={}){return gT(t)}function H3(){return pT()}var Sy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function G3(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Sy(n??"The operation was aborted."))}function A(){s?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(s?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",c)})}var
Line truncated
|
||||
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!rst(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Xr("InvalidTag",l,Rn(t,i))}let c=$rt(t,i);if(c===!1)return Xr("InvalidAttr","Attributes for '"+A+"' have open quote.",Rn(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=hhe(u,e);if(d===!0)s=!0;else return Xr(d.err.code,d.err.msg,Rn(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Xr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Rn(t,o));if(r.length===0)return Xr("InvalidTag","Closing tag '"+A+"' has not been opened.",Rn(t,o));{let l=r.pop();if(A!==l.tagName){let d=Rn(t,l.tagStartPos);return Xr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Rn(t,o))}r.length==0&&(n=!0)}}else return Xr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Rn(t,i));else{let l=hhe(u,e);if(l!==!0)return Xr(l.err.code,l.err.msg,Rn(t,i-u.length+l.err.line));if(n===!0)return Xr("InvalidXml","Multiple possible root nodes found.",Rn(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=dhe(t,i);continue}else if(t[i+1]==="?"){if(i=lhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=est(t,i);if(l==-1)return Xr("InvalidChar","char '&' is not expected.",Rn(t,i));i=l}else if(n===!0&&!uhe(t[i]))return Xr("InvalidXml","Extra text at the end",Rn(t,i));t[i]==="<"&&i--}}else{if(uhe(t[i]))continue;return Xr("InvalidChar","char '"+t[i]+"' is not expected.",Rn(t,i))}if(s){if(r.length==1)return Xr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Rn(t,r[0].tagStartPos));if(r.length>0)return Xr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Xr("InvalidXml","Start tag expected.",1);return!0}function uhe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function lhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Xr("InvalidXml","XML declaration allowed only at the start of the document.",Rn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dhe(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var jrt='"',Krt="'";function $rt(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===jrt||t[e]===Krt)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var Xrt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hhe(t,e){let r=XT(t,Xrt),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Xr("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",Uy(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Xr("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",Uy(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Xr("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",Uy(r[n]));let i=r[n][2];if(!tst(i))return Xr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Uy(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Xr("InvalidAttr","Attribute '"+i+"' is repeated.",Uy(r[n]))}return!0}function Zrt(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function est(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Zrt(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Xr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function tst(t){return Hm(t)}function rst(t){return Hm(t)}function Rn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Uy(t){return t.startIndex+t[1].length}var fhe=t=>Ly.includes(t)?"__"+t:t,sst={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:fhe};function nst(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ly.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(ZT.some(s=>r===s.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ghe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:ghe(!0)}var phe=function(t){let e=Object.assign({},sst,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:s,name:n}of r)s&&nst(s,n);return e.onDangerousProperty===null&&(e.onDangerousProperty=fhe),e.processEntities=ghe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(s=>typeof s=="string"&&s.startsWith("*.")?".."+s.substring(2):s)),e};var tx;typeof Symbol!="function"?tx="@@xmlMetadata":tx=Symbol("XML Node Metadata");var si=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
|
||||
`);let e=new si("!xml"),r=e,s="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=new Oy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=gf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=f8(this.options.transformTagName,A,"",this.options).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",i=a}else if(t[i+1]==="?"){let a=g8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new si(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=gf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=n.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=gf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=g8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=f8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},m;m=gst(c),A!==e.tagname&&this.matcher.push(A,{},m),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=fst(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let N=new si(A);p&&(N[":@"]=p),N.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=f8(this.options.transformTagName,A,u,this.options));let y=new si(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new si(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new si(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}s="",i=d}}else s+=t[i];return e.child};function Bst(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}function bst(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}for(let n of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[n],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,s.maxTotalExpansions&&this.entityExpansionCount>s.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function I8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=kst);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?s.push(new Pi(o)):o instanceof Pi&&s.push(o)}let n=new vA;return yhe(t,e,r,n,s)}function yhe(t,e,r,s,n){let i="",o=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=C8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=bhe(A);if(c===void 0)continue;let u=vst(A[":@"],e);s.push(c,u);let l=Fst(s,n);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=C8(I,e)),o&&(i+=r),i+=I,o=!1,s.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,s.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,s.pop();continue}else if(c[0]==="?"){let I=Ihe(A[":@"],e,l),m=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=m+`<${c}${C}${I}?>`,o=!0,s.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=Ihe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=Bhe(A[c],e):p=yhe(A[c],e,d,s,n),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,s.pop()}return i}function vst(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=t[n],s=!0}return s?r:null}function Bhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=bhe(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=_st(n[":@"],e),a=Bhe(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function _st(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return r}function bhe(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function Ihe(t,e,r){let s="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i;r?i=t[n]:(i=e.attributeValueProcessor(n,t[n]),i=C8(i,e)),i===!0&&e.suppressBooleanAttributes?s+=` ${n.substr(e.attributeNamePrefix.length)}`:s+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return s}function Fst(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function C8(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function y8(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var Mst={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{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};function ii(t){if(this.options=Object.assign({},Mst,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Pi(r)):r instanceof Pi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=y8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Pst),this.processTextOrObjNode=Lst,this.options.format?(this.indentate=Ust,this.tagEndChar=`>
|
||||
`,this.newLine=`
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ai.prototype.build=function(t){if(this.options.preserveOrder)return p8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new kA;return this.j2x(t,0,e).val}};Ai.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};Ai.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+'="'+e+'"'};function Dnt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}Ai.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]=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]=t[n],r=!0)}return r?e:null};Ai.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};Ai.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):
Line truncated
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ii.prototype.build=function(t){if(this.options.preserveOrder)return I8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new vA;return this.j2x(t,0,e).val}};ii.prototype.j2x=function(t,e,r){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(n+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?n+="":a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)n+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))s+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);n+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?n+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:n+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else n+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?n+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),n+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)s+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else n+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:s,val:n}};ii.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+'="'+e+'"'};function Lst(t,e,r,s){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,s);return s.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,s):this.buildObjectNode(o.val,e,o.attrStr,r)}ii.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=s[n],r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=t[s],r=!0)}return r?e:null};ii.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isArray(s)){for(let n of s)if(typeof n=="string"||typeof n=="number")e+=`<${r}>${n}</${r}>`;else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof s=="object"&&s!==null){let n=this.buildRawContent(s),i=this.buildAttributesForStopNode(s);n===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${n}</${r}>`}else e+=`<${r}>${s}</${r}>`}return e};ii.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>ax(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),n}getCanonicalizedResourceString(e){let r=sx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=ix(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
|
||||
${a}:${decodeURIComponent(i[a])}`}return n}};var Mr=class extends pf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Oy(e,r,this)}computeHMACSHA256(e){return qnt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var mf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var gn=Do("storage-common");var ko;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ko||(ko={}));var Xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Ynt=new mf("The operation was aborted."),Hy=class extends vA{retryOptions;constructor(e,r,n=Xl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs):Xl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xl.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=nx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=$l(s.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(gn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return gn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return gn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return gn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(gn.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 ko.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ko.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return gn.info(`RetryPolicy: Delay for ${s}ms`),ox(s,n,Ynt)}};var Gy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Hy(e,r,this.retryOptions)}};var Vnt="storageBrowserPolicy";function Dhe(){return{name:Vnt,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=$l(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Wnt="StorageCorrectContentLengthPolicy";function khe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Wnt,async sendRequest(e,r){return t(e),r(e)}}}var Jnt="storageRetryPolicy",Hm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ko.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},znt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],jnt=new mf("The operation was aborted.");function vhe(t={}){let e=t.retryPolicyType??Hm.retryPolicyType,r=t.maxTries??Hm.maxTries,n=t.retryDelayInMs??Hm.retryDelayInMs,s=t.maxRetryDelayInMs??Hm.maxRetryDelayInMs,i=t.secondaryHost??Hm.secondaryHost,o=t.tryTimeoutInMs??Hm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return gn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of znt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===ze.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((n,i)=>dx(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
|
||||
`}),s}getCanonicalizedResourceString(e){let r=cx(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=ux(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let A=a.toLowerCase();i[A]=n[a],o.push(A)}o.sort();for(let a of o)s+=`
|
||||
${a}:${decodeURIComponent(i[a])}`}return s}};var Mr=class extends mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Vy(e,r,this)}computeHMACSHA256(e){return jst("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ef=class extends Error{constructor(e){super(e),this.name="AbortError"}};var gs=xo("storage-common");var Ro;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ro||(Ro={}));var ed={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ro.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kst=new Ef("The operation was aborted."),Wy=class extends _A{retryOptions;constructor(e,r,s=ed){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:ed.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):ed.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:ed.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:ed.maxRetryDelayInMs):ed.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:ed.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:ed.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=Ax(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Zl(n.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(gs.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(gs.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return gs.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return gs.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return gs.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return gs.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(gs.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Ro.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ro.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return gs.info(`RetryPolicy: Delay for ${n}ms`),lx(n,s,Kst)}};var Jy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Wy(e,r,this.retryOptions)}};var $st="storageBrowserPolicy";function The(){return{name:$st,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Zl(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var Xst="StorageCorrectContentLengthPolicy";function xhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Xst,async sendRequest(e,r){return t(e),r(e)}}}var Zst="storageRetryPolicy",qm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ro.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ent=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],tnt=new Ef("The operation was aborted.");function Rhe(t={}){let e=t.retryPolicyType??qm.retryPolicyType,r=t.maxTries??qm.maxTries,s=t.retryDelayInMs??qm.retryDelayInMs,n=t.maxRetryDelayInMs??qm.maxRetryDelayInMs,i=t.secondaryHost??qm.secondaryHost,o=t.tryTimeoutInMs??qm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return gs.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of ent)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in
Line truncated
|
||||
`)+`
|
||||
`+n(i)+s(i),a=Knt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>ax(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
|
||||
`}),a}function s(i){let o=sx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ix(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
|
||||
${l}:${decodeURIComponent(c[l])}`}return a}return{name:$nt,async sendRequest(i,o){return e(i),o(i)}}}var Xnt="storageRequestFailureDetailsParserPolicy";function _he(){return{name:Xnt,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}}}}import{createHmac as Znt}from"node:crypto";var Ax=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Znt("sha256",this.key).update(e,"utf8").digest("base64")}};var cx="12.31.0",ux="2026-02-06";var lx="https://storage.azure.com/.default",yu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var va="",b8="*",est=1*1024*1024;var tst=4*est;var Fhe="AES256",Mhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Lhe=["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"],Uhe=["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"],Phe="BlobUsesCustomerSpecifiedEncryption",Ohe="BlobDoesNotUseCustomerSpecifiedEncryption",Hhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var qy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new wr);let r=new qy([],e);return r._credential=t,r}function rst(t){let e=[nst,Ghe,sst,ist,ost,ast,cst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Ast(s));return{wrappedPolicies:o8(r),afterRetry:n}}}}function Q8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?a8(e):y8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${cx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Sy({...r,loggingOptions:{additionalAllowedHeaderNames:Lhe,additionalAllowedQueryParameters:Uhe,logger:XT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:$T,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:C8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:M3}),s.addPolicy(khe()),s.addPolicy(vhe(r.retryOptions),{phase:"Retry"}),s.addPolicy(_he()),s.addPolicy(Dhe());let a=rst(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=w8(t);Oi(A)?s.addPolicy(Lm({credential:A,scopes:r.audience??
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ua(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function not(t,e){if(t=Sf(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=KA.parse(t.permissions.toString()).toString():s=$A.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?La(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ua(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function sot(t,e){if(t=Sf(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=KA.parse(t.permissions.toString()).toString():s=$A.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?La(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ua(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function iot(t,e){if(t=Sf(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=KA.parse(t.permissions.toString()).toString():s=$A.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?La(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ua(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function oot(t,e){if(t=Sf(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=KA.parse(t.permissions.toString()).toString():s=$A.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?La(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ua(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function aot(t,e){if(t=Sf(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=KA.parse(t.permissions.toString()).toString():s=$A.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?La(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ua(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function Aot(t,e){if(t=Sf(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=KA.parse(t.permissions.toString()).toString():s=$A.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",wf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?La(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ua(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function wf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Sf(t){let e=t.version?t.version:ux;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var tB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Fm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==va||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==va||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(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!==va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==va||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==va||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab
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"}};$m.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var xf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};xf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var cB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Dot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},X5=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);se(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function tge(t,e,r){return Dot(this,void 0,void 0,function*(){var n;let s=new Pa(t),i=s.getBlockBlobClient(),o=new X5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),V(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new iR(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw et(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as nge from"buffer";import*as XA from"fs";import*as sge from"stream";import*as ige from"util";var oR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function aR(t){return t?t>=200&&t<300:!1}function kot(t){return t?t>=500:!0}function vot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function _ot(t){return oR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function rge(t,e,r){return oR(this,arguments,void 0,function*(n,s,i,o=jN,a=KN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!kot(d)))return l;if(d&&(h=vot(d),c=`Cache service responded with ${d}`),V(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){V(`${n} - Error is not retryable`);break}yield _ot(a),u++}throw Error(`${n} failed: ${c}`)})}function uB(t,e){return oR(this,arguments,void 0,function*(r,n,s=jN,i=KN){return yield rge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof yA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Xm(t,e){return oR(this,arguments,void 0,function*(r,n,s=jN,i=KN){return yield rge(r,n,o=>o.message.statusCode,s,i)})}var Lo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Fot(t,e){return Lo(this,void 0,void 0,function*(){yield ige.promisify(sge.pipeline)(t.message,e)})}var AR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,V(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);se(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function rH(t,e,r){return ui(this,void 0,void 0,function*(){let n=new Oot(t),s=cge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield age(t,e,s):s.concurrentBlobDownloads?yield oge(t,e,s):yield cR(t,e):yield cR(t,e)})}function pge(t,e,r){return ui(this,void 0,void 0,function*(){let n=tH(),s=wm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield uB("reserveCache",()=>ui(this,void 0,void 0,function*(){return n.postJson(dB("caches"),i)}))})}function fge(t,e){return`bytes ${t}-${e}/*`}function Yot(t,e,r,n,s){return ui(this,void 0,void 0,function*(){V(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${fge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":fge(n,s)},o=yield Xm(`uploadChunk (start: ${n}, end: ${s})`,()=>ui(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!aR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Vot(t,e,r,n){return ui(this,void 0,void 0,function*(){let s=SA(r),i=dB(`caches/${e.toString()}`),o=Zm.openSync(r,"r"),a=Z5(n),A=GO("uploadConcurrency",a.uploadConcurrency),c=GO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ui(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Yot(t,i,()=>Zm.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{Zm.closeSync(o)}})}function Wot(t,e,r){return ui(this,void 0,void 0,function*(){let n={size:r};return yield uB("commitCache",()=>ui(this,void 0,void 0,function*(){return t.postJson(dB(`caches/${e.toString()}`),n)}))})}function nH(t,e,r,n){return ui(this,void 0,void 0,function*(){if(Z5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield tge(r,e,n)}else{let i=tH();V("Upload cache"),yield Vot(i,t,e,n),V("Commiting cache");let o=SA(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Wot(i,t,o);if(!aR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var cpe=fe(zH(),1),tn=fe(ct(),1),Vi=fe(ct(),1),_f=fe(ct(),1),Ff=fe(ct(),1),Mf=fe(ct(),1);var XH=fe(ct(),1),ZH=fe(ct(),1),ope=fe(ct(),1),ape=fe(ct(),1),Ape=fe(ct(),1);var jH=fe(ct(),1),KH=fe(ct(),1),npe=fe(ct(),1),spe=fe(ct(),1),ipe=fe(ct(),1),$H=class extends ipe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,spe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,npe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?KH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,jH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,jH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?KH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},KR=new $H;var e9=class extends Ape.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>KR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,ape.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ope.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(KR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?ZH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,XH.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)KR.internalBinaryWrite(e.scope[i],r.tag(2,XH.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?ZH.UnknownFieldHandler.onWrite
Line truncated
|
||||
`));let n=yield g9(r,"create");yield p9(n,t)})}var p0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Ga=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},g0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ZR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function hpe(t){if(!t||t.length===0)throw new Ga("Path Validation Error: At least one directory or file path is required")}function C9(t){if(t.length>512)throw new Ga(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ga(`Key Validation Error: ${t} cannot contain commas.`)}function fpe(){return lB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function gpe(t,e,r,n){return p0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=lB();return V(`Cache service version: ${c}`),hpe(s),c==="v2"?yield cct(s,i,o,a,A):yield Act(s,i,o,a,A)})}function Act(t,e,r,n){return p0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(c)),c.length>10)throw new Ga("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)C9(d);let u=yield gy(),l="";try{let d=yield gge(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),d.cacheKey;l=TB.join(yield hy(),Vl(u)),V(`Archive Path: ${l}`),yield rH(d.archiveLocation,l,a),Pl()&&(yield NB(l,u));let h=SA(l);return se(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield m9(l,u),se("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Ga.name)throw d;h instanceof yA&&typeof h.statusCode=="number"&&h.statusCode>=500?du(`Failed to restore: ${d.message}`):et(`Failed to restore: ${d.message}`)}finally{try{yield fy(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function cct(t,e,r,n){return p0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(c)),c.length>10)throw new Ga("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)C9(l);let u="";try{let l=f9(),d=yield gy(),h={key:i,restoreKeys:o,version:wm(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?se(`Cache hit for restore-key: ${f.matchedKey}`):se(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return se("Lookup only - skipping download"),f.matchedKey;u=TB.join(yield hy(),Vl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield rH(f.signedDownloadUrl,u,a);let I=SA(u);return se(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pl()&&(yield NB(u,d)),yield m9(u,d),se("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Ga.name)throw l;d instanceof yA&&typeof d.statusCode=="number"&&d.statusCode>=500?du(`Failed to restore: ${l.message}`):et(`Failed to restore: ${l.message}`)}finally{try{u&&(yield fy(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function ppe(t,e,r){return p0(this,arguments,void 0,function*(n,s,i,o=!1){let a=lB();return V(`Cache service version: ${a}`),hpe(n),C9(s),a==="v2"?yield lct(n,s,i,o):yield uct(n,s,i,o)})}function uct(t,e,r){return p0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield gy(),h=-1,f=yield HO(n);if(V("Cache Paths:"),V(`${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 p=yield hy(),I=TB.join(p,Vl(d));V(`Archive Path: ${I}`);try{yield E9(p,f,d),Pl()&&(yield NB(I,d));let m=10*1024*1024*1024,C=SA(I);if(V(`File Size: ${C}`),C>m&&!eH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield pge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new g0(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield nH(h,I,"",i)}catch(m){let C=m;if(C.name===Ga.name)throw m;C.name
Line truncated
|
||||
`+s(i)+n(i),a=rnt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>dx(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
|
||||
`}),a}function n(i){let o=cx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ux(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
|
||||
${l}:${decodeURIComponent(c[l])}`}return a}return{name:snt,async sendRequest(i,o){return e(i),o(i)}}}var nnt="storageRequestFailureDetailsParserPolicy";function Dhe(){return{name:nnt,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}}}}import{createHmac as int}from"node:crypto";var hx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return int("sha256",this.key).update(e,"utf8").digest("base64")}};var fx="12.31.0",gx="2026-02-06";var px="https://storage.azure.com/.default",yu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var _a="",N8="*",ont=1*1024*1024;var ant=4*ont;var khe="AES256",vhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",_he=["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"],Fhe=["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"],Mhe="BlobUsesCustomerSpecifiedEncryption",Lhe="BlobDoesNotUseCustomerSpecifiedEncryption",Uhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var zy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Zr(t,e={}){t||(t=new Qr);let r=new zy([],e);return r._credential=t,r}function Ant(t){let e=[cnt,Phe,unt,lnt,dnt,hnt,gnt];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>fnt(n));return{wrappedPolicies:u8(r),afterRetry:s}}}}function T8(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?l8(e):w8(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${fx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=Dy({...r,loggingOptions:{additionalAllowedHeaderNames:_he,additionalAllowedQueryParameters:Fhe,logger:sx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:rx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:b8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:U3}),n.addPolicy(xhe()),n.addPolicy(Rhe(r.retryOptions),{phase:"Retry"}),n.addPolicy(Dhe()),n.addPolicy(The());let a=Ant(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=x8(t);Li(A)?n.addPolicy(Pm({credential:A,scopes:r.audience??
Line truncated
|
||||
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Pa(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function cot(t,e){if(t=Nf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function uot(t,e){if(t=Nf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function lot(t,e){if(t=Nf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function dot(t,e){if(t=Nf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function hot(t,e){if(t=Nf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function fot(t,e){if(t=Nf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=$A.parse(t.permissions.toString()).toString():n=XA.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Sf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ua(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Pa(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Sf(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Nf(t){let e=t.version?t.version:gx;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var oB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=Lm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async s=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==_a||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==_a||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==_a||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==_a||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab
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"}};Zm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Rf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var fB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Lot=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},rH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);se(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Xfe(t,e,r){return Lot(this,void 0,void 0,function*(){var s;let n=new Oa(t),i=n.getBlockBlobClient(),o=new rH((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),V(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new uR(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as ege from"buffer";import*as ZA from"fs";import*as tge from"stream";import*as rge from"util";var lR=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function dR(t){return t?t>=200&&t<300:!1}function Uot(t){return t?t>=500:!0}function Pot(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Oot(t){return lR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Zfe(t,e,r){return lR(this,arguments,void 0,function*(s,n,i,o=eT,a=tT,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield n()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Uot(d)))return l;if(d&&(h=Pot(d),c=`Cache service responded with ${d}`),V(`${s} - Attempt ${u} of ${o} failed with error: ${c}`),!h){V(`${s} - Error is not retryable`);break}yield Oot(a),u++}throw Error(`${s} failed: ${c}`)})}function gB(t,e){return lR(this,arguments,void 0,function*(r,s,n=eT,i=tT){return yield Zfe(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof BA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function e0(t,e){return lR(this,arguments,void 0,function*(r,s,n=eT,i=tT){return yield Zfe(r,s,o=>o.message.statusCode,n,i)})}var Fo=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function Hot(t,e){return Fo(this,void 0,void 0,function*(){yield rge.promisify(tge.pipeline)(t.message,e)})}var hR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,V(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);se(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])V(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function oH(t,e,r){return ai(this,void 0,void 0,function*(){let s=new Wot(t),n=oge(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield nge(t,e,n):n.concurrentBlobDownloads?yield sge(t,e,n):yield fR(t,e):yield fR(t,e)})}function hge(t,e,r){return ai(this,void 0,void 0,function*(){let s=iH(),n=Nm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield gB("reserveCache",()=>ai(this,void 0,void 0,function*(){return s.postJson(mB("caches"),i)}))})}function lge(t,e){return`bytes ${t}-${e}/*`}function Kot(t,e,r,s,n){return ai(this,void 0,void 0,function*(){V(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${lge(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":lge(s,n)},o=yield e0(`uploadChunk (start: ${s}, end: ${n})`,()=>ai(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!dR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function $ot(t,e,r,s){return ai(this,void 0,void 0,function*(){let n=NA(r),i=mB(`caches/${e.toString()}`),o=t0.openSync(r,"r"),a=sH(s),A=JO("uploadConcurrency",a.uploadConcurrency),c=JO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];V("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>ai(this,void 0,void 0,function*(){for(;l<n;){let d=Math.min(n-l,c),h=l,f=l+d-1;l+=c,yield Kot(t,i,()=>t0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{t0.closeSync(o)}})}function Xot(t,e,r){return ai(this,void 0,void 0,function*(){let s={size:r};return yield gB("commitCache",()=>ai(this,void 0,void 0,function*(){return t.postJson(mB(`caches/${e.toString()}`),s)}))})}function aH(t,e,r,s){return ai(this,void 0,void 0,function*(){if(sH(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Xfe(r,e,s)}else{let i=iH();V("Upload cache"),yield $ot(i,t,e,s),V("Commiting cache");let o=NA(e);se(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Xot(i,t,o);if(!dR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);se("Cache saved successfully")}})}var ope=fe(XH(),1),ts=fe(At(),1),Gi=fe(At(),1),Ff=fe(At(),1),Mf=fe(At(),1),Lf=fe(At(),1);var r9=fe(At(),1),s9=fe(At(),1),spe=fe(At(),1),npe=fe(At(),1),ipe=fe(At(),1);var ZH=fe(At(),1),e9=fe(At(),1),epe=fe(At(),1),tpe=fe(At(),1),rpe=fe(At(),1),t9=class extends rpe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,tpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,epe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?e9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,ZH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,ZH.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?e9.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},tD=new t9;var n9=class extends ipe.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>tD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,npe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,spe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(tD.internalBinaryRead(e,e.uint32(),s));break;default:let c=s.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?s9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,r9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)tD.internalBinaryWrite(e.scope[i],r.tag(2,r9.WireType.LengthDelimited).fork(),s).join();let n=s.writeUnknownFields;return n!==!1&&(n==!0?s9.UnknownFieldHandler.onWrite
Line truncated
|
||||
`));let s=yield C9(r,"create");yield I9(s,t)})}var E0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},qa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},m0=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},nD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function upe(t){if(!t||t.length===0)throw new qa("Path Validation Error: At least one directory or file path is required")}function b9(t){if(t.length>512)throw new qa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qa(`Key Validation Error: ${t} cannot contain commas.`)}function lpe(){return pB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function dpe(t,e,r,s){return E0(this,arguments,void 0,function*(n,i,o,a,A=!1){let c=pB();return V(`Cache service version: ${c}`),upe(n),c==="v2"?yield gct(n,i,o,a,A):yield fct(n,i,o,a,A)})}function fct(t,e,r,s){return E0(this,arguments,void 0,function*(n,i,o,a,A=!1){o=o||[];let c=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(c)),c.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)b9(d);let u=yield Ey(),l="";try{let d=yield dge(c,n,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return se("Lookup only - skipping download"),d.cacheKey;l=vB.join(yield py(),Vl(u)),V(`Archive Path: ${l}`),yield oH(d.archiveLocation,l,a),Pl()&&(yield kB(l,u));let h=NA(l);return se(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield y9(l,u),se("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===qa.name)throw d;h instanceof BA&&typeof h.statusCode=="number"&&h.statusCode>=500?yo(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{yield my(l)}catch(d){V(`Failed to delete archive: ${d}`)}}})}function gct(t,e,r,s){return E0(this,arguments,void 0,function*(n,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(V("Resolved Keys:"),V(JSON.stringify(c)),c.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)b9(l);let u="";try{let l=E9(),d=yield Ey(),h={key:i,restoreKeys:o,version:Nm(n,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){V(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?se(`Cache hit for restore-key: ${f.matchedKey}`):se(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return se("Lookup only - skipping download"),f.matchedKey;u=vB.join(yield py(),Vl(d)),V(`Archive path: ${u}`),V(`Starting download of archive to: ${u}`),yield oH(f.signedDownloadUrl,u,a);let I=NA(u);return se(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Pl()&&(yield kB(u,d)),yield y9(u,d),se("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===qa.name)throw l;d instanceof BA&&typeof d.statusCode=="number"&&d.statusCode>=500?yo(`Failed to restore: ${l.message}`):Ze(`Failed to restore: ${l.message}`)}finally{try{u&&(yield my(u))}catch(l){V(`Failed to delete archive: ${l}`)}}})}function hpe(t,e,r){return E0(this,arguments,void 0,function*(s,n,i,o=!1){let a=pB();return V(`Cache service version: ${a}`),upe(s),b9(n),a==="v2"?yield mct(s,n,i,o):yield pct(s,n,i,o)})}function pct(t,e,r){return E0(this,arguments,void 0,function*(s,n,i,o=!1){var a,A,c,u,l;let d=yield Ey(),h=-1,f=yield WO(s);if(V("Cache Paths:"),V(`${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 p=yield py(),I=vB.join(p,Vl(d));V(`Archive Path: ${I}`);try{yield B9(p,f,d),Pl()&&(yield kB(I,d));let m=10*1024*1024*1024,C=NA(I);if(V(`File Size: ${C}`),C>m&&!nH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);V("Reserving Cache");let y=yield hge(n,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new m0(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);V(`Saving Cache (ID: ${h})`),yield aH(h,I,"",i)}catch(m){let C=m;if(C.name===qa.name)throw m;C.name
Line truncated
|
||||
<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
|
||||
<h5>${e.workflow} :: <em>${e.job}</em></h5>
|
||||
</a>
|
||||
|
||||
${t}`,s=aD(),i=Qo(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")et(Cct(o));else throw o}}function Cct(t){let e=`Failed to generate PR comment.
|
||||
${t}`,n=dD(),i=bo(n);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:s})}catch(o){if(o instanceof Error&&o.name==="HttpError")Ze(wct(o));else throw o}}function wct(t){let e=`Failed to generate PR comment.
|
||||
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
|
||||
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
|
||||
Note that this permission is never available for a workflow triggered from a repository fork.
|
||||
`:e}function Ict(t){return`${Bct()}
|
||||
${Qct(t)}`}function yct(){let t=Ipe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
|
||||
`)}function Bct(){let t=Cpe();return t.length===0?"":`
|
||||
`:e}function Sct(t){return`${Tct()}
|
||||
${Rct(t)}`}function Nct(){let t=mpe();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
|
||||
`)}function Tct(){let t=ppe();return t.length===0?"":`
|
||||
<h4>Deprecation warnings</h4>
|
||||
This job uses deprecated functionality from the <code>${tD()}</code> action. Follow the links for upgrade details.
|
||||
This job uses deprecated functionality from the <code>${oD()}</code> action. Follow the links for upgrade details.
|
||||
<ul>
|
||||
${t.map(e=>`<li>${bct(e)}</li>`).join("")}
|
||||
${t.map(e=>`<li>${xct(e)}</li>`).join("")}
|
||||
</ul>
|
||||
|
||||
<h4>Gradle Build Results</h4>`}function bct(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Qct(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
|
||||
<h4>Gradle Build Results</h4>`}function xct(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Rct(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
|
||||
<table>
|
||||
<tr>
|
||||
<th>Gradle Root Project</th>
|
||||
@@ -271,83 +271,83 @@ This job uses deprecated functionality from the <code>${tD()}</code> action. Fol
|
||||
<th>Gradle Version</th>
|
||||
<th>Build Outcome</th>
|
||||
<th>Build Scan\xAE</th>
|
||||
</tr>${t.map(e=>Sct(e)).join("")}
|
||||
</tr>${t.map(e=>kct(e)).join("")}
|
||||
</table>
|
||||
`}function wct(t){return t.some(e=>e.buildFailed)}function Sct(t){return`
|
||||
`}function Dct(t){return t.some(e=>e.buildFailed)}function kct(t){return`
|
||||
<tr>
|
||||
<td>${Qpe(t.rootProjectName,30)}</td>
|
||||
<td>${Qpe(t.requestedTasks,60)}</td>
|
||||
<td>${ype(t.rootProjectName,30)}</td>
|
||||
<td>${ype(t.requestedTasks,60)}</td>
|
||||
<td align='center'>${t.gradleVersion}</td>
|
||||
<td align='center'>${Nct(t)}</td>
|
||||
<td>${Tct(t)}</td>
|
||||
</tr>`}function Nct(t){return t.buildFailed?":x:":":white_check_mark:"}function Tct(t){return t.buildScanFailed?y9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?y9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):y9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function y9({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Qpe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var Spe=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Ho from"fs";import*as Du from"path";function Npe(){return xpe().map(e=>{let r=Ho.readFileSync(e,"utf8"),n=JSON.parse(r);return Dct(e,n),n})}function Tpe(){xpe().forEach(vct)}function xpe(){let t=Du.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Ho.existsSync(t)?Ho.readdirSync(t).map(e=>Du.resolve(t,e)).filter(e=>Du.extname(e)===".json"&&!kct(e)):[]}function Dct(t,e){let r=Du.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Ho.existsSync(r))return;let n=Du.resolve(r,Du.basename(t));if(Ho.existsSync(n)){let s=Ho.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function kct(t){let e=`${t}.processed`;return Ho.existsSync(e)}function vct(t){let e=`${t}.processed`;Ho.writeFileSync(e,"")}import*as cme from"fs";import*as ume from"path";import{pathToFileURL as zut}from"url";import*as I0 from"fs";function B9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as lD from"path";import*as E0 from"path";import Uf from"assert";var Ad=process.platform==="win32";function vu(t){if(t=ku(t),Ad&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=E0.dirname(t);return Ad&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ku(e)),e}function AD(t,e){if(Uf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Uf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),kB(e))return e;if(Ad){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Uf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(qa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Uf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Uf(kB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Ad&&t.endsWith("\\")||(t+=E0.sep),t+e}function kB(t){return Uf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=qa(t),Ad?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function vB(t){return Uf(t,"isRooted parameter 'itemPath' must not be empty"),t=qa(t),Ad?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function qa(t){return t=t||"",Ad?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ku(t){return t?(t=qa(t),!t.endsWith(E0.sep)||t===E0.sep||Ad&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ya;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ya||(Ya={}));var Rpe=process.platform==="win32";function Q9(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=Rpe?n.sea
Line truncated
|
||||
<td align='center'>${vct(t)}</td>
|
||||
<td>${_ct(t)}</td>
|
||||
</tr>`}function vct(t){return t.buildFailed?":x:":":white_check_mark:"}function _ct(t){return t.buildScanFailed?w9({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?w9({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):w9({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function w9({text:t,alt:e,color:r,logo:s,targetUrl:n}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${s?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${n}" rel="nofollow" target="_blank">${a}</a>`}function ype(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var bpe=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let s=r.split(this.hostDelimiter);return{hostname:s[0],key:s[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as Po from"fs";import*as Du from"path";function Qpe(){return Spe().map(e=>{let r=Po.readFileSync(e,"utf8"),s=JSON.parse(r);return Lct(e,s),s})}function wpe(){Spe().forEach(Pct)}function Spe(){let t=Du.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Po.existsSync(t)?Po.readdirSync(t).map(e=>Du.resolve(t,e)).filter(e=>Du.extname(e)===".json"&&!Uct(e)):[]}function Lct(t,e){let r=Du.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Po.existsSync(r))return;let s=Du.resolve(r,Du.basename(t));if(Po.existsSync(s)){let n=Po.readFileSync(s,"utf8"),i=JSON.parse(n);Object.assign(e,i)}}function Uct(t){let e=`${t}.processed`;return Po.existsSync(e)}function Pct(t){let e=`${t}.processed`;Po.writeFileSync(e,"")}import*as ome from"fs";import*as ame from"path";import{pathToFileURL as elt}from"url";import*as B0 from"fs";function S9(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,V(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,V(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,V(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,V(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,V(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as pD from"path";import*as I0 from"path";import Pf from"assert";var ud=process.platform==="win32";function vu(t){if(t=ku(t),ud&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=I0.dirname(t);return ud&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=ku(e)),e}function hD(t,e){if(Pf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Pf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),LB(e))return e;if(ud){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Pf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Ya(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Pf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Pf(LB(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||ud&&t.endsWith("\\")||(t+=I0.sep),t+e}function LB(t){return Pf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Ya(t),ud?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function UB(t){return Pf(t,"isRooted parameter 'itemPath' must not be empty"),t=Ya(t),ud?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Ya(t){return t=t||"",ud?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function ku(t){return t?(t=Ya(t),!t.endsWith(I0.sep)||t===I0.sep||ud&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Va;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Va||(Va={}));var Npe=process.platform==="win32";function T9(t){t=t.filter(s=>!s.negate);let e={};for(let s of t){let n=Npe?s.sea
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 UB(i));return n.searchPaths.push(...Q9(n.patterns)),n})}static stat(e,r,n){return D9(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield I0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`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 I0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield I0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as k9 from"crypto";import*as dD from"fs";import*as Zpe from"stream";import*as eme from"util";import*as tme from"path";var Yut=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Vut=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function rme(t,e){return Yut(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?se:V,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=k9.createHash("sha256"),f=0;try{for(var p=!0,I=Vut(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${tme.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(dD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=k9.createHash("sha256");yield eme.promisify(Zpe.pipeline)(dD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var nme=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function v9(t,e){return nme(this,void 0,void 0,function*(){return yield uD.create(t,e)})}function sme(t){return nme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield v9(e,{followSymbolicLinks:i});return rme(o,r,s)})}import*as F9 from"path";var ome="BASIC_CACHE_PRIMARY_KEY",_9="BASIC_CACHE_RESTORED_KEY",Wut="setup-java",ame=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],hD=class{async restore(e,r){let n=Ame(e),s=await Jut();KI(ome,s);try{let i=await gpe(n,s);i?(KI(_9,i),se(`Basic caching restored from cache key: ${i}`)):se("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){et(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=QA(_9);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=QA(ome);if(QA(_9)===s)return se(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=Ame(e);try{return await ppe(o,s),se(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return et(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Ame(t){return[F9.join(t,"caches"),F9.join(t,"wrapper")]}async function Jut(){let t=await sme(ame.join(`
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${ame}], make sure you have checked out the target repository`);return`${Wut}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var jut=`
|
||||
`));let n=e.split(`
|
||||
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new qB(i));return s.searchPaths.push(...T9(s.patterns)),s})}static stat(e,r,s){return F9(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield B0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){V(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield B0.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield B0.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){V(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};import*as M9 from"crypto";import*as mD from"fs";import*as Kpe from"stream";import*as $pe from"util";import*as Xpe from"path";var Kut=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},$ut=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),n(a,A,o.done,o.value)})}}function n(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Zpe(t,e){return Kut(this,arguments,void 0,function*(r,s,n=!1){var i,o,a,A,c;let u=n?se:V,l=!1,d=s||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=M9.createHash("sha256"),f=0;try{for(var p=!0,I=$ut(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){A=m.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${Xpe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(mD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=M9.createHash("sha256");yield $pe.promisify(Kpe.pipeline)(mD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var eme=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function L9(t,e){return eme(this,void 0,void 0,function*(){return yield gD.create(t,e)})}function tme(t){return eme(this,arguments,void 0,function*(e,r="",s,n=!1){let i=!0;s&&typeof s.followSymbolicLinks=="boolean"&&(i=s.followSymbolicLinks);let o=yield L9(e,{followSymbolicLinks:i});return Zpe(o,r,n)})}import*as P9 from"path";var sme="BASIC_CACHE_PRIMARY_KEY",U9="BASIC_CACHE_RESTORED_KEY",Xut="setup-java",nme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],ED=class{async restore(e,r){let s=ime(e),n=await Zut();ZI(sme,n);try{let i=await dpe(s,n);i?(ZI(U9,i),se(`Basic caching restored from cache key: ${i}`)):se("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,s){if(s.readOnly){let a=wA(U9);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let n=wA(sme);if(wA(U9)===n)return se(`Basic caching restored entry with key \`${n}\`. Save was skipped.`),`Basic caching restored entry with key \`${n}\`. Save was skipped.`;let o=ime(e);try{return await hpe(o,n),se(`Basic caching saved entry with key: ${n}`),`Basic caching saved entry with key \`${n}\`.`}catch(a){return Ze(`Basic caching failed to save entry with key \`${n}\`: ${a}`),`Basic caching save failed: ${a}`}}};function ime(t){return[P9.join(t,"caches"),P9.join(t,"wrapper")]}async function Zut(){let t=await tme(nme.join(`
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${nme}], make sure you have checked out the target repository`);return`${Xut}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var tlt=`
|
||||
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
|
||||
`,Kut="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",$ut=`
|
||||
`,rlt="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",slt=`
|
||||
> [!NOTE]
|
||||
> ### \u26A1\uFE0F Enhanced Caching enabled
|
||||
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
|
||||
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
|
||||
`,Xut="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Zut=`
|
||||
`,nlt="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",ilt=`
|
||||
> [!NOTE]
|
||||
> ### \u{1F6E1}\uFE0F Basic Caching enabled
|
||||
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
|
||||
>
|
||||
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
|
||||
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,L9=class{async restore(e,r){}async save(e,r,n){return jut}},fD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
|
||||
${this.summary}`}};async function lme(t){if(t.isCacheDisabled())return M9("Cache is disabled: will not restore state from previous builds."),new L9;if(t.getCacheProvider()==="basic")return M9(Xut),new fD(new hD,Zut);M9(Kut);let e=await elt();return t.isCacheLicenseAccepted()?e:new fD(e,$ut)}async function elt(){let t=tlt();return await import(zut(t).href)}function tlt(){let t=import.meta.dirname,e=ume.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(cme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function M9(t){console.info(t)}import*as pme from"util";var Alt=fe(gme(),1);import*as U9 from"fs";var bfr=pme.promisify(U9.readdir);var ult={_useHtmlParser2:!1};function y0(t,e){if(!t)return e??ult;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var AG={};Ca(AG,{contains:()=>xD,extract:()=>sdt,html:()=>edt,merge:()=>Pme,parseHTML:()=>rdt,root:()=>ndt,text:()=>zf,xml:()=>tdt});var gd={};Ca(gd,{DocumentPosition:()=>Vo,append:()=>Mlt,appendChild:()=>Flt,compareDocumentPosition:()=>Fme,existsOne:()=>vme,filter:()=>S0,find:()=>wD,findAll:()=>Olt,findOne:()=>SD,findOneChild:()=>Plt,getAttributeValue:()=>Dlt,getChildren:()=>w0,getElementById:()=>Ylt,getElements:()=>qlt,getElementsByClassName:()=>Vlt,getElementsByTagName:()=>Jf,getElementsByTagType:()=>Wlt,getFeed:()=>aG,getInnerHTML:()=>Rlt,getName:()=>vlt,getOuterHTML:()=>Dme,getParent:()=>kme,getSiblings:()=>iG,getText:()=>BD,hasAttrib:()=>klt,hasChildren:()=>rr,innerText:()=>YB,isCDATA:()=>B0,isComment:()=>Wf,isDocument:()=>Yo,isTag:()=>Qe,isText:()=>fi,nextElementSibling:()=>bD,prepend:()=>Ult,prependChild:()=>Llt,prevElementSibling:()=>QD,removeElement:()=>Lu,removeSubsets:()=>Jlt,replaceElement:()=>_lt,testElement:()=>Glt,textContent:()=>Mu,uniqueSort:()=>hd});var qo={};Ca(qo,{CDATA:()=>J9,Comment:()=>q9,Directive:()=>G9,Doctype:()=>z9,ElementType:()=>Bt,Root:()=>O9,Script:()=>Y9,Style:()=>V9,Tag:()=>W9,Text:()=>H9,isTag:()=>P9});var Bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Bt||(Bt={}));function P9(t){return t.type===Bt.Tag||t.type===Bt.Script||t.type===Bt.Style}var O9=Bt.Root,H9=Bt.Text,G9=Bt.Directive,q9=Bt.Comment,Y9=Bt.Script,V9=Bt.Style,W9=Bt.Tag,J9=Bt.CDATA,z9=Bt.Doctype;var gD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return b0(this,e)}},OB=class extends gD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},sc=class extends OB{constructor(){super(...arguments),this.type=Bt.Text}get nodeType(){return 3}},qf=class extends OB{constructor(){super(...arguments),this.type=Bt.Comment}get nodeType(){return 8}},Yf=class extends OB{constructor(e,r){super(r),this.name=e,this.type=Bt.Directive}get nodeType(){return 1}},HB=class extends gD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},GB=class extends HB{constructor(){super(...arguments),this.type=Bt.CDATA}get nodeType(){return 4}},Ji=class extends HB{constructor(){super(...arguments),this.type=Bt.Root}get nodeType(){return 9}},Vf=class extends HB{constructor(e,r,n=[],s=e==="script"?Bt.Script:e==="style"?Bt.Style:Bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}})}};function Qe(t){return P9(t)}function B0(t){return t.type===Bt.CDATA}function fi(t){return t.type===Bt.Text}function Wf(t){return t.type===Bt.Comment}function pD(t){return t.type===Bt.Directive}function Yo(t){return t.type===Bt.Root}function rr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function b0(t,e=!1){let r;if(fi(t))r=new sc(t.data);else if(Wf(t))r=new qf(t.data);else if(Qe(t)){let n=e?j9(t.children):[],s=new Vf(t.name,{...t.attribs},n);n.forEach(i=>i.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=s}else if(B0(t)){let n=e?j9(t.children):[],s=new GB(n);n.forEach(i=>i.parent=s),r=s}else i
Line truncated
|
||||
`:BD(t.children):B0(t)?BD(t.children):fi(t)?t.data:""}function Mu(t){return Array.isArray(t)?t.map(Mu).join(""):rr(t)&&!Wf(t)?Mu(t.children):fi(t)?t.data:""}function YB(t){return Array.isArray(t)?t.map(YB).join(""):rr(t)&&(t.type===Bt.Tag||B0(t))?YB(t.children):fi(t)?t.data:""}function w0(t){return rr(t)?t.children:[]}function kme(t){return t.parent||null}function iG(t){let e=kme(t);if(e!=null)return w0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Dlt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function klt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function vlt(t){return t.name}function bD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function QD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Lu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function _lt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Flt(t,e){if(Lu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Mlt(t,e){Lu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Llt(t,e){if(Lu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Ult(t,e){Lu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function S0(t,e,r=!0,n=1/0){return wD(t,Array.isArray(e)?e:[e],r,n)}function wD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Plt(t,e){return e.find(t)}function SD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=SD(t,i.children,!0);if(o)return o}}return null}function vme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&vme(t,r.children))}function Olt(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var ND={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>fi(e)&&t(e.data):e=>fi(e)&&e.data===t}};function oG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Hlt(t,e){return r=>t(r)||e(r)}function _me(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(ND,r)?ND[r](n):oG(r,n)});return e.length===0?null:e.reduce(Hlt)}function Glt(t,e){let r=_me(t);return r?r(e):!0}function qlt(t,e,r,n=1/0){let s=_me(t);return s?S0(s,e,r,n):[]}function Ylt(t,e,r=!0){return Array.isArray(e)||(e=[e]),SD(oG("id",t),e,r)}function Jf(t,e,r=!0,n=1/0){return S0(ND.tag_name(t),e,r,n)}function Vlt(t,e,r=!0,n=1/0){return S0(oG("class",t),e,r,n)}function Wlt(t,e,r=!0,n=1/0){return S0(ND.tag_type(t),e,r,n)}function Jlt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Vo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Vo||(Vo={}));function Fme(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Vo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Vo.FOLLOWING|Vo.CONTAINED_BY:Vo.FOLLOWING:a===t?Vo.PRECEDING|Vo.CONTAINS:Vo.PRECEDING}function hd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Fme(e,r);return n&Vo.PRECEDING?-1:n&Vo.FOLLOWING?1:0}),t}function aG(t){let e=TD(Xlt,t);return e?e.name==="feed"?zlt(e):jlt(e):null}function zlt(t){var e;let r=t.children,n={type:"atom",items:Jf("entry",r).map(o=>{var a;let{children:A}=o,c={media:Mme(A)};gi(c,"id","id",A),gi(c,"title","title",A);let u=(a=TD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=fd("summary",A)||fd("conten
Line truncated
|
||||
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,H9=class{async restore(e,r){}async save(e,r,s){return tlt}},CD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,s){return`${await this.delegate.save(e,r,s)}
|
||||
${this.summary}`}};async function Ame(t){if(t.isCacheDisabled())return O9("Cache is disabled: will not restore state from previous builds."),new H9;if(t.getCacheProvider()==="basic")return O9(nlt),new CD(new ED,ilt);O9(rlt);let e=await olt();return t.isCacheLicenseAccepted()?e:new CD(e,slt)}async function olt(){let t=alt();return await import(elt(t).href)}function alt(){let t=import.meta.dirname,e=ame.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(ome.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function O9(t){console.info(t)}import*as hme from"util";var flt=fe(dme(),1);import*as G9 from"fs";var Gfr=hme.promisify(G9.readdir);var plt={_useHtmlParser2:!1};function b0(t,e){if(!t)return e??plt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var dG={};Ia(dG,{contains:()=>_D,extract:()=>udt,html:()=>odt,merge:()=>Mme,parseHTML:()=>Adt,root:()=>cdt,text:()=>jf,xml:()=>adt});var md={};Ia(md,{DocumentPosition:()=>qo,append:()=>Glt,appendChild:()=>Hlt,compareDocumentPosition:()=>kme,existsOne:()=>Rme,filter:()=>T0,find:()=>RD,findAll:()=>Wlt,findOne:()=>DD,findOneChild:()=>Vlt,getAttributeValue:()=>Llt,getChildren:()=>N0,getElementById:()=>Klt,getElements:()=>jlt,getElementsByClassName:()=>$lt,getElementsByTagName:()=>zf,getElementsByTagType:()=>Xlt,getFeed:()=>lG,getInnerHTML:()=>Mlt,getName:()=>Plt,getOuterHTML:()=>Tme,getParent:()=>xme,getSiblings:()=>cG,getText:()=>ND,hasAttrib:()=>Ult,hasChildren:()=>tr,innerText:()=>jB,isCDATA:()=>Q0,isComment:()=>Jf,isDocument:()=>Go,isTag:()=>Qe,isText:()=>li,nextElementSibling:()=>TD,prepend:()=>Ylt,prependChild:()=>qlt,prevElementSibling:()=>xD,removeElement:()=>Lu,removeSubsets:()=>Zlt,replaceElement:()=>Olt,testElement:()=>zlt,textContent:()=>Mu,uniqueSort:()=>gd});var Ho={};Ia(Ho,{CDATA:()=>$9,Comment:()=>J9,Directive:()=>W9,Doctype:()=>X9,ElementType:()=>bt,Root:()=>Y9,Script:()=>z9,Style:()=>j9,Tag:()=>K9,Text:()=>V9,isTag:()=>q9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function q9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var Y9=bt.Root,V9=bt.Text,W9=bt.Directive,J9=bt.Comment,z9=bt.Script,j9=bt.Style,K9=bt.Tag,$9=bt.CDATA,X9=bt.Doctype;var ID=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return w0(this,e)}},VB=class extends ID{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},ic=class extends VB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Yf=class extends VB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Vf=class extends VB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},WB=class extends ID{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},JB=class extends WB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Yi=class extends WB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Wf=class extends WB{constructor(e,r,s=[],n=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(s),this.name=e,this.attribs=r,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,s;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[e]}})}};function Qe(t){return q9(t)}function Q0(t){return t.type===bt.CDATA}function li(t){return t.type===bt.Text}function Jf(t){return t.type===bt.Comment}function yD(t){return t.type===bt.Directive}function Go(t){return t.type===bt.Root}function tr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function w0(t,e=!1){let r;if(li(t))r=new ic(t.data);else if(Jf(t))r=new Yf(t.data);else if(Qe(t)){let s=e?Z9(t.children):[],n=new Wf(t.name,{...t.attribs},s);s.forEach(i=>i.parent=n),t.namespace!=null&&(n.namespace=t.namespace),t["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=n}else if(Q0(t)){let s=e?Z9(t.children):[],n=new JB(s);s.forEach(i=>i.parent=n),r=n}else i
Line truncated
|
||||
`:ND(t.children):Q0(t)?ND(t.children):li(t)?t.data:""}function Mu(t){return Array.isArray(t)?t.map(Mu).join(""):tr(t)&&!Jf(t)?Mu(t.children):li(t)?t.data:""}function jB(t){return Array.isArray(t)?t.map(jB).join(""):tr(t)&&(t.type===bt.Tag||Q0(t))?jB(t.children):li(t)?t.data:""}function N0(t){return tr(t)?t.children:[]}function xme(t){return t.parent||null}function cG(t){let e=xme(t);if(e!=null)return N0(e);let r=[t],{prev:s,next:n}=t;for(;s!=null;)r.unshift(s),{prev:s}=s;for(;n!=null;)r.push(n),{next:n}=n;return r}function Llt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Ult(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Plt(t){return t.name}function TD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function xD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Lu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Olt(t,e){let r=e.prev=t.prev;r&&(r.next=e);let s=e.next=t.next;s&&(s.prev=e);let n=e.parent=t.parent;if(n){let i=n.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Hlt(t,e){if(Lu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Glt(t,e){Lu(e);let{parent:r}=t,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=r,s){if(s.prev=e,r){let n=r.children;n.splice(n.lastIndexOf(s),0,e)}}else r&&r.children.push(e)}function qlt(t,e){if(Lu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Ylt(t,e){Lu(e);let{parent:r}=t;if(r){let s=r.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function T0(t,e,r=!0,s=1/0){return RD(t,Array.isArray(e)?e:[e],r,s)}function RD(t,e,r,s){let n=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return n;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(n.push(a),--s<=0))return n;r&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Vlt(t,e){return e.find(t)}function DD(t,e,r=!0){let s=Array.isArray(e)?e:[e];for(let n=0;n<s.length;n++){let i=s[n];if(Qe(i)&&t(i))return i;if(r&&tr(i)&&i.children.length>0){let o=DD(t,i.children,!0);if(o)return o}}return null}function Rme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&Rme(t,r.children))}function Wlt(t,e){let r=[],s=[Array.isArray(e)?e:[e]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return r;s.shift(),n.shift();continue}let i=s[0][n[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}var kD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>li(e)&&t(e.data):e=>li(e)&&e.data===t}};function uG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Jlt(t,e){return r=>t(r)||e(r)}function Dme(t){let e=Object.keys(t).map(r=>{let s=t[r];return Object.prototype.hasOwnProperty.call(kD,r)?kD[r](s):uG(r,s)});return e.length===0?null:e.reduce(Jlt)}function zlt(t,e){let r=Dme(t);return r?r(e):!0}function jlt(t,e,r,s=1/0){let n=Dme(t);return n?T0(n,e,r,s):[]}function Klt(t,e,r=!0){return Array.isArray(e)||(e=[e]),DD(uG("id",t),e,r)}function zf(t,e,r=!0,s=1/0){return T0(kD.tag_name(t),e,r,s)}function $lt(t,e,r=!0,s=1/0){return T0(uG("class",t),e,r,s)}function Xlt(t,e,r=!0,s=1/0){return T0(kD.tag_type(t),e,r,s)}function Zlt(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let s=r.parent;s;s=s.parent)if(t.includes(s)){t.splice(e,1);break}}return t}var qo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(qo||(qo={}));function kme(t,e){let r=[],s=[];if(t===e)return 0;let n=tr(t)?t:t.parent;for(;n;)r.unshift(n),n=n.parent;for(n=tr(e)?e:e.parent;n;)s.unshift(n),n=n.parent;let i=Math.min(r.length,s.length),o=0;for(;o<i&&r[o]===s[o];)o++;if(o===0)return qo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=s[o];return A.indexOf(c)>A.indexOf(u)?a===e?qo.FOLLOWING|qo.CONTAINED_BY:qo.FOLLOWING:a===t?qo.PRECEDING|qo.CONTAINS:qo.PRECEDING}function gd(t){return t=t.filter((e,r,s)=>!s.includes(e,r+1)),t.sort((e,r)=>{let s=kme(e,r);return s&qo.PRECEDING?-1:s&qo.FOLLOWING?1:0}),t}function lG(t){let e=vD(ndt,t);return e?e.name==="feed"?edt(e):tdt(e):null}function edt(t){var e;let r=t.children,s={type:"atom",items:zf("entry",r).map(o=>{var a;let{children:A}=o,c={media:vme(A)};di(c,"id","id",A),di(c,"title","title",A);let u=(a=vD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=pd("summary",A)||pd("conten
Line truncated
|
||||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||||
optgroup[disabled] > option,
|
||||
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
||||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var zo=fe(pd(),1);var QG={};function wG(t,e){return t===zo.default.falseFunc?zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function SG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function bG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var BG=(t,e,r,n,s)=>{let i=s(e,bG(r),n);return i===zo.default.trueFunc?t:i===zo.default.falseFunc?zo.default.falseFunc:o=>i(o)&&t(o)},HD={is:BG,matches:BG,where:BG,not(t,e,r,n,s){let i=s(e,bG(r),n);return i===zo.default.falseFunc?t:i===zo.default.trueFunc?zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=bG(r);o.relativeSelector=!0;let a=e.some(u=>u.some($B))?[QG]:void 0,A=s(e,o,a);if(A===zo.default.falseFunc)return zo.default.falseFunc;let c=wG(A,i);if(a&&A!==zo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...SG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function Q0e(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in HD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return HD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:OD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,b0e.parse)(c);return HD.is(t,u,r,n,s)}if(typeof A=="function")return yG(A,o,a,1),u=>A(u,a)&&t(u);if(o in F0)return F0[o](t,a,r,n);if(o in ZB){let u=ZB[o];return yG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var jo=fe(v0(),1);function NG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function w0e(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case jo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),C0e[e.action](t,e,r)}case jo.SelectorType.Pseudo:return Q0e(t,e,r,n,s);case jo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=NG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=NG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=NG(c,i));return!1};case jo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case jo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case jo.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case jo.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function S0e(t,e,r){let n=GD(t,e,r);return wG(n,e.adapter)}function GD(t,e,r){let n=typeof t=="string"?(0,Wa.parse)(t):t;return qD(n,e,r)}function N0e(t){return t.type===Wa.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(N0e)))}var qdt={type:Wa.SelectorType.Descendant},Ydt={type:"_flexibleDescendant"},Vdt={type:Wa.SelectorType.Pseudo,name:"scope",data:null};function Wdt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===QG||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:s,value:i.replace(q0e,`\r
|
||||
`)}}).toArray()}var qG={};Ca(qG,{extract:()=>aft});function oft(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function aft(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=oft(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var Cd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};Cd.prototype.cheerio="[cheerio object]";Cd.prototype.splice=Array.prototype.splice;Cd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Cd.prototype,pG,PG,OG,HG,GG,qG);function Y0e(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=y0(s),a=t(n,o,i,null);class A extends Cd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Wo(u))return u;let f=y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Wo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&VB(u)?t(u,f,!1,null).children:Aft(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?VB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Wo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(c,AG,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function Aft(t){return!!t.name||t.type===qo.Root||t.type===qo.Text||t.type===qo.Comment}var cft=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function jD(t){return t>=55296&&t<=57343}function V0e(t){return t>=56320&&t<=57343}function W0e(t,e){return(t-55296)*1024+9216+e}function KD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function $D(t){return t>=64976&&t<=65007||cft.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
`," Line feed \\n"]]),wTe=new Map([...ez,["\\"," Backslash \\"],["/"," Forward slash /"]]);function STe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of wTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Wo=fe(Ed(),1);var TG={};function xG(t,e){return t===Wo.default.falseFunc?Wo.default.falseFunc:r=>e.isTag(r)&&t(r)}function RG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let s=r.indexOf(t);return s<0||s===r.length-1?[]:r.slice(s+1).filter(e.isTag)}function NG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var SG=(t,e,r,s,n)=>{let i=n(e,NG(r),s);return i===Wo.default.trueFunc?t:i===Wo.default.falseFunc?Wo.default.falseFunc:o=>i(o)&&t(o)},WD={is:SG,matches:SG,where:SG,not(t,e,r,s,n){let i=n(e,NG(r),s);return i===Wo.default.falseFunc?t:i===Wo.default.trueFunc?Wo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,s,n){let{adapter:i}=r,o=NG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(rb))?[TG]:void 0,A=n(e,o,a);if(A===Wo.default.falseFunc)return Wo.default.falseFunc;let c=xG(A,i);if(a&&A!==Wo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...RG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function y0e(t,e,r,s,n){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in WD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return WD[o](t,a,r,s,n)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:VD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,I0e.parse)(c);return WD.is(t,u,r,s,n)}if(typeof A=="function")return wG(A,o,a,1),u=>A(u,a)&&t(u);if(o in L0)return L0[o](t,a,r,s);if(o in nb){let u=nb[o];return wG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Jo=fe(F0(),1);function DG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function B0e(t,e,r,s,n){let{adapter:i,equals:o}=r;switch(e.type){case Jo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Jo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Jo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),p0e[e.action](t,e,r)}case Jo.SelectorType.Pseudo:return y0e(t,e,r,s,n);case Jo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Jo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=DG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=DG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=DG(c,i));return!1};case Jo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Jo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Jo.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Jo.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Jo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function b0e(t,e,r){let s=JD(t,e,r);return xG(s,e.adapter)}function JD(t,e,r){let s=typeof t=="string"?(0,Ja.parse)(t):t;return zD(s,e,r)}function Q0e(t){return t.type===Ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Q0e)))}var jdt={type:Ja.SelectorType.Descendant},Kdt={type:"_flexibleDescendant"},$dt={type:Ja.SelectorType.Pseudo,name:"scope",data:null};function Xdt(t,{adapter:e},r){let s=!!r?.every(n=>{let i=e.isTag(n)&&e.getParent(n);return n===TG||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:n,value:i.replace(O0e,`\r
|
||||
`)}}).toArray()}var JG={};Ia(JG,{extract:()=>hft});function dft(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function hft(t){let e={};for(let r in t){let s=t[r],n=Array.isArray(s),{selector:i,value:o}=dft(n?s[0]:s),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(n)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var yd=class{constructor(e,r,s){if(this.length=0,this.options=s,this._root=r,e){for(let n=0;n<e.length;n++)this[n]=e[n];this.length=e.length}}};yd.prototype.cheerio="[cheerio object]";yd.prototype.splice=Array.prototype.splice;yd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(yd.prototype,IG,qG,YG,VG,WG,JG);function H0e(t,e){return function r(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");let o=b0(n),a=t(s,o,i,null);class A extends yd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&Yo(u))return u;let f=b0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Yo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let m=typeof u=="string"&&KB(u)?t(u,f,!1,null).children:fft(u)?[u]:Array.isArray(u)?u:void 0,C=new A(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?KB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Yo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(c,dG,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function fft(t){return!!t.name||t.type===Ho.Root||t.type===Ho.Text||t.type===Ho.Comment}var gft=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Fn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function e2(t){return t>=55296&&t<=57343}function G0e(t){return t>=56320&&t<=57343}function q0e(t,e){return(t-55296)*1024+9216+e}function t2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function r2(t){return t>=64976&&t<=65007||gft.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
`," Line feed \\n"]]),BTe=new Map([...ez,["\\"," Backslash \\"],["/"," Forward slash /"]]);function bTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of BTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(wTe.values()).toString()}
|
||||
Invalid characters include: ${Array.from(BTe.values()).toString()}
|
||||
|
||||
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);se("Artifact name is valid!")}function tz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of ez)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(ez.values()).toString()}
|
||||
|
||||
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
|
||||
`)}var RTe=fe(xTe(),1);function Rc(){return`@actions/artifact-${RTe.version}`}var Tv=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},nl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},sl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Kd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
|
||||
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"}};il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var _g=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};_g.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Fg=class extends Error{};Fg.prototype.name="InvalidTokenError";function JDt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function zDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return JDt(e)}catch{return atob(e)}}function DTe(t,e){if(typeof t!="string")throw new Fg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Fg(`Invalid token specified: missing part #${r+1}`);let s;try{s=zDt(n)}catch(i){throw new Fg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Fg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var xv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Dc(){let t=Sv(),e=DTe(t);if(!e.scp)throw xv;let r=e.scp.split(" ");if(r.length===0)throw xv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw xv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw xv}function kTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(BA(r),BA(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function vTe(t){if(typeof t!="object"||t===null){V("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&kTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&kTe(t.signed_url)}var Rv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},rz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Sv();this.baseUrl=fTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Jn(e,[new uu(i)])}request(e,r,n,s){return Rv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Rv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return Rv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(vTe(c),V(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(_g.isUsageErrorMessage(c.msg))throw new _g;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${s}`),a instanceof _g)throw a;if(il.isNetworkErrorCode(a?.code))throw new il(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);se(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return Rv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function kc(t){let e=new rz(Rc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Nv(e)}import*as FE from"fs";import{normalize as _Te,resolve as FTe}from"path";function MTe(t){if(!FE.existsSync(t))throw n
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&et("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${GPe(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield qPe(u,r,e?.skipDecompress);se("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function WPe(){return xC(this,arguments,void 0,function*(t=gTe()){return(yield Bqt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield LPe.mkdir(t,{recursive:!0})),t})}var Qqt=5,wqt=[400,401,403,404,422];function RC(t,e=Qqt,r=wqt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return V(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var JPe="6.0.0";function up(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}up.VERSION=JPe;var KPe=fe(zPe(),1),$Pe=fe(jP(),1),Sqt="0.0.0-development";async function jPe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function Nqt(t,e,r,n){let s=new KPe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(Tqt.bind(null,t,e,r),n)}async function Tqt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new $Pe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return jPe(t,e,i,n)}return s}function lp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",jPe.bind(null,r,t)),t.hook.wrap("request",Nqt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}lp.VERSION=Sqt;var XPe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function MF(t,e,r,n,s){return XPe(this,void 0,void 0,function*(){var i;let[o,a]=RC($h),A={log:void 0,userAgent:Rc(),previews:void 0,retry:o,request:a},u=yield Qo(s,A,lp,up).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new nl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new sl(`Artifact not found for name: ${t}
|
||||
`)}var NTe=fe(STe(),1);function Dc(){return`@actions/artifact-${NTe.version}`}var LE=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},nl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Xd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
|
||||
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"}};il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Mg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
|
||||
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"}};Mg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Lg=class extends Error{};Lg.prototype.name="InvalidTokenError";function jDt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function KDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return jDt(e)}catch{return atob(e)}}function TTe(t,e){if(typeof t!="string")throw new Lg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,s=t.split(".")[r];if(typeof s!="string")throw new Lg(`Invalid token specified: missing part #${r+1}`);let n;try{n=KDt(s)}catch(i){throw new Lg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new Lg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var vv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function kc(){let t=Dv(),e=TTe(t);if(!e.scp)throw vv;let r=e.scp.split(" ");if(r.length===0)throw vv;for(let s of r){let n=s.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw vv;let i={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return V(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),V(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw vv}function xTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(bA(r),bA(encodeURIComponent(r)))}catch(e){V(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function RTe(t){if(typeof t!="object"||t===null){V("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&xTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&xTe(t.signed_url)}var _v=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},rz=class{constructor(e,r,s,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Dv();this.baseUrl=lTe(),r&&(this.maxAttempts=r),s&&(this.baseRetryIntervalMilliseconds=s),n&&(this.retryMultiplier=n),this.httpClient=new Js(e,[new lu(i)])}request(e,r,s,n){return _v(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;V(`[Request] ${r} ${i}`);let o={"Content-Type":s};try{let{body:a}=yield this.retryableRequest(()=>_v(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return _v(this,void 0,void 0,function*(){let r=0,s="",n="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;n=yield a.readBody(),V(`[Response] - ${a.message.statusCode}`),V(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(n);if(RTe(c),V(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),s=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Mg.isUsageErrorMessage(c.msg))throw new Mg;s=`${s}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&V(`Raw Body: ${n}`),a instanceof Mg)throw a;if(il.isNetworkErrorCode(a?.code))throw new il(a?.code);i=!0,s=a.message}if(!i)throw new Error(`Received non-retryable error: ${s}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${s}`);let o=this.getExponentialRetryTimeMilliseconds(r);se(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${s}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return _v(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),s=r*this.retryMultiplier;return Math.trunc(Math.random()*(s-r)+r)}};function vc(t){let e=new rz(Dc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new kv(e)}import*as UE from"fs";import{normalize as DTe,resolve as kTe}from"path";function vTe(t){if(!UE.existsSync(t))throw n
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Ze("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield s.GetSignedArtifactURL(c);se(`Redirecting to blob download url: ${YPe(u)}`);try{se(`Starting download of artifact to: ${r}`);let l=yield VPe(u,r,e?.skipDecompress);se("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(n=!0,V(`Computed digest: ${l.sha256Digest}`),V(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:n}})}function zPe(){return kC(this,arguments,void 0,function*(t=dTe()){return(yield Nqt(t))?V(`Artifact destination folder already exists: ${t}`):(V(`Artifact destination folder does not exist, creating: ${t}`),yield PPe.mkdir(t,{recursive:!0})),t})}var xqt=5,Rqt=[400,401,403,404,422];function vC(t,e=xqt,r=Rqt){var s;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return V(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(s=n.doNotRetry)!==null&&s!==void 0?s:"octokit default: [400, 401, 403, 404, 422]"})`),[n,i]}var jPe="6.0.0";function dp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let s=Date.now(),n=t.request.endpoint.parse(r),i=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${i} - ${o.status} with id ${a} in ${Date.now()-s}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${i} - ${o.status} with id ${a} in ${Date.now()-s}ms`),o})})}dp.VERSION=jPe;var XPe=fe(KPe(),1),ZPe=fe(eO(),1),Dqt="0.0.0-development";async function $Pe(t,e,r,s){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=s.request.retries!=null?s.request.retries:t.retries,i=Math.pow((s.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,i)}throw r}async function kqt(t,e,r,s){let n=new XPe.default;return n.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(s.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),n.schedule(vqt.bind(null,t,e,r),s)}async function vqt(t,e,r,s){let n=await r(r,s);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){let i=new ZPe.RequestError(n.data.errors[0].message,500,{request:s,response:n});return $Pe(t,e,i,s)}return n}function hp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",$Pe.bind(null,r,t)),t.hook.wrap("request",kqt.bind(null,r,t))),{retry:{retryRequest:(s,n,i)=>(s.request.request=Object.assign({},s.request.request,{retries:n,retryAfter:i}),s)}}}hp.VERSION=Dqt;var eOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function HF(t,e,r,s,n){return eOe(this,void 0,void 0,function*(){var i;let[o,a]=vC(Zh),A={log:void 0,userAgent:Dc(),previews:void 0,retry:o,request:a},u=yield bo(n,A,hp,dp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:s,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new nl(`Artifact not found for name: ${t}
|
||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],V(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function ZPe(t){return XPe(this,void 0,void 0,function*(){var e;let r=kc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Dc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:ms.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new sl(`Artifact not found for name: ${t}
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],V(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function tOe(t){return eOe(this,void 0,void 0,function*(){var e;let r=vc(),{workflowRunBackendId:s,workflowJobRunBackendId:n}=kc(),i={workflowRunBackendId:s,workflowJobRunBackendId:n,nameFilter:us.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new nl(`Artifact not found for name: ${t}
|
||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ps.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var eOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function tOe(t,e,r,n,s){return eOe(this,void 0,void 0,function*(){var i;let[o,a]=RC($h),A={log:void 0,userAgent:Rc(),previews:void 0,retry:o,request:a},c=Qo(s,A,lp,up),u=yield MF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new nl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function rOe(t){return eOe(this,void 0,void 0,function*(){let e=kc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Dc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:ms.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new sl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return se(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var nOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},LF=ETe(),UF=100,xqt=Math.ceil(LF/UF);function sOe(t,e,r,n){return nOe(this,arguments,void 0,function*(s,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=RC($h),d={log:void 0,userAgent:Rc(),previews:void 0,retry:u,request:l},h=Qo(a,d,lp,up),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:UF,page:f}),I=Math.ceil(p.total_count/UF),m=p.total_count;m>LF&&(et(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${LF}. Results will be incomplete as only the first ${LF} artifacts will be returned`),I=xqt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:UF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=oOe(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function iOe(){return nOe(this,arguments,void 0,function*(t=!1){let e=kc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Dc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ps.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=oOe(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function oOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var qw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Rqt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},DC=class{uploadArtifact(e,r,n,s){return qw(this,void 0,void 0,function*(){try{if(kE())throw new Kd;return rPe(e,r,n,s)}catch(i){throw et(`Artifact upload failed with error: ${i}.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?no.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var rOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})};function sOe(t,e,r,s,n){return rOe(this,void 0,void 0,function*(){var i;let[o,a]=vC(Zh),A={log:void 0,userAgent:Dc(),previews:void 0,retry:o,request:a},c=bo(n,A,hp,dp),u=yield HF(t,e,r,s,n),l=yield c.rest.actions.deleteArtifact({owner:r,repo:s,artifact_id:u.artifact.id});if(l.status!==204)throw new sl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function nOe(t){return rOe(this,void 0,void 0,function*(){let e=vc(),{workflowRunBackendId:r,workflowJobRunBackendId:s}=kc(),n={workflowRunBackendId:r,workflowJobRunBackendId:s,nameFilter:us.create({value:t})},i=yield e.ListArtifacts(n);if(i.artifacts.length===0)throw new nl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],V(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return se(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var iOe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},GF=gTe(),qF=100,_qt=Math.ceil(GF/qF);function oOe(t,e,r,s){return iOe(this,arguments,void 0,function*(n,i,o,a,A=!1){se(`Fetching artifact list for workflow run ${n} in repository ${i}/${o}`);let c=[],[u,l]=vC(Zh),d={log:void 0,userAgent:Dc(),previews:void 0,retry:u,request:l},h=bo(a,d,hp,dp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:n,per_page:qF,page:f}),I=Math.ceil(p.total_count/qF),m=p.total_count;m>GF&&(Ze(`Workflow run ${n} has ${m} artifacts, exceeding the limit of ${GF}. Results will be incomplete as only the first ${GF} artifacts will be returned`),I=_qt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){V(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:n,per_page:qF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=AOe(c)),se(`Found ${c.length} artifact(s)`),{artifacts:c}})}function aOe(){return iOe(this,arguments,void 0,function*(t=!1){let e=vc(),{workflowRunBackendId:r,workflowJobRunBackendId:s}=kc(),n={workflowRunBackendId:r,workflowJobRunBackendId:s},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?no.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=AOe(o)),se(`Found ${o.length} artifact(s)`),{artifacts:o}})}function AOe(t){t.sort((s,n)=>n.id-s.id);let e=[],r=new Set;for(let s of t)r.has(s.name)||(e.push(s),r.add(s.name));return e}var zw=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(s.next(u))}catch(l){o(l)}}function A(u){try{c(s.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):n(u.value).then(a,A)}c((s=s.apply(t,e||[])).next())})},Fqt=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(r[s[n]]=t[s[n]]);return r},_C=class{uploadArtifact(e,r,s,n){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;return nPe(e,r,s,n)}catch(i){throw Ze(`Artifact upload failed with error: ${i}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return qw(this,void 0,void 0,function*(){try{if(kE())throw new Kd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=Rqt(r,["findBy"]);return YPe(e,n,s,i,o)}return VPe(e,r)}catch(n){throw et(`Download Artifact failed with error: ${n}.
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(r?.findBy){let{findBy:{repositoryOwner:s,repositoryName:n,token:i}}=r,o=Fqt(r,["findBy"]);return WPe(e,s,n,i,o)}return JPe(e,r)}catch(s){throw Ze(`Download Artifact failed with error: ${s}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return qw(this,void 0,void 0,function*(){try{if(kE())throw new Kd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return sOe(r,n,s,i,e?.latest)}return iOe(e?.latest)}catch(r){throw et(`Listing Artifacts failed with error: ${r}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}listArtifacts(e){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:s,repositoryName:n,token:i}}=e;return oOe(r,s,n,i,e?.latest)}return aOe(e?.latest)}catch(r){throw Ze(`Listing Artifacts failed with error: ${r}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return qw(this,void 0,void 0,function*(){try{if(kE())throw new Kd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return MF(e,n,s,i,o)}return ZPe(e)}catch(n){throw et(`Get Artifact failed with error: ${n}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(r?.findBy){let{findBy:{workflowRunId:s,repositoryOwner:n,repositoryName:i,token:o}}=r;return HF(e,s,n,i,o)}return tOe(e)}catch(s){throw Ze(`Get Artifact failed with error: ${s}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return qw(this,void 0,void 0,function*(){try{if(kE())throw new Kd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return tOe(e,i,n,s,o)}return rOe(e)}catch(n){throw et(`Delete Artifact failed with error: ${n}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}deleteArtifact(e,r){return zw(this,void 0,void 0,function*(){try{if(_E())throw new Xd;if(r?.findBy){let{findBy:{repositoryOwner:s,repositoryName:n,workflowRunId:i,token:o}}=r;return sOe(e,i,s,n,o)}return nOe(e)}catch(s){throw Ze(`Delete Artifact failed with error: ${s}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var eNr=new DC;import*as PF from"path";import Z$ from"fs";var Dqt="dependency-graph_";async function AOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await aOe(t,!1);return;case"generate-submit-and-upload":await aOe(t,!0);return;case"generate-and-upload":await kqt(t)}}catch(r){Pqt(t,e,r)}}async function aOe(t,e){if(uOe()){se("Dependency graph not supported in the ACT environment.");return}let r=await cOe();try{await vqt(r)}catch(n){try{await X$(r,t)}catch(s){se(String(s))}throw n}e&&await X$(r,t)}async function kqt(t){if(uOe()){se("Dependency graph not supported in the ACT environment.");return}await X$(await cOe(),t)}async function cOe(){let r=(await(await v9(`${Mqt()}/**/*.json`)).glob()).filter(n=>!Lqt(n));return r.forEach(Uqt),se(`Found dependency graph files: ${r.join(", ")}`),r}async function X$(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=DB(),n=new DC;for(let s of t){let i=eX(s);se(`Uploading dependency graph file: ${i}`);let o=`${Dqt}${PF.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function vqt(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await Fqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=_qt(e,r)),r}}function _qt(t,e){let n=`Dependency submission failed for ${eX(t)}.
|
||||
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}};var SNr=new _C;import*as YF from"path";import X$ from"fs";var Mqt="dependency-graph_";async function uOe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await cOe(t,!1);return;case"generate-submit-and-upload":await cOe(t,!0);return;case"generate-and-upload":await Lqt(t)}}catch(r){Yqt(t,e,r)}}async function cOe(t,e){if(dOe()){se("Dependency graph not supported in the ACT environment.");return}let r=await lOe();try{await Uqt(r)}catch(s){try{await $$(r,t)}catch(n){se(String(n))}throw s}e&&await $$(r,t)}async function Lqt(t){if(dOe()){se("Dependency graph not supported in the ACT environment.");return}await $$(await lOe(),t)}async function lOe(){let r=(await(await L9(`${Hqt()}/**/*.json`)).glob()).filter(s=>!Gqt(s));return r.forEach(qqt),se(`Found dependency graph files: ${r.join(", ")}`),r}async function $$(t,e){if(t.length===0){se("No dependency graph files found to upload.");return}let r=MB(),s=new _C;for(let n of t){let i=Z$(n);se(`Uploading dependency graph file: ${i}`);let o=`${Mqt}${YF.basename(n)}`;await s.uploadArtifact(o,[n],r,{retentionDays:e.getArtifactRetentionDays()})}}async function Uqt(t){if(t.length===0){se("No dependency graph files found to submit.");return}for(let e of t)try{await Oqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Pqt(e,r)),r}}function Pqt(t,e){let s=`Dependency submission failed for ${Z$(t)}.
|
||||
${e.message}`;return e.message==="Resource not accessible by integration"?`${s}
|
||||
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
|
||||
`:n}async function Fqt(t){let e=Oqt(),r=Z$.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=Ol.repo.owner,n.repo=Ol.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=eX(t);Sae(`Submitted ${i}: ${s.data.message}`)}function Mqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function Lqt(t){let e=`${t}.processed`;return Z$.existsSync(e)}function Uqt(t){let e=`${t}.processed`;Z$.writeFileSync(e,"")}function Pqt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new DE(r);et(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function Oqt(){return Qo(aD())}function eX(t){let e=DB();return PF.relative(e,t)}function uOe(){return process.env.ACT!==void 0}function Gqt(t=process.platform){return t==="win32"?50:0}async function lOe(t=process.platform){let e=Gqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>fJ(t));async function qqt(){try{Bpe(),ype(),await hTe(new nD,new sD)&&await AOe(new rD)}catch(t){fJ(t)}await lOe()}qqt();export{qqt as run};
|
||||
`:s}async function Oqt(t){let e=Vqt(),r=X$.readFileSync(t,"utf8"),s=JSON.parse(r);s.owner=Ol.repo.owner,s.repo=Ol.repo.repo;let n=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",s),i=Z$(t);wae(`Submitted ${i}: ${n.data.message}`)}function Hqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function Gqt(t){let e=`${t}.processed`;return X$.existsSync(e)}function qqt(t){let e=`${t}.processed`;X$.writeFileSync(e,"")}function Yqt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new vE(r);Ze(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function Vqt(){return bo(dD())}function Z$(t){let e=MB();return YF.relative(e,t)}function dOe(){return process.env.ACT!==void 0}function Jqt(t=process.platform){return t==="win32"?50:0}async function hOe(t=process.platform){let e=Jqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>EJ(t));async function zqt(){try{Cpe(),Epe(),await uTe(new AD,new cD)&&await uOe(new aD)}catch(t){EJ(t)}await hOe()}zqt();export{zqt as run};
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
Vendored
+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.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": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
|
||||
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.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": ";s1BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
|
||||
}
|
||||
Reference in new issue
Block a user