mirror of
https://github.com/docker/bake-action.git
synced 2026-10-21 08:15:26 +02:00
chore: update generated content
This commit is contained in:
1 parent
7ae1cf6599
commit
23050a11b3
3 files changed
+193
-191
No files matched your search
+188
-187
@@ -1,136 +1,136 @@
|
||||
var kst=Object.create;var UH=Object.defineProperty;var Lst=Object.getOwnPropertyDescriptor;var Fst=Object.getOwnPropertyNames;var Mst=Object.getPrototypeOf,Ust=Object.prototype.hasOwnProperty;var qst=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ype=(t,e)=>{for(var r in e)UH(t,r,{get:e[r],enumerable:!0})},Gst=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Fst(e))!Ust.call(t,s)&&s!==r&&UH(t,s,{get:()=>e[s],enumerable:!(i=Lst(e,s))||i.enumerable});return t};var k=(t,e,r)=>(r=t!=null?kst(Mst(t)):{},Gst(e||!t||!t.__esModule?UH(r,"default",{value:t,enumerable:!0}):r,t));var ime=p(rb=>{"use strict";var CBr=require("net"),Wst=require("tls"),VH=require("http"),eme=require("https"),Jst=require("events"),IBr=require("assert"),Yst=require("util");rb.httpOverHttp=Kst;rb.httpsOverHttp=Xst;rb.httpOverHttps=Zst;rb.httpsOverHttps=ent;function Kst(t){var e=new ed(t);return e.request=VH.request,e}function Xst(t){var e=new ed(t);return e.request=VH.request,e.createSocket=tme,e.defaultPort=443,e}function Zst(t){var e=new ed(t);return e.request=eme.request,e}function ent(t){var e=new ed(t);return e.request=eme.request,e.createSocket=tme,e.defaultPort=443,e}function ed(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||VH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,s,n,o){for(var a=rme(s,n,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}Yst.inherits(ed,Jst.EventEmitter);ed.prototype.addRequest=function(e,r,i,s){var n=this,o=$H({request:e},n.options,rme(r,i,s));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){n.emit("free",a,o)}function u(l){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};ed.prototype.createSocket=function(e,r){var i=this,s={};i.sockets.push(s);var n=$H({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),im("making CONNECT request");var o=i.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){im("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(s);return}if(d.length>0){im("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(s);return}return im("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=h,r(h)}function l(f){o.removeAllListeners(),im(`tunneling socket could not be established, cause=%s
|
||||
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(s)}};ed.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(s){i.request.onSocket(s)})}};function tme(t,e){var r=this;ed.prototype.createSocket.call(r,t,function(i){var s=t.request.getHeader("host"),n=$H({},r.options,{socket:i,servername:s?s.replace(/:.*$/,""):t.host}),o=Wst.connect(0,n);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function rme(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function $H(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var s=Object.keys(i),n=0,o=s.length;n<o;++n){var a=s[n];i[a]!==void 0&&(t[a]=i[a])}}return t}var im;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?im=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)}:im=function(){};rb.debug=im});var WH=p((BBr,sme)=>{sme.exports=ime()});var Qr=p((vBr,nme)=>{nme.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 Vt=p((xBr,Nme)=>{"use strict";var ome=Symbol.for("undici.error.UND_ERR"),kr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[ome]===!0}[ome]=!0},ame=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),JH=class extends kr{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[ame]===!0}[ame]=!0},cme=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),YH=class extends kr{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[cme]===!0}[cme]=!0},ume=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),KH=class extends kr{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[ume]===!0}[ume]=!0},lme=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),XH=class extends kr{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[lme]===!0}[lme]=!0},fme=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),ZH=class extends kr{constructor(e,r,i,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function Aat(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),s="";if(i.length>0)for(let n=i.length;n!==0;n--){let o=i[n-1].trim();if(eat.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function gat(){return"allowed"}function yat(){return"success"}function Eat(){return"success"}function bat(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function wat(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&&j6(t.origin)&&!j6(KB(t))&&(e=null);break;case"same-origin":J2(t,KB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function hb(t,e){return t}function Cat(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:hb(t.domainLookupStartTime,r),domainLookupEndTime:hb(t.domainLookupEndTime,r),connectionStartTime:hb(t.connectionStartTime,r),connectionEndTime:hb(t.connectionEndTime,r),secureConnectionStartTime:hb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Iat(t){return hb(nat.now(),t)}function Sat(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 jAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Bat(t){return{referrerPolicy:t.referrerPolicy}}function vat(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let a=FAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=H6(r),s=H6(r,!0);i.toString().length>4096&&(i=s);let n=J2(t,i),o=YB(i)&&!YB(t.url);switch(e){case"origin":return s??H6(r,!0);case"unsafe-url":return i;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?i:s;case"strict-origin-when-cross-origin":{let a=KB(t);return J2(i,a)?i:YB(i)&&!YB(a)?"no-referrer":s}default:return o?"no-referrer":s}}function H6(t,e){return Tg(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 YB(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function xat(t,e){if(W2===void 0)return!0;let r=zAe(e);if(r==="no metadata"||r.length===0)return!0;let i=Rat(r),s=Nat(r,i);for(let n of s){let o=n.algo,a=n.hash,c=W2.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Tat(c,a))return!0}return!1}var _at=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function zAe(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let s=_at.exec(i);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();UAe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function Rat(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function Nat(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function Tat(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 Dat(t){}function J2(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Oat(){let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}}function Pat(t){return t.controller.state==="aborted"}function Qat(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function kat(t){return cat[t.toLowerCase()]??t}function Lat(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Tg(typeof e=="string"),e}var Fat=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function VAe(t,e,r=0,i=1){class s{
Line truncated
|
||||
`);function pct(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function mct(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function Act(t,e){K2(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),s=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.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(n.position,n.position+i.length).equals(i))n.position+=i.length;else return"failure";if(n.position===t.length-2&&X2(t,hct,n)||n.position===t.length-4&&X2(t,dct,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=gct(t,n);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;n.position+=2;let h;{let m=t.indexOf(i.subarray(2),n.position);if(m===-1)return"failure";h=t.subarray(n.position,m-4),n.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let d;u!==null?(l??="text/plain",pct(l)||(l=""),d=new lct([h],u,{type:l})):d=nct(Buffer.from(h)),K2(sge(c)),K2(typeof d=="string"&&sge(d)||act(d)),s.push(cct(c,d,u))}}function gct(t,e){let r=null,i=null,s=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:s,encoding:n};let o=pb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=K6(o,!0,!0,a=>a===9||a===32),!oct.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,pb(a=>a===32||a===9,t,e),sct(o)){case"content-disposition":{if(r=i=null,!X2(t,fct,e)||(e.position+=17,r=age(t,e),r===null))return"failure";if(X2(t,oge,e)){let a=e.position+oge.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=age(t,e),i===null))return"failure"}break}case"content-type":{let a=pb(c=>c!==10&&c!==13,t,e);a=K6(a,!1,!0,c=>c===9||c===32),s=nge(a);break}case"content-transfer-encoding":{let a=pb(c=>c!==10&&c!==13,t,e);a=K6(a,!1,!0,c=>c===9||c===32),n=nge(a);break}default:pb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function age(t,e){K2(t[e.position-1]===34);let r=pb(i=>i!==10&&i!==13&&i!==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 pb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function K6(t,e,r,i){let s=0,n=t.length-1;if(e)for(;s<t.length&&i(t[s]);)s++;if(r)for(;n>0&&i(t[n]);)n--;return s===0&&n===t.length-1?t:t.subarray(s,n+1)}function X2(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}cge.exports={multipartFormDataParser:Act,validateBoundary:mct}});var gb=p((XBr,Ege)=>{"use strict";var ev=wt(),{ReadableStreamFrom:yct,isBlobLike:lge,isReadableStreamLike:Ect,readableStreamClose:bct,createDeferredPromise:wct,fullyReadBody:Cct,extractMimeType:Ict,utf8DecodeBytes:dge}=Sa(),{FormData:fge}=ZB(),{kState:Ab}=sm(),{webidl:Sct}=Ws(),{Blob:Bct}=require("node:buffer"),X6=require("node:assert"),{isErrored:pge,isDisturbed:vct}=require("node:stream"),{isArrayBuffer:xct}=require("node:util/types"),{serializeAMimeType:_ct}=Go(),{multipartFormDataParser:Rct}=uge(),Z6;try{let t=require("node:crypto");Z6=e=>t.randomInt(0,e)}catch{Z6=t=>Math.floor(Math.random(t))}var Z2=new TextEncoder;function Nct(){}var mge=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Age;mge&&(Age=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!vct(e)&&!pge(e)&&e.cancel("Response object has been garbage collected").catch(Nct)}));function gge(t,e=!1){let r=null;t instanceof ReadableStream?r=t:lge(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof s=="string"?Z2.encode(s):s;u.byteLength&&c.enqueue(u),queueMicrotask(()=>bct(c))},start(){},type:"bytes"}),X6(Ect(r));let i=null,s=null,n=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(xct(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(ev.isFormDataLike(t)){let c=`----formdata-undici-0${`${Z6(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
|
||||
var xot=Object.create;var b6=Object.defineProperty;var _ot=Object.getOwnPropertyDescriptor;var Rot=Object.getOwnPropertyNames;var Tot=Object.getPrototypeOf,Not=Object.prototype.hasOwnProperty;var Dot=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sAe=(t,e)=>{for(var r in e)b6(t,r,{get:e[r],enumerable:!0})},Oot=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rot(e))!Not.call(t,n)&&n!==r&&b6(t,n,{get:()=>e[n],enumerable:!(i=_ot(e,n))||i.enumerable});return t};var P=(t,e,r)=>(r=t!=null?xot(Tot(t)):{},Oot(e||!t||!t.__esModule?b6(r,"default",{value:t,enumerable:!0}):r,t));var hAe=p(mb=>{"use strict";var Wxr=require("net"),Mot=require("tls"),x6=require("http"),uAe=require("https"),Uot=require("events"),Jxr=require("assert"),qot=require("util");mb.httpOverHttp=Got;mb.httpsOverHttp=Hot;mb.httpOverHttps=jot;mb.httpsOverHttps=Vot;function Got(t){var e=new nd(t);return e.request=x6.request,e}function Hot(t){var e=new nd(t);return e.request=x6.request,e.createSocket=lAe,e.defaultPort=443,e}function jot(t){var e=new nd(t);return e.request=uAe.request,e}function Vot(t){var e=new nd(t);return e.request=uAe.request,e.createSocket=lAe,e.defaultPort=443,e}function nd(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||x6.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,n,s,o){for(var a=fAe(n,s,o),c=0,u=e.requests.length;c<u;++c){var l=e.requests[c];if(l.host===a.host&&l.port===a.port){e.requests.splice(c,1),l.request.onSocket(i);return}}i.destroy(),e.removeSocket(i)})}qot.inherits(nd,Uot.EventEmitter);nd.prototype.addRequest=function(e,r,i,n){var s=this,o=_6({request:e},s.options,fAe(r,i,n));if(s.sockets.length>=this.maxSockets){s.requests.push(o);return}s.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){s.emit("free",a,o)}function u(l){s.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};nd.prototype.createSocket=function(e,r){var i=this,n={};i.sockets.push(n);var s=_6({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),am("making CONNECT request");var o=i.request(s);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",l),o.end();function a(f){f.upgrade=!0}function c(f,h,d){process.nextTick(function(){u(f,h,d)})}function u(f,h,d){if(o.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){am("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}if(d.length>0){am("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(n);return}return am("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=h,r(h)}function l(f){o.removeAllListeners(),am(`tunneling socket could not be established, cause=%s
|
||||
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),i.removeSocket(n)}};nd.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var i=this.requests.shift();i&&this.createSocket(i,function(n){i.request.onSocket(n)})}};function lAe(t,e){var r=this;nd.prototype.createSocket.call(r,t,function(i){var n=t.request.getHeader("host"),s=_6({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):t.host}),o=Mot.connect(0,s);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function fAe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function _6(t){for(var e=1,r=arguments.length;e<r;++e){var i=arguments[e];if(typeof i=="object")for(var n=Object.keys(i),s=0,o=n.length;s<o;++s){var a=n[s];i[a]!==void 0&&(t[a]=i[a])}}return t}var am;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?am=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)}:am=function(){};mb.debug=am});var R6=p((Kxr,dAe)=>{dAe.exports=hAe()});var Fr=p((Xxr,pAe)=>{pAe.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 $t=p((Zxr,MAe)=>{"use strict";var mAe=Symbol.for("undici.error.UND_ERR"),Mr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[mAe]===!0}[mAe]=!0},AAe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),T6=class extends Mr{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[AAe]===!0}[AAe]=!0},gAe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),N6=class extends Mr{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[gAe]===!0}[gAe]=!0},yAe=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),D6=class extends Mr{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[yAe]===!0}[yAe]=!0},EAe=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),O6=class extends Mr{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[EAe]===!0}[EAe]=!0},bAe=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),P6=class extends Mr{constructor(e,r,i,n){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function aut(t,e){let{headersList:r}=e,i=(r.get("referrer-policy",!0)??"").split(","),n="";if(i.length>0)for(let s=i.length;s!==0;s--){let o=i[s-1].trim();if(Vct.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function cut(){return"allowed"}function uut(){return"success"}function lut(){return"success"}function fut(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function hut(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&&Bj(t.origin)&&!Bj(hv(t))&&(e=null);break;case"same-origin":BD(t,hv(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Bb(t,e){return t}function dut(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Bb(t.domainLookupStartTime,r),domainLookupEndTime:Bb(t.domainLookupEndTime,r),connectionStartTime:Bb(t.connectionStartTime,r),connectionEndTime:Bb(t.connectionEndTime,r),secureConnectionStartTime:Bb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function put(t){return Bb(Yct.now(),t)}function mut(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 Zge(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Aut(t){return{referrerPolicy:t.referrerPolicy}}function gut(t){let e=t.referrerPolicy;Gg(e);let r=null;if(t.referrer==="client"){let a=$ge();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=Sj(r),n=Sj(r,!0);i.toString().length>4096&&(i=n);let s=BD(t,i),o=fv(i)&&!fv(t.url);switch(e){case"origin":return n??Sj(r,!0);case"unsafe-url":return i;case"same-origin":return s?n:"no-referrer";case"origin-when-cross-origin":return s?i:n;case"strict-origin-when-cross-origin":{let a=hv(t);return BD(i,a)?i:fv(i)&&!fv(a)?"no-referrer":n}default:return o?"no-referrer":n}}function Sj(t,e){return Gg(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 fv(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 i=new URL(r);return!!(i.protocol==="https:"||i.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(i.hostname)||i.hostname==="localhost"||i.hostname.includes("localhost.")||i.hostname.endsWith(".localhost"))}}function yut(t,e){if(SD===void 0)return!0;let r=eye(e);if(r==="no metadata"||r.length===0)return!0;let i=but(r),n=wut(r,i);for(let s of n){let o=s.algo,a=s.hash,c=SD.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),Cut(c,a))return!0}return!1}var Eut=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function eye(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let n=Eut.exec(i);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let s=n.groups.algo.toLowerCase();Jge.includes(s)&&e.push(n.groups)}return r===!0?"no metadata":e}function but(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let i=t[r];if(i.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;i.algo[3]==="3"&&(e="sha384")}}return e}function wut(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.length;++i)t[i].algo===e&&(t[r++]=t[i]);return t.length=r,t}function Cut(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 Iut(t){}function BD(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Sut(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}}function But(t){return t.controller.state==="aborted"}function vut(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function xut(t){return Zct[t.toLowerCase()]??t}function _ut(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Gg(typeof e=="string"),e}var Rut=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function tye(t,e,r=0,i=1){class n{
Line truncated
|
||||
`);function slt(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function olt(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let i=t.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}function alt(t,e){xD(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let i=Buffer.from(`--${r}`,"utf8"),n=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.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(s.position,s.position+i.length).equals(i))s.position+=i.length;else return"failure";if(s.position===t.length-2&&_D(t,ilt,s)||s.position===t.length-4&&_D(t,nlt,s))return n;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let a=clt(t,s);if(a==="failure")return"failure";let{name:c,filename:u,contentType:l,encoding:f}=a;s.position+=2;let h;{let m=t.indexOf(i.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let d;u!==null?(l??="text/plain",slt(l)||(l=""),d=new tlt([h],u,{type:l})):d=Yut(Buffer.from(h)),xD(dye(c)),xD(typeof d=="string"&&dye(d)||Xut(d)),n.push(Zut(c,d,u))}}function clt(t,e){let r=null,i=null,n=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:i,contentType:n,encoding:s};let o=xb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Dj(o,!0,!0,a=>a===9||a===32),!Kut.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,xb(a=>a===32||a===9,t,e),Jut(o)){case"content-disposition":{if(r=i=null,!_D(t,rlt,e)||(e.position+=17,r=Aye(t,e),r===null))return"failure";if(_D(t,mye,e)){let a=e.position+mye.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=Aye(t,e),i===null))return"failure"}break}case"content-type":{let a=xb(c=>c!==10&&c!==13,t,e);a=Dj(a,!1,!0,c=>c===9||c===32),n=pye(a);break}case"content-transfer-encoding":{let a=xb(c=>c!==10&&c!==13,t,e);a=Dj(a,!1,!0,c=>c===9||c===32),s=pye(a);break}default:xb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Aye(t,e){xD(t[e.position-1]===34);let r=xb(i=>i!==10&&i!==13&&i!==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 xb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function Dj(t,e,r,i){let n=0,s=t.length-1;if(e)for(;n<t.length&&i(t[n]);)n++;if(r)for(;s>0&&i(t[s]);)s--;return n===0&&s===t.length-1?t:t.subarray(n,s+1)}function _D(t,e,r){if(t.length<e.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[r.position+i])return!1;return!0}gye.exports={multipartFormDataParser:alt,validateBoundary:olt}});var Tb=p((S_r,_ye)=>{"use strict";var mv=wt(),{ReadableStreamFrom:ult,isBlobLike:Eye,isReadableStreamLike:llt,readableStreamClose:flt,createDeferredPromise:hlt,fullyReadBody:dlt,extractMimeType:plt,utf8DecodeBytes:Cye}=Na(),{FormData:bye}=pv(),{kState:Rb}=cm(),{webidl:mlt}=Xn(),{Blob:Alt}=require("node:buffer"),Oj=require("node:assert"),{isErrored:Iye,isDisturbed:glt}=require("node:stream"),{isArrayBuffer:ylt}=require("node:util/types"),{serializeAMimeType:Elt}=$o(),{multipartFormDataParser:blt}=yye(),Pj;try{let t=require("node:crypto");Pj=e=>t.randomInt(0,e)}catch{Pj=t=>Math.floor(Math.random(t))}var RD=new TextEncoder;function wlt(){}var Sye=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Bye;Sye&&(Bye=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!glt(e)&&!Iye(e)&&e.cancel("Response object has been garbage collected").catch(wlt)}));function vye(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Eye(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof n=="string"?RD.encode(n):n;u.byteLength&&c.enqueue(u),queueMicrotask(()=>flt(c))},start(){},type:"bytes"}),Oj(llt(r));let i=null,n=null,s=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(ylt(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(mv.isFormDataLike(t)){let c=`----formdata-undici-0${`${Pj(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
|
||||
Content-Disposition: form-data`;let l=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),f=y=>y.replace(/\r?\n|\r/g,`\r
|
||||
`),h=[],d=new Uint8Array([13,10]);n=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=Z2.encode(u+`; name="${l(f(y))}"\r
|
||||
`),h=[],d=new Uint8Array([13,10]);s=0;let m=!1;for(let[y,g]of t)if(typeof g=="string"){let E=RD.encode(u+`; name="${l(f(y))}"\r
|
||||
\r
|
||||
${f(g)}\r
|
||||
`);h.push(E),n+=E.byteLength}else{let E=Z2.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
|
||||
`);h.push(E),s+=E.byteLength}else{let E=RD.encode(`${u}; name="${l(f(y))}"`+(g.name?`; filename="${l(g.name)}"`:"")+`\r
|
||||
Content-Type: ${g.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(E,g,d),typeof g.size=="number"?n+=E.byteLength+g.size+d.byteLength:m=!0}let A=Z2.encode(`--${c}--\r
|
||||
`);h.push(A),n+=A.byteLength,m&&(n=null),s=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(lge(t))s=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ev.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:yct(t)}if((typeof s=="string"||ev.isBuffer(s))&&(n=Buffer.byteLength(s)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!pge(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:n},o]}function Tct(t,e=!1){return t instanceof ReadableStream&&(X6(!ev.isDisturbed(t),"The body has already been consumed."),X6(!t.locked,"The stream is locked.")),gge(t,e)}function Dct(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function Oct(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Pct(t){return{blob(){return mb(this,r=>{let i=hge(this);return i===null?i="":i&&(i=_ct(i)),new Bct([r],{type:i})},t)},arrayBuffer(){return mb(this,r=>new Uint8Array(r).buffer,t)},text(){return mb(this,dge,t)},json(){return mb(this,kct,t)},formData(){return mb(this,r=>{let i=hge(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let s=Rct(r,i);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new fge;return n[Ab]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new fge;for(let[o,a]of s)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return mb(this,r=>new Uint8Array(r),t)}}}function Qct(t){Object.assign(t.prototype,Pct(t))}async function mb(t,e,r){if(Sct.brandCheck(t,r),yge(t))throw new TypeError("Body is unusable: Body has already been read");Oct(t[Ab]);let i=wct(),s=o=>i.reject(o),n=o=>{try{i.resolve(e(o))}catch(a){s(a)}};return t[Ab].body==null?(n(Buffer.allocUnsafe(0)),i.promise):(await Cct(t[Ab].body,n,s),i.promise)}function yge(t){let e=t[Ab].body;return e!=null&&(e.stream.locked||ev.isDisturbed(e.stream))}function kct(t){return JSON.parse(dge(t))}function hge(t){let e=t[Ab].headersList,r=Ict(e);return r==="failure"?null:r}Ege.exports={extractBody:gge,safelyExtractBody:Tct,cloneBody:Dct,mixinBody:Qct,streamRegistry:Age,hasFinalizationRegistry:mge,bodyUnusable:yge}});var Nge=p((ZBr,Rge)=>{"use strict";var We=require("node:assert"),it=wt(),{channels:bge}=sb(),ej=Q6(),{RequestContentLengthMismatchError:Dg,ResponseContentLengthMismatchError:Lct,RequestAbortedError:vge,HeadersTimeoutError:Fct,HeadersOverflowError:Mct,SocketError:nD,InformationalError:yb,BodyTimeoutError:Uct,HTTPParserError:qct,ResponseExceededMaxSizeError:Gct}=Vt(),{kUrl:xge,kReset:Ho,kClient:sj,kParser:ei,kBlocking:iv,kRunning:dn,kPending:Hct,kSize:wge,kWriting:om,kQueue:Fu,kNoRef:tv,kKeepAliveDefaultTimeout:jct,kHostHeader:zct,kPendingIdx:Vct,kRunningIdx:Ic,kError:Sc,kPipelining:iD,kSocket:Eb,kKeepAliveTimeoutValue:oD,kMaxHeadersSize:tj,kKeepAliveMaxTimeout:$ct,kKeepAliveTimeoutThreshold:Wct,kHeadersTimeout:Jct,kBodyTimeout:Yct,kStrictContentLength:nj,kMaxRequests:Cge,kCounter:Kct,kMaxResponseSize:Xct,kOnError:Zct,kResume:nm,kHTTPContext:_ge}=Qr(),Ul=AAe(),eut=Buffer.alloc(0),eD=Buffer[Symbol.species],tD=it.addListener,tut=it.removeAllListeners,rj;async function rut(){let t=process.env.JEST_WORKER_ID?F6():void 0,e;try{e=await WebAssembly.compile(EAe())}catch{e=await WebAssembly.compile(t||F6())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,s)=>0,wasm_on_status:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onStatus(new eD(ql.buffer,n,s))||0},wasm_on_message_begin:r=>(We(Yi.ptr===r),Yi.onMessageBegin()||0),wasm_on_header_field:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onHeaderField(new eD(ql.buffer,n,s))||0},wasm_on_header_value:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onHeaderValue(new eD(ql.buffer,n,s))||0},wasm_on_headers_complete:(r,i,s,n)=>(We(Yi.ptr===r),Yi.onHeadersComplete(i,!!s,!!n)||0),wasm_on_body:(r,i,s)=>{We(Yi.ptr===r);let n=i-Gl+ql.byteOffset;return Yi.onBody(new eD(ql.buffer,n,s))||0},wasm_on_message_complete:r=>(We(Yi.ptr===r),Yi.onMessageComplete()||0)}})}var ij=null,oj=rut();oj.catch();var Yi=null,ql=null,rD=0,Gl=null,iut=0,rv=1,bb=2|rv,sD=4|rv,aj=8|iut,cj=class{constructor(e,r,{exports:i}){We(Number.isFinite(e[tj])&&e[tj]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(Ul.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=
Line truncated
|
||||
`;if(typeof s=="string"?A+=`host: ${s}\r
|
||||
`:A+=t[zct],n?A+=`connection: upgrade\r
|
||||
upgrade: ${n}\r
|
||||
`:t[iD]&&!d[Ho]?A+=`connection: keep-alive\r
|
||||
`);h.push(E,g,d),typeof g.size=="number"?s+=E.byteLength+g.size+d.byteLength:m=!0}let A=RD.encode(`--${c}--\r
|
||||
`);h.push(A),s+=A.byteLength,m&&(s=null),n=t,i=async function*(){for(let y of h)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(Eye(t))n=t,s=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(mv.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:ult(t)}if((typeof n=="string"||mv.isBuffer(n))&&(s=Buffer.byteLength(n)),i!=null){let c;r=new ReadableStream({async start(){c=i(t)[Symbol.asyncIterator]()},async pull(u){let{value:l,done:f}=await c.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Iye(r)){let h=new Uint8Array(l);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:s},o]}function Clt(t,e=!1){return t instanceof ReadableStream&&(Oj(!mv.isDisturbed(t),"The body has already been consumed."),Oj(!t.locked,"The stream is locked.")),vye(t,e)}function Ilt(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function Slt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Blt(t){return{blob(){return _b(this,r=>{let i=wye(this);return i===null?i="":i&&(i=Elt(i)),new Alt([r],{type:i})},t)},arrayBuffer(){return _b(this,r=>new Uint8Array(r).buffer,t)},text(){return _b(this,Cye,t)},json(){return _b(this,xlt,t)},formData(){return _b(this,r=>{let i=wye(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let n=blt(r,i);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new bye;return s[Rb]=n,s}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),s=new bye;for(let[o,a]of n)s.append(o,a);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return _b(this,r=>new Uint8Array(r),t)}}}function vlt(t){Object.assign(t.prototype,Blt(t))}async function _b(t,e,r){if(mlt.brandCheck(t,r),xye(t))throw new TypeError("Body is unusable: Body has already been read");Slt(t[Rb]);let i=hlt(),n=o=>i.reject(o),s=o=>{try{i.resolve(e(o))}catch(a){n(a)}};return t[Rb].body==null?(s(Buffer.allocUnsafe(0)),i.promise):(await dlt(t[Rb].body,s,n),i.promise)}function xye(t){let e=t[Rb].body;return e!=null&&(e.stream.locked||mv.isDisturbed(e.stream))}function xlt(t){return JSON.parse(Cye(t))}function wye(t){let e=t[Rb].headersList,r=plt(e);return r==="failure"?null:r}_ye.exports={extractBody:vye,safelyExtractBody:Clt,cloneBody:Ilt,mixinBody:vlt,streamRegistry:Bye,hasFinalizationRegistry:Sye,bodyUnusable:xye}});var Mye=p((B_r,Fye)=>{"use strict";var Je=require("node:assert"),it=wt(),{channels:Rye}=gb(),Qj=Aj(),{RequestContentLengthMismatchError:Hg,ResponseContentLengthMismatchError:_lt,RequestAbortedError:Qye,HeadersTimeoutError:Rlt,HeadersOverflowError:Tlt,SocketError:QD,InformationalError:Nb,BodyTimeoutError:Nlt,HTTPParserError:Dlt,ResponseExceededMaxSizeError:Olt}=$t(),{kUrl:kye,kReset:Wo,kClient:Mj,kParser:ni,kBlocking:yv,kRunning:gs,kPending:Plt,kSize:Tye,kWriting:lm,kQueue:ju,kNoRef:Av,kKeepAliveDefaultTimeout:Qlt,kHostHeader:klt,kPendingIdx:Llt,kRunningIdx:Rc,kError:Tc,kPipelining:OD,kSocket:Db,kKeepAliveTimeoutValue:kD,kMaxHeadersSize:kj,kKeepAliveMaxTimeout:Flt,kKeepAliveTimeoutThreshold:Mlt,kHeadersTimeout:Ult,kBodyTimeout:qlt,kStrictContentLength:Uj,kMaxRequests:Nye,kCounter:Glt,kMaxResponseSize:Hlt,kOnError:jlt,kResume:um,kHTTPContext:Lye}=Fr(),zl=Bge(),Vlt=Buffer.alloc(0),TD=Buffer[Symbol.species],ND=it.addListener,zlt=it.removeAllListeners,Lj;async function $lt(){let t=process.env.JEST_WORKER_ID?Ej():void 0,e;try{e=await WebAssembly.compile(_ge())}catch{e=await WebAssembly.compile(t||Ej())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,i,n)=>0,wasm_on_status:(r,i,n)=>{Je(en.ptr===r);let s=i-Wl+$l.byteOffset;return en.onStatus(new TD($l.buffer,s,n))||0},wasm_on_message_begin:r=>(Je(en.ptr===r),en.onMessageBegin()||0),wasm_on_header_field:(r,i,n)=>{Je(en.ptr===r);let s=i-Wl+$l.byteOffset;return en.onHeaderField(new TD($l.buffer,s,n))||0},wasm_on_header_value:(r,i,n)=>{Je(en.ptr===r);let s=i-Wl+$l.byteOffset;return en.onHeaderValue(new TD($l.buffer,s,n))||0},wasm_on_headers_complete:(r,i,n,s)=>(Je(en.ptr===r),en.onHeadersComplete(i,!!n,!!s)||0),wasm_on_body:(r,i,n)=>{Je(en.ptr===r);let s=i-Wl+$l.byteOffset;return en.onBody(new TD($l.buffer,s,n))||0},wasm_on_message_complete:r=>(Je(en.ptr===r),en.onMessageComplete()||0)}})}var Fj=null,qj=$lt();qj.catch();var en=null,$l=null,DD=0,Wl=null,Wlt=0,gv=1,Ob=2|gv,PD=4|gv,Gj=8|Wlt,Hj=class{constructor(e,r,{exports:i}){Je(Number.isFinite(e[kj])&&e[kj]>0),this.llhttp=i,this.ptr=this.llhttp.llhttp_alloc(zl.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=
Line truncated
|
||||
`;if(typeof n=="string"?A+=`host: ${n}\r
|
||||
`:A+=t[klt],s?A+=`connection: upgrade\r
|
||||
upgrade: ${s}\r
|
||||
`:t[OD]&&!d[Wo]?A+=`connection: keep-alive\r
|
||||
`:A+=`connection: close\r
|
||||
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let g=u[y+0],E=u[y+1];if(Array.isArray(E))for(let w=0;w<E.length;w++)A+=`${g}: ${E[w]}\r
|
||||
`;else A+=`${g}: ${E}\r
|
||||
`}return bge.sendHeaders.hasSubscribers&&bge.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?Sge(m,null,t,e,d,l,A,f):it.isBuffer(c)?Sge(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?Bge(m,c.stream(),t,e,d,l,A,f):uut(m,c,t,e,d,l,A,f):it.isStream(c)?cut(m,c,t,e,d,l,A,f):it.isIterable(c)?Bge(m,c,t,e,d,l,A,f):We(!1),!0}function cut(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"stream body cannot be pipelined");let c=!1,u=new aD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new vge;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,We(s.destroyed||s[om]&&r[dn]<=1),s.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?it.destroy(e,m):it.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),s.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function Sge(t,e,r,i,s,n,o,a){try{e?it.isBuffer(e)&&(We(n===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${n}\r
|
||||
`}return Rye.sendHeaders.hasSubscribers&&Rye.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?Oye(m,null,t,e,d,l,A,f):it.isBuffer(c)?Oye(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?Pye(m,c.stream(),t,e,d,l,A,f):eft(m,c,t,e,d,l,A,f):it.isStream(c)?Zlt(m,c,t,e,d,l,A,f):it.isIterable(c)?Pye(m,c,t,e,d,l,A,f):Je(!1),!0}function Zlt(t,e,r,i,n,s,o,a){Je(s!==0||r[gs]===0,"stream body cannot be pipelined");let c=!1,u=new LD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o}),l=function(m){if(!c)try{!u.write(m)&&this.pause&&this.pause()}catch(A){it.destroy(this,A)}},f=function(){c||e.resume&&e.resume()},h=function(){if(queueMicrotask(()=>{e.removeListener("error",d)}),!c){let m=new Qye;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,Je(n.destroyed||n[lm]&&r[gs]<=1),n.off("drain",f).off("error",d),e.removeListener("data",l).removeListener("end",d).removeListener("close",h),!m)try{u.end()}catch(A){m=A}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?it.destroy(e,m):it.destroy(e)}};e.on("data",l).on("end",d).on("error",d).on("close",h),e.resume&&e.resume(),n.on("drain",f).on("error",d),e.errorEmitted??e.errored?setImmediate(()=>d(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>d(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}function Oye(t,e,r,i,n,s,o,a){try{e?it.isBuffer(e)&&(Je(s===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),i.onBodySent(e),!a&&i.reset!==!1&&(s[Ho]=!0)):n===0?s.write(`${o}content-length: 0\r
|
||||
`,"latin1"),n.write(e),n.uncork(),i.onBodySent(e),!a&&i.reset!==!1&&(n[Wo]=!0)):s===0?n.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(We(n===null,"no body must not have content length"),s.write(`${o}\r
|
||||
`,"latin1")),i.onRequestSent(),r[nm]()}catch(c){t(c)}}async function uut(t,e,r,i,s,n,o,a){We(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Dg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${n}\r
|
||||
`,"latin1"):(Je(s===null,"no body must not have content length"),n.write(`${o}\r
|
||||
`,"latin1")),i.onRequestSent(),r[um]()}catch(c){t(c)}}async function eft(t,e,r,i,n,s,o,a){Je(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Hg;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1"),s.write(c),s.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(s[Ho]=!0),r[nm]()}catch(c){t(c)}}async function Bge(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{We(c===null),s[Sc]?d(s[Sc]):c=h});s.on("close",u).on("drain",u);let f=new aD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(s[Sc])throw s[Sc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{s.off("close",u).off("drain",u)}}var aD=class{constructor({abort:e,socket:r,request:i,contentLength:s,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[om]=!0}write(e){let{socket:r,request:i,contentLength:s,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Sc])throw r[Sc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&o+u>s){if(n[nj])throw new Dg;process.emitWarning(new Dg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Ho]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${c}content-length: ${s}\r
|
||||
`,"latin1"),n.write(c),n.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(n[Wo]=!0),r[um]()}catch(c){t(c)}}async function Pye(t,e,r,i,n,s,o,a){Je(s!==0||r[gs]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let h=c;c=null,h()}}let l=()=>new Promise((h,d)=>{Je(c===null),n[Tc]?d(n[Tc]):c=h});n.on("close",u).on("drain",u);let f=new LD({abort:t,socket:n,request:i,contentLength:s,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(n[Tc])throw n[Tc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{n.off("close",u).off("drain",u)}}var LD=class{constructor({abort:e,socket:r,request:i,contentLength:n,client:s,expectsPayload:o,header:a}){this.socket=r,this.request=i,this.contentLength=n,this.client=s,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[lm]=!0}write(e){let{socket:r,request:i,contentLength:n,client:s,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Tc])throw r[Tc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(s[Uj])throw new Hg;process.emitWarning(new Hg)}r.cork(),o===0&&(!a&&i.reset!==!1&&(r[Wo]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
|
||||
`,"latin1"):r.write(`${c}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&r.write(`\r
|
||||
`,"latin1")),n===null&&r.write(`\r
|
||||
${u.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ei].timeout&&r[ei].timeoutType===bb&&r[ei].timeout.refresh&&r[ei].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:s,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[om]=!1,e[Sc])throw e[Sc];if(!e.destroyed){if(s===0?n?e.write(`${o}content-length: 0\r
|
||||
`,"latin1"),this.bytesWritten+=u;let l=r.write(e);return r.uncork(),i.onBodySent(e),l||r[ni].timeout&&r[ni].timeoutType===Ob&&r[ni].timeout.refresh&&r[ni].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:i,bytesWritten:n,expectsPayload:s,header:o,request:a}=this;if(a.onRequestSent(),e[lm]=!1,e[Tc])throw e[Tc];if(!e.destroyed){if(n===0?s?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(i[nj])throw new Dg;process.emitWarning(new Dg)}e[ei].timeout&&e[ei].timeoutType===bb&&e[ei].timeout.refresh&&e[ei].timeout.refresh(),i[nm]()}}destroy(e){let{socket:r,client:i,abort:s}=this;r[om]=!1,e&&(We(i[dn]<=1,"pipeline should only contain this request"),s(e))}};Rge.exports=sut});var Fge=p((evr,Lge)=>{"use strict";var Bc=require("node:assert"),{pipeline:lut}=require("node:stream"),Rt=wt(),{RequestContentLengthMismatchError:uj,RequestAbortedError:Tge,SocketError:sv,InformationalError:lj}=Vt(),{kUrl:cD,kReset:lD,kClient:wb,kRunning:fD,kPending:fut,kQueue:am,kPendingIdx:fj,kRunningIdx:Mu,kError:qu,kSocket:hs,kStrictContentLength:hut,kOnError:hj,kMaxConcurrentStreams:kge,kHTTP2Session:Uu,kResume:cm,kSize:dut,kHTTPContext:put}=Qr(),od=Symbol("open streams"),Dge,Oge=!1,uD;try{uD=require("node:http2")}catch{uD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:mut,HTTP2_HEADER_METHOD:Aut,HTTP2_HEADER_PATH:gut,HTTP2_HEADER_SCHEME:yut,HTTP2_HEADER_CONTENT_LENGTH:Eut,HTTP2_HEADER_EXPECT:but,HTTP2_HEADER_STATUS:wut}}=uD;function Cut(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let s of i)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(i));return e}async function Iut(t,e){t[hs]=e,Oge||(Oge=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=uD.connect(t[cD],{createConnection:()=>e,peerMaxConcurrentStreams:t[kge]});r[od]=0,r[wb]=t,r[hs]=e,Rt.addListener(r,"error",But),Rt.addListener(r,"frameError",vut),Rt.addListener(r,"end",xut),Rt.addListener(r,"goaway",_ut),Rt.addListener(r,"close",function(){let{[wb]:s}=this,{[hs]:n}=s,o=this[hs][qu]||this[qu]||new sv("closed",Rt.getSocketInfo(n));if(s[Uu]=null,s.destroyed){Bc(s[fut]===0);let a=s[am].splice(s[Mu]);for(let c=0;c<a.length;c++){let u=a[c];Rt.errorRequest(s,u,o)}}}),r.unref(),t[Uu]=r,e[Uu]=r,Rt.addListener(e,"error",function(s){Bc(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qu]=s,this[wb][hj](s)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new sv("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let s=this[qu]||new sv("closed",Rt.getSocketInfo(this));t[hs]=null,this[Uu]!=null&&this[Uu].destroy(s),t[fj]=t[Mu],Bc(t[fD]===0),t.emit("disconnect",t[cD],[t],s),t[cm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Nut(t,...s)},resume(){Sut(t)},destroy(s,n){i?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function Sut(t){let e=t[hs];e?.destroyed===!1&&(t[dut]===0&&t[kge]===0?(e.unref(),t[Uu].unref()):(e.ref(),t[Uu].ref()))}function But(t){Bc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hs][qu]=t,this[wb][hj](t)}function vut(t,e,r){if(r===0){let i=new lj(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hs][qu]=i,this[wb][hj](i)}}function xut(){let t=new sv("other side closed",Rt.getSocketInfo(this[hs]));this.destroy(t),Rt.destroy(this[hs],t)}function _ut(t){let e=this[qu]||new sv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[wb];if(r[hs]=null,r[put]=null,this[Uu]!=null&&(this[Uu].destroy(e),this[Uu]=null),Rt.destroy(this[hs],e),r[Mu]<r[am].length){let i=r[am][r[Mu]];r[am][r[Mu]++]=null,Rt.errorRequest(r,i,e),r[fj]=r[Mu]}Bc(r[fD]===0),r.emit("disconnect",r[cD],[r],e),r[cm]()}function Rut(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Nut(t,e){let r=t[Uu],{method:i,path:s,host:n,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Rt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let D=u[S+0],q=u[S+1];if(Array.isArray(q))for(let T=0;T<q.length;T++)f[D]?f[D]+=`,${q[T]}`:f[D]=q[T];else f[D]=q}let h,{hostname:d,port:m}=t[cD];f[mut]=n||`${d}${m?`:${m}`:""}`,f[Aut]=i;let A=S=>{e.aborted||e.completed||(S=S||new Tge,Rt.errorRequest(t,e,S),h!=null&&Rt.destroy(h,S),Rt.destroy(l,S),t[am][t[Mu]++]=null,t[cm]())};try{e.onConnect(A)}catch(S){Rt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[od],t[am][t[Mu]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[od],t[am][t[Mu]++]=null}),h.once("close",()=>{r[od]-=1,r[od]===0&&r.unref()}),!0;f[gut]=s,f[yut]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Rt.bodyLength(l);if(Rt.isFormDataLike(l)){Dge??=gb().extractBody;let[S,D]=Dge(l);f["content-type"]=D,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),Rut(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[hut])return Rt.errorRequest(t,e,new uj),!1;process.emitWarning(new uj)}g!=null&&(Bc(l,"no body must not have content length"),f[Eut]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[but]="100-continue",h=r.request(f,{endStream:E,signa
Line truncated
|
||||
`,this[rlt]=c??3e5,this[tlt]=s??3e5,this[ilt]=E??!0,this[slt]=S,this[Aj]=q,this[lm]=null,this[ult]=$>-1?$:-1,this[flt]=F??100,this[bi]=null,this[Gu]=[],this[cd]=0,this[Hu]=0,this[cv]=J=>yj(this,J),this[llt]=J=>Yge(this,J)}get pipelining(){return this[mD]}set pipelining(e){this[mD]=e,this[cv](!0)}get[fv](){return this[Gu].length-this[Hu]}get[lv](){return this[Hu]-this[cd]}get[uv](){return this[Gu].length-this[cd]}get[Wut](){return!!this[bi]&&!this[Ib]&&!this[bi].destroyed}get[mj](){return!!(this[bi]?.busy(null)||this[uv]>=(Jge(this)||1)||this[fv]>0)}[$ut](e){Kge(this),this.once("connect",e)}[clt](e,r){let i=e.origin||this[jl].origin,s=new qut(i,e,r);return this[Gu].push(s),this[Pg]||(Og.bodyLength(s.body)==null&&Og.isIterable(s.body)?(this[Pg]=1,queueMicrotask(()=>yj(this))):this[cv](!0)),this[Pg]&&this[fm]!==2&&this[mj]&&(this[fm]=2),this[fm]<2}async[olt](){return new Promise(e=>{this[uv]?this[lm]=e:e(null)})}async[alt](e){return new Promise(r=>{let i=this[Gu].splice(this[Hu]);for(let n=0;n<i.length;n++){let o=i[n];Og.errorRequest(this,o,e)}let s=()=>{this[lm]&&(this[lm](),this[lm]=null),r(null)};this[bi]?(this[bi].destroy(e,s),this[bi]=null):queueMicrotask(s),this[cv]()})}},plt=pD();function Yge(t,e){if(t[lv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ad(t[Hu]===t[cd]);let r=t[Gu].splice(t[cd]);for(let i=0;i<r.length;i++){let s=r[i];Og.errorRequest(t,s,e)}ad(t[uv]===0)}}async function Kge(t){ad(!t[Ib]),ad(!t[bi]);let{host:e,hostname:r,protocol:i,port:s}=t[jl];if(r[0]==="["){let n=r.indexOf("]");ad(n!==-1);let o=r.substring(1,n);ad(Wge.isIP(o)),r=o}t[Ib]=!0,Cb.beforeConnect.hasSubscribers&&Cb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[um],localAddress:t[av]},connector:t[ov]});try{let n=await new Promise((o,a)=>{t[ov]({host:e,hostname:r,protocol:i,port:s,servername:t[um],localAddress:t[av]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Og.destroy(n.on("error",Vge),new jut);return}ad(n);try{t[bi]=n.alpnProtocol==="h2"?await dlt(t,n):await hlt(t,n)}catch(o){throw n.destroy().on("error",Vge),o}t[Ib]=!1,n[nlt]=0,n[Aj]=t[Aj],n[Vut]=t,n[Yut]=null,Cb.connected.hasSubscribers&&Cb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[um],localAddress:t[av]},connector:t[ov],socket:n}),t.emit("connect",t[jl],[t])}catch(n){if(t.destroyed)return;if(t[Ib]=!1,Cb.connectError.hasSubscribers&&Cb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[um],localAddress:t[av]},connector:t[ov],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ad(t[lv]===0);t[fv]>0&&t[Gu][t[Hu]].servername===t[um];){let o=t[Gu][t[Hu]++];Og.errorRequest(t,o,n)}else Yge(t,n);t.emit("connectionError",t[jl],[t],n)}t[cv]()}function $ge(t){t[fm]=0,t.emit("drain",t[jl],[t])}function yj(t,e){t[Pg]!==2&&(t[Pg]=2,mlt(t,e),t[Pg]=0,t[cd]>256&&(t[Gu].splice(0,t[cd]),t[Hu]-=t[cd],t[cd]=0))}function mlt(t,e){for(;;){if(t.destroyed){ad(t[fv]===0);return}if(t[lm]&&!t[uv]){t[lm](),t[lm]=null;return}if(t[bi]&&t[bi].resume(),t[mj])t[fm]=2;else if(t[fm]===2){e?(t[fm]=1,queueMicrotask(()=>$ge(t))):$ge(t);continue}if(t[fv]===0||t[lv]>=(Jge(t)||1))return;let r=t[Gu][t[Hu]];if(t[jl].protocol==="https:"&&t[um]!==r.servername){if(t[lv]>0)return;t[um]=r.servername,t[bi]?.destroy(new Hut("servername changed"),()=>{t[bi]=null,yj(t)})}if(t[Ib])return;if(!t[bi]){Kge(t);return}if(t[bi].destroyed||t[bi].busy(r))return;!r.aborted&&t[bi].write(r)?t[Hu]++:t[Gu].splice(t[Hu],1)}}Xge.exports=gj});var Ej=p((nvr,Zge)=>{"use strict";var AD=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)}};Zge.exports=class{constructor(){this.head=this.tail=new AD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var tye=p((ovr,eye)=>{var{kFree:Alt,kConnected:glt,kPending:ylt,kQueued:Elt,kRunning:blt,kSize:wlt}=Qr(),Qg=Symbol("pool"),bj=class{constructor(e){this[Qg]=e}get connected(){return this[Qg][glt]}get free(){return this[Qg][Alt]}get pending(){return this[Qg][ylt]}get queued(){return this[Qg][Elt]}get running(){return this[Qg][blt]}get size(){return this[Qg][wlt]}};eye.exports=bj});var vj=p((avr,fye)=>{"use strict";var Clt=cb(),Ilt=Ej(),{kConnected:wj,kSize:rye,kRunning:iye,kPending:sye,kQueued:hv,kBusy:Slt,kFree:Blt,kUrl:vlt,kClose:xlt,kDestroy:_lt,kDispatch:Rlt}=Qr(),Nlt=tye(),jo=Symbol("clients"),Zn=Symbol("needDrain"),dv=Symbol("queue"),Cj=Symbol("closed resolve"),Ij=Symbol("onDrain"),nye=Symbol("onConnect"),oye=Symbol("onDisconnect"),aye=Symbol("onConnec
Line truncated
|
||||
`,"latin1"),r!==null&&n!==r){if(i[Uj])throw new Hg;process.emitWarning(new Hg)}e[ni].timeout&&e[ni].timeoutType===Ob&&e[ni].timeout.refresh&&e[ni].timeout.refresh(),i[um]()}}destroy(e){let{socket:r,client:i,abort:n}=this;r[lm]=!1,e&&(Je(i[gs]<=1,"pipeline should only contain this request"),n(e))}};Fye.exports=Jlt});var $ye=p((v_r,zye)=>{"use strict";var Nc=require("node:assert"),{pipeline:tft}=require("node:stream"),Tt=wt(),{RequestContentLengthMismatchError:jj,RequestAbortedError:Uye,SocketError:Ev,InformationalError:Vj}=$t(),{kUrl:FD,kReset:UD,kClient:Pb,kRunning:qD,kPending:rft,kQueue:fm,kPendingIdx:zj,kRunningIdx:Vu,kError:$u,kSocket:gn,kStrictContentLength:ift,kOnError:$j,kMaxConcurrentStreams:Vye,kHTTP2Session:zu,kResume:hm,kSize:nft,kHTTPContext:sft}=Fr(),ld=Symbol("open streams"),qye,Gye=!1,MD;try{MD=require("node:http2")}catch{MD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:oft,HTTP2_HEADER_METHOD:aft,HTTP2_HEADER_PATH:cft,HTTP2_HEADER_SCHEME:uft,HTTP2_HEADER_CONTENT_LENGTH:lft,HTTP2_HEADER_EXPECT:fft,HTTP2_HEADER_STATUS:hft}}=MD;function dft(t){let e=[];for(let[r,i]of Object.entries(t))if(Array.isArray(i))for(let n of i)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(i));return e}async function pft(t,e){t[gn]=e,Gye||(Gye=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=MD.connect(t[FD],{createConnection:()=>e,peerMaxConcurrentStreams:t[Vye]});r[ld]=0,r[Pb]=t,r[gn]=e,Tt.addListener(r,"error",Aft),Tt.addListener(r,"frameError",gft),Tt.addListener(r,"end",yft),Tt.addListener(r,"goaway",Eft),Tt.addListener(r,"close",function(){let{[Pb]:n}=this,{[gn]:s}=n,o=this[gn][$u]||this[$u]||new Ev("closed",Tt.getSocketInfo(s));if(n[zu]=null,n.destroyed){Nc(n[rft]===0);let a=n[fm].splice(n[Vu]);for(let c=0;c<a.length;c++){let u=a[c];Tt.errorRequest(n,u,o)}}}),r.unref(),t[zu]=r,e[zu]=r,Tt.addListener(e,"error",function(n){Nc(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[$u]=n,this[Pb][$j](n)}),Tt.addListener(e,"end",function(){Tt.destroy(this,new Ev("other side closed",Tt.getSocketInfo(this)))}),Tt.addListener(e,"close",function(){let n=this[$u]||new Ev("closed",Tt.getSocketInfo(this));t[gn]=null,this[zu]!=null&&this[zu].destroy(n),t[zj]=t[Vu],Nc(t[qD]===0),t.emit("disconnect",t[FD],[t],n),t[hm]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return wft(t,...n)},resume(){mft(t)},destroy(n,s){i?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}function mft(t){let e=t[gn];e?.destroyed===!1&&(t[nft]===0&&t[Vye]===0?(e.unref(),t[zu].unref()):(e.ref(),t[zu].ref()))}function Aft(t){Nc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gn][$u]=t,this[Pb][$j](t)}function gft(t,e,r){if(r===0){let i=new Vj(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gn][$u]=i,this[Pb][$j](i)}}function yft(){let t=new Ev("other side closed",Tt.getSocketInfo(this[gn]));this.destroy(t),Tt.destroy(this[gn],t)}function Eft(t){let e=this[$u]||new Ev(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this)),r=this[Pb];if(r[gn]=null,r[sft]=null,this[zu]!=null&&(this[zu].destroy(e),this[zu]=null),Tt.destroy(this[gn],e),r[Vu]<r[fm].length){let i=r[fm][r[Vu]];r[fm][r[Vu]++]=null,Tt.errorRequest(r,i,e),r[zj]=r[Vu]}Nc(r[qD]===0),r.emit("disconnect",r[FD],[r],e),r[hm]()}function bft(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function wft(t,e){let r=t[zu],{method:i,path:n,host:s,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:l}=e;if(o)return Tt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let S=0;S<u.length;S+=2){let N=u[S+0],M=u[S+1];if(Array.isArray(M))for(let T=0;T<M.length;T++)f[N]?f[N]+=`,${M[T]}`:f[N]=M[T];else f[N]=M}let h,{hostname:d,port:m}=t[FD];f[oft]=s||`${d}${m?`:${m}`:""}`,f[aft]=i;let A=S=>{e.aborted||e.completed||(S=S||new Uye,Tt.errorRequest(t,e,S),h!=null&&Tt.destroy(h,S),Tt.destroy(l,S),t[fm][t[Vu]++]=null,t[hm]())};try{e.onConnect(A)}catch(S){Tt.errorRequest(t,e,S)}if(e.aborted)return!1;if(i==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:c}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[ld],t[fm][t[Vu]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[ld],t[fm][t[Vu]++]=null}),h.once("close",()=>{r[ld]-=1,r[ld]===0&&r.unref()}),!0;f[cft]=n,f[uft]="https";let y=i==="PUT"||i==="POST"||i==="PATCH";l&&typeof l.read=="function"&&l.read(0);let g=Tt.bodyLength(l);if(Tt.isFormDataLike(l)){qye??=Tb().extractBody;let[S,N]=qye(l);f["content-type"]=N,l=S.stream,g=S.length}if(g==null&&(g=e.contentLength),(g===0||!y)&&(g=null),bft(i)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[ift])return Tt.errorRequest(t,e,new jj),!1;process.emitWarning(new jj)}g!=null&&(Nc(l,"no body must not have content length"),f[lft]=`${g}`),r.ref();let E=i==="GET"||i==="HEAD"||l===null;return a?(f[fft]="100-continue",h=r.request(f,{endStream:E,signa
Line truncated
|
||||
`,this[$ft]=c??3e5,this[zft]=n??3e5,this[Wft]=E??!0,this[Jft]=S,this[Kj]=M,this[pm]=null,this[eht]=V>-1?V:-1,this[rht]=k??100,this[Ii]=null,this[Wu]=[],this[hd]=0,this[Ju]=0,this[Iv]=$=>Zj(this,$),this[tht]=$=>sEe(this,$)}get pipelining(){return this[VD]}set pipelining(e){this[VD]=e,this[Iv](!0)}get[vv](){return this[Wu].length-this[Ju]}get[Bv](){return this[Ju]-this[hd]}get[Sv](){return this[Wu].length-this[hd]}get[Mft](){return!!this[Ii]&&!this[kb]&&!this[Ii].destroyed}get[Yj](){return!!(this[Ii]?.busy(null)||this[Sv]>=(nEe(this)||1)||this[vv]>0)}[Fft](e){oEe(this),this.once("connect",e)}[Zft](e,r){let i=e.origin||this[Yl].origin,n=new Dft(i,e,r);return this[Wu].push(n),this[Vg]||(jg.bodyLength(n.body)==null&&jg.isIterable(n.body)?(this[Vg]=1,queueMicrotask(()=>Zj(this))):this[Iv](!0)),this[Vg]&&this[mm]!==2&&this[Yj]&&(this[mm]=2),this[mm]<2}async[Kft](){return new Promise(e=>{this[Sv]?this[pm]=e:e(null)})}async[Xft](e){return new Promise(r=>{let i=this[Wu].splice(this[Ju]);for(let s=0;s<i.length;s++){let o=i[s];jg.errorRequest(this,o,e)}let n=()=>{this[pm]&&(this[pm](),this[pm]=null),r(null)};this[Ii]?(this[Ii].destroy(e,n),this[Ii]=null):queueMicrotask(n),this[Iv]()})}},sht=jD();function sEe(t,e){if(t[Bv]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){fd(t[Ju]===t[hd]);let r=t[Wu].splice(t[hd]);for(let i=0;i<r.length;i++){let n=r[i];jg.errorRequest(t,n,e)}fd(t[Sv]===0)}}async function oEe(t){fd(!t[kb]),fd(!t[Ii]);let{host:e,hostname:r,protocol:i,port:n}=t[Yl];if(r[0]==="["){let s=r.indexOf("]");fd(s!==-1);let o=r.substring(1,s);fd(iEe.isIP(o)),r=o}t[kb]=!0,Qb.beforeConnect.hasSubscribers&&Qb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Ii]?.version,servername:t[dm],localAddress:t[Cv]},connector:t[wv]});try{let s=await new Promise((o,a)=>{t[wv]({host:e,hostname:r,protocol:i,port:n,servername:t[dm],localAddress:t[Cv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){jg.destroy(s.on("error",tEe),new Qft);return}fd(s);try{t[Ii]=s.alpnProtocol==="h2"?await nht(t,s):await iht(t,s)}catch(o){throw s.destroy().on("error",tEe),o}t[kb]=!1,s[Yft]=0,s[Kj]=t[Kj],s[Lft]=t,s[qft]=null,Qb.connected.hasSubscribers&&Qb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Ii]?.version,servername:t[dm],localAddress:t[Cv]},connector:t[wv],socket:s}),t.emit("connect",t[Yl],[t])}catch(s){if(t.destroyed)return;if(t[kb]=!1,Qb.connectError.hasSubscribers&&Qb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:n,version:t[Ii]?.version,servername:t[dm],localAddress:t[Cv]},connector:t[wv],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(fd(t[Bv]===0);t[vv]>0&&t[Wu][t[Ju]].servername===t[dm];){let o=t[Wu][t[Ju]++];jg.errorRequest(t,o,s)}else sEe(t,s);t.emit("connectionError",t[Yl],[t],s)}t[Iv]()}function rEe(t){t[mm]=0,t.emit("drain",t[Yl],[t])}function Zj(t,e){t[Vg]!==2&&(t[Vg]=2,oht(t,e),t[Vg]=0,t[hd]>256&&(t[Wu].splice(0,t[hd]),t[Ju]-=t[hd],t[hd]=0))}function oht(t,e){for(;;){if(t.destroyed){fd(t[vv]===0);return}if(t[pm]&&!t[Sv]){t[pm](),t[pm]=null;return}if(t[Ii]&&t[Ii].resume(),t[Yj])t[mm]=2;else if(t[mm]===2){e?(t[mm]=1,queueMicrotask(()=>rEe(t))):rEe(t);continue}if(t[vv]===0||t[Bv]>=(nEe(t)||1))return;let r=t[Wu][t[Ju]];if(t[Yl].protocol==="https:"&&t[dm]!==r.servername){if(t[Bv]>0)return;t[dm]=r.servername,t[Ii]?.destroy(new Pft("servername changed"),()=>{t[Ii]=null,Zj(t)})}if(t[kb])return;if(!t[Ii]){oEe(t);return}if(t[Ii].destroyed||t[Ii].busy(r))return;!r.aborted&&t[Ii].write(r)?t[Ju]++:t[Wu].splice(t[Ju],1)}}aEe.exports=Xj});var eV=p((N_r,cEe)=>{"use strict";var zD=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)}};cEe.exports=class{constructor(){this.head=this.tail=new zD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new zD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var lEe=p((D_r,uEe)=>{var{kFree:aht,kConnected:cht,kPending:uht,kQueued:lht,kRunning:fht,kSize:hht}=Fr(),zg=Symbol("pool"),tV=class{constructor(e){this[zg]=e}get connected(){return this[zg][cht]}get free(){return this[zg][aht]}get pending(){return this[zg][uht]}get queued(){return this[zg][lht]}get running(){return this[zg][fht]}get size(){return this[zg][hht]}};uEe.exports=tV});var aV=p((O_r,bEe)=>{"use strict";var dht=wb(),pht=eV(),{kConnected:rV,kSize:fEe,kRunning:hEe,kPending:dEe,kQueued:xv,kBusy:mht,kFree:Aht,kUrl:ght,kClose:yht,kDestroy:Eht,kDispatch:bht}=Fr(),wht=lEe(),Jo=Symbol("clients"),no=Symbol("needDrain"),_v=Symbol("queue"),iV=Symbol("closed resolve"),nV=Symbol("onDrain"),pEe=Symbol("onConnect"),mEe=Symbol("onDisconnect"),AEe=Symbol("onConnec
Line truncated
|
||||
${i.count} ${i.noun} ${i.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};g0e.exports=vz});var PD=p((Qvr,C0e)=>{"use strict";var E0e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rdt}=Vt(),idt=vb();w0e()===void 0&&b0e(new idt);function b0e(t){if(!t||typeof t.dispatch!="function")throw new rdt("Argument agent must implement Agent");Object.defineProperty(globalThis,E0e,{value:t,writable:!0,enumerable:!1,configurable:!1})}function w0e(){return globalThis[E0e]}C0e.exports={setGlobalDispatcher:b0e,getGlobalDispatcher:w0e}});var QD=p((Lvr,I0e)=>{"use strict";I0e.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 B0e=p((Fvr,S0e)=>{"use strict";var sdt=dD();S0e.exports=t=>{let e=t?.maxRedirections;return r=>function(s,n){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,n);let c=new sdt(r,o,s,n);return r(a,c)}}});var x0e=p((Mvr,v0e)=>{"use strict";var ndt=SD();v0e.exports=t=>e=>function(i,s){return e(i,new ndt({...i,retryOptions:{...t,...i.retryOptions}},{handler:s,dispatch:e}))}});var R0e=p((Uvr,_0e)=>{"use strict";var odt=wt(),{InvalidArgumentError:adt,RequestAbortedError:cdt}=Vt(),udt=QD(),xz=class extends udt{#e=1024*1024;#t=null;#i=!1;#r=!1;#s=0;#n=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new adt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#n=e}onHeaders(e,r,i,s){let o=odt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new cdt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,s)}onError(e){this.#i||(e=this.#n??e,this.#l.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#n):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function ldt({maxSize:t}={maxSize:1024*1024}){return e=>function(i,s){let{dumpMaxSize:n=t}=i,o=new xz({maxSize:n},s);return e(i,o)}}_0e.exports=ldt});var D0e=p((qvr,T0e)=>{"use strict";var{isIP:fdt}=require("node:net"),{lookup:hdt}=require("node:dns"),ddt=QD(),{InvalidArgumentError:kb,InformationalError:pdt}=Vt(),N0e=Math.pow(2,31)-1,_z=class{#e=0;#t=0;#i=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.#i.size===this.#t}runLookup(e,r,i){let s=this.#i.get(e.hostname);if(s==null&&this.full){i(null,e.origin);return}let n={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,n,(o,a)=>{if(o||a==null||a.length===0){i(o??new pdt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,n.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,s,n.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){hdt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return i(s);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#s(e,r,i){let s=null,{records:n,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===N0e?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),n[i]!=null&&n[i].ips.length>0?a=n[i]:a=n[i===4?6:4]):a=n[i],a==null||a.ips.length===0)return s;a.offset==null||a.offset===N0e?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,i)):s}setRecords(e,r){let i=Date.now(),s={records:{4:null,6:null}};for(let n of r){n.timestamp=i,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=s.records[n.family]??{ips:[]};o.ips.push(n),s.records[n.family]=o}this.#i.set(e.hostname,s)}getHandler(e,r){return new Rz(this,e,r)}},Rz=class extends ddt{#e=null;#t=null;#i=null;#r=null;#s=null;constructor(e,{origin:r,handler:i,dispatch:s},n){super(i),this.#s=r,this.#r=i,this.#t={...n},this.#e=e,this.#i=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(
Line truncated
|
||||
${n}`;break;case"retry":fCe(n)&&(r[s]=n);break;case"id":hCe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&fCe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&hCe(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}}};dCe.exports={EventSourceStream:p9}});var CCe=p((yxr,wCe)=>{"use strict";var{pipeline:Sgt}=require("node:stream"),{fetching:Bgt}=vv(),{makeRequest:vgt}=Mb(),{webidl:dd}=Ws(),{EventSourceStream:xgt}=pCe(),{parseMIMEType:_gt}=Go(),{createFastMessageEvent:Rgt}=zb(),{isNetworkError:mCe}=Sv(),{delay:Ngt}=h9(),{kEnumerableProperty:Yg}=wt(),{environmentSettingsObject:ACe}=Sa(),gCe=!1,yCe=3e3,Mv=0,ECe=1,Uv=2,Tgt="anonymous",Dgt="use-credentials",Yb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=Mv;#s=null;#n=null;#l;#u;constructor(e,r={}){super(),dd.util.markAsUncloneable(this);let i="EventSource constructor";dd.argumentLengthCheck(arguments,1,i),gCe||(gCe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=dd.converters.USVString(e,i,"url"),r=dd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:yCe};let s=ACe,n;try{n=new URL(e,s.settingsObject.baseUrl),this.#u.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=Tgt;r.withCredentials&&(o=Dgt,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=ACe.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=vgt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===Uv)return;this.#r=Mv;let e={request:this.#s,dispatcher:this.#l},r=i=>{mCe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(mCe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=i.headersList.get("content-type",!0),n=s!==null?_gt(s):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=ECe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new xgt({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(Rgt(c.type,c.options))}});Sgt(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=Bgt(e)}async#c(){this.#r!==Uv&&(this.#r=Mv,this.dispatchEvent(new Event("error")),await Ngt(this.#u.reconnectionTime),this.#r===Mv&&(this.#u.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){dd.brandCheck(this,t),this.#r!==Uv&&(this.#r=Uv,this.#n.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},bCe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Mv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:ECe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Uv,writable:!1}};Object.defineProperties(Yb,bCe);Object.defineProperties(Yb.prototype,bCe);Object.defineProperties(Yb.prototype,{close:Yg,onerror:Yg,onmessage:Yg,onopen:Yg,readyState:Yg,url:Yg,withCredentials:Yg});dd.converters.EventSourceInitDict=dd.dictionaryConverter([{key:"withCredentials",converter:dd.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:dd.converters.any}]);wCe.exports={EventSource:Yb,defaultReconnectionTime:yCe}});var IO=p((Exr,Ye)=>{"use strict";var Ogt=Sb(),ICe=jB(),Pgt=Bb(),Qgt=bye(),kgt=vb(),Lgt=Mj(),Fgt=jye(),Mgt=Yye(),SCe=Vt(),CO=wt(),{InvalidArgumentError:wO}=SCe,Kb=kEe(),Ugt=VB(),qgt=bz(),Ggt=y0e(),Hgt=Iz(),jgt=az(),zgt=SD(),{getGlobalDispatcher:BCe,setGlobalDispatcher:Vgt}=PD(),$gt=QD(),Wgt=dD(),Jgt=pD();Object.assign(ICe.prototype,Kb);Ye.exports.Dispatcher=ICe;Ye.exports.Client=Ogt;Ye.exports.Pool=Pgt;Ye.exports.BalancedPool=Qgt;Ye.exports.Agent=kgt;Ye.exports.ProxyAgent=Lgt;Ye.exports.EnvHttpProxyAgent=Fgt;Ye.e
Line truncated
|
||||
%s`,D,D,E,i);var q=E.type==="*"?lV:E.type==="?"?uV:"\\"+E.type;s=!0,i=i.slice(0,E.reStart)+q+"\\("+D}m(),n&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var $=a.length-1;$>-1;$--){var O=a[$],j=i.slice(0,O.reStart),F=i.slice(O.reStart,O.reEnd-8),Z=i.slice(O.reEnd-8,O.reEnd),J=i.slice(O.reEnd);Z+=J;var Te=j.split("(").length-1,he=J;for(A=0;A<Te;A++)he=he.replace(/\)[+*?]?/,"");J=he;var Qe="";J===""&&e!==WO&&(Qe="$");var X=j+F+J+Qe+Z;i=X}if(i!==""&&s&&(i="(?=.)"+i),T&&(i=h+i),e===WO)return[i,s];if(!s)return rwt(t);var Re=r.nocase?"i":"";try{var Ce=new RegExp("^"+i+"$",Re)}catch{return new RegExp("$.")}return Ce._glob=t,Ce._src=i,Ce}ka.makeRe=function(t,e){return new Ys(t,e||{}).makeRe()};Ys.prototype.makeRe=twt;function twt(){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?lV:e.dot?$bt:Wbt,i=e.nocase?"i":"",s=t.map(function(n){return n.map(function(o){return o===fV?r:typeof o=="string"?iwt(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}ka.match=function(t,e,r){r=r||{};var i=new Ys(e,r);return t=t.filter(function(s){return i.match(s)}),i.options.nonull&&!t.length&&t.push(e),t};Ys.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 i=this.options;rx.sep!=="/"&&(e=e.split(rx.sep).join("/")),e=e.split(hBe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;i.matchBase&&a.length===1&&(c=[n]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};Ys.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,n=0,o=t.length,a=e.length;s<o&&n<a;s++,n++){this.debug("matchOne loop");var c=e[n],u=t[s];if(this.debug(e,c,u),c===!1)return!1;if(c===fV){this.debug("GLOBSTAR",[e,c,u]);var l=s,f=n+1;if(f===a){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
|
||||
`.trim())}};vbe.exports=az});var lO=p((aRr,Nbe)=>{"use strict";var _be=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:$pt}=$t(),Wpt=Mb();Tbe()===void 0&&Rbe(new Wpt);function Rbe(t){if(!t||typeof t.dispatch!="function")throw new $pt("Argument agent must implement Agent");Object.defineProperty(globalThis,_be,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Tbe(){return globalThis[_be]}Nbe.exports={setGlobalDispatcher:Rbe,getGlobalDispatcher:Tbe}});var fO=p((uRr,Dbe)=>{"use strict";Dbe.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 Pbe=p((lRr,Obe)=>{"use strict";var Jpt=HD();Obe.exports=t=>{let e=t?.maxRedirections;return r=>function(n,s){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,s);let c=new Jpt(r,o,n,s);return r(a,c)}}});var kbe=p((fRr,Qbe)=>{"use strict";var Ypt=eO();Qbe.exports=t=>e=>function(i,n){return e(i,new Ypt({...i,retryOptions:{...t,...i.retryOptions}},{handler:n,dispatch:e}))}});var Fbe=p((hRr,Lbe)=>{"use strict";var Kpt=wt(),{InvalidArgumentError:Xpt,RequestAbortedError:Zpt}=$t(),emt=fO(),cz=class extends emt{#e=1024*1024;#t=null;#i=!1;#r=!1;#n=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Xpt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#s=e}onHeaders(e,r,i,n){let o=Kpt.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Zpt(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,i,n)}onError(e){this.#i||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#i=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#i){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function tmt({maxSize:t}={maxSize:1024*1024}){return e=>function(i,n){let{dumpMaxSize:s=t}=i,o=new cz({maxSize:s},n);return e(i,o)}}Lbe.exports=tmt});var qbe=p((dRr,Ube)=>{"use strict";var{isIP:rmt}=require("node:net"),{lookup:imt}=require("node:dns"),nmt=fO(),{InvalidArgumentError:Jb,InformationalError:smt}=$t(),Mbe=Math.pow(2,31)-1,uz=class{#e=0;#t=0;#i=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.#i.size===this.#t}runLookup(e,r,i){let n=this.#i.get(e.hostname);if(n==null&&this.full){i(null,e.origin);return}let s={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,s,(o,a)=>{if(o||a==null||a.length===0){i(o??new smt("No DNS entries found"));return}this.setRecords(e,a);let c=this.#i.get(e.hostname),u=this.pick(e,c,s.affinity),l;typeof u.port=="number"?l=`:${u.port}`:e.port!==""?l=`:${e.port}`:l="",i(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${l}`)});else{let o=this.pick(e,n,s.affinity);if(o==null){this.#i.delete(e.hostname),this.runLookup(e,r,i);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",i(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,i){imt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,s)=>{if(n)return i(n);let o=new Map;for(let a of s)o.set(`${a.address}:${a.family}`,a);i(null,o.values())})}#n(e,r,i){let n=null,{records:s,offset:o}=r,a;if(this.dualStack?(i==null&&(o==null||o===Mbe?(r.offset=0,i=4):(r.offset++,i=(r.offset&1)===1?6:4)),s[i]!=null&&s[i].ips.length>0?a=s[i]:a=s[i===4?6:4]):a=s[i],a==null||a.ips.length===0)return n;a.offset==null||a.offset===Mbe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return n=a.ips[c]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(a.ips.splice(c,1),this.pick(e,r,i)):n}setRecords(e,r){let i=Date.now(),n={records:{4:null,6:null}};for(let s of r){s.timestamp=i,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let o=n.records[s.family]??{ips:[]};o.ips.push(s),n.records[s.family]=o}this.#i.set(e.hostname,n)}getHandler(e,r){return new lz(this,e,r)}},lz=class extends nmt{#e=null;#t=null;#i=null;#r=null;#n=null;constructor(e,{origin:r,handler:i,dispatch:n},s){super(i),this.#n=r,this.#r=i,this.#t={...s},this.#e=e,this.#i=n}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#n,this.#t,(
Line truncated
|
||||
${s}`;break;case"retry":bIe(s)&&(r[n]=s);break;case"id":wIe(s)&&(r[n]=s);break;case"event":s.length>0&&(r[n]=s);break}}processEvent(e){e.retry&&bIe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&wIe(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}}};CIe.exports={EventSourceStream:Jz}});var NIe=p((jRr,TIe)=>{"use strict";var{pipeline:mEt}=require("node:stream"),{fetching:AEt}=qv(),{makeRequest:gEt}=Xb(),{webidl:gd}=Xn(),{EventSourceStream:yEt}=IIe(),{parseMIMEType:EEt}=$o(),{createFastMessageEvent:bEt}=nw(),{isNetworkError:SIe}=Mv(),{delay:wEt}=$z(),{kEnumerableProperty:ay}=wt(),{environmentSettingsObject:BIe}=Na(),vIe=!1,xIe=3e3,ex=0,_Ie=1,tx=2,CEt="anonymous",IEt="use-credentials",uw=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=ex;#n=null;#s=null;#l;#u;constructor(e,r={}){super(),gd.util.markAsUncloneable(this);let i="EventSource constructor";gd.argumentLengthCheck(arguments,1,i),vIe||(vIe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=gd.converters.USVString(e,i,"url"),r=gd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:xIe};let n=BIe,s;try{s=new URL(e,n.settingsObject.baseUrl),this.#u.origin=s.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=s.href;let o=CEt;r.withCredentials&&(o=IEt,this.#i=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=BIe.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=gEt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===tx)return;this.#r=ex;let e={request:this.#n,dispatcher:this.#l},r=i=>{SIe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(SIe(i))if(i.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=i.headersList.get("content-type",!0),s=n!==null?EEt(n):"failure",o=s!=="failure"&&s.essence==="text/event-stream";if(i.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=_Ie,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new yEt({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(bEt(c.type,c.options))}});mEt(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=AEt(e)}async#c(){this.#r!==tx&&(this.#r=ex,this.dispatchEvent(new Event("error")),await wEt(this.#u.reconnectionTime),this.#r===ex&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){gd.brandCheck(this,t),this.#r!==tx&&(this.#r=tx,this.#s.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},RIe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ex,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:_Ie,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:tx,writable:!1}};Object.defineProperties(uw,RIe);Object.defineProperties(uw.prototype,RIe);Object.defineProperties(uw.prototype,{close:ay,onerror:ay,onmessage:ay,onopen:ay,readyState:ay,url:ay,withCredentials:ay});gd.converters.EventSourceInitDict=gd.dictionaryConverter([{key:"withCredentials",converter:gd.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:gd.converters.any}]);TIe.exports={EventSource:uw,defaultReconnectionTime:xIe}});var ZO=p((VRr,Ke)=>{"use strict";var SEt=Lb(),DIe=sv(),BEt=Fb(),vEt=REe(),xEt=Mb(),_Et=bV(),REt=ZEe(),TEt=s0e(),OIe=$t(),XO=wt(),{InvalidArgumentError:KO}=OIe,lw=V0e(),NEt=av(),DEt=tz(),OEt=xbe(),PEt=nz(),QEt=GV(),kEt=eO(),{getGlobalDispatcher:PIe,setGlobalDispatcher:LEt}=lO(),FEt=fO(),MEt=HD(),UEt=jD();Object.assign(DIe.prototype,lw);Ke.exports.Dispatcher=DIe;Ke.exports.Client=SEt;Ke.exports.Pool=BEt;Ke.exports.BalancedPool=vEt;Ke.exports.Agent=xEt;Ke.exports.ProxyAgent=_Et;Ke.exports.EnvHttpProxyAgent=REt;Ke.e
Line truncated
|
||||
%s`,N,N,E,i);var M=E.type==="*"?p$:E.type==="?"?d$:"\\"+E.type;n=!0,i=i.slice(0,E.reStart)+M+"\\("+N}m(),s&&(i+="\\\\");var T=!1;switch(i.charAt(0)){case"[":case".":case"(":T=!0}for(var V=a.length-1;V>-1;V--){var D=a[V],G=i.slice(0,D.reStart),k=i.slice(D.reStart,D.reEnd-8),Z=i.slice(D.reEnd-8,D.reEnd),$=i.slice(D.reEnd);Z+=$;var De=G.split("(").length-1,de=$;for(A=0;A<De;A++)de=de.replace(/\)[+*?]?/,"");$=de;var ke="";$===""&&e!==xP&&(ke="$");var Y=G+k+$+ke+Z;i=Y}if(i!==""&&n&&(i="(?=.)"+i),T&&(i=h+i),e===xP)return[i,n];if(!n)return CIt(t);var Te=r.nocase?"i":"";try{var Ie=new RegExp("^"+i+"$",Te)}catch{return new RegExp("$.")}return Ie._glob=t,Ie._src=i,Ie}Ga.makeRe=function(t,e){return new es(t,e||{}).makeRe()};es.prototype.makeRe=wIt;function wIt(){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?p$:e.dot?dIt:pIt,i=e.nocase?"i":"",n=t.map(function(s){return s.map(function(o){return o===m$?r:typeof o=="string"?IIt(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,i)}catch{this.regexp=!1}return this.regexp}Ga.match=function(t,e,r){r=r||{};var i=new es(e,r);return t=t.filter(function(n){return i.match(n)}),i.options.nonull&&!t.length&&t.push(e),t};es.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 i=this.options;Rx.sep!=="/"&&(e=e.split(Rx.sep).join("/")),e=e.split(Kve),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s,o;for(o=e.length-1;o>=0&&(s=e[o],!s);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;i.matchBase&&a.length===1&&(c=[s]);var u=this.matchOne(c,a,r);if(u)return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate};es.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,s=0,o=t.length,a=e.length;n<o&&s<a;n++,s++){this.debug("matchOne loop");var c=e[s],u=t[n];if(this.debug(e,c,u),c===!1)return!1;if(c===m$){this.debug("GLOBSTAR",[e,c,u]);var l=n,f=s+1;if(f===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return!1;return!0}for(;l<o;){var h=t[l];if(this.debug(`
|
||||
globstar while`,t,l,e,f,h),this.matchOne(t.slice(l),e.slice(f),r))return this.debug("globstar found match!",l,o,h),!0;if(h==="."||h===".."||!i.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,l,e,f);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
|
||||
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(s===o&&n===a)return!0;if(s===o)return r;if(n===a)return s===o-1&&t[s]==="";throw new Error("wtf?")};function rwt(t){return t.replace(/\\(.)/g,"$1")}function iwt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var nx=p((oRr,EBe)=>{"use strict";var fwt="2.0.0",hwt=Number.MAX_SAFE_INTEGER||9007199254740991,dwt=16,pwt=250,mwt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];EBe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dwt,MAX_SAFE_BUILD_LENGTH:pwt,MAX_SAFE_INTEGER:hwt,RELEASE_TYPES:mwt,SEMVER_SPEC_VERSION:fwt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ox=p((aRr,bBe)=>{"use strict";var Awt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};bBe.exports=Awt});var aw=p((ef,wBe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:dV,MAX_SAFE_BUILD_LENGTH:gwt,MAX_LENGTH:ywt}=nx(),Ewt=ox();ef=wBe.exports={};var bwt=ef.re=[],wwt=ef.safeRe=[],Ae=ef.src=[],Cwt=ef.safeSrc=[],ge=ef.t={},Iwt=0,pV="[a-zA-Z0-9-]",Swt=[["\\s",1],["\\d",ywt],[pV,gwt]],Bwt=t=>{for(let[e,r]of Swt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ct=(t,e,r)=>{let i=Bwt(e),s=Iwt++;Ewt(t,s,e),ge[t]=s,Ae[s]=e,Cwt[s]=i,bwt[s]=new RegExp(e,r?"g":void 0),wwt[s]=new RegExp(i,r?"g":void 0)};ct("NUMERICIDENTIFIER","0|[1-9]\\d*");ct("NUMERICIDENTIFIERLOOSE","\\d+");ct("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${pV}*`);ct("MAINVERSION",`(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})\\.(${Ae[ge.NUMERICIDENTIFIER]})`);ct("MAINVERSIONLOOSE",`(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})\\.(${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ct("PRERELEASEIDENTIFIER",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIER]})`);ct("PRERELEASEIDENTIFIERLOOSE",`(?:${Ae[ge.NONNUMERICIDENTIFIER]}|${Ae[ge.NUMERICIDENTIFIERLOOSE]})`);ct("PRERELEASE",`(?:-(${Ae[ge.PRERELEASEIDENTIFIER]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIER]})*))`);ct("PRERELEASELOOSE",`(?:-?(${Ae[ge.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ae[ge.PRERELEASEIDENTIFIERLOOSE]})*))`);ct("BUILDIDENTIFIER",`${pV}+`);ct("BUILD",`(?:\\+(${Ae[ge.BUILDIDENTIFIER]}(?:\\.${Ae[ge.BUILDIDENTIFIER]})*))`);ct("FULLPLAIN",`v?${Ae[ge.MAINVERSION]}${Ae[ge.PRERELEASE]}?${Ae[ge.BUILD]}?`);ct("FULL",`^${Ae[ge.FULLPLAIN]}$`);ct("LOOSEPLAIN",`[v=\\s]*${Ae[ge.MAINVERSIONLOOSE]}${Ae[ge.PRERELEASELOOSE]}?${Ae[ge.BUILD]}?`);ct("LOOSE",`^${Ae[ge.LOOSEPLAIN]}$`);ct("GTLT","((?:<|>)?=?)");ct("XRANGEIDENTIFIERLOOSE",`${Ae[ge.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ct("XRANGEIDENTIFIER",`${Ae[ge.NUMERICIDENTIFIER]}|x|X|\\*`);ct("XRANGEPLAIN",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:\\.(${Ae[ge.XRANGEIDENTIFIER]})(?:${Ae[ge.PRERELEASE]})?${Ae[ge.BUILD]}?)?)?`);ct("XRANGEPLAINLOOSE",`[v=\\s]*(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ae[ge.XRANGEIDENTIFIERLOOSE]})(?:${Ae[ge.PRERELEASELOOSE]})?${Ae[ge.BUILD]}?)?)?`);ct("XRANGE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAIN]}$`);ct("XRANGELOOSE",`^${Ae[ge.GTLT]}\\s*${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dV}})(?:\\.(\\d{1,${dV}}))?(?:\\.(\\d{1,${dV}}))?`);ct("COERCE",`${Ae[ge.COERCEPLAIN]}(?:$|[^\\d])`);ct("COERCEFULL",Ae[ge.COERCEPLAIN]+`(?:${Ae[ge.PRERELEASE]})?(?:${Ae[ge.BUILD]})?(?:$|[^\\d])`);ct("COERCERTL",Ae[ge.COERCE],!0);ct("COERCERTLFULL",Ae[ge.COERCEFULL],!0);ct("LONETILDE","(?:~>?)");ct("TILDETRIM",`(\\s*)${Ae[ge.LONETILDE]}\\s+`,!0);ef.tildeTrimReplace="$1~";ct("TILDE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAIN]}$`);ct("TILDELOOSE",`^${Ae[ge.LONETILDE]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("LONECARET","(?:\\^)");ct("CARETTRIM",`(\\s*)${Ae[ge.LONECARET]}\\s+`,!0);ef.caretTrimReplace="$1^";ct("CARET",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAIN]}$`);ct("CARETLOOSE",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COMPARATORLOOSE",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]})$|^$`);ct("COMPARATOR",`^${Ae[ge.GTLT]}\\s*(${Ae[ge.FULLPLAIN]})$|^$`);ct("COMPARATORTRIM",`(\\s*)${Ae[ge.GTLT]}\\s*(${Ae[ge.LOOSEPLAIN]}|${Ae[ge.XRANGEPLAIN]})`,!0);ef.comparatorTrimReplace="$1$2$3";ct("HYPHENRANGE",`^\\s*(${Ae[ge.XRANGEPLAIN]})\\s+-\\s+(${Ae[ge.XRANGEPLAIN]})\\s*$`);ct("HYPHENRANGELOOSE",`^\\s*(${Ae[ge.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ae[ge.XRANGEPLAINLOOSE]})\\s*$`);ct("STAR","(<|>)?=?\\s*\\*");ct("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ct("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var XO=p((cRr,CBe)=>{"use strict";var vwt=Object.freeze({loose:!0}),xwt=Object.freeze({}),_wt=t=>t?typeof t!="object"?vwt:t:xwt;CBe.exports=_wt});var mV=p((uRr,BBe)=>{"use strict";var IBe=/^[0-9]+$/,SBe=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=IBe.test(t),i=IBe.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},Rwt=(t,e)=>SBe(e
Line truncated
|
||||
>>> no match, partial?`,t,l,e,f),l===o))}var d;if(typeof c=="string"?(d=u===c,this.debug("string match",c,u,d)):(d=u.match(c),this.debug("pattern match",c,u,d)),!d)return!1}if(n===o&&s===a)return!0;if(n===o)return r;if(s===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function CIt(t){return t.replace(/\\(.)/g,"$1")}function IIt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Dx=p(($2r,nxe)=>{"use strict";var NIt="2.0.0",DIt=Number.MAX_SAFE_INTEGER||9007199254740991,OIt=16,PIt=250,QIt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];nxe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:OIt,MAX_SAFE_BUILD_LENGTH:PIt,MAX_SAFE_INTEGER:DIt,RELEASE_TYPES:QIt,SEMVER_SPEC_VERSION:NIt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ox=p((W2r,sxe)=>{"use strict";var kIt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};sxe.exports=kIt});var Cw=p((of,oxe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:g$,MAX_SAFE_BUILD_LENGTH:LIt,MAX_LENGTH:FIt}=Dx(),MIt=Ox();of=oxe.exports={};var UIt=of.re=[],qIt=of.safeRe=[],ge=of.src=[],GIt=of.safeSrc=[],ye=of.t={},HIt=0,y$="[a-zA-Z0-9-]",jIt=[["\\s",1],["\\d",FIt],[y$,LIt]],VIt=t=>{for(let[e,r]of jIt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},at=(t,e,r)=>{let i=VIt(e),n=HIt++;MIt(t,n,e),ye[t]=n,ge[n]=e,GIt[n]=i,UIt[n]=new RegExp(e,r?"g":void 0),qIt[n]=new RegExp(i,r?"g":void 0)};at("NUMERICIDENTIFIER","0|[1-9]\\d*");at("NUMERICIDENTIFIERLOOSE","\\d+");at("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y$}*`);at("MAINVERSION",`(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})`);at("MAINVERSIONLOOSE",`(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASEIDENTIFIER",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIER]})`);at("PRERELEASEIDENTIFIERLOOSE",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIERLOOSE]})`);at("PRERELEASE",`(?:-(${ge[ye.PRERELEASEIDENTIFIER]}(?:\\.${ge[ye.PRERELEASEIDENTIFIER]})*))`);at("PRERELEASELOOSE",`(?:-?(${ge[ye.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ge[ye.PRERELEASEIDENTIFIERLOOSE]})*))`);at("BUILDIDENTIFIER",`${y$}+`);at("BUILD",`(?:\\+(${ge[ye.BUILDIDENTIFIER]}(?:\\.${ge[ye.BUILDIDENTIFIER]})*))`);at("FULLPLAIN",`v?${ge[ye.MAINVERSION]}${ge[ye.PRERELEASE]}?${ge[ye.BUILD]}?`);at("FULL",`^${ge[ye.FULLPLAIN]}$`);at("LOOSEPLAIN",`[v=\\s]*${ge[ye.MAINVERSIONLOOSE]}${ge[ye.PRERELEASELOOSE]}?${ge[ye.BUILD]}?`);at("LOOSE",`^${ge[ye.LOOSEPLAIN]}$`);at("GTLT","((?:<|>)?=?)");at("XRANGEIDENTIFIERLOOSE",`${ge[ye.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);at("XRANGEIDENTIFIER",`${ge[ye.NUMERICIDENTIFIER]}|x|X|\\*`);at("XRANGEPLAIN",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:${ge[ye.PRERELEASE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGEPLAINLOOSE",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:${ge[ye.PRERELEASELOOSE]})?${ge[ye.BUILD]}?)?)?`);at("XRANGE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAIN]}$`);at("XRANGELOOSE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAINLOOSE]}$`);at("COERCEPLAIN",`(^|[^\\d])(\\d{1,${g$}})(?:\\.(\\d{1,${g$}}))?(?:\\.(\\d{1,${g$}}))?`);at("COERCE",`${ge[ye.COERCEPLAIN]}(?:$|[^\\d])`);at("COERCEFULL",ge[ye.COERCEPLAIN]+`(?:${ge[ye.PRERELEASE]})?(?:${ge[ye.BUILD]})?(?:$|[^\\d])`);at("COERCERTL",ge[ye.COERCE],!0);at("COERCERTLFULL",ge[ye.COERCEFULL],!0);at("LONETILDE","(?:~>?)");at("TILDETRIM",`(\\s*)${ge[ye.LONETILDE]}\\s+`,!0);of.tildeTrimReplace="$1~";at("TILDE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAIN]}$`);at("TILDELOOSE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("LONECARET","(?:\\^)");at("CARETTRIM",`(\\s*)${ge[ye.LONECARET]}\\s+`,!0);of.caretTrimReplace="$1^";at("CARET",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAIN]}$`);at("CARETLOOSE",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAINLOOSE]}$`);at("COMPARATORLOOSE",`^${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]})$|^$`);at("COMPARATOR",`^${ge[ye.GTLT]}\\s*(${ge[ye.FULLPLAIN]})$|^$`);at("COMPARATORTRIM",`(\\s*)${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]}|${ge[ye.XRANGEPLAIN]})`,!0);of.comparatorTrimReplace="$1$2$3";at("HYPHENRANGE",`^\\s*(${ge[ye.XRANGEPLAIN]})\\s+-\\s+(${ge[ye.XRANGEPLAIN]})\\s*$`);at("HYPHENRANGELOOSE",`^\\s*(${ge[ye.XRANGEPLAINLOOSE]})\\s+-\\s+(${ge[ye.XRANGEPLAINLOOSE]})\\s*$`);at("STAR","(<|>)?=?\\s*\\*");at("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");at("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var NP=p((J2r,axe)=>{"use strict";var zIt=Object.freeze({loose:!0}),$It=Object.freeze({}),WIt=t=>t?typeof t!="object"?zIt:t:$It;axe.exports=WIt});var E$=p((Y2r,lxe)=>{"use strict";var cxe=/^[0-9]+$/,uxe=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=cxe.test(t),i=cxe.test(e);return r&&i&&(t=+t,e=+e),t===e?0:r&&!i?-1:i&&!r?1:t<e?-1:1},JIt=(t,e)=>uxe(e
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(s+"m+"+kP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=JSt()+e+" "+t[0]}function JSt(){return Ks.inspectOpts.hideDate?"":new Date().toISOString()+" "}function YSt(...t){return process.stderr.write(QP.format(...t)+`
|
||||
`)}function KSt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function XSt(){return process.env.DEBUG}function ZSt(t){t.inspectOpts={};let e=Object.keys(Ks.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ks.inspectOpts[e[r]]}kP.exports=ZV()(Ks);var{formatters:t_e}=kP.exports;t_e.o=function(t){return this.inspectOpts.colors=this.useColors,QP.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};t_e.O=function(t){return this.inspectOpts.colors=this.useColors,QP.inspect(t,this.inspectOpts)}});var fy=p((ITr,i$)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?i$.exports=Yxe():i$.exports=r_e()});var n_e=p(Jo=>{"use strict";var eBt=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),tBt=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),i_e=Jo&&Jo.__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)&&eBt(e,t,r);return tBt(e,t),e};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.req=Jo.json=Jo.toBuffer=void 0;var rBt=i_e(require("http")),iBt=i_e(require("https"));async function s_e(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Jo.toBuffer=s_e;async function sBt(t){let r=(await s_e(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Jo.json=sBt;function nBt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?iBt:rBt).request(t,e),s=new Promise((n,o)=>{i.once("response",n).once("error",o).end()});return i.then=s.then.bind(s),i}Jo.req=nBt});var u_e=p(Ua=>{"use strict";var a_e=Ua&&Ua.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),oBt=Ua&&Ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c_e=Ua&&Ua.__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)&&a_e(e,t,r);return oBt(e,t),e},aBt=Ua&&Ua.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&a_e(e,t,r)};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Agent=void 0;var cBt=c_e(require("net")),o_e=c_e(require("http")),uBt=require("https");aBt(n_e(),Ua);var sf=Symbol("AgentBaseInternalState"),s$=class extends o_e.Agent{constructor(e){super(e),this[sf]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 cBt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],s=i.indexOf(r);s!==-1&&(i.splice(s,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?uBt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(n,o),a instanceof o_e.Agent)try{return a.addRequest(e,s)}catch(c){return i(c)}this[sf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[sf].currentSocket;if(this[sf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[sf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[sf]&&(this[sf].defaultPort=e)}get protocol(){return this[sf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[sf]&&(this[sf].protocol=e)}};Ua.Agent=s$});var l_e=p(Aw=>{"use strict";var lBt=Aw&&Aw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.parseProxyResponse=void 0;var fBt=lBt(fy()),LP=(0,fBt.default)("https-proxy-agent:parse-proxy-response");function hBt(t){return new Promise((e,r)=>{let i=0,s=[];function n(){let l=t.read();l?u(l):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),LP("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),LP("onerror %o",l),r(l)}function u(l){s.push(l),i+=l.length;let f=Buffer.concat(s,i),h=f.indexOf(`\r
|
||||
`+s),t.push(n+"m+"+mQ.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=mxt()+e+" "+t[0]}function mxt(){return ts.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Axt(...t){return process.stderr.write(pQ.format(...t)+`
|
||||
`)}function gxt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function yxt(){return process.env.DEBUG}function Ext(t){t.inspectOpts={};let e=Object.keys(ts.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ts.inspectOpts[e[r]]}mQ.exports=iW()(ts);var{formatters:URe}=mQ.exports;URe.o=function(t){return this.inspectOpts.colors=this.useColors,pQ.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};URe.O=function(t){return this.inspectOpts.colors=this.useColors,pQ.inspect(t,this.inspectOpts)}});var Sy=p((lPr,aW)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?aW.exports=QRe():aW.exports=qRe()});var jRe=p(ra=>{"use strict";var bxt=ra&&ra.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),wxt=ra&&ra.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),GRe=ra&&ra.__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)&&bxt(e,t,r);return wxt(e,t),e};Object.defineProperty(ra,"__esModule",{value:!0});ra.req=ra.json=ra.toBuffer=void 0;var Cxt=GRe(require("http")),Ixt=GRe(require("https"));async function HRe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ra.toBuffer=HRe;async function Sxt(t){let r=(await HRe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ra.json=Sxt;function Bxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?Ixt:Cxt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}ra.req=Bxt});var WRe=p(za=>{"use strict";var zRe=za&&za.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),vxt=za&&za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$Re=za&&za.__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)&&zRe(e,t,r);return vxt(e,t),e},xxt=za&&za.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zRe(e,t,r)};Object.defineProperty(za,"__esModule",{value:!0});za.Agent=void 0;var _xt=$Re(require("net")),VRe=$Re(require("http")),Rxt=require("https");xxt(jRe(),za);var uf=Symbol("AgentBaseInternalState"),cW=class extends VRe.Agent{constructor(e){super(e),this[uf]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 _xt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Rxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof VRe.Agent)try{return a.addRequest(e,n)}catch(c){return i(c)}this[uf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[uf].currentSocket;if(this[uf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[uf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[uf]&&(this[uf].defaultPort=e)}get protocol(){return this[uf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[uf]&&(this[uf].protocol=e)}};za.Agent=cW});var JRe=p(Nw=>{"use strict";var Txt=Nw&&Nw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nw,"__esModule",{value:!0});Nw.parseProxyResponse=void 0;var Nxt=Txt(Sy()),AQ=(0,Nxt.default)("https-proxy-agent:parse-proxy-response");function Dxt(t){return new Promise((e,r)=>{let i=0,n=[];function s(){let l=t.read();l?u(l):t.once("readable",s)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",s)}function a(){o(),AQ("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),AQ("onerror %o",l),r(l)}function u(l){n.push(l),i+=l.length;let f=Buffer.concat(n,i),h=f.indexOf(`\r
|
||||
\r
|
||||
`);if(h===-1){LP("have not received end of HTTP headers yet..."),n();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let D=w.slice(0,S).toLowerCase(),q=w.slice(S+1).trimStart(),T=E[D];typeof T=="string"?E[D]=[T,q]:Array.isArray(T)?T.push(q):E[D]=q}LP("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}Aw.parseProxyResponse=hBt});var A_e=p(Mc=>{"use strict";var dBt=Mc&&Mc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),pBt=Mc&&Mc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),p_e=Mc&&Mc.__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)&&dBt(e,t,r);return pBt(e,t),e},m_e=Mc&&Mc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mc,"__esModule",{value:!0});Mc.HttpsProxyAgent=void 0;var FP=p_e(require("net")),f_e=p_e(require("tls")),mBt=m_e(require("assert")),ABt=m_e(fy()),gBt=u_e(),yBt=require("url"),EBt=l_e(),bx=(0,ABt.default)("https-proxy-agent"),h_e=t=>t.servername===void 0&&t.host&&!FP.isIP(t.host)?{...t,servername:t.host}:t,MP=class extends gBt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new yBt.URL(e):e,this.proxyHeaders=r?.headers??{},bx("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?d_e(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;i.protocol==="https:"?(bx("Creating `tls.Socket`: %o",this.connectOpts),s=f_e.connect(h_e(this.connectOpts))):(bx("Creating `net.Socket`: %o",this.connectOpts),s=FP.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=FP.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
|
||||
`;let c=(0,EBt.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",bBt),r.secureEndpoint?(bx("Upgrading socket connection to TLS"),f_e.connect({...d_e(h_e(r),"host","path","port"),socket:s})):s;s.destroy();let f=new FP.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{bx("Replaying proxy buffer for failed request"),(0,mBt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};MP.protocols=["http","https"];Mc.HttpsProxyAgent=MP;function bBt(t){t.resume()}function d_e(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var E_e=p(Yo=>{"use strict";var wBt=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),CBt=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),g_e=Yo&&Yo.__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)&&wBt(e,t,r);return CBt(e,t),e};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.req=Yo.json=Yo.toBuffer=void 0;var IBt=g_e(require("http")),SBt=g_e(require("https"));async function y_e(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Yo.toBuffer=y_e;async function BBt(t){let r=(await y_e(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Yo.json=BBt;function vBt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?SBt:IBt).request(t,e),s=new Promise((n,o)=>{i.once("response",n).once("error",o).end()});return i.then=s.then.bind(s),i}Yo.req=vBt});var wx=p(qa=>{"use strict";var w_e=qa&&qa.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),xBt=qa&&qa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C_e=qa&&qa.__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)&&w_e(e,t,r);return xBt(e,t),e},_Bt=qa&&qa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&w_e(e,t,r)};Object.defineProperty(qa,"__esModule",{value:!0});qa.Agent=void 0;var RBt=C_e(require("net")),b_e=C_e(require("http")),NBt=require("https");_Bt(E_e(),qa);var nf=Symbol("AgentBaseInternalState"),n$=class extends b_e.Agent{constructor(e){super(e),this[nf]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 RBt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],s=i.indexOf(r);s!==-1&&(i.splice(s,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?NBt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(s),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(n,o),a instanceof b_e.Agent)return a.addRequest(e,s);this[nf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[nf].currentSocket;if(this[nf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[nf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[nf]&&(this[nf].defaultPort=e)}get protocol(){return this[nf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[nf]&&(this[nf].protocol=e)}};qa.Agent=n$});var o$=p(Uc=>{"use strict";var TBt=Uc&&Uc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),DBt=Uc&&Uc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),S_e=Uc&&Uc.__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)&&TBt(e,t,r);return DBt(e,t),e},OBt=Uc&&Uc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.HttpProxyAgent=void 0;var PBt=S_e(require("net")),QBt=S_e(require("tls")),kBt=OBt(fy()),LBt=require("events"),FBt=wx(),I_e=require("url"),gw=(0,kBt.default)("http-proxy-agent"),UP=class extends FBt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new I_e.URL(e):e,this.proxyHeaders=r?.headers??{},gw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(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?MBt(r,"headers"):null,host:i,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,s=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${s}//${n}`,a=new I_e.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,s;gw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(gw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,s=i.indexOf(`\r
|
||||
`);if(h===-1){AQ("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,S).toLowerCase(),M=w.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,M]:Array.isArray(T)?T.push(M):E[N]=M}AQ("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}Nw.parseProxyResponse=Dxt});var tTe=p(Vc=>{"use strict";var Oxt=Vc&&Vc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Pxt=Vc&&Vc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZRe=Vc&&Vc.__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)&&Oxt(e,t,r);return Pxt(e,t),e},eTe=Vc&&Vc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vc,"__esModule",{value:!0});Vc.HttpsProxyAgent=void 0;var gQ=ZRe(require("net")),YRe=ZRe(require("tls")),Qxt=eTe(require("assert")),kxt=eTe(Sy()),Lxt=WRe(),Fxt=require("url"),Mxt=JRe(),$x=(0,kxt.default)("https-proxy-agent"),KRe=t=>t.servername===void 0&&t.host&&!gQ.isIP(t.host)?{...t,servername:t.host}:t,yQ=class extends Lxt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fxt.URL(e):e,this.proxyHeaders=r?.headers??{},$x("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?XRe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;i.protocol==="https:"?($x("Creating `tls.Socket`: %o",this.connectOpts),n=YRe.connect(KRe(this.connectOpts))):($x("Creating `net.Socket`: %o",this.connectOpts),n=gQ.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=gQ.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
|
||||
`;let c=(0,Mxt.parseProxyResponse)(n);n.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Uxt),r.secureEndpoint?($x("Upgrading socket connection to TLS"),YRe.connect({...XRe(KRe(r),"host","path","port"),socket:n})):n;n.destroy();let f=new gQ.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{$x("Replaying proxy buffer for failed request"),(0,Qxt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};yQ.protocols=["http","https"];Vc.HttpsProxyAgent=yQ;function Uxt(t){t.resume()}function XRe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var nTe=p(ia=>{"use strict";var qxt=ia&&ia.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Gxt=ia&&ia.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rTe=ia&&ia.__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)&&qxt(e,t,r);return Gxt(e,t),e};Object.defineProperty(ia,"__esModule",{value:!0});ia.req=ia.json=ia.toBuffer=void 0;var Hxt=rTe(require("http")),jxt=rTe(require("https"));async function iTe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}ia.toBuffer=iTe;async function Vxt(t){let r=(await iTe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let n=i;throw n.message+=` (input: ${r})`,n}}ia.json=Vxt;function zxt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?jxt:Hxt).request(t,e),n=new Promise((s,o)=>{i.once("response",s).once("error",o).end()});return i.then=n.then.bind(n),i}ia.req=zxt});var Wx=p($a=>{"use strict";var oTe=$a&&$a.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$xt=$a&&$a.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aTe=$a&&$a.__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)&&oTe(e,t,r);return $xt(e,t),e},Wxt=$a&&$a.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&oTe(e,t,r)};Object.defineProperty($a,"__esModule",{value:!0});$a.Agent=void 0;var Jxt=aTe(require("net")),sTe=aTe(require("http")),Yxt=require("https");Wxt(nTe(),$a);var lf=Symbol("AgentBaseInternalState"),uW=class extends sTe.Agent{constructor(e){super(e),this[lf]={}}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(i=>i.indexOf("(https.js:")!==-1||i.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 Jxt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let i=this.sockets[e],n=i.indexOf(r);n!==-1&&(i.splice(n,1),this.totalSocketCount--,i.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Yxt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,i){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(n),o=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(s,o),a instanceof sTe.Agent)return a.addRequest(e,n);this[lf].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(s,o),i(a)})}createConnection(){let e=this[lf].currentSocket;if(this[lf].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[lf].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[lf]&&(this[lf].defaultPort=e)}get protocol(){return this[lf].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[lf]&&(this[lf].protocol=e)}};$a.Agent=uW});var lW=p(zc=>{"use strict";var Kxt=zc&&zc.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Xxt=zc&&zc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uTe=zc&&zc.__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)&&Kxt(e,t,r);return Xxt(e,t),e},Zxt=zc&&zc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zc,"__esModule",{value:!0});zc.HttpProxyAgent=void 0;var e_t=uTe(require("net")),t_t=uTe(require("tls")),r_t=Zxt(Sy()),i_t=require("events"),n_t=Wx(),cTe=require("url"),Dw=(0,r_t.default)("http-proxy-agent"),EQ=class extends n_t.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new cTe.URL(e):e,this.proxyHeaders=r?.headers??{},Dw("Creating new HttpProxyAgent instance: %o",this.proxy.href);let i=(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?s_t(r,"headers"):null,host:i,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:i}=this,n=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",o=`${n}//${s}`,a=new cTe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(i.username||i.password){let u=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(c)){let l=c[u];l&&e.setHeader(u,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let i,n;Dw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Dw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,n=i.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+i.substring(s),gw("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(gw("Creating `tls.Socket`: %o",this.connectOpts),n=QBt.connect(this.connectOpts)):(gw("Creating `net.Socket`: %o",this.connectOpts),n=PBt.connect(this.connectOpts)),await(0,LBt.once)(n,"connect"),n}};UP.protocols=["http","https"];Uc.HttpProxyAgent=UP;function MBt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var V_e=p(eQ=>{"use strict";Object.defineProperty(eQ,"__esModule",{value:!0});eQ.state=void 0;eQ.state={instrumenterImplementation:void 0}});var uRe=p(nQ=>{"use strict";Object.defineProperty(nQ,"__esModule",{value:!0});nQ.state=void 0;nQ.state={operationRequestMap:new WeakMap}});var RTe=p(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0});var eTt=require("os"),tTt=require("util");function rTt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var iTt=rTt(tTt);function sTt(t,...e){process.stderr.write(`${iTt.default.format(t,...e)}${eTt.EOL}`)}var ETe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,wTe,O7=[],P7=[],Ik=[];ETe&&Q7(ETe);var CTe=Object.assign(t=>ITe(t),{enable:Q7,enabled:k7,disable:nTt,log:sTt});function Q7(t){wTe=t,O7=[],P7=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?P7.push(new RegExp(`^${i.substr(1)}$`)):O7.push(new RegExp(`^${i}$`));for(let i of Ik)i.enabled=k7(i.namespace)}function k7(t){if(t.endsWith("*"))return!0;for(let e of P7)if(e.test(t))return!1;for(let e of O7)if(e.test(t))return!0;return!1}function nTt(){let t=wTe||"";return Q7(""),t}function ITe(t){let e=Object.assign(r,{enabled:k7(t),destroy:oTt,log:CTe.log,namespace:t,extend:aTt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return Ik.push(e),e}function oTt(){let t=Ik.indexOf(this);return t>=0?(Ik.splice(t,1),!0):!1}function aTt(t){let e=ITe(`${this.namespace}:${t}`);return e.log=this.log,e}var a_=CTe,STe=new Set,wk=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Sk,Bk=a_("azure");Bk.log=(...t)=>{a_.log(...t)};var L7=["verbose","info","warning","error"];wk&&(_Te(wk)?BTe(wk):console.error(`AZURE_LOG_LEVEL set to unknown log level '${wk}'; logging is not enabled. Acceptable values: ${L7.join(", ")}.`));function BTe(t){if(t&&!_Te(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${L7.join(",")}`);Sk=t;let e=[];for(let r of STe)xTe(r)&&e.push(r.namespace);a_.enable(e.join(","))}function cTt(){return Sk}var bTe={verbose:400,info:300,warning:200,error:100};function uTt(t){let e=Bk.extend(t);return vTe(Bk,e),{error:Ck(e,"error"),warning:Ck(e,"warning"),info:Ck(e,"info"),verbose:Ck(e,"verbose")}}function vTe(t,e){e.log=(...r)=>{t.log(...r)}}function Ck(t,e){let r=Object.assign(t.extend(e),{level:e});if(vTe(t,r),xTe(r)){let i=a_.disable();a_.enable(i+","+r.namespace)}return STe.add(r),r}function xTe(t){return!!(Sk&&bTe[t.level]<=bTe[Sk])}function _Te(t){return L7.includes(t)}Pw.AzureLogger=Bk;Pw.createClientLogger=uTt;Pw.getLogLevel=cTt;Pw.setLogLevel=BTe});var U7=p(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});var Qw=new WeakMap,vk=new WeakMap,c_=class t{constructor(){this.onabort=null,Qw.set(this,[]),vk.set(this,!1)}get aborted(){if(!vk.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return vk.get(this)}static get none(){return new t}addEventListener(e,r){if(!Qw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Qw.get(this).push(r)}removeEventListener(e,r){if(!Qw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Qw.get(this),s=i.indexOf(r);s>-1&&i.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function NTe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Qw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),vk.set(t,!0)}var F7=class extends Error{constructor(e){super(e),this.name="AbortError"}},M7=class{constructor(e){if(this._signal=new c_,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){NTe(this._signal)}static timeout(e){let r=new c_,i=setTimeout(NTe,e,r);return typeof i.unref=="function"&&i.unref(),r}};u_.AbortController=M7;u_.AbortError=F7;u_.AbortSignal=c_});var QTe=p(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var lTt=U7(),$7=require("crypto");function TTe(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:s}=e??{};return new Promise((n,o)=>{function a(){o(new lTt.AbortError(s??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),n(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var fTt="The delay was
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+i.substring(n),Dw("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Dw("Creating `tls.Socket`: %o",this.connectOpts),s=t_t.connect(this.connectOpts)):(Dw("Creating `net.Socket`: %o",this.connectOpts),s=e_t.connect(this.connectOpts)),await(0,i_t.once)(s,"connect"),s}};EQ.protocols=["http","https"];zc.HttpProxyAgent=EQ;function s_t(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var NTe=p(OQ=>{"use strict";Object.defineProperty(OQ,"__esModule",{value:!0});OQ.state=void 0;OQ.state={instrumenterImplementation:void 0}});var WTe=p(FQ=>{"use strict";Object.defineProperty(FQ,"__esModule",{value:!0});FQ.state=void 0;FQ.state={operationRequestMap:new WeakMap}});var p2e=p(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});var b2t=require("os"),w2t=require("util");function C2t(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var I2t=C2t(w2t);function S2t(t,...e){process.stderr.write(`${I2t.default.format(t,...e)}${b2t.EOL}`)}var n2e=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,o2e,LK=[],FK=[],rL=[];n2e&&MK(n2e);var a2e=Object.assign(t=>c2e(t),{enable:MK,enabled:UK,disable:B2t,log:S2t});function MK(t){o2e=t,LK=[],FK=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?FK.push(new RegExp(`^${i.substr(1)}$`)):LK.push(new RegExp(`^${i}$`));for(let i of rL)i.enabled=UK(i.namespace)}function UK(t){if(t.endsWith("*"))return!0;for(let e of FK)if(e.test(t))return!1;for(let e of LK)if(e.test(t))return!0;return!1}function B2t(){let t=o2e||"";return MK(""),t}function c2e(t){let e=Object.assign(r,{enabled:UK(t),destroy:v2t,log:a2e.log,namespace:t,extend:x2t});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return rL.push(e),e}function v2t(){let t=rL.indexOf(this);return t>=0?(rL.splice(t,1),!0):!1}function x2t(t){let e=c2e(`${this.namespace}:${t}`);return e.log=this.log,e}var P_=a2e,u2e=new Set,eL=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,iL,nL=P_("azure");nL.log=(...t)=>{P_.log(...t)};var qK=["verbose","info","warning","error"];eL&&(d2e(eL)?l2e(eL):console.error(`AZURE_LOG_LEVEL set to unknown log level '${eL}'; logging is not enabled. Acceptable values: ${qK.join(", ")}.`));function l2e(t){if(t&&!d2e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${qK.join(",")}`);iL=t;let e=[];for(let r of u2e)h2e(r)&&e.push(r.namespace);P_.enable(e.join(","))}function _2t(){return iL}var s2e={verbose:400,info:300,warning:200,error:100};function R2t(t){let e=nL.extend(t);return f2e(nL,e),{error:tL(e,"error"),warning:tL(e,"warning"),info:tL(e,"info"),verbose:tL(e,"verbose")}}function f2e(t,e){e.log=(...r)=>{t.log(...r)}}function tL(t,e){let r=Object.assign(t.extend(e),{level:e});if(f2e(t,r),h2e(r)){let i=P_.disable();P_.enable(i+","+r.namespace)}return u2e.add(r),r}function h2e(t){return!!(iL&&s2e[t.level]<=s2e[iL])}function d2e(t){return qK.includes(t)}Jw.AzureLogger=nL;Jw.createClientLogger=R2t;Jw.getLogLevel=_2t;Jw.setLogLevel=l2e});var jK=p(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});var Yw=new WeakMap,sL=new WeakMap,Q_=class t{constructor(){this.onabort=null,Yw.set(this,[]),sL.set(this,!1)}get aborted(){if(!sL.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return sL.get(this)}static get none(){return new t}addEventListener(e,r){if(!Yw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Yw.get(this).push(r)}removeEventListener(e,r){if(!Yw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Yw.get(this),n=i.indexOf(r);n>-1&&i.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function m2e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Yw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),sL.set(t,!0)}var GK=class extends Error{constructor(e){super(e),this.name="AbortError"}},HK=class{constructor(e){if(this._signal=new Q_,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){m2e(this._signal)}static timeout(e){let r=new Q_,i=setTimeout(m2e,e,r);return typeof i.unref=="function"&&i.unref(),r}};k_.AbortController=HK;k_.AbortError=GK;k_.AbortSignal=Q_});var b2e=p(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var T2t=jK(),KK=require("crypto");function A2e(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new T2t.AbortError(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var N2t="The delay was
Line truncated
|
||||
Polling from: ${r.config.operationLocation}
|
||||
Operation status: ${l}
|
||||
Polling status: ${MTe.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(LTe({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function HTe(t){let{poll:e,state:r,stateProxy:i,options:s,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:w}=await MTt({poll:e,getOperationStatus:n,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:s});if(qTe({status:w,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!MTe.includes(w)){let S=l?.(E);S&&m(S);let D=a?.(E,r);if(D!==void 0){let q=g!==D;r.config.operationLocation=D,u?.(D,q)}else u?.(g,!1)}d?.(r,E)}}function jTe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function zTe(t){return t.headers.location}function VTe(t){return t.headers["operation-location"]}function $Te(t){return t.headers["azure-asyncoperation"]}function UTt(t){var e;let{location:r,requestMethod:i,requestPath:s,resourceLocationConfig:n}=t;switch(i){case"PUT":return s;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:s;default:return o()}function o(){switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return r}}}function WTe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:s}=t,n=VTe(e),o=$Te(e),a=jTe({operationLocation:n,azureAsyncOperation:o}),c=zTe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:UTt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:s})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function JTe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return K7(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Ry.verbose(`LRO: unrecognized operation status: ${e}`),e}}function qTt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return JTe({status:r,statusCode:t.statusCode})}function GTt(t){var e,r;let{properties:i,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=i?.provisioningState)!==null&&r!==void 0?r:s;return JTe({status:n,statusCode:t.statusCode})}function K7(t){return t===202?"running":t<300?"succeeded":"failed"}function YTe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?HTt(new Date(e)):r*1e3}}function KTe(t){let e=t.flatResponse.error;if(!e){Ry.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Ry.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function HTt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function XTe(t){let{response:e,state:r,operationLocation:i}=t;function s(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return K7(e.rawResponse.statusCode);case"Body":return X7(e,r);default:return"running"}}let n=s();return n==="running"&&i===void 0?"succeeded":n}async function jTt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:s,setErrorAsResult:n}=t;return GTe({init:async()=>{let o=await s.sendInitialRequest(),a=WTe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:XTe,setErrorAsResult:n})}function ZTe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return jTe({operationLocation:VTe(t),azureAsyncOperation:$Te(t)});case"ResourceLocation":return zTe(t);default:return}}function X7({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return qTt(t);case"ResourceLocation":return K7(t.statusCode);case"Body":return GTt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function e1e({flatResponse:t},e){if(typeof t=="object"Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=n,s=1;break;case 1:r[i++]=o<<2|(n&48)>>4,o=n,s=2;break;case 2:r[i++]=(o&15)<<4|(n&60)>>2,o=n,s=3;break;case 3:r[i++]=(o&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,i)}qw.base64decode=x1t;function _1t(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Dd[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Dd[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Dd[s|i>>6],e+=Dd[i&63],r=0;break}return r&&(e+=Dd[s],e+="=",r==1&&(e+="=")),e}qw.base64encode=_1t});var R1e=p(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.utf8read=void 0;var cK=t=>String.fromCharCode.apply(String,t);function R1t(t){if(t.length<1)return"";let e=0,r=[],i=[],s=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?i[s++]=n:n>191&&n<224?i[s++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[s++]=55296+(n>>10),i[s++]=56320+(n&1023)):i[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(cK(i)),s=0);return r.length?(s&&r.push(cK(i.slice(0,s))),r.join("")):cK(i.slice(0,s))}zk.utf8read=R1t});var g_=p(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.WireType=Tf.mergeBinaryOptions=Tf.UnknownFieldHandler=void 0;var N1t;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,s,n,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:s,wireType:n,data:o})},t.onWrite=(r,i,s)=>{for(let{no:n,wireType:o,data:a}of t.list(i))s.tag(n,o).raw(a)},t.list=(r,i)=>{if(e(r)){let s=r[t.symbol];return i?s.filter(n=>n.no==i):s}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(N1t=Tf.UnknownFieldHandler||(Tf.UnknownFieldHandler={}));function T1t(t,e){return Object.assign(Object.assign({},t),e)}Tf.mergeBinaryOptions=T1t;var D1t;(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"})(D1t=Tf.WireType||(Tf.WireType={}))});var $k=p(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.varint32read=ra.varint32write=ra.int64toString=ra.int64fromString=ra.varint64write=ra.varint64read=void 0;function O1t(){let t=0,e=0;for(let i=0;i<28;i+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<i,(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 i=3;i<=31;i+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ra.varint64read=O1t;function P1t(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?i|128:i)&255),!!s){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ra.varint64write=P1t;var Vk=65536*65536;function Q1t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,s=0;function n(o,a){let c=Number(t.slice(o,a));s*=r,i=i*r+c,i>=Vk&&(s=s+(i/Vk|0),i=i%Vk)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}ra.int64fromString=Q1t;function k1t(t,e){if(e>>>0<=2097151)return""+(Vk*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+i*6777216+s*6710656,o=i+s*8147497,a=s*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(n,1)}ra.int64toString=k1t;function L1t(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)}}ra.varint32write=L1t;function F1t(){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}ra.varint32read=F1t});var jm=p(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.PbLong=Hm.PbULong=Hm.detectBi=void 0;var y_=$k(),dr;function N1e(){let t=new DataView(new ArrayBuffer(8));dr=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}Hm.detectBi=N1e;N1e();function T1e(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var D1e=/^-?[0-9]+$/,Jk=4294967296,Wk=2147483648,Yk=c
Line truncated
|
||||
`)}};bL.RpcError=QK});var LK=p(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0});CL.mergeRpcOptions=void 0;var c2e=Bi();function oDt(t,e){if(!e)return t;let r={};wL(t,r),wL(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=c2e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=c2e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},wL(t.meta,r.meta),wL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}CL.mergeRpcOptions=oDt;function wL(t,e){if(!t)return;let r=e;for(let[i,s]of Object.entries(t))s instanceof Date?r[i]=new Date(s.getTime()):Array.isArray(s)?r[i]=s.concat():r[i]=s}});var MK=p(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.Deferred=Py.DeferredState=void 0;var Pf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Pf=Py.DeferredState||(Py.DeferredState={}));var FK=class{constructor(e=!0){this._state=Pf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Pf.PENDING)throw new Error(`cannot resolve ${Pf[this.state].toLowerCase()}`);this._resolve(e),this._state=Pf.RESOLVED}reject(e){if(this.state!==Pf.PENDING)throw new Error(`cannot reject ${Pf[this.state].toLowerCase()}`);this._reject(e),this._state=Pf.REJECTED}resolvePending(e){this._state===Pf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Pf.PENDING&&this.reject(e)}};Py.Deferred=FK});var qK=p(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0});IL.RpcOutputStreamController=void 0;var u2e=MK(),Qy=Bi(),UK=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){Qy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Qy.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){Qy.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(){Qy.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;Qy.assert(e,"bad state"),Qy.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 u2e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Qy.assert(i.state==u2e.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};IL.RpcOutputStreamController=UK});var HK=p(Ww=>{"use strict";var aDt=Ww&&Ww.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(Ww,"__esModule",{value:!0});Ww.UnaryCall=void 0;var GK=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return aDt(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:s}})}};Ww.UnaryCall=GK});var zK=p(Jw=>{"use strict";var cDt=Jw&&Jw.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(Jw,"__esModule",{value:!0});Jw.ServerStreamingCall=void 0;var jK=class{constructor(e
Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=n,s=1;break;case 1:r[i++]=o<<2|(n&48)>>4,o=n,s=2;break;case 2:r[i++]=(o&15)<<4|(n&60)>>2,o=n,s=3;break;case 3:r[i++]=(o&3)<<6|n,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,i)}hC.base64decode=SLt;function BLt(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Ld[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Ld[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Ld[s|i>>6],e+=Ld[i&63],r=0;break}return r&&(e+=Ld[s],e+="=",r==1&&(e+="=")),e}hC.base64encode=BLt});var JPe=p(dF=>{"use strict";Object.defineProperty(dF,"__esModule",{value:!0});dF.utf8read=void 0;var CZ=t=>String.fromCharCode.apply(String,t);function vLt(t){if(t.length<1)return"";let e=0,r=[],i=[],s=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?i[s++]=n:n>191&&n<224?i[s++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[s++]=55296+(n>>10),i[s++]=56320+(n&1023)):i[s++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(CZ(i)),s=0);return r.length?(s&&r.push(CZ(i.slice(0,s))),r.join("")):CZ(i.slice(0,s))}dF.utf8read=vLt});var V_=p(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.WireType=Ff.mergeBinaryOptions=Ff.UnknownFieldHandler=void 0;var xLt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,s,n,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:s,wireType:n,data:o})},t.onWrite=(r,i,s)=>{for(let{no:n,wireType:o,data:a}of t.list(i))s.tag(n,o).raw(a)},t.list=(r,i)=>{if(e(r)){let s=r[t.symbol];return i?s.filter(n=>n.no==i):s}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(xLt=Ff.UnknownFieldHandler||(Ff.UnknownFieldHandler={}));function _Lt(t,e){return Object.assign(Object.assign({},t),e)}Ff.mergeBinaryOptions=_Lt;var RLt;(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"})(RLt=Ff.WireType||(Ff.WireType={}))});var mF=p(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.varint32read=na.varint32write=na.int64toString=na.int64fromString=na.varint64write=na.varint64read=void 0;function NLt(){let t=0,e=0;for(let i=0;i<28;i+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<i,(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 i=3;i<=31;i+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<i,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}na.varint64read=NLt;function TLt(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?i|128:i)&255),!!s){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}na.varint64write=TLt;var pF=65536*65536;function DLt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,s=0;function n(o,a){let c=Number(t.slice(o,a));s*=r,i=i*r+c,i>=pF&&(s=s+(i/pF|0),i=i%pF)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}na.int64fromString=DLt;function OLt(t,e){if(e>>>0<=2097151)return""+(pF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,n=r+i*6777216+s*6710656,o=i+s*8147497,a=s*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(n,1)}na.int64toString=OLt;function PLt(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)}}na.varint32write=PLt;function QLt(){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}na.varint32read=QLt});var Jm=p(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.PbLong=Wm.PbULong=Wm.detectBi=void 0;var $_=mF(),pr;function YPe(){let t=new DataView(new ArrayBuffer(8));pr=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}Wm.detectBi=YPe;YPe();function KPe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var XPe=/^-?[0-9]+$/,gF=4294967296,AF=2147483648,yF=c
Line truncated
|
||||
`)}};GF.RpcError=cee});var lee=p(jF=>{"use strict";Object.defineProperty(jF,"__esModule",{value:!0});jF.mergeRpcOptions=void 0;var TQe=xr();function iMt(t,e){if(!e)return t;let r={};HF(t,r),HF(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=TQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=TQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},HF(t.meta,r.meta),HF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}jF.mergeRpcOptions=iMt;function HF(t,e){if(!t)return;let r=e;for(let[i,s]of Object.entries(t))s instanceof Date?r[i]=new Date(s.getTime()):Array.isArray(s)?r[i]=s.concat():r[i]=s}});var hee=p($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.Deferred=$y.DeferredState=void 0;var zf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(zf=$y.DeferredState||($y.DeferredState={}));var fee=class{constructor(e=!0){this._state=zf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==zf.PENDING)throw new Error(`cannot resolve ${zf[this.state].toLowerCase()}`);this._resolve(e),this._state=zf.RESOLVED}reject(e){if(this.state!==zf.PENDING)throw new Error(`cannot reject ${zf[this.state].toLowerCase()}`);this._reject(e),this._state=zf.REJECTED}resolvePending(e){this._state===zf.PENDING&&this.resolve(e)}rejectPending(e){this._state===zf.PENDING&&this.reject(e)}};$y.Deferred=fee});var pee=p(zF=>{"use strict";Object.defineProperty(zF,"__esModule",{value:!0});zF.RpcOutputStreamController=void 0;var DQe=hee(),Wy=xr(),dee=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){Wy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Wy.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){Wy.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(){Wy.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;Wy.assert(e,"bad state"),Wy.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 DQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;Wy.assert(i.state==DQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};zF.RpcOutputStreamController=dee});var Aee=p(wC=>{"use strict";var sMt=wC&&wC.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(wC,"__esModule",{value:!0});wC.UnaryCall=void 0;var mee=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return sMt(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:s}})}};wC.UnaryCall=mee});var yee=p(CC=>{"use strict";var nMt=CC&&CC.__awaiter||function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(CC,"__esModule",{value:!0});CC.ServerStreamingCal
Line truncated
|
||||
globstar while`,e,f,r,h,d),this.matchOne(e.slice(f),r.slice(h),i))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(n===a&&o===c)return!0;if(n===a)return i;if(o===c)return n===a-1&&e[n]==="";throw new Error("wtf?")}braceExpand(){return pke(this.pattern,this.options)}parse(e,r){KF(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return dl;if(e==="")return"";let s="",n=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=T=>T.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":s+=Zee,n=!0;break;case"?":s+=rte,n=!0;break;default:s+="\\"+u;break}this.debug("clearStateChar %j %j",u,s),u=!1}};for(let T=0,$;T<e.length&&($=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,s,$),o){if($==="/")return!1;fke[$]&&(s+="\\"),s+=$,o=!1;continue}switch($){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){s+=$;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,s,$),l){this.debug(" in class"),$==="!"&&T===h+1&&($="^"),s+=$;continue}this.debug("call clearStateChar %j",u),S(),u=$,i.noext&&S();continue;case"(":{if(l){s+="(";continue}if(!u){s+="\\(";continue}let O={type:u,start:T-1,reStart:s.length,open:lke[u].open,close:lke[u].close};this.debug(this.pattern," ",O),a.push(O),s+=O.open,O.start===0&&O.type!=="!"&&(y=!0,s+=w(e.slice(T+1))),this.debug("plType %j %j",u,s),u=!1;continue}case")":{let O=a[a.length-1];if(l||!O){s+="\\)";continue}a.pop(),S(),n=!0,m=O,s+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:s.length}));continue}case"|":{let O=a[a.length-1];if(l||!O){s+="\\|";continue}S(),s+="|",O.start===0&&O.type!=="!"&&(y=!0,s+=w(e.slice(T+1)));continue}case"[":if(S(),l){s+="\\"+$;continue}l=!0,h=T,f=s.length,s+=$;continue;case"]":if(T===h+1||!l){s+="\\"+$;continue}d=e.substring(h+1,T);try{RegExp("["+WMt(VMt(d))+"]"),s+=$}catch{s=s.substring(0,f)+"(?:$.)"}n=!0,l=!1;continue;default:S(),fke[$]&&!($==="^"&&l)&&(s+="\\"),s+=$;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,ete),s=s.substring(0,f)+"\\["+A[0],n=n||A[1]),m=a.pop();m;m=a.pop()){let T;T=s.slice(m.reStart+m.open.length),this.debug("setting tail",s,m),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(O,j,F)=>(F||(F="\\"),j+j+F+"|")),this.debug(`tail=%j
|
||||
%s`,T,T,m,s);let $=m.type==="*"?Zee:m.type==="?"?rte:"\\"+m.type;n=!0,s=s.slice(0,m.reStart)+$+"\\("+T}S(),o&&(s+="\\\\");let D=HMt[s.charAt(0)];for(let T=c.length-1;T>-1;T--){let $=c[T],O=s.slice(0,$.reStart),j=s.slice($.reStart,$.reEnd-8),F=s.slice($.reEnd),Z=s.slice($.reEnd-8,$.reEnd)+F,J=O.split(")").length,Te=O.split("(").length-J,he=F;for(let X=0;X<Te;X++)he=he.replace(/\)[+*?]?/,"");F=he;let Qe=F===""&&r!==ete?"(?:$|\\/)":"";s=O+j+F+Qe+Z}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=E()+s),r===ete)return[s,n];if(i.nocase&&!n&&(n=e.toUpperCase()!==e.toLowerCase()),!n)return zMt(e);let q=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",q),{_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,i=r.noglobstar?Zee:r.dot?qMt:GMt,s=r.nocase?"i":"",n=e.map(o=>(o=o.map(a=>typeof a=="string"?$Mt(a):a===dl?dl:a._src).reduce((a,c)=>(a[a.length-1]===dl&&c===dl||a.push(c),a),[]),o.forEach((a,c)=>{a!==dl||o[c-1]===dl||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=dl))}),o.filter(a=>a!==dl).join("/"))).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,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 i=this.options;tte.sep!=="/"&&(e=e.split(tte.sep).join("/")),e=e.split(hke),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let n;for(let o=e.length-1;o>=0&&(n=e[o],!n);o--);for(let o=0;o<s.length;o++){let a=s[o],c=e;if(i.matchBase&&a.length===1&&(c=[n]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ec.defaults(e).Minimatch}};ec.Minimatch=TC});var bke=p((Hzr,Eke)=>{Eke.exports=yke;var nte=require("fs"),{EventEmitter:JMt}=require("events"),{Minimatch:ste}=mke(),{resolve:YMt}=require("path");function KMt(t,e){return new Promise((r,i)=>{nte.readdir(t,{withFileTypes:!0},(s,n)=>{if(s)switch(s.code){case"ENOTDIR":e?i(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(s);break}else r(n)})})}function Ake(t,e){return new Promise((r,i)=>{(e?nte.stat:nte.lstat)(t,(n,o)=>{n?n.code==="ENOENT"?r(e?Ake(t,!1):null):r(null):r(o)})})}async function*gke(t,e,r,i,s,n){let o=await KMt(e+t,n);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await Ake(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?s(l)||(yield{relative:l,absolute:f,stats:h},yield*gke(u,e,r,i,s,!1)):yield{relative:l,absolute:f,stats:h}}}async function*XMt(t,e,r,i){yield*gke("",t,e,r,i,!0)}function ZMt(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 XF=class extends JMt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=ZMt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(n=>new ste(n,{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(n=>new ste(n,{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(n=>new ste(n,{dot:!0}))}this.iterator=XMt(YMt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(i)))&&!this.ignoreMatchers.some(s=>s.match(i))&&(!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 i=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(i+="/",s+="/"),this.options.stat?this.emit("match",{relative:i,absolute:s,stat:e.value.stats}):this.emit("match",{relative:i,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro
Line truncated
|
||||
`,x);x=M===-1?v.length:M}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let M=v.indexOf("*/",x);M!==-1?(x=M+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function M0(v){let I=mg(v.toString()),x=I.match(kl);if(x||(x=I.match(ku)),!x)throw new Error(`could not parse args in autoInject
|
||||
Polling status: ${S2e.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(C2e({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function _2e(t){let{poll:e,state:r,stateProxy:i,options:n,getOperationStatus:s,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:l,processResult:f,getError:h,updateState:d,setDelay:m,isDone:A,setErrorAsResult:y}=t,{operationLocation:g}=r.config;if(g!==void 0){let{response:E,status:w}=await sDt({poll:e,getOperationStatus:s,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:n});if(v2e({status:w,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!S2e.includes(w)){let S=l?.(E);S&&m(S);let N=a?.(E,r);if(N!==void 0){let M=g!==N;r.config.operationLocation=N,u?.(N,M)}else u?.(g,!1)}d?.(r,E)}}function R2e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function T2e(t){return t.headers.location}function N2e(t){return t.headers["operation-location"]}function D2e(t){return t.headers["azure-asyncoperation"]}function oDt(t){var e;let{location:r,requestMethod:i,requestPath:n,resourceLocationConfig:s}=t;switch(i){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function O2e(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:n}=t,s=N2e(e),o=D2e(e),a=R2e({operationLocation:s,azureAsyncOperation:o}),c=T2e(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:oDt({requestMethod:u,location:c,requestPath:i,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function P2e(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return tX(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Gy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function aDt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return P2e({status:r,statusCode:t.statusCode})}function cDt(t){var e,r;let{properties:i,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=i?.provisioningState)!==null&&r!==void 0?r:n;return P2e({status:s,statusCode:t.statusCode})}function tX(t){return t===202?"running":t<300?"succeeded":"failed"}function Q2e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?uDt(new Date(e)):r*1e3}}function k2e(t){let e=t.flatResponse.error;if(!e){Gy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Gy.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function uDt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function L2e(t){let{response:e,state:r,operationLocation:i}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return tX(e.rawResponse.statusCode);case"Body":return rX(e,r);default:return"running"}}let s=n();return s==="running"&&i===void 0?"succeeded":s}async function lDt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:n,setErrorAsResult:s}=t;return x2e({init:async()=>{let o=await n.sendInitialRequest(),a=O2e({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:i?({flatResponse:o},a)=>i(o,a):({flatResponse:o})=>o,getOperationStatus:L2e,setErrorAsResult:s})}function F2e({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return R2e({operationLocation:N2e(t),azureAsyncOperation:D2e(t)});case"ResourceLocation":return T2e(t);default:return}}function rX({rawResponse:t},e){var r;let i=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(i){case"OperationLocation":return aDt(t);case"ResourceLocation":return tX(t.statusCode);case"Body":return cDt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}function M2e({flatResponse:t},e){if(typeof t=="object"Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}rC.base64decode=$Dt;function WDt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=Qd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=Qd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=Qd[n|i>>6],e+=Qd[i&63],r=0;break}return r&&(e+=Qd[n],e+="=",r==1&&(e+="=")),e}rC.base64encode=WDt});var pDe=p(SL=>{"use strict";Object.defineProperty(SL,"__esModule",{value:!0});SL.utf8read=void 0;var hX=t=>String.fromCharCode.apply(String,t);function JDt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(hX(i)),n=0);return r.length?(n&&r.push(hX(i.slice(0,n))),r.join("")):hX(i.slice(0,n))}SL.utf8read=JDt});var j_=p(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.WireType=kf.mergeBinaryOptions=kf.UnknownFieldHandler=void 0;var YDt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(YDt=kf.UnknownFieldHandler||(kf.UnknownFieldHandler={}));function KDt(t,e){return Object.assign(Object.assign({},t),e)}kf.mergeBinaryOptions=KDt;var XDt;(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"})(XDt=kf.WireType||(kf.WireType={}))});var vL=p(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.varint32read=ua.varint32write=ua.int64toString=ua.int64fromString=ua.varint64write=ua.varint64read=void 0;function ZDt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ua.varint64read=ZDt;function eOt(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ua.varint64write=eOt;var BL=65536*65536;function tOt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=BL&&(n=n+(i/BL|0),i=i%BL)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ua.int64fromString=tOt;function rOt(t,e){if(e>>>0<=2097151)return""+(BL*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}ua.int64toString=rOt;function iOt(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)}}ua.varint32write=iOt;function nOt(){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}ua.varint32read=nOt});var eA=p(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.PbLong=Zm.PbULong=Zm.detectBi=void 0;var V_=vL(),pr;function mDe(){let t=new DataView(new ArrayBuffer(8));pr=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}Zm.detectBi=mDe;mDe();function ADe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var gDe=/^-?[0-9]+$/,_L=4294967296,xL=2147483648,RL=c
Line truncated
|
||||
`)}};ZL.RpcError=MX});var qX=p(tF=>{"use strict";Object.defineProperty(tF,"__esModule",{value:!0});tF.mergeRpcOptions=void 0;var $De=_i();function vPt(t,e){if(!e)return t;let r={};eF(t,r),eF(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=$De.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$De.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},eF(t.meta,r.meta),eF(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}tF.mergeRpcOptions=vPt;function eF(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var HX=p($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.Deferred=$y.DeferredState=void 0;var Mf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Mf=$y.DeferredState||($y.DeferredState={}));var GX=class{constructor(e=!0){this._state=Mf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Mf.PENDING)throw new Error(`cannot resolve ${Mf[this.state].toLowerCase()}`);this._resolve(e),this._state=Mf.RESOLVED}reject(e){if(this.state!==Mf.PENDING)throw new Error(`cannot reject ${Mf[this.state].toLowerCase()}`);this._reject(e),this._state=Mf.REJECTED}resolvePending(e){this._state===Mf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Mf.PENDING&&this.reject(e)}};$y.Deferred=GX});var VX=p(rF=>{"use strict";Object.defineProperty(rF,"__esModule",{value:!0});rF.RpcOutputStreamController=void 0;var WDe=HX(),Wy=_i(),jX=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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){Wy.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){Wy.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){Wy.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(){Wy.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;Wy.assert(e,"bad state"),Wy.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 WDe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Wy.assert(i.state==WDe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};rF.RpcOutputStreamController=jX});var $X=p(uC=>{"use strict";var xPt=uC&&uC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(uC,"__esModule",{value:!0});uC.UnaryCall=void 0;var zX=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return xPt(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:n}})}};uC.UnaryCall=zX});var JX=p(lC=>{"use strict";var _Pt=lC&&lC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(lC,"__esModule",{value:!0});lC.ServerStreamingCall=void 0;var WX=class{constructor(e
Line truncated
|
||||
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=s,n=1;break;case 1:r[i++]=o<<2|(s&48)>>4,o=s,n=2;break;case 2:r[i++]=(o&15)<<4|(s&60)>>2,o=s,n=3;break;case 3:r[i++]=(o&3)<<6|s,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)}xC.base64decode=YMt;function KMt(t){let e="",r=0,i,n=0;for(let s=0;s<t.length;s++)switch(i=t[s],r){case 0:e+=qd[i>>2],n=(i&3)<<4,r=1;break;case 1:e+=qd[n|i>>4],n=(i&15)<<2,r=2;break;case 2:e+=qd[n|i>>6],e+=qd[i&63],r=0;break}return r&&(e+=qd[n],e+="=",r==1&&(e+="=")),e}xC.base64encode=KMt});var Uke=p($F=>{"use strict";Object.defineProperty($F,"__esModule",{value:!0});$F.utf8read=void 0;var Nee=t=>String.fromCharCode.apply(String,t);function XMt(t){if(t.length<1)return"";let e=0,r=[],i=[],n=0,s,o=t.length;for(;e<o;)s=t[e++],s<128?i[n++]=s:s>191&&s<224?i[n++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[n++]=55296+(s>>10),i[n++]=56320+(s&1023)):i[n++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Nee(i)),n=0);return r.length?(n&&r.push(Nee(i.slice(0,n))),r.join("")):Nee(i.slice(0,n))}$F.utf8read=XMt});var IR=p(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.WireType=Hf.mergeBinaryOptions=Hf.UnknownFieldHandler=void 0;var ZMt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,i,n,s,o)=>{(e(i)?i[t.symbol]:i[t.symbol]=[]).push({no:n,wireType:s,data:o})},t.onWrite=(r,i,n)=>{for(let{no:s,wireType:o,data:a}of t.list(i))n.tag(s,o).raw(a)},t.list=(r,i)=>{if(e(r)){let n=r[t.symbol];return i?n.filter(s=>s.no==i):n}return[]},t.last=(r,i)=>t.list(r,i).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(ZMt=Hf.UnknownFieldHandler||(Hf.UnknownFieldHandler={}));function eUt(t,e){return Object.assign(Object.assign({},t),e)}Hf.mergeBinaryOptions=eUt;var tUt;(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"})(tUt=Hf.WireType||(Hf.WireType={}))});var JF=p(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.varint32read=ha.varint32write=ha.int64toString=ha.int64fromString=ha.varint64write=ha.varint64read=void 0;function rUt(){let t=0,e=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(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 i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}ha.varint64read=rUt;function iUt(t,e,r){for(let s=0;s<28;s=s+7){let o=t>>>s,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let i=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let s=3;s<31;s=s+7){let o=e>>>s,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}ha.varint64write=iUt;var WF=65536*65536;function nUt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,i=0,n=0;function s(o,a){let c=Number(t.slice(o,a));n*=r,i=i*r+c,i>=WF&&(n=n+(i/WF|0),i=i%WF)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,i,n]}ha.int64fromString=nUt;function sUt(t,e){if(e>>>0<=2097151)return""+(WF*e+(t>>>0));let r=t&16777215,i=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,s=r+i*6777216+n*6710656,o=i+n*8147497,a=n*2,c=1e7;s>=c&&(o+=Math.floor(s/c),s%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(l,f){let h=l?String(l):"";return f?"0000000".slice(h.length)+h:h}return u(a,0)+u(o,a)+u(s,1)}ha.int64toString=sUt;function oUt(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)}}ha.varint32write=oUt;function aUt(){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}ha.varint32read=aUt});var sA=p(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.PbLong=nA.PbULong=nA.detectBi=void 0;var SR=JF(),mr;function qke(){let t=new DataView(new ArrayBuffer(8));mr=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}nA.detectBi=qke;qke();function Gke(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Hke=/^-?[0-9]+$/,KF=4294967296,YF=2147483648,
Line truncated
|
||||
`)}};CM.RpcError=gte});var Ete=p(SM=>{"use strict";Object.defineProperty(SM,"__esModule",{value:!0});SM.mergeRpcOptions=void 0;var CLe=Tr();function Rqt(t,e){if(!e)return t;let r={};IM(t,r),IM(e,r);for(let i of Object.keys(e)){let n=e[i];switch(i){case"jsonOptions":r.jsonOptions=CLe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=CLe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},IM(t.meta,r.meta),IM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}SM.mergeRpcOptions=Rqt;function IM(t,e){if(!t)return;let r=e;for(let[i,n]of Object.entries(t))n instanceof Date?r[i]=new Date(n.getTime()):Array.isArray(n)?r[i]=n.concat():r[i]=n}});var wte=p(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.Deferred=oE.DeferredState=void 0;var Yf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Yf=oE.DeferredState||(oE.DeferredState={}));var bte=class{constructor(e=!0){this._state=Yf.PENDING,this._promise=new Promise((r,i)=>{this._resolve=r,this._reject=i}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Yf.PENDING)throw new Error(`cannot resolve ${Yf[this.state].toLowerCase()}`);this._resolve(e),this._state=Yf.RESOLVED}reject(e){if(this.state!==Yf.PENDING)throw new Error(`cannot reject ${Yf[this.state].toLowerCase()}`);this._reject(e),this._state=Yf.REJECTED}resolvePending(e){this._state===Yf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Yf.PENDING&&this.reject(e)}};oE.Deferred=bte});var Ite=p(BM=>{"use strict";Object.defineProperty(BM,"__esModule",{value:!0});BM.RpcOutputStreamController=void 0;var ILe=wte(),aE=Tr(),Cte=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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 i=r.indexOf(e);i>=0&&r.splice(i,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,i){aE.assert((e?1:0)+(r?1:0)+(i?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),i&&this.notifyComplete()}notifyMessage(e){aE.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){aE.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(){aE.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;aE.assert(e,"bad state"),aE.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 ILe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;aE.assert(i.state==ILe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};BM.RpcOutputStreamController=Cte});var Bte=p(kC=>{"use strict";var Tqt=kC&&kC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(kC,"__esModule",{value:!0});kC.UnaryCall=void 0;var Ste=class{constructor(e,r,i,n,s,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=n,this.response=s,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(i=>e?Promise.resolve(e(i)):i,i=>r?Promise.resolve(r(i)):Promise.reject(i))}promiseFinished(){return Tqt(this,void 0,void 0,function*(){let[e,r,i,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:i,trailers:n}})}};kC.UnaryCall=Ste});var xte=p(LC=>{"use strict";var Nqt=LC&&LC.__awaiter||function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};Object.defineProperty(LC,"__esModule",{value:!0});LC.ServerStreamingCal
Line truncated
|
||||
globstar while`,e,f,r,h,d),this.matchOne(e.slice(f),r.slice(h),i))return this.debug("globstar found match!",f,a,d),!0;if(d==="."||d===".."||!n.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,f,r,h),f===a))}var m;if(typeof u=="string"?(m=l===u,this.debug("string match",u,l,m)):(m=l.match(u),this.debug("pattern match",u,l,m)),!m)return!1}if(s===a&&o===c)return!0;if(s===a)return i;if(o===c)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return sFe(this.pattern,this.options)}parse(e,r){NM(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return El;if(e==="")return"";let n="",s=!1,o=!1,a=[],c=[],u,l=!1,f=-1,h=-1,d,m,A,y=e.charAt(0)===".",g=i.dot||y,E=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=T=>T.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":n+=cre,s=!0;break;case"?":n+=fre,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let T=0,V;T<e.length&&(V=e.charAt(T));T++){if(this.debug("%s %s %s %j",e,T,n,V),o){if(V==="/")return!1;rFe[V]&&(n+="\\"),n+=V,o=!1;continue}switch(V){case"/":return!1;case"\\":if(l&&e.charAt(T+1)==="-"){n+=V;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,T,n,V),l){this.debug(" in class"),V==="!"&&T===h+1&&(V="^"),n+=V;continue}this.debug("call clearStateChar %j",u),S(),u=V,i.noext&&S();continue;case"(":{if(l){n+="(";continue}if(!u){n+="\\(";continue}let D={type:u,start:T-1,reStart:n.length,open:tFe[u].open,close:tFe[u].close};this.debug(this.pattern," ",D),a.push(D),n+=D.open,D.start===0&&D.type!=="!"&&(y=!0,n+=w(e.slice(T+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let D=a[a.length-1];if(l||!D){n+="\\)";continue}a.pop(),S(),s=!0,m=D,n+=m.close,m.type==="!"&&c.push(Object.assign(m,{reEnd:n.length}));continue}case"|":{let D=a[a.length-1];if(l||!D){n+="\\|";continue}S(),n+="|",D.start===0&&D.type!=="!"&&(y=!0,n+=w(e.slice(T+1)));continue}case"[":if(S(),l){n+="\\"+V;continue}l=!0,h=T,f=n.length,n+=V;continue;case"]":if(T===h+1||!l){n+="\\"+V;continue}d=e.substring(h+1,T);try{RegExp("["+b3t(y3t(d))+"]"),n+=V}catch{n=n.substring(0,f)+"(?:$.)"}s=!0,l=!1;continue;default:S(),rFe[V]&&!(V==="^"&&l)&&(n+="\\"),n+=V;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,ure),n=n.substring(0,f)+"\\["+A[0],s=s||A[1]),m=a.pop();m;m=a.pop()){let T;T=n.slice(m.reStart+m.open.length),this.debug("setting tail",n,m),T=T.replace(/((?:\\{2}){0,64})(\\?)\|/g,(D,G,k)=>(k||(k="\\"),G+G+k+"|")),this.debug(`tail=%j
|
||||
%s`,T,T,m,n);let V=m.type==="*"?cre:m.type==="?"?fre:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+V+"\\("+T}S(),o&&(n+="\\\\");let N=m3t[n.charAt(0)];for(let T=c.length-1;T>-1;T--){let V=c[T],D=n.slice(0,V.reStart),G=n.slice(V.reStart,V.reEnd-8),k=n.slice(V.reEnd),Z=n.slice(V.reEnd-8,V.reEnd)+k,$=D.split(")").length,De=D.split("(").length-$,de=k;for(let Y=0;Y<De;Y++)de=de.replace(/\)[+*?]?/,"");k=de;let ke=k===""&&r!==ure?"(?:$|\\/)":"";n=D+G+k+ke+Z}if(n!==""&&s&&(n="(?=.)"+n),N&&(n=E()+n),r===ure)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return g3t(e);let M=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",M),{_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,i=r.noglobstar?cre:r.dot?d3t:p3t,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?E3t(a):a===El?El:a._src).reduce((a,c)=>(a[a.length-1]===El&&c===El||a.push(c),a),[]),o.forEach((a,c)=>{a!==El||o[c-1]===El||(c===0?o.length>1?o[c+1]="(?:\\/|"+i+"\\/)?"+o[c+1]:o[c]=i:c===o.length-1?o[c-1]+="(?:\\/|"+i+")?":(o[c-1]+="(?:\\/|\\/"+i+"\\/)"+o[c+1],o[c+1]=El))}),o.filter(a=>a!==El).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,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 i=this.options;lre.sep!=="/"&&(e=e.split(lre.sep).join("/")),e=e.split(iFe),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],c=e;if(i.matchBase&&a.length===1&&(c=[s]),this.matchOne(c,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return oc.defaults(e).Minimatch}};oc.Minimatch=zC});var fFe=p((oYr,lFe)=>{lFe.exports=uFe;var pre=require("fs"),{EventEmitter:w3t}=require("events"),{Minimatch:dre}=oFe(),{resolve:C3t}=require("path");function I3t(t,e){return new Promise((r,i)=>{pre.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function aFe(t,e){return new Promise((r,i)=>{(e?pre.stat:pre.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?aFe(t,!1):null):r(null):r(o)})})}async function*cFe(t,e,r,i,n,s){let o=await I3t(e+t,s);for(let a of o){let c=a.name;c===void 0&&(c=a,i=!0);let u=t+"/"+c,l=u.slice(1),f=e+"/"+l,h=null;(i||r)&&(h=await aFe(f,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(l)||(yield{relative:l,absolute:f,stats:h},yield*cFe(u,e,r,i,n,!1)):yield{relative:l,absolute:f,stats:h}}}async function*S3t(t,e,r,i){yield*cFe("",t,e,r,i,!0)}function B3t(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 DM=class extends w3t{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=B3t(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new dre(s,{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(s=>new dre(s,{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(s=>new dre(s,{dot:!0}))}this.iterator=S3t(C3t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!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 i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.erro
Line truncated
|
||||
`,x);x=L===-1?v.length:L}else if(O!==-1&&v[x]==="/"&&v[x+1]==="*"){let L=v.indexOf("*/",x);L!==-1?(x=L+2,O=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function X0(v){let I=Bg(v.toString()),x=I.match(Gl);if(x||(x=I.match(Gu)),!x)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+I);let[,P]=x;return P.replace(/\s/g,"").split(F0).map(M=>M.replace(pg,"").trim())}function Zp(v,I){var x={};return Object.keys(v).forEach(P=>{var M=v[P],G,V=d(M),W=!V&&M.length===1||V&&M.length===0;if(Array.isArray(M))G=[...M],M=G.pop(),x[P]=G.concat(G.length>0?ee:M);else if(W)x[P]=M;else{if(G=M0(M),M.length===0&&!V&&G.length===0)throw new Error("autoInject task functions require explicit parameters.");V||G.pop(),x[P]=G.concat(ee)}function ee(De,Qt){var jt=G.map(Lt=>De[Lt]);jt.push(Qt),y(M)(...jt)}}),Ql(x,I)}class U0{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):Ag(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):Ag(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:P}=x;I(x)&&this.removeLink(x),x=P}return this}}function Ag(v,I){v.length=1,v.head=v.tail=I}function em(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),M=0,G=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function W(je,Ne){V[je].push(Ne)}function ee(je,Ne){let ze=(...Ft)=>{De(je,ze),Ne(...Ft)};V[je].push(ze)}function De(je,Ne){if(!je)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Ne)return V[je]=[];V[je]=V[je].filter(ze=>ze!==Ne)}function Qt(je,...Ne){V[je].forEach(ze=>ze(...Ne))}var jt=!1;function Lt(je,Ne,ze,Ft){if(Ft!=null&&typeof Ft!="function")throw new Error("task callback must be a function");zt.started=!0;var Pr,ls;function wc(xg,...GB){if(xg)return ze?ls(xg):Pr();if(GB.length<=1)return Pr(GB[0]);Pr(GB)}var tb=zt._createTaskItem(je,ze?wc:Ft||wc);if(Ne?zt._tasks.unshift(tb):zt._tasks.push(tb),jt||(jt=!0,u(()=>{jt=!1,zt.process()})),ze||!Ft)return new Promise((xg,GB)=>{Pr=xg,ls=GB})}function bc(je){return function(Ne,...ze){M-=1;for(var Ft=0,Pr=je.length;Ft<Pr;Ft++){var ls=je[Ft],wc=G.indexOf(ls);wc===0?G.shift():wc>0&&G.splice(wc,1),ls.callback(Ne,...ze),Ne!=null&&Qt("error",Ne,ls.data)}M<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function eb(je){return je.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let vg=je=>Ne=>{if(!Ne)return new Promise((ze,Ft)=>{ee(je,(Pr,ls)=>{if(Pr)return Ft(Pr);ze(ls)})});De(je),W(je,Ne)};var qB=!1,zt={_tasks:new U0,_createTaskItem(je,Ne){return{data:je,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!1,!1,Ne)):Lt(je,!1,!1,Ne)},pushAsync(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!1,!0,Ne)):Lt(je,!1,!0,Ne)},kill(){De(),zt._tasks.empty()},unshift(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!0,!1,Ne)):Lt(je,!0,!1,Ne)},unshiftAsync(je,Ne){return Array.isArray(je)?eb(je)?void 0:je.map(ze=>Lt(ze,!0,!0,Ne)):Lt(je,!0,!0,Ne)},remove(je){zt._tasks.remove(je)},process(){if(!qB){for(qB=!0;!zt.paused&&M<zt.concurrency&&zt._tasks.length;){var je=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Ft=0;Ft<ze;Ft++){var Pr=zt._tasks.shift();je.push(Pr),G.push(Pr),Ne.push(Pr.data)}M+=1,zt._tasks.length===0&&Qt("empty"),M===zt.concurrency&&Qt("saturated");var ls=J(bc(je));P(Ne,ls)}qB=!1}},length(){return zt._tasks.length},running(){return M},workersList(){return G},idle(){return zt._tasks.length+M===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:vg("saturated")},unsaturated:{writable:!1,value:vg("unsaturated")},empty:{writable:!1,value:vg("empty")},drain:{writable:!1,value:vg("drain")},error:{writable:!1,value:vg("error")}}),zt}function tm(v,I){return em(v,1,I)}function Yn(v,I,x){return em(v,I,x)}function q0(v,I,x,P){P=T(P);var M=y(x);return Vr(v,(G,V,W)=>{M(I,G,(ee,De)=>{I=De,W(ee)})},G=>P(G,I))}var wa=g(q0,4);function gg(...v){var I=v.map(y);return function(...x){var P=this,M=x[x.length-1];return typeof M=="function"?x.pop():M=ba(),wa(I,x,(G,V,W)=>{V.apply(P,G.concat((ee,...De)=>{W(ee,De)}))},(G,V)=>M(G,...V)),M[un]}}function Be(...v){return gg(...v.reverse())}function U(v,I,x,P){return w(he(I),v,x,P)}var R=g(U,4);function H(v,I,x,P){var M=y(x);return R(v,I,(G,V)=>{M(G,(W,...ee)=>W?V(W):V(W,ee))},(G,V)=>{for(var W=[],ee=0;ee<V.length;ee++)V[ee]&&(W=W.concat(...V[ee]));return P(G,W)})}var z=g(H,4);function K(v,I,x){return z(v,1/0,I,x)}var re=g(K,3);function Se(v,I,x){return
Line truncated
|
||||
GFS4: `),console.error(t)});Jr[Zs]||(Nke=global[Zs]||[],Dke(Jr,Nke),Jr.close=(function(t){function e(r,i){return t.call(Jr,r,function(s){s||Tke(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,iM,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),Tke()}return Object.defineProperty(e,iM,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Yy(Jr[Zs]),require("assert").equal(Jr[Zs].length,0)}));var Nke;global[Zs]||Dke(global,Jr[Zs]);ute.exports=ate(cUt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(ute.exports=ate(Jr),Jr.__patched=!0);function ate(t){oUt(t),t.gracefulify=ate,t.createReadStream=D,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(O,j,F){return typeof j=="function"&&(F=j,j=null),Z(O,j,F);function Z(J,Te,he,Qe){return e(J,Te,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?DC([Z,[J,Te,he],X,Qe||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=s;function s(O,j,F,Z){return typeof F=="function"&&(Z=F,F=null),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return i(Te,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var n=t.appendFile;n&&(t.appendFile=o);function o(O,j,F,Z){return typeof F=="function"&&(Z=F,F=null),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return n(Te,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(O,j,F,Z){return typeof F=="function"&&(Z=F,F=0),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return a(Te,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(O,j,F){typeof j=="function"&&(F=j,j=null);var Z=l.test(process.version)?function(he,Qe,X,Re){return u(he,J(he,Qe,X,Re))}:function(he,Qe,X,Re){return u(he,Qe,J(he,Qe,X,Re))};return Z(O,j,F);function J(Te,he,Qe,X){return function(Re,Ce){Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?DC([Z,[Te,he,Qe],Re,X||Date.now(),Date.now()]):(Ce&&Ce.sort&&Ce.sort(),typeof Qe=="function"&&Qe.call(this,Re,Ce))}}}if(process.version.substr(0,4)==="v0.8"){var h=aUt(t);g=h.ReadStream,w=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(O){g=O},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return w},set:function(O){w=O},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(O){A=O},enumerable:!0,configurable:!0});var y=w;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(O){y=O},enumerable:!0,configurable:!0});function g(O,j){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var O=this;$(O.path,O.flags,O.mode,function(j,F){j?(O.autoClose&&O.destroy(),O.emit("error",j)):(O.fd=F,O.emit("open",F),O.read())})}function w(O,j){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var O=this;$(O.path,O.flags,O.mode,function(j,F){j?(O.destroy(),O.emit("error",j)):(O.fd=F,O.emit("open",F))})}function D(O,j){return new t.ReadStream(O,j)}function q(O,j){return new t.WriteStream(O,j)}var T=t.open;t.open=$;function $(O,j,F,Z){return typeof F=="function"&&(Z=F,F=null),J(O,j,F,Z);function J(Te,he,Qe,X,Re){return T(Te,he,Qe,function(Ce,_t){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?DC([J,[Te,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return t}function DC(t){Yy("ENQUEUE",t[0].name,t[1]),Jr[Zs].push(t),cte()}var rM;function Tke(){for(var t=Date.now(),e=0;e<Jr[Zs].length;++e)Jr[Zs][e].length>2&&(Jr[Zs][e][3]=t,Jr[Zs][e][4]=t);cte()}function cte(){if(clearTimeout(rM),rM=void 0,Jr[Zs].length!==0){var t=Jr[Zs].shift(),e=t[0],r=t[1],i=t[2],s=t[3],n=t[4];if(s===void 0)Yy("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Yy("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-n,c=Math.max(n-s,1),u=Math.min(c*1.2,100);a>=u?(Yy("RETRY",e.name,r),e.apply(null,r.concat([s]))):Jr[Zs].push(t)}rM===void 0&&(rM=setTimeout(cte,0))}}});var sM=p((Wzr,Oke)=>{"use strict";var Jf=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jf.writable=t=>Jf(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jf.readable=t=>Jf(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};Jte.exports={AggregateError:Wte,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...s)=>i?r(i):e(...s))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let s=e.shift();return i==="f"?s.toFixed(6):i==="j"?JSON.stringify(s):i==="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"{}"}},types:{isAsyncFunction(t){return t instanceof z5t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:V5t,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);BMe(e,"signal"),$5t(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[q5t]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[G5t](){var s;(s=i)===null||s===void 0||s()}}},AbortSignalAny:H5t.any||function(e){if(e.length===1)return e[0];let r=new j5t,i=()=>r.abort();return e.forEach(s=>{BMe(s,"signals"),s.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(s=>s.removeEventListener("abort",i))},{once:!0}),r.signal}};Jte.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var mo=p((nVr,_Me)=>{"use strict";var{format:W5t,inspect:vM,AggregateError:J5t}=Bn(),Y5t=globalThis.AggregateError||J5t,K5t=Symbol("kIsNodeError"),X5t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Z5t=/^([A-Z][a-z0-9]*)+$/,e8t="__node_internal_",xM={};function Zy(t,e){if(!t)throw new xM.ERR_INTERNAL_ASSERTION(e)}function vMe(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function t8t(t,e,r){if(typeof e=="function")return Zy(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return Zy(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:W5t(e,...r)}function tn(t,e,r){r||(r=Error);class i extends r{constructor(...n){super(t8t(t,e,n))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.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}}),i.prototype.code=t,i.prototype[K5t]=!0,xM[t]=i}function xMe(t){let e=e8t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function r8t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Y5t([e,t],e.message);return r.code=e.code,r}return t||e}var Yte=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xM.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)=>{Zy(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let s=[],n=[],o=[];for(let c of e)Zy(typeof c=="string","All expected entries have to be of type string"),X5t.includes(c)?s.push(c.toLowerCase()):Z5t.test(c)?n.push(c):(Zy(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(n.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),n.push("Object"))}if(s.length>0){switch(s.length){case 1:i+=`of type ${s[0]}`;break;case 2:i+=`one of type ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`one of type ${s.join(", ")}, or ${c}`}}(n.length>0||o.length>0)&&(i+=" or ")}if(n.length>0){switch(n.length){case 1:i+=`an instance of ${n[0]}`;break;case 2:i+=`an instance of ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`an instance of ${n.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
|
||||
`)),e.linkname&&(r+=vse(" linkpath="+e.linkname+`
|
||||
`));let i=e.pax;if(i)for(let s in i)r+=vse(" "+s+"="+i[s]+`
|
||||
`);return Ht.from(r)};wI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let s=parseInt(Ht.toString(e.subarray(0,i)),10);if(!s)return r;let n=Ht.toString(e.subarray(i+1,s-1)),o=n.indexOf("=");if(o===-1)return r;r[n.slice(0,o)]=n.slice(o+1),e=e.subarray(s)}return r};wI.encode=function(e){let r=Ht.alloc(512),i=e.name,s="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),Ht.byteLength(i)!==i.length)return null;for(;Ht.byteLength(i)>100;){let n=i.indexOf("/");if(n===-1)return null;s+=s?"/"+i.slice(0,n):i.slice(0,n),i=i.slice(n+1)}return Ht.byteLength(i)>100||Ht.byteLength(s)>155||e.linkname&&Ht.byteLength(e.linkname)>100?null:(Ht.write(r,i),Ht.write(r,mA(e.mode&yYt,6),100),Ht.write(r,mA(e.uid,6),108),Ht.write(r,mA(e.gid,6),116),BYt(e.size,r,124),Ht.write(r,mA(e.mtime.getTime()/1e3|0,11),136),r[156]=iq+IYt(e.type),e.linkname&&Ht.write(r,e.linkname,157),Ht.copy(xGe,r,CN),Ht.copy(mYt,r,xse),e.uname&&Ht.write(r,e.uname,265),e.gname&&Ht.write(r,e.gname,297),Ht.write(r,mA(e.devmajor||0,6),329),Ht.write(r,mA(e.devminor||0,6),337),s&&Ht.write(r,s,345),Ht.write(r,mA(RGe(r),6),148),r)};wI.decode=function(e,r,i){let s=e[156]===0?0:e[156]-iq,n=bI(e,0,100,r),o=pA(e,100,8),a=pA(e,108,8),c=pA(e,116,8),u=pA(e,124,12),l=pA(e,136,12),f=CYt(s),h=e[157]===0?null:bI(e,157,100,r),d=bI(e,265,32),m=bI(e,297,32),A=pA(e,329,8),y=pA(e,337,8),g=RGe(e);if(g===256)return null;if(g!==pA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(EYt(e))e[345]&&(n=bI(e,345,155,r)+"/"+n);else if(!bYt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return s===0&&n&&n[n.length-1]==="/"&&(s=5),{name:n,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function EYt(t){return Ht.equals(xGe,t.subarray(CN,CN+6))}function bYt(t){return Ht.equals(AYt,t.subarray(CN,CN+6))&&Ht.equals(gYt,t.subarray(xse,xse+2))}function wYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function CYt(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 IYt(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 _Ge(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function RGe(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 mA(t,e){return t=t.toString(8),t.length>e?pYt.slice(0,e)+" ":dYt.slice(0,e-t.length)+t+" "}function SYt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function BYt(t,e,r){t.toString(8).length>11?SYt(t,e,r):Ht.write(e,mA(t,11),r)}function vYt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let s=0,n=r.length;for(i=0;i<n;i++)s+=r[i]*Math.pow(256,i);return e?s:-1*s}function pA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return vYt(t);{for(;e<t.length&&t[e]===32;)e++;let i=wYt(_Ge(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(Ht.toString(t.subarray(e,i)),8)}}function bI(t,e,r,i){return Ht.toString(t.subarray(e,_Ge(t,0,e,e+r)),i)}function vse(t){let e=Ht.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var PGe=p((BWr,OGe)=>{var{Writable:xYt,Readable:_Yt,getStreamError:NGe}=Bse(),RYt=use(),TGe=rq(),CI=_se(),NYt=TGe.alloc(0),Nse=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new RYt,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 NYt;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return TGe.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Tse=class extends _Yt{constructor(e,r,i){super(),this.header=r,this.offset=i,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(NGe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=DGe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Dse=class extends x
Line truncated
|
||||
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4
Line truncated
|
||||
`).forEach(r=>{r.match(XZt)||r.match(ZZt)||(e+=r)}),Buffer.from(e,"base64")}function ter(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`+I);let[,O]=x;return O.replace(/\s/g,"").split(K0).map(L=>L.replace(Sg,"").trim())}function im(v,I){var x={};return Object.keys(v).forEach(O=>{var L=v[O],U,j=d(L),z=!j&&L.length===1||j&&L.length===0;if(Array.isArray(L))U=[...L],L=U.pop(),x[O]=U.concat(U.length>0?ee:L);else if(z)x[O]=L;else{if(U=X0(L),L.length===0&&!j&&U.length===0)throw new Error("autoInject task functions require explicit parameters.");j||U.pop(),x[O]=U.concat(ee)}function ee(Oe,kt){var Vt=U.map(Ft=>Oe[Ft]);Vt.push(kt),y(L)(...Vt)}}),ql(x,I)}class Z0{constructor(){this.head=this.tail=null,this.length=0}removeLink(I){return I.prev?I.prev.next=I.next:this.head=I.next,I.next?I.next.prev=I.prev:this.tail=I.prev,I.prev=I.next=null,this.length-=1,I}empty(){for(;this.head;)this.shift();return this}insertAfter(I,x){x.prev=I,x.next=I.next,I.next?I.next.prev=x:this.tail=x,I.next=x,this.length+=1}insertBefore(I,x){x.prev=I.prev,x.next=I,I.prev?I.prev.next=x:this.head=x,I.prev=x,this.length+=1}unshift(I){this.head?this.insertBefore(this.head,I):vg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):vg(this,I)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var I=this.head;I;)yield I.data,I=I.next}remove(I){for(var x=this.head;x;){var{next:O}=x;I(x)&&this.removeLink(x),x=O}return this}}function vg(v,I){v.length=1,v.head=v.tail=I}function nm(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var O=y(v),L=0,U=[];let j={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function z(Ve,Ne){j[Ve].push(Ne)}function ee(Ve,Ne){let ze=(...Mt)=>{Oe(Ve,ze),Ne(...Mt)};j[Ve].push(ze)}function Oe(Ve,Ne){if(!Ve)return Object.keys(j).forEach(ze=>j[ze]=[]);if(!Ne)return j[Ve]=[];j[Ve]=j[Ve].filter(ze=>ze!==Ne)}function kt(Ve,...Ne){j[Ve].forEach(ze=>ze(...Ne))}var Vt=!1;function Ft(Ve,Ne,ze,Mt){if(Mt!=null&&typeof Mt!="function")throw new Error("task callback must be a function");zt.started=!0;var Lr,mn;function xc(Lg,...iv){if(Lg)return ze?mn(Lg):Lr();if(iv.length<=1)return Lr(iv[0]);Lr(iv)}var pb=zt._createTaskItem(Ve,ze?xc:Mt||xc);if(Ne?zt._tasks.unshift(pb):zt._tasks.push(pb),Vt||(Vt=!0,u(()=>{Vt=!1,zt.process()})),ze||!Mt)return new Promise((Lg,iv)=>{Lr=Lg,mn=iv})}function vc(Ve){return function(Ne,...ze){L-=1;for(var Mt=0,Lr=Ve.length;Mt<Lr;Mt++){var mn=Ve[Mt],xc=U.indexOf(mn);xc===0?U.shift():xc>0&&U.splice(xc,1),mn.callback(Ne,...ze),Ne!=null&&kt("error",Ne,mn.data)}L<=zt.concurrency-zt.buffer&&kt("unsaturated"),zt.idle()&&kt("drain"),zt.process()}}function db(Ve){return Ve.length===0&&zt.idle()?(u(()=>kt("drain")),!0):!1}let kg=Ve=>Ne=>{if(!Ne)return new Promise((ze,Mt)=>{ee(Ve,(Lr,mn)=>{if(Lr)return Mt(Lr);ze(mn)})});Oe(Ve),z(Ve,Ne)};var rv=!1,zt={_tasks:new Z0,_createTaskItem(Ve,Ne){return{data:Ve,callback:Ne}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(Ve,Ne){return Array.isArray(Ve)?db(Ve)?void 0:Ve.map(ze=>Ft(ze,!1,!1,Ne)):Ft(Ve,!1,!1,Ne)},pushAsync(Ve,Ne){return Array.isArray(Ve)?db(Ve)?void 0:Ve.map(ze=>Ft(ze,!1,!0,Ne)):Ft(Ve,!1,!0,Ne)},kill(){Oe(),zt._tasks.empty()},unshift(Ve,Ne){return Array.isArray(Ve)?db(Ve)?void 0:Ve.map(ze=>Ft(ze,!0,!1,Ne)):Ft(Ve,!0,!1,Ne)},unshiftAsync(Ve,Ne){return Array.isArray(Ve)?db(Ve)?void 0:Ve.map(ze=>Ft(ze,!0,!0,Ne)):Ft(Ve,!0,!0,Ne)},remove(Ve){zt._tasks.remove(Ve)},process(){if(!rv){for(rv=!0;!zt.paused&&L<zt.concurrency&&zt._tasks.length;){var Ve=[],Ne=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Mt=0;Mt<ze;Mt++){var Lr=zt._tasks.shift();Ve.push(Lr),U.push(Lr),Ne.push(Lr.data)}L+=1,zt._tasks.length===0&&kt("empty"),L===zt.concurrency&&kt("saturated");var mn=$(vc(Ve));O(Ne,mn)}rv=!1}},length(){return zt._tasks.length},running(){return L},workersList(){return U},idle(){return zt._tasks.length+L===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:kg("saturated")},unsaturated:{writable:!1,value:kg("unsaturated")},empty:{writable:!1,value:kg("empty")},drain:{writable:!1,value:kg("drain")},error:{writable:!1,value:kg("error")}}),zt}function sm(v,I){return nm(v,1,I)}function to(v,I,x){return nm(v,I,x)}function eb(v,I,x,O){O=T(O);var L=y(x);return Jr(v,(U,j,z)=>{L(I,U,(ee,Oe)=>{I=Oe,z(ee)})},U=>O(U,I))}var _a=g(eb,4);function xg(...v){var I=v.map(y);return function(...x){var O=this,L=x[x.length-1];return typeof L=="function"?x.pop():L=xa(),_a(I,x,(U,j,z)=>{j.apply(O,U.concat((ee,...Oe)=>{z(ee,Oe)}))},(U,j)=>L(U,...j)),L[ds]}}function ve(...v){return xg(...v.reverse())}function F(v,I,x,O){return w(de(I),v,x,O)}var R=g(F,4);function q(v,I,x,O){var L=y(x);return R(v,I,(U,j)=>{L(U,(z,...ee)=>z?j(z):j(z,ee))},(U,j)=>{for(var z=[],ee=0;ee<j.length;ee++)j[ee]&&(z=z.concat(...j[ee]));return O(U,z)})}var H=g(q,4);function J(v,I,x){return H(v,1/0,I,x)}var re=g(J,3);function Be(v,I,x){return
Line truncated
|
||||
GFS4: `),console.error(t)});Zr[ns]||(wFe=global[ns]||[],IFe(Zr,wFe),Zr.close=(function(t){function e(r,i){return t.call(Zr,r,function(n){n||CFe(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,LM,{value:t}),e})(Zr.close),Zr.closeSync=(function(t){function e(r){t.apply(Zr,arguments),CFe()}return Object.defineProperty(e,LM,{value:t}),e})(Zr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){uE(Zr[ns]),require("assert").equal(Zr[ns].length,0)}));var wFe;global[ns]||IFe(global,Zr[ns]);yre.exports=Are(P3t(Zr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Zr.__patched&&(yre.exports=Are(Zr),Zr.__patched=!0);function Are(t){D3t(t),t.gracefulify=Are,t.createReadStream=N,t.createWriteStream=M;var e=t.readFile;t.readFile=r;function r(D,G,k){return typeof G=="function"&&(k=G,G=null),Z(D,G,k);function Z($,De,de,ke){return e($,De,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?$C([Z,[$,De,de],Y,ke||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(D,G,k,Z){return typeof k=="function"&&(Z=k,k=null),$(D,G,k,Z);function $(De,de,ke,Y,Te){return i(De,de,ke,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?$C([$,[De,de,ke,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,G,k,Z){return typeof k=="function"&&(Z=k,k=null),$(D,G,k,Z);function $(De,de,ke,Y,Te){return s(De,de,ke,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?$C([$,[De,de,ke,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,G,k,Z){return typeof k=="function"&&(Z=k,k=0),$(D,G,k,Z);function $(De,de,ke,Y,Te){return a(De,de,ke,function(Ie){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?$C([$,[De,de,ke,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var l=/^v[0-5]\./;function f(D,G,k){typeof G=="function"&&(k=G,G=null);var Z=l.test(process.version)?function(de,ke,Y,Te){return u(de,$(de,ke,Y,Te))}:function(de,ke,Y,Te){return u(de,ke,$(de,ke,Y,Te))};return Z(D,G,k);function $(De,de,ke,Y){return function(Te,Ie){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?$C([Z,[De,de,ke],Te,Y||Date.now(),Date.now()]):(Ie&&Ie.sort&&Ie.sort(),typeof ke=="function"&&ke.call(this,Te,Ie))}}}if(process.version.substr(0,4)==="v0.8"){var h=O3t(t);g=h.ReadStream,w=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(w.prototype=Object.create(m.prototype),w.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(D){g=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return w},set:function(D){w=D},enumerable:!0,configurable:!0});var A=g;Object.defineProperty(t,"FileReadStream",{get:function(){return A},set:function(D){A=D},enumerable:!0,configurable:!0});var y=w;Object.defineProperty(t,"FileWriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});function g(D,G){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function E(){var D=this;V(D.path,D.flags,D.mode,function(G,k){G?(D.autoClose&&D.destroy(),D.emit("error",G)):(D.fd=k,D.emit("open",k),D.read())})}function w(D,G){return this instanceof w?(m.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var D=this;V(D.path,D.flags,D.mode,function(G,k){G?(D.destroy(),D.emit("error",G)):(D.fd=k,D.emit("open",k))})}function N(D,G){return new t.ReadStream(D,G)}function M(D,G){return new t.WriteStream(D,G)}var T=t.open;t.open=V;function V(D,G,k,Z){return typeof k=="function"&&(Z=k,k=null),$(D,G,k,Z);function $(De,de,ke,Y,Te){return T(De,de,ke,function(Ie,Rt){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?$C([$,[De,de,ke,Y],Ie,Te||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}return t}function $C(t){uE("ENQUEUE",t[0].name,t[1]),Zr[ns].push(t),gre()}var kM;function CFe(){for(var t=Date.now(),e=0;e<Zr[ns].length;++e)Zr[ns][e].length>2&&(Zr[ns][e][3]=t,Zr[ns][e][4]=t);gre()}function gre(){if(clearTimeout(kM),kM=void 0,Zr[ns].length!==0){var t=Zr[ns].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)uE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){uE("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,c=Math.max(s-n,1),u=Math.min(c*1.2,100);a>=u?(uE("RETRY",e.name,r),e.apply(null,r.concat([n]))):Zr[ns].push(t)}kM===void 0&&(kM=setTimeout(gre,0))}}});var FM=p((fYr,SFe)=>{"use strict";var eh=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";eh.writable=t=>eh(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";eh.readable=t=>eh(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};nie.exports={AggregateError:iie,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="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"{}"}},types:{isAsyncFunction(t){return t instanceof gHt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:yHt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);Aqe(e,"signal"),EHt(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[dHt]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[pHt](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:mHt.any||function(e){if(e.length===1)return e[0];let r=new AHt,i=()=>r.abort();return e.forEach(n=>{Aqe(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};nie.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var bo=p((C7r,Eqe)=>{"use strict";var{format:bHt,inspect:oU,AggregateError:wHt}=Ts(),CHt=globalThis.AggregateError||wHt,IHt=Symbol("kIsNodeError"),SHt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],BHt=/^([A-Z][a-z0-9]*)+$/,vHt="__node_internal_",aU={};function hE(t,e){if(!t)throw new aU.ERR_INTERNAL_ASSERTION(e)}function gqe(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function xHt(t,e,r){if(typeof e=="function")return hE(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return hE(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:bHt(e,...r)}function os(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(xHt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.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}}),i.prototype.code=t,i.prototype[IHt]=!0,aU[t]=i}function yqe(t){let e=vHt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function _Ht(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new CHt([e,t],e.message);return r.code=e.code,r}return t||e}var sie=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new aU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};os("ERR_ASSERTION","%s",Error);os("ERR_INVALID_ARG_TYPE",(t,e,r)=>{hE(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let c of e)hE(typeof c=="string","All expected entries have to be of type string"),SHt.includes(c)?n.push(c.toLowerCase()):BHt.test(c)?s.push(c):(hE(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){let c=n.indexOf("object");c!==-1&&(n.splice(n,c,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let c=n.pop();i+=`one of type ${n.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let c=s.pop();i+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let c=o.pop();i+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=Line truncated
|
||||
`)),e.linkname&&(r+=Qse(" linkpath="+e.linkname+`
|
||||
`));let i=e.pax;if(i)for(let n in i)r+=Qse(" "+n+"="+i[n]+`
|
||||
`);return jt.from(r)};kI.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(jt.toString(e.subarray(0,i)),10);if(!n)return r;let s=jt.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};kI.encode=function(e){let r=jt.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),jt.byteLength(i)!==i.length)return null;for(;jt.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return jt.byteLength(i)>100||jt.byteLength(n)>155||e.linkname&&jt.byteLength(e.linkname)>100?null:(jt.write(r,i),jt.write(r,BA(e.mode&jKt,6),100),jt.write(r,BA(e.uid,6),108),jt.write(r,BA(e.gid,6),116),KKt(e.size,r,124),jt.write(r,BA(e.mtime.getTime()/1e3|0,11),136),r[156]=Lq+JKt(e.type),e.linkname&&jt.write(r,e.linkname,157),jt.copy(y6e,r,ZT),jt.copy(qKt,r,kse),e.uname&&jt.write(r,e.uname,265),e.gname&&jt.write(r,e.gname,297),jt.write(r,BA(e.devmajor||0,6),329),jt.write(r,BA(e.devminor||0,6),337),n&&jt.write(r,n,345),jt.write(r,BA(b6e(r),6),148),r)};kI.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Lq,s=QI(e,0,100,r),o=SA(e,100,8),a=SA(e,108,8),c=SA(e,116,8),u=SA(e,124,12),l=SA(e,136,12),f=WKt(n),h=e[157]===0?null:QI(e,157,100,r),d=QI(e,265,32),m=QI(e,297,32),A=SA(e,329,8),y=SA(e,337,8),g=b6e(e);if(g===256)return null;if(g!==SA(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(VKt(e))e[345]&&(s=QI(e,345,155,r)+"/"+s);else if(!zKt(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:c,size:u,mtime:new Date(1e3*l),type:f,linkname:h,uname:d,gname:m,devmajor:A,devminor:y,pax:null}};function VKt(t){return jt.equals(y6e,t.subarray(ZT,ZT+6))}function zKt(t){return jt.equals(GKt,t.subarray(ZT,ZT+6))&&jt.equals(HKt,t.subarray(kse,kse+2))}function $Kt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function WKt(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 JKt(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 E6e(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function b6e(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 BA(t,e){return t=t.toString(8),t.length>e?UKt.slice(0,e)+" ":MKt.slice(0,e-t.length)+t+" "}function YKt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function KKt(t,e,r){t.toString(8).length>11?YKt(t,e,r):jt.write(e,BA(t,11),r)}function XKt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function SA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return XKt(t);{for(;e<t.length&&t[e]===32;)e++;let i=$Kt(E6e(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(jt.toString(t.subarray(e,i)),8)}}function QI(t,e,r,i){return jt.toString(t.subarray(e,E6e(t,0,e,e+r)),i)}function Qse(t){let e=jt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var B6e=p((GXr,S6e)=>{var{Writable:ZKt,Readable:eXt,getStreamError:w6e}=Pse(),tXt=yse(),C6e=kq(),LI=Lse(),rXt=C6e.alloc(0),Mse=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new tXt,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 rXt;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return C6e.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},Use=class extends eXt{constructor(e,r,i){super(),this.header=r,this.offset=i,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(w6e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=I6e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},qse=class extends Z
Line truncated
|
||||
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4
Line truncated
|
||||
`).forEach(r=>{r.match(Srr)||r.match(Brr)||(e+=r)}),Buffer.from(e,"base64")}function xrr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}});var Hq=p(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});RA.SHA2_HASH_ALGOS=RA.RSA_SIGNATURE_ALGOS=RA.ECDSA_SIGNATURE_ALGOS=void 0;RA.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};RA.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};RA.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var Rne=p(jq=>{"use strict";Object.defineProperty(jq,"__esModule",{value:!0});jq.RFC3161TimestampVerificationError=void 0;var _ne=class extends Error{};jq.RFC3161TimestampVerificationError=_ne});var Wje=p(hh=>{"use strict";var rer=hh&&hh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),ier=hh&&hh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ser=hh&&hh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&rer(r,e,i[s]);return ier(r,e),r}})();Object.defineProperty(hh,"__esModule",{value:!0});hh.TSTInfo=void 0;var $je=ser(MI()),ner=Hq(),oer=Rne(),Nne=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return ner.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=$je.digest(this.messageImprintHashAlgorithm,e);if(!$je.bufferEqual(r,this.messageImprintHashedMessage))throw new oer.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};hh.TSTInfo=Nne});var Yje=p(dh=>{"use strict";var aer=dh&&dh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),cer=dh&&dh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uer=dh&&dh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&aer(r,e,i[s]);return cer(r,e),r}})();Object.defineProperty(dh,"__esModule",{value:!0});dh.RFC3161Timestamp=void 0;var ler=Uq(),Tne=uer(MI()),Jje=Hq(),MN=Rne(),fer=Wje(),her="1.2.840.113549.1.7.2",der="1.2.840.113549.1.9.16.1.4",per="1.2.840.113549.1.9.4",Dne=class t{root;constructor(e){this.root=e}static parse(e){let r=ler.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Jje.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Jje.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new fer.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new MN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==her)throw new MN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==der)throw new MN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Tne.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Tne.bufferEqual(e,r))throw new MN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
`)}});var I3=p(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.SHA2_HASH_ALGOS=MA.RSA_SIGNATURE_ALGOS=MA.ECDSA_SIGNATURE_ALGOS=void 0;MA.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};MA.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};MA.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var Foe=p(S3=>{"use strict";Object.defineProperty(S3,"__esModule",{value:!0});S3.RFC3161TimestampVerificationError=void 0;var Loe=class extends Error{};S3.RFC3161TimestampVerificationError=Loe});var Mze=p(gh=>{"use strict";var _rr=gh&&gh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Rrr=gh&&gh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Trr=gh&&gh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&_rr(r,e,i[n]);return Rrr(r,e),r}})();Object.defineProperty(gh,"__esModule",{value:!0});gh.TSTInfo=void 0;var Fze=Trr(eS()),Nrr=I3(),Drr=Foe(),Moe=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return Nrr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Fze.digest(this.messageImprintHashAlgorithm,e);if(!Fze.bufferEqual(r,this.messageImprintHashedMessage))throw new Drr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};gh.TSTInfo=Moe});var qze=p(yh=>{"use strict";var Orr=yh&&yh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Prr=yh&&yh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qrr=yh&&yh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&Orr(r,e,i[n]);return Prr(r,e),r}})();Object.defineProperty(yh,"__esModule",{value:!0});yh.RFC3161Timestamp=void 0;var krr=b3(),Uoe=Qrr(eS()),Uze=I3(),AN=Foe(),Lrr=Mze(),Frr="1.2.840.113549.1.7.2",Mrr="1.2.840.113549.1.9.16.1.4",Urr="1.2.840.113549.1.9.4",qoe=class t{root;constructor(e){this.root=e}static parse(e){let r=krr.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return Uze.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Uze.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Lrr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new AN.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Frr)throw new AN.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Mrr)throw new AN.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=Uoe.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!Uoe.bufferEqual(e,r))throw new AN.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
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 p9e=p(d9e=>{"use strict";var Aae=dp().Buffer;d9e._dbcs=pp;var on=-1,h9e=-2,gu=-10,_o=-1e3,KI=new Array(256),iT=-1;for(_3=0;_3<256;_3++)KI[_3]=on;var _3;function pp(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]=KI.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(KI.slice(0));var n=this.decodeTables.length;this.decodeTables.push(KI.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[_o-o[i]],c=48;c<=57;c++){if(a[c]===on)a[c]=_o-s;else if(a[c]>_o)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[_o-a[c]],l=129;l<=254;l++){if(u[l]===on)u[l]=_o-n;else{if(u[l]===_o-n)continue;if(u[l]>_o)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[_o-u[l]],h=48;h<=57;h++)f[h]===on&&(f[h]=h9e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
|
||||
\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 s$e=p(n$e=>{"use strict";var Bce=gp().Buffer;n$e._dbcs=yp;var ls=-1,i$e=-2,Iu=-10,Oo=-1e3,hS=new Array(256),PN=-1;for(c4=0;c4<256;c4++)hS[c4]=ls;var c4;function yp(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]=hS.slice(0),this.decodeTableSeq=[];for(var i=0;i<r.length;i++)this._addDecodeChunk(r[i]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(hS.slice(0));var s=this.decodeTables.length;this.decodeTables.push(hS.slice(0));for(var o=this.decodeTables[0],i=129;i<=254;i++)for(var a=this.decodeTables[Oo-o[i]],c=48;c<=57;c++){if(a[c]===ls)a[c]=Oo-n;else if(a[c]>Oo)throw new Error("gb18030 decode tables conflict at byte 2");for(var u=this.decodeTables[Oo-a[c]],l=129;l<=254;l++){if(u[l]===ls)u[l]=Oo-s;else{if(u[l]===Oo-s)continue;if(u[l]>Oo)throw new Error("gb18030 decode tables conflict at byte 3")}for(var f=this.decodeTables[Oo-u[l]],h=48;h<=57;h++)f[h]===ls&&(f[h]=i$e)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(t.encodeSkipVals)for(var i=0;i<t.encodeSkipValLine truncated
|
||||
Wanted: ${this.expectedSize}
|
||||
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Ep=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let s=this.source.match(i?gir:Air);if(!s||i&&!Uae.includes(s[1]))return;this.algorithm=s[1],this.digest=s[2];let n=s[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=uc(e,r);if(!i)return!1;if(i.isIntegrity){let s=i.pickAlgorithm(r,[this.algorithm]);if(!s)return!1;let n=i[s].find(o=>o.digest===this.digest);return n||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(Uae.includes(this.algorithm)&&this.digest.match(mir)&&this.options.every(r=>r.match(yir)))?"":`${this.algorithm}-${this.digest}${fT(this.options)}`}};function CVe(t,e,r,i){let s=t!=="",n=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Ep.prototype.toString.call(i[u],r);l&&(n=!0,o+=l,o+=e)}let c=Ep.prototype.toString.call(i[a],r);return c&&(n=!0,o+=c),s&&n?t+e+o:t+o}var $E=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let s of Uae)this[s]&&(i=CVe(i,r,e,this[s]))}else for(let s of Object.keys(this))i=CVe(i,r,e,this[s]);return i}concat(e,r){let i=typeof e=="string"?e:uT(e,r);return uc(`${this.toString(r)} ${i}`,r)}hexDigest(){return uc(this,{single:!0}).hexDigest()}merge(e,r){let i=uc(e,r);for(let s in i)if(this[s]){if(!this[s].find(n=>i[s].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[s]=i[s]}match(e,r){let i=uc(e,r);if(!i)return!1;let s=i.pickAlgorithm(r,Object.keys(this));return!!s&&this[s]&&i[s]&&this[s].find(n=>i[s].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||vir,s=Object.keys(this).filter(n=>r?.length?r.includes(n):!0);return s.length?s.reduce((n,o)=>i(n,o)||n):null}};Ch.exports.parse=uc;function uc(t,e){if(!t)return null;if(typeof t=="string")return Mae(t,e);if(t.algorithm&&t.digest){let r=new $E;return r[t.algorithm]=[t],Mae(uT(r,e),e)}else return Mae(uT(t,e),e)}function Mae(t,e){if(e?.single)return new Ep(t,e);let r=t.trim().split(/\s+/).reduce((i,s)=>{let n=new Ep(s,e);if(n.algorithm&&n.digest){let o=n.algorithm;i[o]||(i[o]=[]),i[o].push(n)}return i},new $E);return r.isEmpty()?null:r}Ch.exports.stringify=uT;function uT(t,e){return t.algorithm&&t.digest?Ep.prototype.toString.call(t,e):typeof t=="string"?uT(uc(t,e),e):$E.prototype.toString.call(t,e)}Ch.exports.fromHex=Eir;function Eir(t,e,r){let i=fT(r?.options);return uc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Ch.exports.fromData=bir;function bir(t,e){let r=e?.algorithms||[...Gae],i=fT(e?.options);return r.reduce((s,n)=>{let o=lT.createHash(n).update(t).digest("base64"),a=new Ep(`${n}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new $E)}Ch.exports.fromStream=wir;function wir(t,e){let r=Hae(e);return new Promise((i,s)=>{t.pipe(r),t.on("error",s),r.on("error",s);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>i(n)),r.resume()})}Ch.exports.checkData=Cir;function Cir(t,e,r){if(e=uc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),s=lT.createHash(i).update(t).digest("base64"),n=uc({algorithm:i,digest:s}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
|
||||
Found: ${this.size}`);i.code="EBADSIZE",i.found=this.size,i.expected=this.expectedSize,i.sri=this.sri,this.emit("error",i)}else if(this.sri&&!r){let i=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);i.code="EINTEGRITY",i.found=e,i.expected=this.digests,i.algorithm=this.algorithm,i.sri=this.sri,this.emit("error",i)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#i=r,this.emit("verified",r))}},Ip=class{get isHash(){return!0}constructor(e,r){let i=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(i?Hsr:Gsr);if(!n||i&&!Jce.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let s=n[3];s&&(this.options=s.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let i=mc(e,r);if(!i)return!1;if(i.isIntegrity){let n=i.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let s=i[n].find(o=>o.digest===this.digest);return s||!1}return i.digest===this.digest?i:!1}toString(e){return e?.strict&&!(Jce.includes(this.algorithm)&&this.digest.match(qsr)&&this.options.every(r=>r.match(jsr)))?"":`${this.algorithm}-${this.digest}${GN(this.options)}`}};function dWe(t,e,r,i){let n=t!=="",s=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=Ip.prototype.toString.call(i[u],r);l&&(s=!0,o+=l,o+=e)}let c=Ip.prototype.toString.call(i[a],r);return c&&(s=!0,o+=c),n&&s?t+e+o:t+o}var o0=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",i="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of Jce)this[n]&&(i=dWe(i,r,e,this[n]))}else for(let n of Object.keys(this))i=dWe(i,r,e,this[n]);return i}concat(e,r){let i=typeof e=="string"?e:UN(e,r);return mc(`${this.toString(r)} ${i}`,r)}hexDigest(){return mc(this,{single:!0}).hexDigest()}merge(e,r){let i=mc(e,r);for(let n in i)if(this[n]){if(!this[n].find(s=>i[n].find(o=>s.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=i[n]}match(e,r){let i=mc(e,r);if(!i)return!1;let n=i.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&i[n]&&this[n].find(s=>i[n].find(o=>s.digest===o.digest))||!1}pickAlgorithm(e,r){let i=e?.pickAlgorithm||Xsr,n=Object.keys(this).filter(s=>r?.length?r.includes(s):!0);return n.length?n.reduce((s,o)=>i(s,o)||s):null}};xh.exports.parse=mc;function mc(t,e){if(!t)return null;if(typeof t=="string")return Wce(t,e);if(t.algorithm&&t.digest){let r=new o0;return r[t.algorithm]=[t],Wce(UN(r,e),e)}else return Wce(UN(t,e),e)}function Wce(t,e){if(e?.single)return new Ip(t,e);let r=t.trim().split(/\s+/).reduce((i,n)=>{let s=new Ip(n,e);if(s.algorithm&&s.digest){let o=s.algorithm;i[o]||(i[o]=[]),i[o].push(s)}return i},new o0);return r.isEmpty()?null:r}xh.exports.stringify=UN;function UN(t,e){return t.algorithm&&t.digest?Ip.prototype.toString.call(t,e):typeof t=="string"?UN(mc(t,e),e):o0.prototype.toString.call(t,e)}xh.exports.fromHex=Vsr;function Vsr(t,e,r){let i=GN(r?.options);return mc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}xh.exports.fromData=zsr;function zsr(t,e){let r=e?.algorithms||[...Kce],i=GN(e?.options);return r.reduce((n,s)=>{let o=qN.createHash(s).update(t).digest("base64"),a=new Ip(`${s}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new o0)}xh.exports.fromStream=$sr;function $sr(t,e){let r=Xce(e);return new Promise((i,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let s;r.on("integrity",o=>{s=o}),r.on("end",()=>i(s)),r.resume()})}xh.exports.checkData=Wsr;function Wsr(t,e,r){if(e=mc(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let i=e.pickAlgorithm(r),n=qN.createHash(i).update(t).digest("base64"),s=mc({algorithm:i,digest:n}),o=s.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
|
||||
Wanted: ${r.size}
|
||||
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=i,a.sri=e,a}}Ch.exports.checkStream=Iir;function Iir(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=uc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Hae(r);return new Promise((s,n)=>{t.pipe(i),t.on("error",n),i.on("error",n);let o;i.on("verified",a=>{o=a}),i.on("end",()=>s(o)),i.resume()})}Ch.exports.integrityStream=Hae;function Hae(t=Object.create(null)){return new qae(t)}Ch.exports.create=Sir;function Sir(t){let e=t?.algorithms||[...Gae],r=fT(t?.options),i=e.map(lT.createHash);return{update:function(s,n){return i.forEach(o=>o.update(s,n)),this},digest:function(){return e.reduce((n,o)=>{let a=i.shift().digest("base64"),c=new Ep(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new $E)}}}var Bir=lT.getHashes(),IVe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>Bir.includes(t));function vir(t,e){return IVe.indexOf(t.toLowerCase())>=IVe.indexOf(e.toLowerCase())?t:e}});var zae=p((qKr,_Ve)=>{var SVe=Dae(),BVe=Fae(),xir=Ih(),vVe={shared:!1,ignoreCargoCult:!0},_ir={status:200,headers:{}},tS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},xVe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},jae=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=tS(r),this.response=xVe(i),this.options=s,this.policy=new SVe(this.request,this.response,vVe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new SVe(tS(e),_ir,vVe).storable()}satisfies(e){let r=tS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new BVe(this.request),s=new BVe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(s.languages())||JSON.stringify(i.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?xir.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=tS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=tS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=tS(e),s=xVe(r);return!this.policy.revalidatedPolicy(i,s).modified}};_Ve.exports=jae});var NVe=p((GKr,RVe)=>{var Vae=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};RVe.exports={NotCachedError:Vae}});var UVe=p((HKr,MVe)=>{"use strict";var TVe=typeof process=="object"&&process?process:{stdout:null,stderr:null},Rir=require("events"),DVe=require("stream"),OVe=require("string_decoder").StringDecoder,bp=Symbol("EOF"),wp=Symbol("maybeEmitEnd"),LA=Symbol("emittedEnd"),G3=Symbol("emittingEnd"),hT=Symbol("emittedError"),H3=Symbol("closed"),PVe=Symbol("read"),j3=Symbol("flush"),QVe=Symbol("flushChunk"),da=Symbol("encoding"),Cp=Symbol("decoder"),z3=Symbol("flowing"),dT=Symbol("paused"),rS=Symbol("resume"),ks=Symbol("bufferLength"),$ae=Symbol("bufferPush"),Wae=Symbol("bufferShift"),Fn=Symbol("objectMode"),Mn=Symbol("destroyed"),Jae=Symbol("emitData"),kVe=Symbol("emitEnd"),Yae=Symbol("emitEnd2"),Ip=Symbol("async"),pT=t=>Promise.resolve().then(t),LVe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Nir=LVe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Tir=LVe&&Symbol.iterator||Symbol("iterator not implemented"),Dir=t=>t==="end"||t==="finish"||t==="prefinish",Oir=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Pir=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),V3=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[rS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Kae=class extends V3{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=s=>r.emit("error",s),e.on("error",this.proxyErrors)}};MVe.exports=class FVe extends DVe{constructor(e){super(),this[z3]=!1,this[dT]=!1,this.pipes=[],this.buffer=[],this[Fn]=e&&e.objectMode||!1,this[Fn]?this[da]=null:this[da]=e&
Line truncated
|
||||
`+o.map(h=>{let d=JSON.stringify(h);return`${g4(d)} ${d}`}).join(`
|
||||
`),c=async()=>{let h=dcr(Bh.join(t,"tmp"),i.tmpPrefix);return await Vce(Bh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return YJe(h.target,{recursive:!0,force:!0})},l=async h=>{await lcr(h.target,a,{flag:"wx"}),await Vce(Bh.dirname(s),{recursive:!0}),await gcr(h.target,s),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>y4(t,h,!0))}fc.exports.insert=KJe;async function KJe(t,e,r,i={}){let{metadata:s,size:n,time:o}=i,a=TT(t,e),c={key:e,integrity:r&&hcr.stringify(r),time:o||Date.now(),size:n,metadata:s};try{await Vce(Bh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await acr(a,`
|
||||
${g4(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return y4(t,c)}fc.exports.find=Ecr;async function Ecr(t,e){let r=TT(t,e);try{return(await A4(r)).reduce((s,n)=>n&&n.key===e?y4(t,n):s,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}fc.exports.delete=bcr;function bcr(t,e,r={}){if(!r.removeFully)return KJe(t,e,null,r);let i=TT(t,e);return YJe(i,{recursive:!0,force:!0})}fc.exports.lsStream=XJe;function XJe(t){let e=$ce(t),r=new fcr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(m4(),p4)),s=await zce(e);return await i(s,async n=>{let o=Bh.join(e,n),a=await zce(o);await i(a,async c=>{let u=Bh.join(o,c),l=await zce(u);await i(l,async f=>{let h=Bh.join(u,f);try{let m=(await A4(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=y4(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:jce})},{concurrency:jce})},{concurrency:jce}),r.end(),r}).catch(i=>r.emit("error",i)),r}fc.exports.ls=wcr;async function wcr(t){return(await XJe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}fc.exports.bucketEntries=A4;async function A4(t,e){let r=await ccr(t,"utf8");return Ccr(r,e)}function Ccr(t){let e=[];return t.split(`
|
||||
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||g4(i[1])!==i[0])return;let s;try{s=JSON.parse(i[1])}catch{}s&&e.push(s)}),e}fc.exports.bucketDir=$ce;function $ce(t){return Bh.join(t,`index-v${Acr}`)}fc.exports.bucketPath=TT;function TT(t,e){let r=ZJe(e);return Bh.join.apply(Bh,[$ce(t)].concat(mcr(r)))}fc.exports.hashKey=ZJe;function ZJe(t){return eYe(t,"sha256")}fc.exports.hashEntry=g4;function g4(t){return eYe(t,"sha1")}function eYe(t,e){return ocr.createHash(e).update(t).digest("hex")}function y4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?pcr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function zce(t){return ucr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var pS=p(b4=>{"use strict";Object.defineProperty(b4,"__esModule",{value:!0});b4.LRUCache=void 0;var Icr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,rYe=new Set,Wce=typeof process=="object"&&process?process:{},iYe=(t,e,r,i)=>{typeof Wce.emitWarning=="function"?Wce.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},E4=globalThis.AbortController,tYe=globalThis.AbortSignal;if(typeof E4>"u"){tYe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},E4=class{constructor(){e()}signal=new tYe;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let s of this.signal._onabort)s(i);this.signal.onabort?.(i)}}};let t=Wce.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,iYe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Scr=t=>!rYe.has(t),MA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),sYe=t=>MA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?dS:null:null,dS=class extends Array{constructor(e){super(e),this.fill(0)}},Jce=class t{heap;length;static#e=!1;static create(e){let r=sYe(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Yce=class t{#e;#t;#i;#r;#s;#n;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#x;#p;#I;#_;#E;#o;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,s,n)=>e.#j(r,i,s,n),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#N(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#s}constructor(e){let{max:r=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:T,perf:$}=e;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=$??Icr,r!==0&&!MA(r))throw new TypeError("max option must be a nonnegative integer");let O=r?sYe(r):Array;if(!O)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=g,this.#_=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new O(r),this.#b=new O(r),this.#A=0,this.#w=0,this.#v=Jce.create(r),this.#a=0,this.#c=0,typeof u=="fu
Line truncated
|
||||
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${i}: Wanted ${e}, but got ${s}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=s,a.expected=e,a.algorithm=i,a.sri=e,a}}xh.exports.checkStream=Jsr;function Jsr(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=mc(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let i=Xce(r);return new Promise((n,s)=>{t.pipe(i),t.on("error",s),i.on("error",s);let o;i.on("verified",a=>{o=a}),i.on("end",()=>n(o)),i.resume()})}xh.exports.integrityStream=Xce;function Xce(t=Object.create(null)){return new Yce(t)}xh.exports.create=Ysr;function Ysr(t){let e=t?.algorithms||[...Kce],r=GN(t?.options),i=e.map(qN.createHash);return{update:function(n,s){return i.forEach(o=>o.update(n,s)),this},digest:function(){return e.reduce((s,o)=>{let a=i.shift().digest("base64"),c=new Ip(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;s[u]||(s[u]=[]),s[u].push(c)}return s},new o0)}}}var Ksr=qN.getHashes(),pWe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>Ksr.includes(t));function Xsr(t,e){return pWe.indexOf(t.toLowerCase())>=pWe.indexOf(e.toLowerCase())?t:e}});var eue=p((nii,EWe)=>{var mWe=qce(),AWe=$ce(),Zsr=_h(),gWe={shared:!1,ignoreCargoCult:!0},eor={status:200,headers:{}},AS=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},yWe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Zce=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=AS(r),this.response=yWe(i),this.options=n,this.policy=new mWe(this.request,this.response,gWe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new mWe(AS(e),eor,gWe).storable()}satisfies(e){let r=AS(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new AWe(this.request),n=new AWe(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Zsr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=AS(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=AS(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=AS(e),n=yWe(r);return!this.policy.revalidatedPolicy(i,n).modified}};EWe.exports=Zce});var wWe=p((sii,bWe)=>{var tue=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};bWe.exports={NotCachedError:tue}});var NWe=p((oii,TWe)=>{"use strict";var CWe=typeof process=="object"&&process?process:{stdout:null,stderr:null},tor=require("events"),IWe=require("stream"),SWe=require("string_decoder").StringDecoder,Sp=Symbol("EOF"),Bp=Symbol("maybeEmitEnd"),$A=Symbol("emittedEnd"),C4=Symbol("emittingEnd"),HN=Symbol("emittedError"),I4=Symbol("closed"),BWe=Symbol("read"),S4=Symbol("flush"),vWe=Symbol("flushChunk"),ba=Symbol("encoding"),vp=Symbol("decoder"),B4=Symbol("flowing"),jN=Symbol("paused"),gS=Symbol("resume"),Un=Symbol("bufferLength"),rue=Symbol("bufferPush"),iue=Symbol("bufferShift"),Hs=Symbol("objectMode"),js=Symbol("destroyed"),nue=Symbol("emitData"),xWe=Symbol("emitEnd"),sue=Symbol("emitEnd2"),xp=Symbol("async"),VN=t=>Promise.resolve().then(t),_We=global._MP_NO_ITERATOR_SYMBOLS_!=="1",ror=_We&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),ior=_We&&Symbol.iterator||Symbol("iterator not implemented"),nor=t=>t==="end"||t==="finish"||t==="prefinish",sor=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,oor=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),v4=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[gS](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},oue=class extends v4{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};TWe.exports=class RWe extends IWe{constructor(e){super(),this[B4]=!1,this[jN]=!1,this.pipes=[],this.buffer=[],this[Hs]=e&&e.objectMode||!1,this[Hs]?this[ba]=null:this[ba]=e&
Line truncated
|
||||
`+o.map(h=>{let d=JSON.stringify(h);return`${K4(d)} ${d}`}).join(`
|
||||
`),c=async()=>{let h=Mlr(Th.join(t,"tmp"),i.tmpPrefix);return await tle(Th.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return q7e(h.target,{recursive:!0,force:!0})},l=async h=>{await klr(h.target,a,{flag:"wx"}),await tle(Th.dirname(n),{recursive:!0}),await Hlr(h.target,n),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>X4(t,h,!0))}gc.exports.insert=G7e;async function G7e(t,e,r,i={}){let{metadata:n,size:s,time:o}=i,a=c1(t,e),c={key:e,integrity:r&&Flr.stringify(r),time:o||Date.now(),size:s,metadata:n};try{await tle(Th.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Olr(a,`
|
||||
${K4(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return X4(t,c)}gc.exports.find=Vlr;async function Vlr(t,e){let r=c1(t,e);try{return(await Y4(r)).reduce((n,s)=>s&&s.key===e?X4(t,s):n,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}gc.exports.delete=zlr;function zlr(t,e,r={}){if(!r.removeFully)return G7e(t,e,null,r);let i=c1(t,e);return q7e(i,{recursive:!0,force:!0})}gc.exports.lsStream=H7e;function H7e(t){let e=rle(t),r=new Llr({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(J4(),W4)),n=await ele(e);return await i(n,async s=>{let o=Th.join(e,s),a=await ele(o);await i(a,async c=>{let u=Th.join(o,c),l=await ele(u);await i(l,async f=>{let h=Th.join(u,f);try{let m=(await Y4(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=X4(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:Zue})},{concurrency:Zue})},{concurrency:Zue}),r.end(),r}).catch(i=>r.emit("error",i)),r}gc.exports.ls=$lr;async function $lr(t){return(await H7e(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}gc.exports.bucketEntries=Y4;async function Y4(t,e){let r=await Plr(t,"utf8");return Wlr(r,e)}function Wlr(t){let e=[];return t.split(`
|
||||
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||K4(i[1])!==i[0])return;let n;try{n=JSON.parse(i[1])}catch{}n&&e.push(n)}),e}gc.exports.bucketDir=rle;function rle(t){return Th.join(t,`index-v${Glr}`)}gc.exports.bucketPath=c1;function c1(t,e){let r=j7e(e);return Th.join.apply(Th,[rle(t)].concat(qlr(r)))}gc.exports.hashKey=j7e;function j7e(t){return V7e(t,"sha256")}gc.exports.hashEntry=K4;function K4(t){return V7e(t,"sha1")}function V7e(t,e){return Dlr.createHash(e).update(t).digest("hex")}function X4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Ulr(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function ele(t){return Qlr(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var RS=p(e5=>{"use strict";Object.defineProperty(e5,"__esModule",{value:!0});e5.LRUCache=void 0;var Jlr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,$7e=new Set,ile=typeof process=="object"&&process?process:{},W7e=(t,e,r,i)=>{typeof ile.emitWarning=="function"?ile.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},Z4=globalThis.AbortController,z7e=globalThis.AbortSignal;if(typeof Z4>"u"){z7e=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},Z4=class{constructor(){e()}signal=new z7e;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=ile.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,W7e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Ylr=t=>!$7e.has(t),JA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),J7e=t=>JA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?_S:null:null,_S=class extends Array{constructor(e){super(e),this.fill(0)}},nle=class t{heap;length;static#e=!1;static create(e){let r=J7e(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},sle=class t{#e;#t;#i;#r;#n;#s;#l;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#h;#d;#f;#m;#b;#A;#w;#v;#y;#C;#x;#p;#I;#_;#E;#o;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#p,sizes:e.#C,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#m,prev:e.#b,get head(){return e.#A},get tail(){return e.#w},free:e.#v,isBackgroundFetch:r=>e.#S(r),backgroundFetch:(r,i,n,s)=>e.#j(r,i,n,s),moveToTail:r=>e.#q(r),indexes:r=>e.#O(r),rindexes:r=>e.#g(r),isStale:r=>e.#T(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#s}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:l,disposeAfter:f,noDisposeOnSet:h,noUpdateTTL:d,maxSize:m=0,maxEntrySize:A=0,sizeCalculation:y,fetchMethod:g,memoMethod:E,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:M,ignoreFetchAbort:T,perf:V}=e;if(V!==void 0&&typeof V?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=V??Jlr,r!==0&&!JA(r))throw new TypeError("max option must be a nonnegative integer");let D=r?J7e(r):Array;if(!D)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=m,this.maxEntrySize=A||this.#t,this.sizeCalculation=y,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(E!==void 0&&typeof E!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=E,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#s=g,this.#_=!!g,this.#h=new Map,this.#d=new Array(r).fill(void 0),this.#f=new Array(r).fill(void 0),this.#m=new D(r),this.#b=new D(r),this.#A=0,this.#w=0,this.#v=nle.create(r),this.#a=0,this.#c=0,typeof u=="fu
Line truncated
|
||||
Wanted: ${t}
|
||||
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var vYe=p((dZr,lue)=>{"use strict";var CYe=hS(),IYe=DT(),SYe=wYe(),our=mT(),{PassThrough:aur}=rce(),cur=JE(),BYe=t=>({algorithms:["sha512"],...t});lue.exports=uur;async function uur(t,e,r,i={}){let{memoize:s}=i;i=BYe(i);let n=await SYe(t,r,i),o=await CYe.insert(t,e,n.integrity,{...i,size:n.size});return s&&IYe.put(t,o,r,i),n.integrity}lue.exports.stream=lur;function lur(t,e,r={}){let{memoize:i}=r;r=BYe(r);let s,n,o,a,c=new cur;if(i){let l=new aur().on("collect",f=>{a=f});c.push(l)}let u=SYe.stream(t,r).on("integrity",l=>{s=l}).on("size",l=>{n=l}).on("error",l=>{o=l});return c.push(u),c.push(new our({async flush(){if(!o){let l=await CYe.insert(t,e,s,{...r,size:n});i&&a&&IYe.put(t,l,a,r),c.emit("integrity",s),c.emit("size",n)}}})),c}});var _Ye=p(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.range=s0.balanced=void 0;var fur=(t,e,r)=>{let i=t instanceof RegExp?xYe(t,r):t,s=e instanceof RegExp?xYe(e,r):e,n=i!==null&&s!=null&&(0,s0.range)(i,s,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+i.length,n[1]),post:r.slice(n[1]+s.length)}};s0.balanced=fur;var xYe=(t,e)=>{let r=e.match(t);return r?r[0]:null},hur=(t,e,r)=>{let i,s,n,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],n=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else s=i.pop(),s!==void 0&&s<n&&(n=s,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[n,o])}return a};s0.range=hur});var due=p(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.EXPANSION_MAX=void 0;IS.expand=Bur;var RYe=_Ye(),NYe="\0SLASH"+Math.random()+"\0",TYe="\0OPEN"+Math.random()+"\0",hue="\0CLOSE"+Math.random()+"\0",DYe="\0COMMA"+Math.random()+"\0",OYe="\0PERIOD"+Math.random()+"\0",dur=new RegExp(NYe,"g"),pur=new RegExp(TYe,"g"),mur=new RegExp(hue,"g"),Aur=new RegExp(DYe,"g"),gur=new RegExp(OYe,"g"),yur=/\\\\/g,Eur=/\\{/g,bur=/\\}/g,wur=/\\,/g,Cur=/\\./g;IS.EXPANSION_MAX=1e5;function fue(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function Iur(t){return t.replace(yur,NYe).replace(Eur,TYe).replace(bur,hue).replace(wur,DYe).replace(Cur,OYe)}function Sur(t){return t.replace(dur,"\\").replace(pur,"{").replace(mur,"}").replace(Aur,",").replace(gur,".")}function PYe(t){if(!t)return[""];let e=[],r=(0,RYe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:s,post:n}=r,o=i.split(",");o[o.length-1]+="{"+s+"}";let a=PYe(n);return n.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Bur(t,e={}){if(!t)return[];let{max:r=IS.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),MT(Iur(t),r,!0).map(Sur)}function vur(t){return"{"+t+"}"}function xur(t){return/^-?0\d/.test(t)}function _ur(t,e){return t<=e}function Rur(t,e){return t>=e}function MT(t,e,r){let i=[],s=(0,RYe.balanced)("{","}",t);if(!s)return[t];let n=s.pre,o=s.post.length?MT(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let a=0;a<o.length&&a<e;a++){let c=n+"{"+s.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),u=a||c,l=s.body.indexOf(",")>=0;if(!u&&!l)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+hue+s.post,MT(t,e,!0)):[t];let f;if(u)f=s.body.split(/\.\./);else if(f=PYe(s.body),f.length===1&&f[0]!==void 0&&(f=MT(f[0],e,!1).map(vur),f.length===1))return o.map(d=>s.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=fue(f[0]),m=fue(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(fue(f[2])):1,g=_ur;m<d&&(y*=-1,g=Rur);let w=f.some(xur);h=[];for(let S=d;g(S,m);S+=y){let D;if(c)D=String.fromCharCode(S),D==="\\"&&(D="");else if(D=String(S),w){let q=A-D.length;if(q>0){let T=new Array(q+1).join("0");S<0?D="-"+T+D.slice(1):D=T+D}}h.push(D)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,MT(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=n+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var QYe=p(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.assertValidPattern=void 0;var Nur=1024*64,Tur=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Nur)throw new TypeError("pattern is too long")};T4.assertValidPattern=Tur});var LYe=p(D4=>{"use strict";Object.defineProperty(D4,"__esModule",{value:!0});D4.parseClass=void 0;var Dur={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},UT=t=>t.replace(/[[\]\\-]/g,"\\$&"),Our=t=>t.replace(/[-[\]{}()
Line truncated
|
||||
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Oe.braceExpand)(this.pattern,this.options)}parse(e){(0,M4.assertValidPattern)(e);let r=this.options;if(e==="**")return Oe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(slr))?s=r.dot?olr:nlr:(i=e.match(Wur))?s=(r.nocase?r.dot?Xur:Kur:r.dot?Yur:Jur)(i[1]):(i=e.match(alr))?s=(r.nocase?r.dot?ulr:clr:r.dot?llr:flr)(i):(i=e.match(Zur))?s=r.dot?tlr:elr:(i=e.match(rlr))&&(s=ilr);let n=HYe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}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,i=r.noglobstar?dlr:r.dot?plr:mlr,s=new Set(r.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))s.add(h);return typeof f=="string"?wlr(f):f===Oe.GLOBSTAR?Oe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Oe.GLOBSTAR||m===Oe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Oe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Oe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Oe.GLOBSTAR))});let l=u.filter(f=>f!==Oe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];n="^"+o+n+a+"$",this.partial&&(n="^(?:\\/|"+o+n.slice(1,-1)+a+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<n.length;a++){let c=n[a],u=s;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Oe.minimatch.defaults(e).Minimatch}};Oe.Minimatch=n0;var Clr=Aue();Object.defineProperty(Oe,"AST",{enumerable:!0,get:function(){return Clr.AST}});var Ilr=gue();Object.defineProperty(Oe,"escape",{enumerable:!0,get:function(){return Ilr.escape}});var Slr=P4();Object.defineProperty(Oe,"unescape",{enumerable:!0,get:function(){return Slr.unescape}});Oe.minimatch.AST=HYe.AST;Oe.minimatch.Minimatch=n0;Oe.minimatch.escape=zur.escape;Oe.minimatch.unescape=Vur.unescape});var XYe=p(Do=>{"use strict";var Blr=Do&&Do.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Do,"__esModule",{value:!0});Do.Minipass=Do.isWritable=Do.isReadable=Do.isStream=void 0;var $Ye=typeof process=="object"&&process?process:{stdout:null,stderr:null},Sue=require("node:events"),KYe=Blr(require("node:stream")),vlr=require("node:string_decoder"),xlr=t=>!!t&&typeof t=="object"&&(t instanceof V4||t instanceof KYe.default||(0,Do.isReadable)(t)||(0,Do.isWritable)(t));Do.isStream=xlr;var _lr=t=>!!t&&typeof t=="object"&&t instanceof Sue.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==KYe.default.Writable.prototype.pipe;Do.isReadable=_lr;var Rlr=t=>!!t&&typeof t=="object"&&t instanceof Sue.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Do.isWritable=Rlr;var kp=Symbol("EOF"),Lp=Symbol("maybeEmitEnd"),jA=Symbol("emittedEnd"),U4=Symbol("emittingEnd"),qT=Symbol("emittedError"),q4=Symbol("closed"),WYe=Symbol("read"),G4=Symbol("flush"),JYe=Symbol("flushChunk"),vl=Symbol("encoding"),SS=Symbol("decoder"),Ms=Symbol("flowing"),GT=Symbol("paused"),BS=Symbol("resume"),Us=Symbol("buffer"),To=Symbol("pipes"),qs=Symbol("bufferLength"),yue=Symbol("bufferPush"),H4=Symbol("bufferShift"),Hn=Symbol("objectMode"),Qi=Symbol("destroyed"),Eue=Symbol("error"),bue=Symbol("emitData"),YYe=Symbol("emitEnd"),wue=Symbol("emitEnd2"),xh=Symbol("async"),Cue=Symbol("abort"),j4=Symbol("aborted"),HT=Symbol("signal"),o0=Symbol("dataListeners"),hc=Symbol("discarded"),jT=t=>Promise.resolve().then(t),Nlr=t=>t(),Tlr=t=>t==="end"||t==="finish"||t==="prefinish",Dlr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Olr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),z4=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[BS](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra
Line truncated
|
||||
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var gKe=p((Tni,Ele)=>{"use strict";var dKe=xS(),pKe=u1(),mKe=hKe(),Dfr=zN(),{PassThrough:Ofr}=fue(),Pfr=c0(),AKe=t=>({algorithms:["sha512"],...t});Ele.exports=Qfr;async function Qfr(t,e,r,i={}){let{memoize:n}=i;i=AKe(i);let s=await mKe(t,r,i),o=await dKe.insert(t,e,s.integrity,{...i,size:s.size});return n&&pKe.put(t,o,r,i),s.integrity}Ele.exports.stream=kfr;function kfr(t,e,r={}){let{memoize:i}=r;r=AKe(r);let n,s,o,a,c=new Pfr;if(i){let l=new Ofr().on("collect",f=>{a=f});c.push(l)}let u=mKe.stream(t,r).on("integrity",l=>{n=l}).on("size",l=>{s=l}).on("error",l=>{o=l});return c.push(u),c.push(new Dfr({async flush(){if(!o){let l=await dKe.insert(t,e,n,{...r,size:s});i&&a&&pKe.put(t,l,a,r),c.emit("integrity",n),c.emit("size",s)}}})),c}});var EKe=p(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});g0.range=g0.balanced=void 0;var Lfr=(t,e,r)=>{let i=t instanceof RegExp?yKe(t,r):t,n=e instanceof RegExp?yKe(e,r):e,s=i!==null&&n!=null&&(0,g0.range)(i,n,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+n.length)}};g0.balanced=Lfr;var yKe=(t,e)=>{let r=e.match(t);return r?r[0]:null},Ffr=(t,e,r)=>{let i,n,s,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),l=c;if(c>=0&&u>0){if(t===e)return[c,u];for(i=[],s=r.length;l>=0&&!a;){if(l===c)i.push(l),c=r.indexOf(t,l+1);else if(i.length===1){let f=i.pop();f!==void 0&&(a=[f,u])}else n=i.pop(),n!==void 0&&n<s&&(s=n,o=u),u=r.indexOf(e,l+1);l=c<u&&c>=0?c:u}i.length&&o!==void 0&&(a=[s,o])}return a};g0.range=Ffr});var Cle=p(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.EXPANSION_MAX=void 0;FS.expand=Kfr;var bKe=EKe(),wKe="\0SLASH"+Math.random()+"\0",CKe="\0OPEN"+Math.random()+"\0",wle="\0CLOSE"+Math.random()+"\0",IKe="\0COMMA"+Math.random()+"\0",SKe="\0PERIOD"+Math.random()+"\0",Mfr=new RegExp(wKe,"g"),Ufr=new RegExp(CKe,"g"),qfr=new RegExp(wle,"g"),Gfr=new RegExp(IKe,"g"),Hfr=new RegExp(SKe,"g"),jfr=/\\\\/g,Vfr=/\\{/g,zfr=/\\}/g,$fr=/\\,/g,Wfr=/\\./g;FS.EXPANSION_MAX=1e5;function ble(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function Jfr(t){return t.replace(jfr,wKe).replace(Vfr,CKe).replace(zfr,wle).replace($fr,IKe).replace(Wfr,SKe)}function Yfr(t){return t.replace(Mfr,"\\").replace(Ufr,"{").replace(qfr,"}").replace(Gfr,",").replace(Hfr,".")}function BKe(t){if(!t)return[""];let e=[],r=(0,bKe.balanced)("{","}",t);if(!r)return t.split(",");let{pre:i,body:n,post:s}=r,o=i.split(",");o[o.length-1]+="{"+n+"}";let a=BKe(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Kfr(t,e={}){if(!t)return[];let{max:r=FS.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),A1(Jfr(t),r,!0).map(Yfr)}function Xfr(t){return"{"+t+"}"}function Zfr(t){return/^-?0\d/.test(t)}function ehr(t,e){return t<=e}function thr(t,e){return t>=e}function A1(t,e,r){let i=[],n=(0,bKe.balanced)("{","}",t);if(!n)return[t];let s=n.pre,o=n.post.length?A1(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<o.length&&a<e;a++){let c=s+"{"+n.body+"}"+o[a];i.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=a||c,l=n.body.indexOf(",")>=0;if(!u&&!l)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+wle+n.post,A1(t,e,!0)):[t];let f;if(u)f=n.body.split(/\.\./);else if(f=BKe(n.body),f.length===1&&f[0]!==void 0&&(f=A1(f[0],e,!1).map(Xfr),f.length===1))return o.map(d=>n.pre+f[0]+d);let h;if(u&&f[0]!==void 0&&f[1]!==void 0){let d=ble(f[0]),m=ble(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(ble(f[2])):1,g=ehr;m<d&&(y*=-1,g=thr);let w=f.some(Zfr);h=[];for(let S=d;g(S,m);S+=y){let N;if(c)N=String.fromCharCode(S),N==="\\"&&(N="");else if(N=String(S),w){let M=A-N.length;if(M>0){let T=new Array(M+1).join("0");S<0?N="-"+T+N.slice(1):N=T+N}}h.push(N)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,A1(f[d],e,!1))}for(let d=0;d<h.length;d++)for(let m=0;m<o.length&&i.length<e;m++){let A=s+h[d]+o[m];(!r||u||A)&&i.push(A)}}return i}});var vKe=p(f5=>{"use strict";Object.defineProperty(f5,"__esModule",{value:!0});f5.assertValidPattern=void 0;var rhr=1024*64,ihr=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>rhr)throw new TypeError("pattern is too long")};f5.assertValidPattern=ihr});var _Ke=p(h5=>{"use strict";Object.defineProperty(h5,"__esModule",{value:!0});h5.parseClass=void 0;var nhr={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},g1=t=>t.replace(/[[\]\\-]/g,"\\$&"),shr=t=>t.replace(/[-[\]{}()
Line truncated
|
||||
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,E5.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(Thr))?n=r.dot?Dhr:Nhr:(i=e.match(bhr))?n=(r.nocase?r.dot?Shr:Ihr:r.dot?Chr:whr)(i[1]):(i=e.match(Ohr))?n=(r.nocase?r.dot?Qhr:Phr:r.dot?khr:Lhr)(i):(i=e.match(Bhr))?n=r.dot?xhr:vhr:(i=e.match(_hr))&&(n=Rhr);let s=PKe.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}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,i=r.noglobstar?Mhr:r.dot?Uhr:qhr,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?$hr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=y0;var Whr=Ble();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return Whr.AST}});var Jhr=vle();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return Jhr.escape}});var Yhr=p5();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return Yhr.unescape}});Pe.minimatch.AST=PKe.AST;Pe.minimatch.Minimatch=y0;Pe.minimatch.escape=ghr.escape;Pe.minimatch.unescape=yhr.unescape});var HKe=p(Lo=>{"use strict";var Khr=Lo&&Lo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.Minipass=Lo.isWritable=Lo.isReadable=Lo.isStream=void 0;var FKe=typeof process=="object"&&process?process:{stdout:null,stderr:null},Ole=require("node:events"),GKe=Khr(require("node:stream")),Xhr=require("node:string_decoder"),Zhr=t=>!!t&&typeof t=="object"&&(t instanceof v5||t instanceof GKe.default||(0,Lo.isReadable)(t)||(0,Lo.isWritable)(t));Lo.isStream=Zhr;var edr=t=>!!t&&typeof t=="object"&&t instanceof Ole.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==GKe.default.Writable.prototype.pipe;Lo.isReadable=edr;var tdr=t=>!!t&&typeof t=="object"&&t instanceof Ole.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Lo.isWritable=tdr;var Up=Symbol("EOF"),qp=Symbol("maybeEmitEnd"),eg=Symbol("emittedEnd"),b5=Symbol("emittingEnd"),y1=Symbol("emittedError"),w5=Symbol("closed"),MKe=Symbol("read"),C5=Symbol("flush"),UKe=Symbol("flushChunk"),Dl=Symbol("encoding"),MS=Symbol("decoder"),Hn=Symbol("flowing"),E1=Symbol("paused"),US=Symbol("resume"),jn=Symbol("buffer"),ko=Symbol("pipes"),Vn=Symbol("bufferLength"),xle=Symbol("bufferPush"),I5=Symbol("bufferShift"),Ws=Symbol("objectMode"),Fi=Symbol("destroyed"),_le=Symbol("error"),Rle=Symbol("emitData"),qKe=Symbol("emitEnd"),Tle=Symbol("emitEnd2"),Dh=Symbol("async"),Nle=Symbol("abort"),S5=Symbol("aborted"),b1=Symbol("signal"),E0=Symbol("dataListeners"),yc=Symbol("discarded"),w1=t=>Promise.resolve().then(t),rdr=t=>t(),idr=t=>t==="end"||t==="finish"||t==="prefinish",ndr=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,sdr=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),B5=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[US](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondra
Line truncated
|
||||
\r
|
||||
`);if(h===-1){I5("have not received end of HTTP headers yet..."),n();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let D=w.slice(0,S).toLowerCase(),q=w.slice(S+1).trimStart(),T=E[D];typeof T=="string"?E[D]=[T,q]:Array.isArray(T)?T.push(q):E[D]=q}I5("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}TS.parseProxyResponse=qhr});var yKe=p(Su=>{"use strict";var Ghr=Su&&Su.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Hhr=Su&&Su.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),AKe=Su&&Su.__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)&&Ghr(e,t,r);return Hhr(e,t),e},gKe=Su&&Su.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Su,"__esModule",{value:!0});Su.HttpsProxyAgent=void 0;var l1=AKe(require("net")),pKe=AKe(require("tls")),jhr=gKe(require("assert")),zhr=gKe(fy()),Vhr=wx(),$hr=require("url"),Whr=dKe(),f1=(0,zhr.default)("https-proxy-agent"),S5=class extends Vhr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new $hr.URL(e):e,this.proxyHeaders=r?.headers??{},f1("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?mKe(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;if(i.protocol==="https:"){f1("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;s=pKe.connect({...this.connectOpts,servername:h&&l1.isIP(h)?void 0:h})}else f1("Creating `net.Socket`: %o",this.connectOpts),s=l1.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=l1.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
|
||||
`;let c=(0,Whr.parseProxyResponse)(s);s.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",Jhr),r.secureEndpoint){f1("Upgrading socket connection to TLS");let h=r.servername||r.host;return pKe.connect({...mKe(r,"host","path","port"),socket:s,servername:l1.isIP(h)?void 0:h})}return s}s.destroy();let f=new l1.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{f1("Replaying proxy buffer for failed request"),(0,jhr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};S5.protocols=["http","https"];Su.HttpsProxyAgent=S5;function Jhr(t){t.resume()}function mKe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var CKe=p(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var EKe=require("buffer"),f0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Up.ERRORS=f0;function Yhr(t){if(!EKe.Buffer.isEncoding(t))throw new Error(f0.INVALID_ENCODING)}Up.checkEncoding=Yhr;function bKe(t){return typeof t=="number"&&isFinite(t)&&edr(t)}Up.isFiniteInteger=bKe;function wKe(t,e){if(typeof t=="number"){if(!bKe(t)||t<0)throw new Error(e?f0.INVALID_OFFSET:f0.INVALID_LENGTH)}else throw new Error(e?f0.INVALID_OFFSET_NON_NUMBER:f0.INVALID_LENGTH_NON_NUMBER)}function Khr(t){wKe(t,!1)}Up.checkLengthValue=Khr;function Xhr(t){wKe(t,!0)}Up.checkOffsetValue=Xhr;function Zhr(t,e){if(t<0||t>e.length)throw new Error(f0.INVALID_TARGET_OFFSET)}Up.checkTargetOffset=Zhr;function edr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function tdr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof EKe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Up.bigIntAndBufferInt64Check=tdr});var SKe=p(dle=>{"use strict";Object.defineProperty(dle,"__esModule",{value:!0});var bt=CKe(),IKe=4096,rdr="utf8",hle=class t{constructor(e){if(this.length=0,this._encoding=rdr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(IKe);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(IKe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur
Line truncated
|
||||
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Pe.braceExpand)(this.pattern,this.options)}parse(e){(0,C8.assertValidPattern)(e);let r=this.options;if(e==="**")return Pe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(Dgr))?s=r.dot?Pgr:Ogr:(i=e.match(Cgr))?s=(r.nocase?r.dot?vgr:Bgr:r.dot?Sgr:Igr)(i[1]):(i=e.match(Qgr))?s=(r.nocase?r.dot?Lgr:kgr:r.dot?Fgr:Mgr)(i):(i=e.match(xgr))?s=r.dot?Rgr:_gr:(i=e.match(Ngr))&&(s=Tgr);let n=kZe.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}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,i=r.noglobstar?qgr:r.dot?Ggr:Hgr,s=new Set(r.nocase?["i"]:[]),n=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))s.add(h);return typeof f=="string"?Jgr(f):f===Pe.GLOBSTAR?Pe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Pe.GLOBSTAR||m===Pe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Pe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Pe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Pe.GLOBSTAR))});let l=u.filter(f=>f!==Pe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];n="^"+o+n+a+"$",this.partial&&(n="^(?:\\/|"+o+n.slice(1,-1)+a+")$"),this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<n.length;a++){let c=n[a],u=s;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Pe.minimatch.defaults(e).Minimatch}};Pe.Minimatch=E0;var Ygr=Ffe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return Ygr.AST}});var Kgr=Mfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return Kgr.escape}});var Xgr=g8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return Xgr.unescape}});Pe.minimatch.AST=kZe.AST;Pe.minimatch.Minimatch=E0;Pe.minimatch.escape=Egr.escape;Pe.minimatch.unescape=bgr.unescape});var Gfe=p(Nu=>{"use strict";var qZe=Nu&&Nu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.SuccinctRoles=Nu.DelegatedRole=Nu.Role=Nu.TOP_LEVEL_ROLE_NAMES=void 0;var GZe=qZe(require("crypto")),Zgr=UZe(),I8=qZe(require("util")),S8=Fh(),b0=Nl();Nu.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var _1=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:s}=e;if(eyr(r))throw new S8.ValueError("duplicate key IDs found");if(i<1)throw new S8.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=s||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&I8.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&I8.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...s}=e;if(!b0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:s})}};Nu.Role=_1;function eyr(t){return new Set(t).size!==t.length}var Ufe=class t extends _1{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:s,pathHashPrefixes:n}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new S8.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=s,this.pathHashPrefixes=n}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&I8.default.isDeepStrictEqual(this.paths,e.paths)&&I8.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>ryr(e,r));if(this.pathHashPrefixes){let i=GZe.default.createHash("sha256").update(
Line truncated
|
||||
`);if(h===-1){i8("have not received end of HTTP headers yet..."),s();return}let d=f.slice(0,h).toString("ascii").split(`\r
|
||||
`),m=d.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=m.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let S=w.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,S).toLowerCase(),M=w.slice(S+1).trimStart(),T=E[N];typeof T=="string"?E[N]=[T,M]:Array.isArray(T)?T.push(M):E[N]=M}i8("got proxy server response: %o %o",m,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),s()})}zS.parseProxyResponse=dmr});var uZe=p(Tu=>{"use strict";var pmr=Tu&&Tu.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),mmr=Tu&&Tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aZe=Tu&&Tu.__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)&&pmr(e,t,r);return mmr(e,t),e},cZe=Tu&&Tu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.HttpsProxyAgent=void 0;var q1=aZe(require("net")),sZe=aZe(require("tls")),Amr=cZe(require("assert")),gmr=cZe(Sy()),ymr=Wx(),Emr=require("url"),bmr=nZe(),G1=(0,gmr.default)("https-proxy-agent"),n8=class extends ymr.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Emr.URL(e):e,this.proxyHeaders=r?.headers??{},G1("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(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?oZe(r,"headers"):null,host:i,port:n}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(i.protocol==="https:"){G1("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;n=sZe.connect({...this.connectOpts,servername:h&&q1.isIP(h)?void 0:h})}else G1("Creating `net.Socket`: %o",this.connectOpts),n=q1.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=q1.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${o}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))a+=`${h}: ${s[h]}\r
|
||||
`;let c=(0,bmr.parseProxyResponse)(n);n.write(`${a}\r
|
||||
`);let{connect:u,buffered:l}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",wmr),r.secureEndpoint){G1("Upgrading socket connection to TLS");let h=r.servername||r.host;return sZe.connect({...oZe(r,"host","path","port"),socket:n,servername:q1.isIP(h)?void 0:h})}return n}n.destroy();let f=new q1.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{G1("Replaying proxy buffer for failed request"),(0,Amr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};n8.protocols=["http","https"];Tu.HttpsProxyAgent=n8;function wmr(t){t.resume()}function oZe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var dZe=p(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var lZe=require("buffer"),S0={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};jp.ERRORS=S0;function Cmr(t){if(!lZe.Buffer.isEncoding(t))throw new Error(S0.INVALID_ENCODING)}jp.checkEncoding=Cmr;function fZe(t){return typeof t=="number"&&isFinite(t)&&vmr(t)}jp.isFiniteInteger=fZe;function hZe(t,e){if(typeof t=="number"){if(!fZe(t)||t<0)throw new Error(e?S0.INVALID_OFFSET:S0.INVALID_LENGTH)}else throw new Error(e?S0.INVALID_OFFSET_NON_NUMBER:S0.INVALID_LENGTH_NON_NUMBER)}function Imr(t){hZe(t,!1)}jp.checkLengthValue=Imr;function Smr(t){hZe(t,!0)}jp.checkOffsetValue=Smr;function Bmr(t,e){if(t<0||t>e.length)throw new Error(S0.INVALID_TARGET_OFFSET)}jp.checkTargetOffset=Bmr;function vmr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function xmr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof lZe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}jp.bigIntAndBufferInt64Check=xmr});var mZe=p(Cfe=>{"use strict";Object.defineProperty(Cfe,"__esModule",{value:!0});var bt=dZe(),pZe=4096,_mr="utf8",wfe=class t{constructor(e){if(this.length=0,this._encoding=_mr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(bt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(bt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(pZe);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(pZe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return bt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return bt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){retur
Line truncated
|
||||
globstar while`,e,h,r,d,m),this.matchOne(e.slice(h),r.slice(d),i))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!n.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,h,r,d);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(i&&(this.debug(`
|
||||
>>> no match, partial?`,e,h,r,d),h===c))}let A;if(typeof l=="string"?(A=f===l,this.debug("string match",l,f,A)):(A=l.test(f),this.debug("pattern match",l,f,A)),!A)return!1}if(o===c&&a===u)return!0;if(o===c)return i;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Qe.braceExpand)(this.pattern,this.options)}parse(e){(0,rG.assertValidPattern)(e);let r=this.options;if(e==="**")return Qe.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(n0r))?n=r.dot?o0r:s0r:(i=e.match(WEr))?n=(r.nocase?r.dot?XEr:KEr:r.dot?YEr:JEr)(i[1]):(i=e.match(a0r))?n=(r.nocase?r.dot?u0r:c0r:r.dot?l0r:f0r)(i):(i=e.match(ZEr))?n=r.dot?t0r:e0r:(i=e.match(r0r))&&(n=i0r);let s=Rtt.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}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,i=r.noglobstar?d0r:r.dot?p0r:m0r,n=new Set(r.nocase?["i"]:[]),s=e.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?w0r(f):f===Qe.GLOBSTAR?Qe.GLOBSTAR:f._src});u.forEach((f,h)=>{let d=u[h+1],m=u[h-1];f!==Qe.GLOBSTAR||m===Qe.GLOBSTAR||(m===void 0?d!==void 0&&d!==Qe.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+d:u[h]=i:d===void 0?u[h-1]=m+"(?:\\/|\\/"+i+")?":d!==Qe.GLOBSTAR&&(u[h-1]=m+"(?:\\/|\\/"+i+"\\/)"+d,u[h+1]=Qe.GLOBSTAR))});let l=u.filter(f=>f!==Qe.GLOBSTAR);if(this.partial&&l.length>=1){let f=[];for(let h=1;h<=l.length;h++)f.push(l.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return l.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.partial&&(s="^(?:\\/|"+o+s.slice(1,-1)+a+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}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 i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let c=s[a],u=n;if(i.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Qe.minimatch.defaults(e).Minimatch}};Qe.Minimatch=D0;var C0r=$he();Object.defineProperty(Qe,"AST",{enumerable:!0,get:function(){return C0r.AST}});var I0r=Whe();Object.defineProperty(Qe,"escape",{enumerable:!0,get:function(){return I0r.escape}});var S0r=K8();Object.defineProperty(Qe,"unescape",{enumerable:!0,get:function(){return S0r.unescape}});Qe.minimatch.AST=Rtt.AST;Qe.minimatch.Minimatch=D0;Qe.minimatch.escape=VEr.escape;Qe.minimatch.unescape=zEr.unescape});var Khe=p(ku=>{"use strict";var Ptt=ku&&ku.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ku,"__esModule",{value:!0});ku.SuccinctRoles=ku.DelegatedRole=ku.Role=ku.TOP_LEVEL_ROLE_NAMES=void 0;var Qtt=Ptt(require("crypto")),B0r=Ott(),iG=Ptt(require("util")),nG=Hh(),O0=kl();ku.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var s2=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:n}=e;if(v0r(r))throw new nG.ValueError("duplicate key IDs found");if(i<1)throw new nG.ValueError("threshold must be at least 1");this.keyIDs=r,this.threshold=i,this.unrecognizedFields=n||{}}equals(e){return e instanceof t?this.threshold===e.threshold&&iG.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&iG.default.isDeepStrictEqual(this.unrecognizedFields,e.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(e){let{keyids:r,threshold:i,...n}=e;if(!O0.guard.isStringArray(r))throw new TypeError("keyids must be an array");if(typeof i!="number")throw new TypeError("threshold must be a number");return new t({keyIDs:r,threshold:i,unrecognizedFields:n})}};ku.Role=s2;function v0r(t){return new Set(t).size!==t.length}var Jhe=class t extends s2{name;terminating;paths;pathHashPrefixes;constructor(e){super(e);let{name:r,terminating:i,paths:n,pathHashPrefixes:s}=e;if(this.name=r,this.terminating=i,e.paths&&e.pathHashPrefixes)throw new nG.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=n,this.pathHashPrefixes=s}equals(e){return e instanceof t?super.equals(e)&&this.name===e.name&&this.terminating===e.terminating&&iG.default.isDeepStrictEqual(this.paths,e.paths)&&iG.default.isDeepStrictEqual(this.pathHashPrefixes,e.pathHashPrefixes):!1}isDelegatedPath(e){if(this.paths)return this.paths.some(r=>_0r(e,r));if(this.pathHashPrefixes){let i=Qtt.default.createHash("sha256").update(
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(s+"m+"+k8.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sEr()+e+" "+t[0]}function sEr(){return $s.inspectOpts.hideDate?"":new Date().toISOString()+" "}function nEr(...t){return process.stderr.write(Q8.formatWithOptions($s.inspectOpts,...t)+`
|
||||
`)}function oEr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function aEr(){return process.env.DEBUG}function cEr(t){t.inspectOpts={};let e=Object.keys($s.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=$s.inspectOpts[e[r]]}k8.exports=che()($s);var{formatters:iet}=k8.exports;iet.o=function(t){return this.inspectOpts.colors=this.useColors,Q8.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};iet.O=function(t){return this.inspectOpts.colors=this.useColors,Q8.inspect(t,this.inspectOpts)}});var lhe=p((Nti,uhe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?uhe.exports=ret():uhe.exports=set()});var oet=p((Tti,net)=>{var uEr=require("dns"),lEr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],fEr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:uEr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>lEr.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};net.exports=fEr});var hhe=p((Dti,het)=>{var aet=Dae(),cet=Fae(),hEr=Ih(),uet={shared:!1,ignoreCargoCult:!0},dEr={status:200,headers:{}},sB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},fet=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},fhe=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=sB(r),this.response=fet(i),this.options=s,this.policy=new aet(this.request,this.response,uet),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new aet(sB(e),dEr,uet).storable()}satisfies(e){let r=sB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new cet(this.request),s=new cet(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(s.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(s.languages())||JSON.stringify(i.encodings())!==JSON.stringify(s.encodings())?!1:this.options.integrity?hEr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=sB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=sB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=sB(e),s=fet(r);return!this.policy.revalidatedPolicy(i,s).modified}};het.exports=fhe});var pet=p((Oti,det)=>{var dhe=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};det.exports={NotCachedError:dhe}});var mhe=p((Pti,met)=>{"use strict";var pEr=JE(),phe=class extends pEr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};met.exports=phe});var get=p((Qti,Aet)=>{var{URL:mEr,format:AEr}=require("url"),gEr={auth:!1,fragment:!1,search:!0,unicode:!1},yEr=t=>{let e=new mEr(t.url);return`make-fetch-happen:request-cache:${AEr(e,gEr)}`};Aet.exports=yEr});var yet=p((kti,EEr)=>{EEr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var F8=p((Lti,bet)=>{var{Minipass:bEr}=xo(),L8=yp(),{promiseRetry:wEr}=nle(),CEr=Ih(),{log:Eet}=E
Line truncated
|
||||
`).forEach(r=>{r.match(abr)||r.match(cbr)||(e+=r)}),Buffer.from(e,"base64")}function lbr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`+s),t.push(n+"m+"+AG.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Tbr()+e+" "+t[0]}function Tbr(){return Kn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Nbr(...t){return process.stderr.write(mG.formatWithOptions(Kn.inspectOpts,...t)+`
|
||||
`)}function Dbr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Obr(){return process.env.DEBUG}function Pbr(t){t.inspectOpts={};let e=Object.keys(Kn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Kn.inspectOpts[e[r]]}AG.exports=gde()(Kn);var{formatters:Ytt}=AG.exports;Ytt.o=function(t){return this.inspectOpts.colors=this.useColors,mG.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Ytt.O=function(t){return this.inspectOpts.colors=this.useColors,mG.inspect(t,this.inspectOpts)}});var Ede=p(($oi,yde)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?yde.exports=Jtt():yde.exports=Ktt()});var Ztt=p((Woi,Xtt)=>{var Qbr=require("dns"),kbr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],Lbr=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let i=parseInt(r.retry,10);isFinite(i)?r.retry={retries:i}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:Qbr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>kbr.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};Xtt.exports=Lbr});var wde=p((Joi,nrt)=>{var ert=qce(),trt=$ce(),Fbr=_h(),rrt={shared:!1,ignoreCargoCult:!0},Mbr={status:200,headers:{}},EB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},irt=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},bde=class{constructor({entry:e,request:r,response:i,options:n}){this.entry=e,this.request=EB(r),this.response=irt(i),this.options=n,this.policy=new ert(this.request,this.response,rrt),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new ert(EB(e),Mbr,rrt).storable()}satisfies(e){let r=EB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new trt(this.request),n=new trt(r);return JSON.stringify(i.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(i.languages())!==JSON.stringify(n.languages())||JSON.stringify(i.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?Fbr.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=EB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=EB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=EB(e),n=irt(r);return!this.policy.revalidatedPolicy(i,n).modified}};nrt.exports=bde});var ort=p((Yoi,srt)=>{var Cde=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};srt.exports={NotCachedError:Cde}});var Sde=p((Koi,art)=>{"use strict";var Ubr=c0(),Ide=class extends Ubr{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};art.exports=Ide});var urt=p((Xoi,crt)=>{var{URL:qbr,format:Gbr}=require("url"),Hbr={auth:!1,fragment:!1,search:!0,unicode:!1},jbr=t=>{let e=new qbr(t.url);return`make-fetch-happen:request-cache:${Gbr(e,Hbr)}`};crt.exports=jbr});var lrt=p((Zoi,Vbr)=>{Vbr.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var yG=p((eai,hrt)=>{var{Minipass:zbr}=Do(),gG=Cp(),{promiseRetry:$br}=pfe(),Wbr=_h(),{log:frt}=Z
Line truncated
|
||||
`).forEach(r=>{r.match(OCr)||r.match(PCr)||(e+=r)}),Buffer.from(e,"base64")}function kCr(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
||||
`).concat(`
|
||||
`)}});var cG=p(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.SHA2_HASH_ALGOS=og.RSA_SIGNATURE_ALGOS=og.ECDSA_SIGNATURE_ALGOS=void 0;og.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};og.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};og.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var rde=p(uG=>{"use strict";Object.defineProperty(uG,"__esModule",{value:!0});uG.RFC3161TimestampVerificationError=void 0;var tde=class extends Error{};uG.RFC3161TimestampVerificationError=tde});var gtt=p(Uh=>{"use strict";var fbr=Uh&&Uh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),hbr=Uh&&Uh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dbr=Uh&&Uh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&fbr(r,e,i[s]);return hbr(r,e),r}})();Object.defineProperty(Uh,"__esModule",{value:!0});Uh.TSTInfo=void 0;var Att=dbr(fB()),pbr=cG(),mbr=rde(),ide=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return pbr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Att.digest(this.messageImprintHashAlgorithm,e);if(!Att.bufferEqual(r,this.messageImprintHashedMessage))throw new mbr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Uh.TSTInfo=ide});var Ett=p(qh=>{"use strict";var Abr=qh&&qh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),gbr=qh&&qh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ybr=qh&&qh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&Abr(r,e,i[s]);return gbr(r,e),r}})();Object.defineProperty(qh,"__esModule",{value:!0});qh.RFC3161Timestamp=void 0;var Ebr=nG(),sde=ybr(fB()),ytt=cG(),F1=rde(),bbr=gtt(),wbr="1.2.840.113549.1.7.2",Cbr="1.2.840.113549.1.9.16.1.4",Ibr="1.2.840.113549.1.9.4",nde=class t{root;constructor(e){this.root=e}static parse(e){let r=Ebr.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return ytt.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return ytt.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new bbr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new F1.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==wbr)throw new F1.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==Cbr)throw new F1.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=sde.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!sde.bufferEqual(e,r))throw new F1.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
`)}});var GG=p(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.SHA2_HASH_ALGOS=Ag.RSA_SIGNATURE_ALGOS=Ag.ECDSA_SIGNATURE_ALGOS=void 0;Ag.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Ag.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Ag.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var fpe=p(HG=>{"use strict";Object.defineProperty(HG,"__esModule",{value:!0});HG.RFC3161TimestampVerificationError=void 0;var lpe=class extends Error{};HG.RFC3161TimestampVerificationError=lpe});var cit=p(Vh=>{"use strict";var LCr=Vh&&Vh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),FCr=Vh&&Vh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MCr=Vh&&Vh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&LCr(r,e,i[n]);return FCr(r,e),r}})();Object.defineProperty(Vh,"__esModule",{value:!0});Vh.TSTInfo=void 0;var ait=MCr(vB()),UCr=GG(),qCr=fpe(),hpe=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return UCr.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=ait.digest(this.messageImprintHashAlgorithm,e);if(!ait.bufferEqual(r,this.messageImprintHashedMessage))throw new qCr.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Vh.TSTInfo=hpe});var lit=p(zh=>{"use strict";var GCr=zh&&zh.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=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,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),HCr=zh&&zh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jCr=zh&&zh.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var i=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i[i.length]=n);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i=t(e),n=0;n<i.length;n++)i[n]!=="default"&&GCr(r,e,i[n]);return HCr(r,e),r}})();Object.defineProperty(zh,"__esModule",{value:!0});zh.RFC3161Timestamp=void 0;var VCr=MG(),dpe=jCr(vB()),uit=GG(),m2=fpe(),zCr=cit(),$Cr="1.2.840.113549.1.7.2",WCr="1.2.840.113549.1.9.16.1.4",JCr="1.2.840.113549.1.9.4",ppe=class t{root;constructor(e){this.root=e}static parse(e){let r=VCr.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return uit.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return uit.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new zCr.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new m2.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==$Cr)throw new m2.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==WCr)throw new m2.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=dpe.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!dpe.bufferEqual(e,r))throw new m2.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toD
Line truncated
|
||||
|
||||
`,Fwr=/\u2014 (\S+) (\S+)\n/g;function Mwr(t,e){let r=t.inclusionProof,i=Dde.fromString(r.checkpoint.envelope),s=CG.fromString(i.note);if(!Uwr(i,e))throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}function Uwr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let s=e.find(n=>Vtt.crypto.bufferEqual(n.logID.subarray(0,4),i.keyHint)&&n.baseURL.match(i.name));return s?Vtt.crypto.verify(r,s.publicKey,i.signature):!1})}var Dde=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Tde))throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Tde),i=e.slice(0,r+1),n=e.slice(r+Tde.length).matchAll(Fwr),o=Array.from(n,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},CG=class t{origin;logSize;logHash;rest;constructor(e,r,i,s){this.origin=e,this.logSize=r,this.logHash=i,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new H1.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],s=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,s,n,o)}};j1.LogCheckpoint=CG});var Wtt=p(kde=>{"use strict";Object.defineProperty(kde,"__esModule",{value:!0});kde.verifyMerkleInclusion=Hwr;var Qde=Tl(),Ode=$n(),qwr=Buffer.from([0]),Gwr=Buffer.from([1]);function Hwr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),s=BigInt(e.logSize);if(i<0n||i>=s)throw new Ode.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:n,border:o}=jwr(i,s);if(r.hashes.length!==n+o)throw new Ode.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),u=Ywr(t.canonicalizedBody),l=Vwr(zwr(u,a,i),c);if(!Qde.crypto.bufferEqual(l,e.logHash))throw new Ode.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function jwr(t,e){let r=$wr(t,e),i=Wwr(t>>BigInt(r));return{inner:r,border:i}}function zwr(t,e,r){return e.reduce((i,s,n)=>r>>BigInt(n)&BigInt(1)?Pde(s,i):Pde(i,s),t)}function Vwr(t,e){return e.reduce((r,i)=>Pde(i,r),t)}function $wr(t,e){return Jwr(t^e-BigInt(1))}function Wwr(t){return t.toString(2).split("1").length-1}function Jwr(t){return t===0n?0:t.toString(2).length}function Pde(t,e){return Qde.crypto.digest("sha256",Gwr,t,e)}function Ywr(t){return Qde.crypto.digest("sha256",qwr,t)}});var Ytt=p(Lde=>{"use strict";Object.defineProperty(Lde,"__esModule",{value:!0});Lde.verifyTLogSET=Zwr;var Jtt=Tl(),Kwr=$n(),Xwr=pB();function Zwr(t,e){if(!(0,Xwr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let n=eCr(t),o=Buffer.from(Jtt.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Jtt.crypto.verify(o,s.publicKey,a)}))throw new Kwr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function eCr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var Xtt=p(IG=>{"use strict";Object.defineProperty(IG,"__esModule",{value:!0});IG.verifyTLogBody=nCr;IG.verifyTLogInclusion=oCr;var Ktt=afe(),Ude=$n(),Fde=Htt(),Mde=jtt(),tCr=ztt(),rCr=$tt(),iCr=Wtt(),sCr=Ytt();function nCr(t,e){let{kind:r,version:i}=t.kindVersion,s=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==s.kind||i!==s.apiVersion)throw new Ude.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(i==Fde.DSSE_API_VERSION_V1)return(0,Fde.verifyDSSETLogBody)(s,e);{let n=Ktt.Entry.fromJSON(s);return(0,Fde.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,tCr.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(i==Mde.HASHEDREKORD_API_VERSION_V1)return(0,Mde.verifyHashedRekordTLogBody)(s,e);{let n=Ktt.Entry.fromJSON(s);return(0,Mde.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new Ude.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function oCr(t,e){let r=!1;if(aCr(t)&&((0,sCr.verifyTLogSET)(t,e),r=!0),cCr(t)){let i=(0,rCr.verifyCheckpoint)(t,e);(0,iCr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new Ude.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function aCr(t){return t.inclusionPromise!==void 0}function cCr(t){return t.inclusionProof!==void 0}});var srt=p(SG=>{"use strict";Object.defineProperty(SG,"__esModule",{value:!0});SG.Verifier=void 0;var uCr=require("util"),mB=$n(),Ztt=Ltt(),ert=Mtt(),trt=Gtt(),rrt=Xtt(),qde=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),s=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=0,i=e.timestamps.map(s=>{switch(s.$case){case"timestamp-authority":return r++,(0,trt.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,trt.getTLogTimestamp)(s.tlogEntry)}});if(irt(i))throw new mB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new mB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(s=>s.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,Ztt.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,Ztt.verifyCertificate)(e.certificate,r,this.trustMaterial);if(irt(i.scts))throw new mB.Verificat
Line truncated
|
||||
`,lSr=/\u2014 (\S+) (\S+)\n/g;function fSr(t,e){let r=t.inclusionProof,i=qpe.fromString(r.checkpoint.envelope),n=rH.fromString(i.note);if(!hSr(i,e))throw new b2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function hSr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let n=e.find(s=>Lit.crypto.bufferEqual(s.logID.subarray(0,4),i.keyHint)&&s.baseURL.match(i.name));return n?Lit.crypto.verify(r,n.publicKey,i.signature):!1})}var qpe=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Upe))throw new b2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Upe),i=e.slice(0,r+1),s=e.slice(r+Upe.length).matchAll(lSr),o=Array.from(s,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new b2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(o.length===0)throw new b2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},rH=class t{origin;logSize;logHash;rest;constructor(e,r,i,n){this.origin=e,this.logSize=r,this.logHash=i,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
|
||||
`);if(r.length<3)throw new b2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let i=r[0],n=BigInt(r[1]),s=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(i,n,s,o)}};w2.LogCheckpoint=rH});var Mit=p(Vpe=>{"use strict";Object.defineProperty(Vpe,"__esModule",{value:!0});Vpe.verifyMerkleInclusion=mSr;var jpe=Ll(),Gpe=Xs(),dSr=Buffer.from([0]),pSr=Buffer.from([1]);function mSr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),n=BigInt(e.logSize);if(i<0n||i>=n)throw new Gpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:s,border:o}=ASr(i,n);if(r.hashes.length!==s+o)throw new Gpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,s),c=r.hashes.slice(s),u=CSr(t.canonicalizedBody),l=ySr(gSr(u,a,i),c);if(!jpe.crypto.bufferEqual(l,e.logHash))throw new Gpe.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function ASr(t,e){let r=ESr(t,e),i=bSr(t>>BigInt(r));return{inner:r,border:i}}function gSr(t,e,r){return e.reduce((i,n,s)=>r>>BigInt(s)&BigInt(1)?Hpe(n,i):Hpe(i,n),t)}function ySr(t,e){return e.reduce((r,i)=>Hpe(i,r),t)}function ESr(t,e){return wSr(t^e-BigInt(1))}function bSr(t){return t.toString(2).split("1").length-1}function wSr(t){return t===0n?0:t.toString(2).length}function Hpe(t,e){return jpe.crypto.digest("sha256",pSr,t,e)}function CSr(t){return jpe.crypto.digest("sha256",dSr,t)}});var qit=p(zpe=>{"use strict";Object.defineProperty(zpe,"__esModule",{value:!0});zpe.verifyTLogSET=BSr;var Uit=Ll(),ISr=Xs(),SSr=RB();function BSr(t,e){if(!(0,SSr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let s=vSr(t),o=Buffer.from(Uit.json.canonicalize(s),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Uit.crypto.verify(o,n.publicKey,a)}))throw new ISr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function vSr(t){let{integratedTime:e,logIndex:r,logId:i,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:i.keyId.toString("hex")}}});var Hit=p(iH=>{"use strict";Object.defineProperty(iH,"__esModule",{value:!0});iH.verifyTLogBody=NSr;iH.verifyTLogInclusion=DSr;var Git=Ahe(),Jpe=Xs(),$pe=Pit(),Wpe=Qit(),xSr=kit(),_Sr=Fit(),RSr=Mit(),TSr=qit();function NSr(t,e){let{kind:r,version:i}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||i!==n.apiVersion)throw new Jpe.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(i==$pe.DSSE_API_VERSION_V1)return(0,$pe.verifyDSSETLogBody)(n,e);{let s=Git.Entry.fromJSON(n);return(0,$pe.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,xSr.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(i==Wpe.HASHEDREKORD_API_VERSION_V1)return(0,Wpe.verifyHashedRekordTLogBody)(n,e);{let s=Git.Entry.fromJSON(n);return(0,Wpe.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new Jpe.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function DSr(t,e){let r=!1;if(OSr(t)&&((0,TSr.verifyTLogSET)(t,e),r=!0),PSr(t)){let i=(0,_Sr.verifyCheckpoint)(t,e);(0,RSr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new Jpe.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function OSr(t){return t.inclusionPromise!==void 0}function PSr(t){return t.inclusionProof!==void 0}});var Jit=p(nH=>{"use strict";Object.defineProperty(nH,"__esModule",{value:!0});nH.Verifier=void 0;var QSr=require("util"),TB=Xs(),jit=_it(),Vit=Tit(),zit=Oit(),$it=Hit(),Ype=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let i=this.verifyTimestamps(e),n=this.verifySigningKey(e,i);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=0,i=e.timestamps.map(n=>{switch(n.$case){case"timestamp-authority":return r++,(0,zit.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,zit.getTLogTimestamp)(n.tlogEntry)}});if(Wit(i))throw new TB.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new TB.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return i.map(n=>n.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,jit.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let i=(0,jit.verifyCertificate)(e.certificate,r,this.trustMaterial);if(Wit(i.scts))throw new TB.Verificat
Line truncated
|
||||
You can add a runtime option to disable the check or this warning:
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function uIr(){Object.keys(ZG).forEach(function(t){delete ZG[t]})}});var tH=p($h=>{"use strict";$h.__esModule=!0;$h.HandlebarsEnvironment=ope;function jrt(t){return t&&t.__esModule?t:{default:t}}var O0=Fo(),lIr=gc(),spe=jrt(lIr),fIr=epe(),hIr=Urt(),dIr=rpe(),eH=jrt(dIr),pIr=ipe(),mIr="4.7.9";$h.VERSION=mIr;var AIr=8;$h.COMPILER_REVISION=AIr;var gIr=7;$h.LAST_COMPATIBLE_COMPILER_REVISION=gIr;var yIr={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};$h.REVISION_CHANGES=yIr;var npe="[object Object]";function ope(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},fIr.registerDefaultHelpers(this),hIr.registerDefaultDecorators(this)}ope.prototype={constructor:ope,logger:eH.default,log:eH.default.log,registerHelper:function(e,r){if(O0.toString.call(e)===npe){if(r)throw new spe.default("Arg not supported with multiple helpers");O0.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(O0.toString.call(e)===npe)O0.extend(this.partials,e);else{if(typeof r>"u")throw new spe.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(O0.toString.call(e)===npe){if(r)throw new spe.default("Arg not supported with multiple decorators");O0.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){pIr.resetLoggedProperties()}};var EIr=eH.default.log;$h.log=EIr;$h.createFrame=O0.createFrame;$h.logger=eH.default});var Vrt=p((rH,zrt)=>{"use strict";rH.__esModule=!0;function ape(t){this.string=t}ape.prototype.toString=ape.prototype.toHTML=function(){return""+this.string};rH.default=ape;zrt.exports=rH.default});var $rt=p(cpe=>{"use strict";cpe.__esModule=!0;cpe.wrapHelper=bIr;function bIr(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var Zrt=p(hg=>{"use strict";hg.__esModule=!0;hg.checkRevision=vIr;hg.template=xIr;hg.wrapProgram=iH;hg.resolvePartial=_Ir;hg.invokePartial=RIr;hg.noop=Krt;function wIr(t){return t&&t.__esModule?t:{default:t}}function CIr(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var IIr=Fo(),IB=CIr(IIr),SIr=gc(),Yp=wIr(SIr),Kp=tH(),Wrt=epe(),BIr=$rt(),Jrt=ipe();function vIr(t){var e=t&&t[0]||1,r=Kp.COMPILER_REVISION;if(!(e>=Kp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Kp.COMPILER_REVISION))if(e<Kp.LAST_COMPATIBLE_COMPILER_REVISION){var i=Kp.REVISION_CHANGES[r],s=Kp.REVISION_CHANGES[e];throw new Yp.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+s+").")}else throw new Yp.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function xIr(t,e){if(!e)throw new Yp.default("No environment passed to template");if(!t||!t.main)throw new Yp.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=IB.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
|
||||
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function QBr(){Object.keys(OH).forEach(function(t){delete OH[t]})}});var QH=p(Xh=>{"use strict";Xh.__esModule=!0;Xh.HandlebarsEnvironment=mme;function Qnt(t){return t&&t.__esModule?t:{default:t}}var z0=Ho(),kBr=Ic(),dme=Qnt(kBr),LBr=ume(),FBr=Nnt(),MBr=fme(),PH=Qnt(MBr),UBr=hme(),qBr="4.7.9";Xh.VERSION=qBr;var GBr=8;Xh.COMPILER_REVISION=GBr;var HBr=7;Xh.LAST_COMPATIBLE_COMPILER_REVISION=HBr;var jBr={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Xh.REVISION_CHANGES=jBr;var pme="[object Object]";function mme(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},LBr.registerDefaultHelpers(this),FBr.registerDefaultDecorators(this)}mme.prototype={constructor:mme,logger:PH.default,log:PH.default.log,registerHelper:function(e,r){if(z0.toString.call(e)===pme){if(r)throw new dme.default("Arg not supported with multiple helpers");z0.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(z0.toString.call(e)===pme)z0.extend(this.partials,e);else{if(typeof r>"u")throw new dme.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(z0.toString.call(e)===pme){if(r)throw new dme.default("Arg not supported with multiple decorators");z0.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){UBr.resetLoggedProperties()}};var VBr=PH.default.log;Xh.log=VBr;Xh.createFrame=z0.createFrame;Xh.logger=PH.default});var Lnt=p((kH,knt)=>{"use strict";kH.__esModule=!0;function Ame(t){this.string=t}Ame.prototype.toString=Ame.prototype.toHTML=function(){return""+this.string};kH.default=Ame;knt.exports=kH.default});var Fnt=p(gme=>{"use strict";gme.__esModule=!0;gme.wrapHelper=zBr;function zBr(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var jnt=p(Cg=>{"use strict";Cg.__esModule=!0;Cg.checkRevision=XBr;Cg.template=ZBr;Cg.wrapProgram=LH;Cg.resolvePartial=evr;Cg.invokePartial=tvr;Cg.noop=Gnt;function $Br(t){return t&&t.__esModule?t:{default:t}}function WBr(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var JBr=Ho(),FB=WBr(JBr),YBr=Ic(),em=$Br(YBr),tm=QH(),Mnt=ume(),KBr=Fnt(),Unt=hme();function XBr(t){var e=t&&t[0]||1,r=tm.COMPILER_REVISION;if(!(e>=tm.LAST_COMPATIBLE_COMPILER_REVISION&&e<=tm.COMPILER_REVISION))if(e<tm.LAST_COMPATIBLE_COMPILER_REVISION){var i=tm.REVISION_CHANGES[r],n=tm.REVISION_CHANGES[e];throw new em.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+n+").")}else throw new em.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function ZBr(t,e){if(!e)throw new em.default("No environment passed to template");if(!t||!t.main)throw new em.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function i(o,a,c){c.hash&&(a=FB.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,o,a,c);if(u==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),u=c.partials[c.name](a,c)),u!=null){if(c.indent){for(var l=u.split(`
|
||||
`),f=0,h=l.length;f<h&&!(!l[f]&&f+1===h);f++)l[f]=c.indent+l[f];u=l.join(`
|
||||
`)}return u}else throw new Yp.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var s={strict:function(a,c,u){if(!a||!(c in a))throw new Yp.default('"'+c+'" not defined in '+a,{loc:u});return s.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||Jrt.resultIsAllowed(u,s.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&s.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:IB.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=iH(this,a,d,c,u,l,f):h||(h=this.programs[a]=iH(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=IB.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=NIr(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(s,h,s.helpers,s.partials,c,l,u)}return f=Xrt(t.main,f,s,a.depths||[],c,l),f(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)s.protoAccessControl=o.protoAccessControl,s.helpers=o.helpers,s.partials=o.partials,s.decorators=o.decorators,s.hooks=o.hooks;else{var a={};Yrt(a,e.helpers,s),Yrt(a,o.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=IB.extend({},e.decorators,o.decorators)),s.hooks={},s.protoAccessControl=Jrt.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;Wrt.moveHelperToHooks(s,"helperMissing",c),Wrt.moveHelperToHooks(s,"blockHelperMissing",c)}},n._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Yp.default("must pass block params");if(t.useDepths&&!u)throw new Yp.default("must pass parent depths");return iH(s,o,t[o],a,0,c,u)},n}function iH(t,e,r,i,s,n,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,n&&[u.blockParams].concat(n),l)}return a=Xrt(r,a,t,o,i,n),a.program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function _Ir(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=sH(r.partials,t)):r.name==="@partial-block"?t=sH(r.data,"partial-block"):t=sH(r.partials,r.name),t}function RIr(t,e,r){var i=sH(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Krt&&(function(){r.data=Kp.createFrame(r.data);var n=r.fn;s=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Kp.createFrame(c.data),c.data["partial-block"]=i,n(a,c)},n.partials&&(r.partials=IB.extend({},r.partials,n.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Yp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function Krt(){return""}function sH(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function NIr(t,e){return(!e||!("root"in e))&&(e=e?Kp.createFrame(e):{},e.root=t),e}function Xrt(t,e,r,i,s,n){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],s,n,i),IB.extend(e,o)}return e}function Yrt(t,e,r){e&&Object.keys(e).forEach(function(i){var s=e[i];t[i]=TIr(s,r)})}function TIr(t,e){var r=e.lookupProperty;return BIr.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var upe=p((nH,eit)=>{"use strict";nH.__esModule=!0;nH.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};eit.exports=nH.default});var nit=p((oH,sit)=>{"use strict";oH.__esModule=!0;function fpe(t){return t&&t.__esModule?t:{default:t}}function hpe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var DIr=tH(),tit=hpe(DIr),OIr=Vrt(),PIr=fpe(OIr),QIr=gc(),kIr=fpe(QIr),LIr=Fo(),lpe=hpe(LIr),FIr=Zrt(),rit=hpe(FIr),MIr=upe(),UIr=fpe(MIr);function iit(){var t=new tit.HandlebarsEnvironment;return lpe.extend(t,tit),t.SafeString=PIr.default,t.Exception=kIr.default,t.Utils=lpe,t.escapeExpression=lpe.escapeExpression,t.VM=rit,t.template=function(e){return rit.template(e,t)},t}var Z1=iit();Z1.create=iit;UIr.default(Z1);Z1.default=Z1;oH.default=Z1;sit.exports=oH.default});var dpe=p((aH,ait)=>{"use strict";aH.__esModule=!0;var oit={helpers:{helperExpression:function(e){re
Line truncated
|
||||
`)}return u}else throw new em.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,u){if(!a||!(c in a))throw new em.default('"'+c+'" not defined in '+a,{loc:u});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||Unt.resultIsAllowed(u,n.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,l=0;l<u;l++){var f=a[l]&&n.lookupProperty(a[l],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:FB.escapeExpression,invokePartial:i,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,l,f){var h=this.programs[a],d=this.fn(a);return c||f||l||u?h=LH(this,a,d,c,u,l,f):h||(h=this.programs[a]=LH(this,a,d)),h},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var u=a||c;return a&&c&&a!==c&&(u=FB.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;s._setup(a),!a.partial&&t.useData&&(c=rvr(o,c));var u=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function f(h){return""+t.main(n,h,n.helpers,n.partials,c,l,u)}return f=Hnt(t.main,f,n,a.depths||[],c,l),f(o,a)}return s.isTop=!0,s._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a={};qnt(a,e.helpers,n),qnt(a,o.helpers,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=FB.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=Unt.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;Mnt.moveHelperToHooks(n,"helperMissing",c),Mnt.moveHelperToHooks(n,"blockHelperMissing",c)}},s._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new em.default("must pass block params");if(t.useDepths&&!u)throw new em.default("must pass parent depths");return LH(n,o,t[o],a,0,c,u)},s}function LH(t,e,r,i,n,s,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(l=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||i,s&&[u.blockParams].concat(s),l)}return a=Hnt(r,a,t,o,i,s),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function evr(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=FH(r.partials,t)):r.name==="@partial-block"?t=FH(r.data,"partial-block"):t=FH(r.partials,r.name),t}function tvr(t,e,r){var i=FH(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==Gnt&&(function(){r.data=tm.createFrame(r.data);var s=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=tm.createFrame(c.data),c.data["partial-block"]=i,s(a,c)},s.partials&&(r.partials=FB.extend({},r.partials,s.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new em.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function Gnt(){return""}function FH(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function rvr(t,e){return(!e||!("root"in e))&&(e=e?tm.createFrame(e):{},e.root=t),e}function Hnt(t,e,r,i,n,s){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],n,s,i),FB.extend(e,o)}return e}function qnt(t,e,r){e&&Object.keys(e).forEach(function(i){var n=e[i];t[i]=ivr(n,r)})}function ivr(t,e){var r=e.lookupProperty;return KBr.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var yme=p((MH,Vnt)=>{"use strict";MH.__esModule=!0;MH.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};Vnt.exports=MH.default});var Ynt=p((UH,Jnt)=>{"use strict";UH.__esModule=!0;function bme(t){return t&&t.__esModule?t:{default:t}}function wme(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var nvr=QH(),znt=wme(nvr),svr=Lnt(),ovr=bme(svr),avr=Ic(),cvr=bme(avr),uvr=Ho(),Eme=wme(uvr),lvr=jnt(),$nt=wme(lvr),fvr=yme(),hvr=bme(fvr);function Wnt(){var t=new znt.HandlebarsEnvironment;return Eme.extend(t,znt),t.SafeString=ovr.default,t.Exception=cvr.default,t.Utils=Eme,t.escapeExpression=Eme.escapeExpression,t.VM=$nt,t.template=function(e){return $nt.template(e,t)},t}var T2=Wnt();T2.create=Wnt;hvr.default(T2);T2.default=T2;UH.default=T2;Jnt.exports=UH.default});var Cme=p((qH,Xnt)=>{"use strict";qH.__esModule=!0;var Knt={helpers:{helperExpression:function(e){re
Line truncated
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+Te.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:Te})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(T[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(T[1]),S=null,D?(S=D,D=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[T[1]][1],j.$=a[a.length-Z],j._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(j._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),O=this.performAction.call(j,l,h,f,this.yy,T[1],a,c),typeof O<"u")return O;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[T[1]][0]),a.push(j.$),c.push(j._$),J=u[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
||||
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,u,l;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(a=this._input.match(this.rules[f[h]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=h,!this.options.flex)));h++);return o?(l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return i.options={},i.performAction=function(n,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();cH.default=qIr;cit.exports=cH.default});var hH=p((fH,hit)=>{"use strict";fH.__esModule=!0;function GIr(t){return t&&t.__esModule?t:{default:t}}var HIr=gc(),ppe=GIr(HIr);function uH(){this.parents=[]}uH.prototype={constructor:uH,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!uH.prototype[i.type])throw new ppe.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new ppe.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new ppe.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:lH,Decorator:lH,BlockStatement:lit,DecoratorBlock:lit,PartialStatement:fit,PartialBlockStatement:function(e){fit.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:lH,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function lH(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
|
||||
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new L0(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof L0?e:(e=kpe(e,this,r),new L0(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,i=[];Object.keys(e).forEach(function(n){var o=kpe(e[n],r);o!=="undefined"&&i.push([r.quotedString(n),":",o])});var s=this.generateList(i);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var r=this.empty(),i=0,s=e.length;i<s;i++)i&&r.add(","),r.add(kpe(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};bH.default=$it;Wit.exports=bH.default});var est=p((wH,Zit)=>{"use strict";wH.__esModule=!0;function Xit(t){return t&&t.__esModule?t:{default:t}}var Yit=tH(),USr=gc(),Fpe=Xit(USr),qSr=Fo(),GSr=Jit(),Kit=Xit(GSr);function RB(t){this.value=t}function NB(){}NB.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=Yit.COMPILER_REVISION,r=Yit.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return qSr.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,i,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=n.length;c<u;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Fpe.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
||||
Expecting `+De.join(", ")+", got '"+(this.terminals_[S]||S)+"'":de="Parse error on line "+(f+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(de,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:y,expected:De})}}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+S);switch(T[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(T[1]),S=null,N?(S=N,N=null):(h=this.lexer.yyleng,l=this.lexer.yytext,f=this.lexer.yylineno,y=this.lexer.yylloc,d>0&&d--);break;case 2:if(Z=this.productions_[T[1]][1],G.$=a[a.length-Z],G._$={first_line:c[c.length-(Z||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Z||1)].first_column,last_column:c[c.length-1].last_column},g&&(G._$.range=[c[c.length-(Z||1)].range[0],c[c.length-1].range[1]]),D=this.performAction.call(G,l,h,f,this.yy,T[1],a,c),typeof D<"u")return D;Z&&(o=o.slice(0,-1*Z*2),a=a.slice(0,-1*Z),c=c.slice(0,-1*Z)),o.push(this.productions_[T[1]][0]),a.push(G.$),c.push(G._$),$=u[o[o.length-2]][o[o.length-1]],o.push($);break;case 3:return!0}}return!0}},e=(function(){var i={EOF:1,parseError:function(s,o){if(this.yy.parser)this.yy.parser.parseError(s,o);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var o=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
||||
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,o,a,c,u,l;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(a=this._input.match(this.rules[f[h]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=h,!this.options.flex)));h++);return o?(l=o[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],s=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,o,a,c){function u(f,h){return o.yytext=o.yytext.substring(f,o.yyleng-h+f)}var l=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();GH.default=dvr;Znt.exports=GH.default});var zH=p((VH,ist)=>{"use strict";VH.__esModule=!0;function pvr(t){return t&&t.__esModule?t:{default:t}}var mvr=Ic(),Ime=pvr(mvr);function HH(){this.parents=[]}HH.prototype={constructor:HH,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!HH.prototype[i.type])throw new Ime.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+e.type);e[r]=i}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Ime.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,i=e.length;r<i;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,i--)},accept:function(e){if(e){if(!this[e.type])throw new Ime.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:jH,Decorator:jH,BlockStatement:tst,DecoratorBlock:tst,PartialStatement:rst,PartialBlockStatement:function(e){rst.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:jH,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function jH(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}functLine truncated
|
||||
`])}),e},each:function(e){for(var r=0,i=this.source.length;r<i;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Y0(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Y0?e:(e=Vme(e,this,r),new Y0(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,i){return i=this.generateList(i),this.wrap([e,r?"."+r+"(":"(",i,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,i=[];Object.keys(e).forEach(function(s){var o=Vme(e[s],r);o!=="undefined"&&i.push([r.quotedString(s),":",o])});var n=this.generateList(i);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),i=0,n=e.length;i<n;i++)i&&r.add(","),r.add(Vme(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};e6.default=Fst;Mst.exports=e6.default});var Vst=p((t6,jst)=>{"use strict";t6.__esModule=!0;function Hst(t){return t&&t.__esModule?t:{default:t}}var qst=QH(),hxr=Ic(),$me=Hst(hxr),dxr=Ho(),pxr=Ust(),Gst=Hst(pxr);function jB(t){this.value=t}function VB(){}VB.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=qst.COMPILER_REVISION,r=qst.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return dxr.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:i?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,i,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=s.length;c<u;c++)o=s[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new $me.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
||||
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
||||
`),this.decorators.push(`}
|
||||
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(s);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),s?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new Kit.default(this.options.srcName),this.decorators=new Kit.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",s=this.stackVars.concat(this.registers.list);s.length>0&&(i+=", "+s.join(", "));var n=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++n+"="+c,u.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
|
||||
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,i=!this.forceBuffer,s=void 0,n=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(n?o.prepend("buffer += "):s=!0,a.add(";"),o=a=void 0),n=!0,r||(i=!1))}),i?o?(o.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
|
||||
`),this.decorators=this.decorators.merge()));var l=this.createFunctionContext(n);if(this.isChild)return l;var f={compiler:this.compilerInfo(),main:l};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,d=h.programs,m=h.decorators;for(c=0,u=d.length;c<u;c++)f[c]=d[c],m[c]&&(f[c+"_d"]=m[c],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),n?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},preamble:function(){this.lastContext=0,this.source=new Gst.default(this.options.srcName),this.decorators=new Gst.default(this.options.srcName)},createFunctionContext:function(e){var r=this,i="",n=this.stackVars.concat(this.registers.list);n.length>0&&(i+=", "+n.join(", "));var s=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(i+=", alias"+ ++s+"="+c,u.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(i);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
|
||||
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,i=!this.forceBuffer,n=void 0,s=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(s?o.prepend("buffer += "):n=!0,a.add(";"),o=a=void 0),s=!0,r||(i=!1))}),i?o?(o.prepend("return "),a.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
|
||||
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
||||
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
||||
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
||||
@@ -138,133 +138,134 @@ Expecting `+Te.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var s=this.popStack();i.splice(1,0,s),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,i,s){var n=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,s,n){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(HSr(this.options.strict&&n,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return s?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},invokeHelper:function(e,r,i){var s=this.popStack(),n=this.setupHelper(e,r),o=[];i&&o.push(n.name),o.push(s),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",n.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var s=1;s<e.length;s++)i.push(r,e[s]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),n=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",n," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",s.callParams)," : helper))"])},invokePartial:function(e,r,i){var s=[],n=this.setupParams(r,1,s);e&&(r=this.popStack(),delete n.name),i&&(n.indent=JSON.stringify(i)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?s.unshift(r):s.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),s.push(n),this.push(this.source.functionCall("container.invokePartial","",s))},assignToHash
Line truncated
|
||||
`,e};gi.prototype.Program=function(t){var e="",r=t.body,i=void 0,s=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(i=0,s=t.blockParams.length;i<s;i++)n+=" "+t.blockParams[i];n+=" ]",e+=this.pad(n)}for(i=0,s=r.length;i<s;i++)e+=this.accept(r[i]);return this.padding--,e};gi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};gi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};gi.prototype.BlockStatement=gi.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};gi.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};gi.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};gi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};gi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};gi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};gi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};gi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};gi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};gi.prototype.NullLiteral=function(){return"NULL"};gi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};gi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var cst=p((Wsi,ast)=>{var SH=ist().default,ost=sst();SH.PrintVisitor=ost.PrintVisitor;SH.print=ost.print;ast.exports=SH;function nst(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=SH.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=nst,require.extensions[".hbs"]=nst)});var vst=k(require("fs"),1),xst=k(require("path"),1);var Xpe=k(require("os"),1);function Xh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function qH(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Zh(t,e,r){let i=new GH(t,e,r);process.stdout.write(i.toString()+Xpe.EOL)}function HH(t,e=""){Zh(t,{},e)}var Kpe="::",GH=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=Kpe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let s=this.properties[i];s&&(r?r=!1:e+=",",e+=`${i}=${jst(s)}`)}}return e+=`${Kpe}${Hst(this.message)}`,e}};function Hst(t){return Xh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function jst(t){return Xh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var Zpe=k(require("crypto"),1),v2=k(require("fs"),1),B2=k(require("os"),1);function x2(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!v2.existsSync(r))throw new Error(`Missing file at path: ${r}`);v2.appendFileSync(r,`${Xh(e)}${B2.EOL}`,{encoding:"utf8"})}function jH(t,e){let r=`ghadelimiter_${Zpe.randomUUID()}`,i=Xh(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${B2.EOL}${i}${B2.EOL}${r}`}var D9=k(require("os"),1),VCe=k(require("path"),1);var Hv=k(require("http"),1),A9=k(require("https"),1);function zH(t){let e=t.protocol==="https:";if(zst(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new _2(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new _2(`http://${r}`)}else return}function zst(t){if(!t.hostname)return!1;let e=t.hostname;if(Vst(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.proto
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function $Ce(t,e){if(process.env.GITHUB_OUTPUT||"")return x2("OUTPUT",jH(t,e));process.stdout.write(D9.EOL),Zh("set-output",{name:t},Xh(e))}function NO(t){process.exitCode=T9.Failure,Wu(t)}function Kl(){return process.env.RUNNER_DEBUG==="1"}function N(t){Zh("debug",{},t)}function Wu(t,e={}){Zh("error",qH(e),t instanceof Error?t.toString():t)}function st(t,e={}){Zh("warning",qH(e),t instanceof Error?t.toString():t)}function L(t){process.stdout.write(t+D9.EOL)}function _yt(t){HH("group",t)}function Ryt(){HH("endgroup")}function ti(t,e){return xyt(this,void 0,void 0,function*(){_yt(t);let r;try{r=yield e()}finally{Ryt()}return r})}function Nc(t,e){if(process.env.GITHUB_STATE||"")return x2("STATE",jH(t,e));Zh("save-state",{name:t},Xh(e))}function WCe(t){return process.env[`STATE_${t}`]||""}var TL=k(require("fs"),1),BX=k(require("os"),1),vX=k(require("path"),1);var eV=k(require("crypto"),1),yn=k(require("fs"),1);var Bbt=k(X9(),1);var zO=k(require("os"),1),Ju=k(require("path"),1);var Oc=k(X9(),1),FSe=k(require("stream"),1),MSe=k(require("util"),1),tV=require("assert");var LSe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},HO=class{constructor(e,r,i){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(i),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return LSe(this,void 0,void 0,function*(){let i=1;for(;i<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;L(n.message)}let s=this.getSleepAmount();L(`Waiting ${s} seconds before trying again`),yield this.sleep(s),i++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return LSe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Zl=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},jO=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},USe=process.platform==="win32",U_r=process.platform==="darwin",xbt="actions/tool-cache";function Pc(t,e,r,i){return Zl(this,void 0,void 0,function*(){e=e||Ju.join(VSe(),eV.randomUUID()),yield Ad(Ju.dirname(e)),N(`Downloading ${t}`),N(`Destination ${e}`);let s=3,n=Z9("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Z9("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new HO(s,n,o).execute(()=>Zl(this,void 0,void 0,function*(){return yield _bt(t,e||"",r,i)}),c=>!(c instanceof jO&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function _bt(t,e,r,i){return Zl(this,void 0,void 0,function*(){if(yn.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new ds(xbt,[],{allowRetries:!1});r&&(N("set auth"),i===void 0&&(i={}),i.authorization=r);let n=yield s.get(t,i);if(n.message.statusCode!==200){let l=new jO(n.message.statusCode);throw N(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),l}let o=MSe.promisify(FSe.pipeline),c=Z9("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),u=!1;try{return yield o(c,yn.createWriteStream(e)),N("download complete"),u=!0,e}finally{if(!u){N("download failed");try{yield xO(e)}catch(l){N(`Failed to delete '${e}'. ${l.message}`)}}}})}function qSe(t,e){return Zl(this,arguments,void 0,function*(r,i,s="xz"){if(!r)throw new Error("parameter 'file' is required");i=yield jSe(i),N("Checking tar --version");let n="";yield Qa("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:l=>n+=l.toString(),stderr:l=>n+=l.toString()}}),N(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;s instanceof Array?a=s:a=[s],Kl()&&!s.includes("v")&&a.push("-v");let c=i,u=r;return USe&&o&&(a.push("--force-local"),c=i.replace(/\\/g,"/"),u=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",u),yield Qa("tar",a),i})}function GSe(t,e){return Zl(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield jSe(e),USe?yield Rbt(t,e):yield Nbt(t,e),e})}function Rbt(t,e){return Zl(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=yield Js("pwsh",!1);if(s){let o=["-NoLogLine truncated
|
||||
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(e,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,i,n){var s=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,i)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,i){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(e,r,i,n,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(mxr(this.options.strict&&s,this,r,i,e));return}for(var a=r.length,c=function(l){o.replaceStack(function(f){var h=o.nameLookup(f,r[l],e);return n?[" && ",h]:[" != null ? ",h," : ",f]})},u=i;u<a;u++)c(u)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var i=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",i,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,i){var n=this.popStack(),s=this.setupHelper(e,r),o=[];i&&o.push(s.name),o.push(n),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",s.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var i=[];i.push(e[0]);for(var n=1;n<e.length;n++)i.push(r,e[n]);return i},invokeKnownHelper:function(e,r){var i=this.setupHelper(e,r);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",s," || ",i,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(e,r,i){var n=[],s=this.setupParams(r,1,n);e&&(r=this.popStack(),delete s.name),i&&(s.indent=JSON.stringify(i)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",e?n.unshift(r):n.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash
Line truncated
|
||||
`,e};bi.prototype.Program=function(t){var e="",r=t.body,i=void 0,n=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(i=0,n=t.blockParams.length;i<n;i++)s+=" "+t.blockParams[i];s+=" ]",e+=this.pad(s)}for(i=0,n=r.length;i<n;i++)e+=this.accept(r[i]);return this.padding--,e};bi.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};bi.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};bi.prototype.BlockStatement=bi.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};bi.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};bi.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};bi.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};bi.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};bi.prototype.SubExpression=function(t){for(var e=t.params,r=[],i=void 0,n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",i=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+i};bi.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};bi.prototype.StringLiteral=function(t){return'"'+t.value+'"'};bi.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};bi.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};bi.prototype.UndefinedLiteral=function(){return"UNDEFINED"};bi.prototype.NullLiteral=function(){return"NULL"};bi.prototype.Hash=function(t){for(var e=t.pairs,r=[],i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return"HASH{"+r.join(", ")+"}"};bi.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Zst=p((fli,Xst)=>{var n6=Wst().default,Kst=Jst();n6.PrintVisitor=Kst.PrintVisitor;n6.print=Kst.print;Xst.exports=n6;function Yst(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=n6.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Yst,require.extensions[".hbs"]=Yst)});var got=P(require("fs"),1),yot=P(require("path"),1);var aAe=P(require("os"),1);function id(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function w6(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Fg(t,e,r){let i=new C6(t,e,r);process.stdout.write(i.toString()+aAe.EOL)}function I6(t,e=""){Fg(t,{},e)}var oAe="::",C6=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=oAe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${Qot(n)}`)}}return e+=`${oAe}${Pot(this.message)}`,e}};function Pot(t){return id(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Qot(t){return id(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var cAe=P(require("crypto"),1),iD=P(require("fs"),1),rD=P(require("os"),1);function S6(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!iD.existsSync(r))throw new Error(`Missing file at path: ${r}`);iD.appendFileSync(r,`${id(e)}${rD.EOL}`,{encoding:"utf8"})}function B6(t,e){let r=`ghadelimiter_${cAe.randomUUID()}`,i=id(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${rD.EOL}${i}${rD.EOL}${r}`}var l9=P(require("os"),1);var nx=P(require("http"),1),Kz=P(require("https"),1);function v6(t){let e=t.protocol==="https:";if(kot(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new nD(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new nD(`http://${r}`)}else return}function kot(t){if(!t.hostname)return!1;let e=t.hostname;if(Lot(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let i;t.port?i=Number(t.port):t.protocol==="http:"?i=80:t.prot
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function tSe(t,e){if(process.env.GITHUB_OUTPUT||"")return S6("OUTPUT",B6(t,e));process.stdout.write(l9.EOL),Fg("set-output",{name:t},id(e))}function rSe(t){process.exitCode=u9.Failure,y0t(t)}function tP(t){Fg("debug",{},t)}function y0t(t,e={}){Fg("error",w6(e),t instanceof Error?t.toString():t)}function ux(t,e={}){Fg("warning",w6(e),t instanceof Error?t.toString():t)}function bs(t){process.stdout.write(t+l9.EOL)}function E0t(t){I6("group",t)}function b0t(){I6("endgroup")}function ea(t,e){return g0t(this,void 0,void 0,function*(){E0t(t);let r;try{r=yield e()}finally{b0t()}return r})}function Tm(t,e){if(process.env.GITHUB_STATE||"")return S6("STATE",B6(t,e));Fg("save-state",{name:t},id(e))}var nSe=P(require("os"),1);function Nm(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function h9(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Dm(t,e,r){let i=new d9(t,e,r);process.stdout.write(i.toString()+nSe.EOL)}function p9(t,e=""){Dm(t,{},e)}var iSe="::",d9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=iSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${C0t(n)}`)}}return e+=`${iSe}${w0t(this.message)}`,e}};function w0t(t){return Nm(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function C0t(t){return Nm(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var sSe=P(require("crypto"),1),cP=P(require("fs"),1),aP=P(require("os"),1);function m9(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!cP.existsSync(r))throw new Error(`Missing file at path: ${r}`);cP.appendFileSync(r,`${Nm(e)}${aP.EOL}`,{encoding:"utf8"})}function oSe(t,e){let r=`ghadelimiter_${sSe.randomUUID()}`,i=Nm(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(i.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${aP.EOL}${i}${aP.EOL}${r}`}var uSe=P(require("os"),1),lSe=P(require("path"),1);var cSe=require("os"),fx=require("fs"),A9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:I0t,appendFile:S0t,writeFile:B0t}=fx.promises,aSe="GITHUB_STEP_SUMMARY";var g9=class{constructor(){this._buffer=""}filePath(){return A9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[aSe];if(!e)throw new Error(`Unable to find environment variable for $${aSe}. Check if your runtime environment supports job summaries.`);try{yield I0t(e,fx.constants.R_OK|fx.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return A9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?B0t:S0t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return A9(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(cSe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return thiLine truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function hSe(t){process.exitCode=b9.Failure,R0t(t)}function K(t){Dm("debug",{},t)}function R0t(t,e={}){Dm("error",h9(e),t instanceof Error?t.toString():t)}function Qc(t,e={}){Dm("warning",h9(e),t instanceof Error?t.toString():t)}function X(t){process.stdout.write(t+uSe.EOL)}function T0t(t){p9("group",t)}function N0t(){p9("endgroup")}function Om(t,e){return _0t(this,void 0,void 0,function*(){T0t(t);let r;try{r=yield e()}finally{N0t()}return r})}function uP(t,e){if(process.env.GITHUB_STATE||"")return m9("STATE",oSe(t,e));Dm("save-state",{name:t},Nm(e))}function dSe(t){return process.env[`STATE_${t}`]||""}var lF=P(require("fs"),1),RZ=P(require("os"),1),TZ=P(require("path"),1);var mSe=P(require("os"),1);function hx(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function ASe(t,e,r){let i=new w9(t,e,r);process.stdout.write(i.toString()+mSe.EOL)}var pSe="::",w9=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=pSe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${O0t(n)}`)}}return e+=`${pSe}${D0t(this.message)}`,e}};function D0t(t){return hx(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function O0t(t){return hx(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var bSe=P(require("os"),1);var ySe=require("os"),dx=require("fs"),C9=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:P0t,appendFile:Q0t,writeFile:k0t}=dx.promises,gSe="GITHUB_STEP_SUMMARY";var I9=class{constructor(){this._buffer=""}filePath(){return C9(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[gSe];if(!e)throw new Error(`Unable to find environment variable for $${gSe}. Check if your runtime environment supports job summaries.`);try{yield P0t(e,dx.constants.R_OK|dx.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return C9(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?k0t:Q0t)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return C9(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(ySe.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},tNr=new I9;var S9=P(require("os"),1);var nNr=S9.default.platform(),sNr=S9.default.arch();var ESe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(ESe||(ESe={}));function B9(){return process.env.RUNNER_DEBUG==="1"}function br(t){ASe("debug",{},t)}function v9(t){process.stdout.write(t+bSe.EOL)}var W9=P(require("crypto"),1),Is=P(require("fs"),1);var OCt=P(z9(),1);var SP=P(require("os"),1),el=P(require("path"),1);var Fc=P(z9(),1),fve=P(require("stream"),1),hve=P(require("util"),1),J9=require("assLine truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let s=e.split(`
|
||||
`).map(n=>n.trim());for(let n of s)!n||n.startsWith("#")||i.patterns.push(new ix(n));return i.searchPaths.push(...nV(i.patterns)),i})}static stat(e,r,i){return hV(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield ow.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){N(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else s=yield ow.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield ow.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===n)){N(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return s})}};var uwt=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function yBe(t,e){return uwt(this,void 0,void 0,function*(){return yield YO.create(t,e)})}var hP=k(require("crypto"),1),uw=k(require("fs"),1),sy=k(require("path"),1),uxe=k(axe(),1),lxe=k(require("util"),1);var hx;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(hx||(hx={}));var no;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(no||(no={}));var La;(function(t){t.GNU="gnu",t.BSD="bsd"})(La||(La={}));var lP=2,fP=5e3,DV=5e3,OV=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,cxe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,dx="cache.tar",PV="manifest.txt",YRr=10*Math.pow(1024,3);var cw=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},oSt=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),s(a,c,o.done,o.value)})}}function s(n,o,a,c){Promise.resolve(c).then(function(u){n({value:u,done:a})},o)}},aSt="1.0";function px(){return cw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=sy.join(i,"actions","temp")}let r=sy.join(e,hP.randomUUID());return yield Ad(r),r})}function tf(t){return uw.statSync(t).size}function QV(t){return cw(this,void 0,void 0,function*(){var e,r,i,s,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield yBe(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,l=oSt(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){s=f.value,u=!1;let d=sy.relative(a,s).replace(new RegExp(`\\${sy.sep}`,"g"),"/");N(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function mx(t){return cw(this,void 0,void 0,function*(){return lxe.promisify(uw.unlink)(t)})}function fxe(t){return cw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Qa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>i+=s.toString(),stderr:s=>i+=s.toString()}})}catch(s){N(s.message)}return i=i.trim(),N(i),i})}function Ax(){return cw(this,void 0,void 0,function*(){let t=yield fxe("zstd",["--quiet"]),e=uxe.clean(t);return N(`zstd version: ${e}`),t===""?no.Gzip:no.ZstdWithoutLong})}function Rm(t){return t===no.Gzip?hx.Gzip:hx.Zstd}function hxe(){return cw(this,void 0,void 0,function*(){return uw.existsSync(OV)?OV:(yield fxe("tar")).toLowerCase().includes("gnu tar")?Js("tar"):""})}function kV(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function lw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(aSt),hP.createHash("sha256").update(i.join("|")).digest("hex")}function dxe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Mw=k(require("fs"),1),v1e=require("url");var rf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pxe=require("node:os"),mxe=k(require("node:util"),1),Axe=k(require("node:process"),1);function gxe(t,...e){Axe.default.stderr.write(`${mxe.default.format(t,...e)}${pxe.EOL}`)}var yxe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,bxe,LV=[],FV=[],pP=[];yxe&&MV(yxe);var wxe=Object.assign(t=>Cxe(t),{enable:MV,enabled:UV,disable:cSt,log:gxe});function MV(t){bxe=t,LV=[],FV=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?FV.push(r.substring(1)):LV.push(r);for(let r of pP)r.enabled=UV(r.namespace)}function UV(t){if(t.endsWith("*"))return!0;for(let e of FV)if(Exe(t,e))return!1;for(let e of LV)if(Exe(t,e))return!0;return!1}function Exe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,s=0,n=r.length,o=t.length,a=-1,c=-1;for(;i<o&&s<n;)if(r[s]==="*"){if(a=s,s++,s===n)return!0;for(;t[i]!==r[s];)if(i++,i===o)return!1;c=i,i++,s++;continue}else if(r[s]===t[i])s++,i++;else if(a>=0){if(s=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[s];)if(i++,i===o)return!1;c=i,i++,s++;continue}else return!1;let u=i===t.length,l=s===r.length,f=s===r.length-1&&r[s]==="*";return u&&(l||f)}function cSt(){let t=bxe||"";return MV(""),t}function Cxe(t){let e=Object.assign(r,{enabled:UV(t),destroy:uSt,log:wxe.log,namespace:t,extend:lSt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return pP.push(e),e}function uSt(){let t=pP.indexOf(this);return t>=0?(pP.splice(t,1),!0):!1}function lSt(t){let e=Cxe(`${this.namespace}:${t}`);return e.log=this.log,e}var fw=wxe;var qV=["verbose","info","warning","error"],Ixe={verbose:400,info:300,warning:200,error:100};function Sxe(t,e){e.log=(...r)=>{t.log(...r)}}function Bxe(t){return qV.includes(t)}function mP(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,s=fw(t.namespace);s.log=(...l)=>{fw.log(...l)};function n(l){if(l&&!Bxe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${qV.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);fw.enable(f.join(","))}r&&(Bxe(r)?n(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${qV.join(", ")}.`));function o(l){return!!(i&&Ixe[l.level]<=Ixe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(Sxe(l,h),o(h)){let d=fw.disable();fw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=s.extend(l);return Sxe(s,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:n,getLogLevel:c,createClientLogger:u,logger:s}}var vxe=mP({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),fSt=vxe.logger;function gx(t){return vxe.createClientLogger(t)}function AP(t){return t.toLowerCase()}function*hSt(t){for(let e of t.values())yield[e.name,e.value]}var GV=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(AP(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(AP(e))?.value}has(e){return this._headersMap.has(AP(e))}delete(e){this._headersMap.delete(AP(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap.value
Line truncated
|
||||
${mSt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function EP(t){return t instanceof oo?!0:oy(t)&&t.name==="RestError"}function Wo(t,e){return Buffer.from(t,e)}var bP=k(require("node:http"),1),wP=k(require("node:https"),1),VV=k(require("node:zlib"),1),Txe=require("node:stream");var Lc=gx("ts-http-runtime");var ASt={};function yx(t){return t&&typeof t.pipe=="function"}function Nxe(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 Dxe(t){return t&&typeof t.byteLength=="number"}var CP=class extends Txe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(s){i(s)}}constructor(e){super(),this.progressCallback=e}},$V=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new rf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Xu;Lc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=bSt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new CP(m);A.on("error",y=>{Lc.error("Error in upload progress",y)}),yx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let l=gSt(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?ySt(u,l):u;let d=e.onDownloadProgress;if(d){let m=new CP(d);m.on("error",A=>{Lc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await ESt(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();yx(a)&&(u=Nxe(a));let l=Promise.resolve();yx(c)&&(l=Nxe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Lc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let s=new URL(e.url),n=s.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let l=n?bP.default.request(a,c):wP.default.request(a,c);l.once("error",f=>{u(new oo(f.message,{code:f.code??oo.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new rf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&yx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):Dxe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Lc.error("Unrecognized body type",i),u(new oo("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?bP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new bP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return wP.default.globalAgent;let s=e.tlsSettings??ASt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!i||(Lc.info("No cached TLS Agent exist, creating a new Agent"),n=new wP.default.Agent({keepAlive:!i,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function gSt(t){let e=Fa();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function ySt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=VV.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=VV.default.createInflate();return t.pipe(i),i}return t}function ESt(t){return new Promise((e,r)=>{let i=[];t.on("data",s=>{Buffer.isBuffer(s)?i.push(s):i.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new oo(`Error reading response as text: ${s.message}`,{code:oo.PARSE_ERROR}))})})}function bSt(t){return t?Buffer.isBuffer(t)?t.length:yx(t)?null:Dxe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Oxe(){return new $V}function IP(){return Oxe()}var WV="logPolicy";function SP(t={}){let e=t.logger??Lc.info,r=new Xu({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional
Line truncated
|
||||
`;return e}function XBt(t){return t instanceof Uint8Array?t.byteLength:zP(t)?t.size===-1?void 0:t.size:void 0}function ZBt(t){let e=0;for(let r of t){let i=XBt(r);if(i===void 0)return;e+=i}return e}async function evt(t,e,r){let i=[Wo(`--${r}`,"utf-8"),...e.flatMap(n=>[Wo(`\r
|
||||
`,"utf-8"),Wo(KBt(n.headers),"utf-8"),Wo(`\r
|
||||
`,"utf-8"),n.body,Wo(`\r
|
||||
--${r}`,"utf-8")]),Wo(`--\r
|
||||
`));let n=e.split(`
|
||||
`).map(s=>s.trim());for(let s of n)!s||s.startsWith("#")||i.patterns.push(new Tx(s));return i.searchPaths.push(...u$(i.patterns)),i})}static stat(e,r,i){return A$(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield ww.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Uc(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else n=yield ww.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let s=yield ww.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===s)){Uc(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}i.push(s)}return n})}};var RIt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function ixe(t,e){return RIt(this,void 0,void 0,function*(){return yield RP.create(t,e)})}var VP=P(require("crypto"),1),Sw=P(require("fs"),1),gy=P(require("path"),1),W_e=P(z_e(),1),J_e=P(require("util"),1);var Mx;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Mx||(Mx={}));var lo;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(lo||(lo={}));var Ha;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ha||(Ha={}));var HP=2,jP=5e3,k$=5e3,L$=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,$_e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ux="cache.tar",F$="manifest.txt",LDr=10*Math.pow(1024,3);var Iw=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},vvt=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={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(s){r[s]=t[s]&&function(o){return new Promise(function(a,c){o=t[s](o),n(a,c,o.done,o.value)})}}function n(s,o,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},o)}},xvt="1.0";function qx(){return Iw(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let i;t?i=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?i="/Users":i="/home",e=gy.join(i,"actions","temp")}let r=gy.join(e,VP.randomUUID());return yield Ed(r),r})}function af(t){return Sw.statSync(t).size}function M$(t){return Iw(this,void 0,void 0,function*(){var e,r,i,n,s;let o=[],a=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),c=yield ixe(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var u=!0,l=vvt(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){n=f.value,u=!1;let d=gy.relative(a,n).replace(new RegExp(`\\${gy.sep}`,"g"),"/");ce(`Matched: ${d}`),d===""?o.push("."):o.push(`${d}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(i=l.return)&&(yield i.call(l))}finally{if(r)throw r.error}}return o})}function Gx(t){return Iw(this,void 0,void 0,function*(){return J_e.promisify(Sw.unlink)(t)})}function Y_e(t){return Iw(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),ce(`Checking ${e} ${r.join(" ")}`);try{yield qa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>i+=n.toString(),stderr:n=>i+=n.toString()}})}catch(n){ce(n.message)}return i=i.trim(),ce(i),i})}function Hx(){return Iw(this,void 0,void 0,function*(){let t=yield Y_e("zstd",["--quiet"]),e=W_e.clean(t);return ce(`zstd version: ${e}`),t===""?lo.Gzip:lo.ZstdWithoutLong})}function Mm(t){return t===lo.Gzip?Mx.Gzip:Mx.Zstd}function K_e(){return Iw(this,void 0,void 0,function*(){return Sw.existsSync(L$)?L$:(yield Y_e("tar")).toLowerCase().includes("gnu tar")?Zn("tar"):""})}function U$(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Bw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(xvt),VP.createHash("sha256").update(i.join("|")).digest("hex")}function X_e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var eC=P(require("fs"),1),fDe=require("url");var cf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Z_e=require("node:os"),eRe=P(require("node:util"),1),tRe=P(require("node:process"),1);function rRe(t,...e){tRe.default.stderr.write(`${eRe.default.format(t,...e)}${Z_e.EOL}`)}var iRe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,sRe,q$=[],G$=[],$P=[];iRe&&H$(iRe);var oRe=Object.assign(t=>aRe(t),{enable:H$,enabled:j$,disable:_vt,log:rRe});function H$(t){sRe=t,q$=[],G$=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?G$.push(r.substring(1)):q$.push(r);for(let r of $P)r.enabled=j$(r.namespace)}function j$(t){if(t.endsWith("*"))return!0;for(let e of G$)if(nRe(t,e))return!1;for(let e of q$)if(nRe(t,e))return!0;return!1}function nRe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let h=[],d="";for(let m of e)m==="*"&&d==="*"||(d=m,h.push(m));r=h.join("")}let i=0,n=0,s=r.length,o=t.length,a=-1,c=-1;for(;i<o&&n<s;)if(r[n]==="*"){if(a=n,n++,n===s)return!0;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else if(r[n]===t[i])n++,i++;else if(a>=0){if(n=a+1,i=c+1,i===o)return!1;for(;t[i]!==r[n];)if(i++,i===o)return!1;c=i,i++,n++;continue}else return!1;let u=i===t.length,l=n===r.length,f=n===r.length-1&&r[n]==="*";return u&&(l||f)}function _vt(){let t=sRe||"";return H$(""),t}function aRe(t){let e=Object.assign(r,{enabled:j$(t),destroy:Rvt,log:oRe.log,namespace:t,extend:Tvt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return $P.push(e),e}function Rvt(){let t=$P.indexOf(this);return t>=0?($P.splice(t,1),!0):!1}function Tvt(t){let e=aRe(`${this.namespace}:${t}`);return e.log=this.log,e}var vw=oRe;var V$=["verbose","info","warning","error"],cRe={verbose:400,info:300,warning:200,error:100};function uRe(t,e){e.log=(...r)=>{t.log(...r)}}function lRe(t){return V$.includes(t)}function WP(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,n=vw(t.namespace);n.log=(...l)=>{vw.log(...l)};function s(l){if(l&&!lRe(l))throw new Error(`Unknown log level '${l}'. Acceptable values: ${V$.join(",")}`);i=l;let f=[];for(let h of e)o(h)&&f.push(h.namespace);vw.enable(f.join(","))}r&&(lRe(r)?s(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${V$.join(", ")}.`));function o(l){return!!(i&&cRe[l.level]<=cRe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(uRe(l,h),o(h)){let d=vw.disable();vw.enable(d+","+h.namespace)}return e.add(h),h}function c(){return i}function u(l){let f=n.extend(l);return uRe(n,f),{error:a(f,"error"),warning:a(f,"warning"),info:a(f,"info"),verbose:a(f,"verbose")}}return{setLogLevel:s,getLogLevel:c,createClientLogger:u,logger:n}}var fRe=WP({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Nvt=fRe.logger;function jx(t){return fRe.createClientLogger(t)}function JP(t){return t.toLowerCase()}function*Dvt(t){for(let e of t.values())yield[e.name,e.value]}var z$=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(JP(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(JP(e))?.value}has(e){return this._headersMap.has(JP(e))}delete(e){this._headersMap.delete(JP(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let i of this._headersMap.
Line truncated
|
||||
${Qvt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function XP(t){return t instanceof fo?!0:Ey(t)&&t.name==="RestError"}function ta(t,e){return Buffer.from(t,e)}var ZP=P(require("node:http"),1),eQ=P(require("node:https"),1),Y$=P(require("node:zlib"),1),ARe=require("node:stream");var Hc=jx("ts-http-runtime");var kvt={};function Vx(t){return t&&typeof t.pipe=="function"}function mRe(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 gRe(t){return t&&typeof t.byteLength=="number"}var tQ=class extends ARe.Transform{loadedBytes=0;progressCallback;_transform(e,r,i){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),i()}catch(n){i(n)}}constructor(e){super(),this.progressCallback=e}},K$=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new cf("The operation was aborted. Request has already been canceled.");i=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",i)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new nl;Hc.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),o=s?.includes("gzip")||s?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=Uvt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new tQ(m);A.on("error",y=>{Hc.error("Error in upload progress",y)}),Vx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let l=Lvt(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?Fvt(u,l):u;let d=e.onDownloadProgress;if(d){let m=new tQ(d);m.on("error",A=>{Hc.error("Error in download progress",A)}),c.pipe(m),c=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=c:h.bodyAsText=await Mvt(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();Vx(a)&&(u=mRe(a));let l=Promise.resolve();Vx(c)&&(l=mRe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Hc.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,i){let n=new URL(e.url),s=n.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,s),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let l=s?ZP.default.request(a,c):eQ.default.request(a,c);l.once("error",f=>{u(new fo(f.message,{code:f.code??fo.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new cf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&Vx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):gRe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Hc.error("Unrecognized body type",i),u(new fo("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?ZP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new ZP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return eQ.default.globalAgent;let n=e.tlsSettings??kvt,s=this.cachedHttpsAgents.get(n);return s&&s.options.keepAlive===!i||(Hc.info("No cached TLS Agent exist, creating a new Agent"),s=new eQ.default.Agent({keepAlive:!i,...n}),this.cachedHttpsAgents.set(n,s)),s}}};function Lvt(t){let e=ja();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(r,i[0]):i&&e.set(r,i)}return e}function Fvt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let i=Y$.default.createGunzip();return t.pipe(i),i}else if(r==="deflate"){let i=Y$.default.createInflate();return t.pipe(i),i}return t}function Mvt(t){return new Promise((e,r)=>{let i=[];t.on("data",n=>{Buffer.isBuffer(n)?i.push(n):i.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(i).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new fo(`Error reading response as text: ${n.message}`,{code:fo.PARSE_ERROR}))})})}function Uvt(t){return t?Buffer.isBuffer(t)?t.length:Vx(t)?null:gRe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function yRe(){return new K$}function rQ(){return yRe()}var X$="logPolicy";function iQ(t={}){let e=t.logger??Hc.info,r=new nl({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional
Line truncated
|
||||
`;return e}function y_t(t){return t instanceof Uint8Array?t.byteLength:SQ(t)?t.size===-1?void 0:t.size:void 0}function E_t(t){let e=0;for(let r of t){let i=y_t(r);if(i===void 0)return;e+=i}return e}async function b_t(t,e,r){let i=[ta(`--${r}`,"utf-8"),...e.flatMap(s=>[ta(`\r
|
||||
`,"utf-8"),ta(g_t(s.headers),"utf-8"),ta(`\r
|
||||
`,"utf-8"),s.body,ta(`\r
|
||||
--${r}`,"utf-8")]),ta(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=ZBt(i);s&&t.headers.set("Content-Length",s),t.body=await P_e(i)}var Cx="multipartPolicy",tvt=70,rvt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ivt(t){if(t.length>tvt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!rvt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function $P(){return{name:Cx,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,i=t.headers.get("Content-Type")??"multipart/mixed",s=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,n,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?ivt(r):r=YBt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await evt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function WP(){return yP()}var Q_e=mP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),O2r=Q_e.logger;function of(t){return Q_e.createClientLogger(t)}var af=of("core-rest-pipeline");function d$(t={}){return SP({logger:af.info,...t})}var p$=BP;function m$(t={}){return vP(t)}var JP=k(require("node:os"),1),YP=k(require("node:process"),1);function k_e(){return"User-Agent"}async function L_e(t){if(YP.default&&YP.default.versions){let e=`${JP.default.type()} ${JP.default.release()}; ${JP.default.arch()}`,r=YP.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var KP="1.22.2";function fvt(t){let e=[];for(let[r,i]of t){let s=i?`${r}/${i}`:r;e.push(s)}return e.join(" ")}function F_e(){return k_e()}async function XP(t){let e=new Map;e.set("core-rest-pipeline",KP),await L_e(e);let r=fvt(e);return t?`${t} ${r}`:r}var M_e=F_e(),U_e="userAgentPolicy";function A$(t={}){let e=XP(t.userAgentPrefix);return{name:U_e,async sendRequest(r,i){return r.headers.has(M_e)||r.headers.set(M_e,await e),i(r)}}}var Ga=class extends Error{constructor(e){super(e),this.name="AbortError"}};function g$(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:s}=e??{};return new Promise((n,o)=>{function a(){o(new Ga(s??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),n(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var Avt="The delay was aborted.";function Ix(t,e){let r,{abortSignal:i,abortErrorMsg:s}=e??{};return g$(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:s??Avt})}function Tm(t){if(oy(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 q_e(t){return oy(t)}function yw(){return ny()}var Kt=uy;var G_e=Symbol("rawContent");function E$(t){return typeof t[G_e]=="function"}function H_e(t){return E$(t)?t[G_e]():t}var ZP=Cx;function b$(){let t=$P();return{name:ZP,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)E$(i.body)&&(i.body=H_e(i.body));return t.sendRequest(e,r)}}}var w$=xP;function C$(){return _P()}function I$(t={}){return TP(t)}function S$(){return DP()}function Dm(t){return c$(t)}function B$(t,e){return GP(t,e)}var j_e="setClientRequestIdPolicy";function v$(t="x-ms-client-request-id"){return{name:j_e,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function x$(t){return HP(t)}function _$(t){return jP(t)}var Ew={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function z_e(t={}){let e=new R$(t.parentContext);return t.span&&(e=e.setValue(Ew.span,t.span)),t.namespace&&(e=e.setValue(Ew.namespace,t.namespace)),e}var R$=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var $_e=k(V_e(),1),tQ=$_e.state;function gvt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function yvt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:gvt(),tracingContext:z_e({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Sx(){return tQ.instrumenterImplementation||(tQ.instrumenterImplementation=yvt()),tQ.instrumenterImplementation}function Bx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function s(u,l,f){let h=Sx().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte
Line truncated
|
||||
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!Uxt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",Ci("InvalidTag",f,ao(t,n))}let u=Qxt(t,n);if(u===!1)return Ci("InvalidAttr","Attributes for '"+c+"' have open quote.",ao(t,n));let l=u.value;if(n=u.index,l[l.length-1]==="/"){let f=n-l.length;l=l.substring(0,l.length-1);let h=_Re(l,e);if(h===!0)i=!0;else return Ci(h.err.code,h.err.msg,ao(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return Ci("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ao(t,o));if(r.length===0)return Ci("InvalidTag","Closing tag '"+c+"' has not been opened.",ao(t,o));{let f=r.pop();if(c!==f.tagName){let h=ao(t,f.tagStartPos);return Ci("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",ao(t,o))}r.length==0&&(s=!0)}}else return Ci("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ao(t,n));else{let f=_Re(l,e);if(f!==!0)return Ci(f.err.code,f.err.msg,ao(t,n-l.length+f.err.line));if(s===!0)return Ci("InvalidXml","Multiple possible root nodes found.",ao(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=xRe(t,n);continue}else if(t[n+1]==="?"){if(n=vRe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let f=Fxt(t,n);if(f==-1)return Ci("InvalidChar","char '&' is not expected.",ao(t,n));n=f}else if(s===!0&&!BRe(t[n]))return Ci("InvalidXml","Extra text at the end",ao(t,n));t[n]==="<"&&n--}}else{if(BRe(t[n]))continue;return Ci("InvalidChar","char '"+t[n]+"' is not expected.",ao(t,n))}if(i){if(r.length==1)return Ci("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ao(t,r[0].tagStartPos));if(r.length>0)return Ci("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ci("InvalidXml","Start tag expected.",1);return!0}function BRe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function vRe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Ci("InvalidXml","XML declaration allowed only at the start of the document.",ao(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function xRe(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 Oxt='"',Pxt="'";function Qxt(t,e){let r="",i="",s=!1;for(;e<t.length;e++){if(t[e]===Oxt||t[e]===Pxt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){s=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:s}}var kxt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function _Re(t,e){let r=lQ(t,kxt),i={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Qx(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Qx(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ci("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Qx(r[s]));let n=r[s][2];if(!Mxt(n))return Ci("InvalidAttr","Attribute '"+n+"' is an invalid name.",Qx(r[s]));if(!Object.prototype.hasOwnProperty.call(i,n))i[n]=1;else return Ci("InvalidAttr","Attribute '"+n+"' is repeated.",Qx(r[s]))}return!0}function Lxt(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 Fxt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Lxt(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 Ci(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Mxt(t){return Cw(t)}function Uxt(t){return Cw(t)}function ao(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Qx(t){return t.startIndex+t[1].length}var RRe=t=>Px.includes(t)?"__"+t:t,qxt={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:RRe};function Gxt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Px.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(fQ.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function NRe(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}:NRe(!0)}var TRe=function(t){let e=Object.assign({},qxt,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:i,name:s}of r)i&&Gxt(i,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=RRe),e.processEntities=NRe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(i=>typeof i=="string"&&i.startsWith("*.")?".."+i.substring(2):i)),e};var dQ;typeof Symbol!="function"?dQ="@@xmlMetadata":dQ=Symbol("XML Node Metadata");var Ko=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 Ko("!xml"),r=e,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Lx(this.options.processEntities);for(let n=0;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="/"){let a=Ay(t,">",n,"Closing Tag is not closed."),c=t.substring(n+2,a).trim();if(this.options.removeNSPrefix){let l=c.indexOf(":");l!==-1&&(c=c.substr(l+1))}c=J$(this.options.transformTagName,c,"",this.options).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let u=this.matcher.getCurrentTag();if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);u&&this.options.unpairedTags.indexOf(u)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",n=a}else if(t[n+1]==="?"){let a=Y$(t,n,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let c=new Ko(a.tagName);c.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(c[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,c,this.readonlyMatcher,n)}n=a.closeIndex+1}else if(t.substr(n+1,3)==="!--"){let a=Ay(t,"-->",n+4,"Comment is not closed.");if(this.options.commentPropName){let c=t.substring(n+4,a-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}n=a}else if(t.substr(n+1,2)==="!D"){let a=s.readDocType(t,n);this.docTypeEntities=a.entities,n=a.i}else if(t.substr(n+1,2)==="!["){let a=Ay(t,"]]>",n,"CDATA is not closed.")-2,c=t.substring(n+9,a);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let u=this.parseTextData(c,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):r.add(this.options.textNodeName,u),n=a+2}else{let a=Y$(t,n,this.options.removeNSPrefix);if(!a){let w=t.substring(Math.max(0,n-50),Math.min(t.length,n+50));throw new Error(`readTagExp returned undefined at position ${n}. Context: "${w}"`)}let c=a.tagName,u=a.rawTagName,l=a.tagExp,f=a.attrExpPresent,h=a.closeIndex;if({tagName:c,tagExp:l}=J$(this.options.transformTagName,c,l,this.options),this.options.strictReservedNames&&(c===this.options.commentPropName||c===this.options.cdataPropName||c===this.options.textNodeName||c===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let d=r;d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;l.length>0&&l.lastIndexOf("/")===l.length-1&&(m=!0,c[c.length-1]==="/"?(c=c.substr(0,c.length-1),l=c):l=l.substr(0,l.length-1),f=c!==l);let A=null,y={},g;g=Zxt(u),c!==e.tagname&&this.matcher.push(c,{},g),c!==l&&f&&(A=this.buildAttributesMap(l,this.matcher,c),A&&(y=Xxt(A,this.options))),c!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let E=n;if(this.isCurrentNodeStopNode){let w="";if(m)n=a.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)n=a.closeIndex;else{let D=this.readStopNodeData(t,u,h+1);if(!D)throw new Error(`Unexpected end of ${u}`);n=D.i,w=D.tagContent}let S=new Ko(c);A&&(S[":@"]=A),S.add(this.options.textNodeName,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,S,this.readonlyMatcher,E)}else{if(m){({tagName:c,tagExp:l}=J$(this.options.transformTagName,c,l,this.options));let w=new Ko(c);A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(c)!==-1){let w=new Ko(c);A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=a.closeIndex;continue}else{let w=new Ko(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),r=w}i="",n=h}}else i+=t[n];return e.child};function o_t(t,e,r,i){this.options.captureMetaData||(i=void 0);let s=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,s,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,i))}function a_t(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,s)))return t}if(i.tagFilter){let s=this.options.jPath?r.toString():r;if(!i.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let n=this.docTypeEntities[s],o=t.match(n.regx);if(o){if(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function C_t(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(iW(r)==="?xml"){let s=r[":@"];if(s){let n=e.attributeNamePrefix+"version";if(s[n])return s[n]}}return"1.0"}function MRe(t,e,r,i,s){return!r.sanitizeName||AQ(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function rW(t,e){let r="";e.format&&(r=w_t);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?i.push(new lf(a)):a instanceof lf&&i.push(a)}let s=C_t(t,e),n=new Qm;return URe(t,e,r,n,i,s)}function URe(t,e,r,i,s,n){let o="",a=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=tW(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],l=iW(u);if(l===void 0)continue;let h=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:MRe(l,!1,e,i,n),d=I_t(u[":@"],e);i.push(h,d);let m=B_t(i,s);if(h===e.textNodeName){let w=u[l];m||(w=e.tagValueProcessor(h,w),w=tW(w,e)),a&&(o+=r),o+=w,a=!1,i.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let w=u[l][0][e.textNodeName],S=mQ(w);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let w=u[l][0][e.textNodeName],S=pQ(w);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let w=FRe(u[":@"],e,m,i,n);o+=(h==="?xml"?"":r)+`<${h}${w}?>`,a=!0,i.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=FRe(u[":@"],e,m,i,n),g=r+`<${h}${y}`,E;m?E=qRe(u[l],e):E=URe(u[l],e,A,i,s,n),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${h}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${h}>`),a=!0,i.pop()}return o}function I_t(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[n]=km(t[s]),i=!0}return i?r:null}function qRe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let s=t[i],n=iW(s);if(n===e.textNodeName)r+=s[n];else if(n===e.cdataPropName)r+=s[n][0][e.textNodeName];else if(n===e.commentPropName)r+=s[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=S_t(s[":@"],e),a=qRe(s[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function S_t(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=t[i];s===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${km(s)}"`}return r}function iW(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function FRe(t,e,r,i,s){let n="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:MRe(a,!0,e,i,s),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=tW(u,e)),u===!0&&e.suppressBooleanAttributes?n+=` ${c}`:n+=` ${c}="${km(u)}"`}return n}function B_t(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 tW(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function sW(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 v_t={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,sanitizeName:!1};function Zo(t){if(this.options=Object.assign({},v_t,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 lf(r)):r instanceof lf&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
|
||||
`,"utf-8")],n=E_t(i);n&&t.headers.set("Content-Length",n),t.body=await ETe(i)}var Jx="multipartPolicy",w_t=70,C_t=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function I_t(t){if(t.length>w_t)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!C_t.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function vQ(){return{name:Jx,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,i=t.headers.get("Content-Type")??"multipart/mixed",n=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`);let[,s,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?I_t(r):r=A_t(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await b_t(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function xQ(){return KP()}var bTe=WP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),bkr=bTe.logger;function ff(t){return bTe.createClientLogger(t)}var hf=ff("core-rest-pipeline");function gW(t={}){return iQ({logger:hf.info,...t})}var yW=nQ;function EW(t={}){return sQ(t)}var _Q=P(require("node:os"),1),RQ=P(require("node:process"),1);function wTe(){return"User-Agent"}async function CTe(t){if(RQ.default&&RQ.default.versions){let e=`${_Q.default.type()} ${_Q.default.release()}; ${_Q.default.arch()}`,r=RQ.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var TQ="1.22.2";function N_t(t){let e=[];for(let[r,i]of t){let n=i?`${r}/${i}`:r;e.push(n)}return e.join(" ")}function ITe(){return wTe()}async function NQ(t){let e=new Map;e.set("core-rest-pipeline",TQ),await CTe(e);let r=N_t(e);return t?`${t} ${r}`:r}var STe=ITe(),BTe="userAgentPolicy";function bW(t={}){let e=NQ(t.userAgentPrefix);return{name:BTe,async sendRequest(r,i){return r.headers.has(STe)||r.headers.set(STe,await e),i(r)}}}var Wa=class extends Error{constructor(e){super(e),this.name="AbortError"}};function wW(t,e){let{cleanupBeforeAbort:r,abortSignal:i,abortErrorMsg:n}=e??{};return new Promise((s,o)=>{function a(){o(new Wa(n??"The operation was aborted."))}function c(){i?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(i?.aborted)return a();try{t(l=>{c(),s(l)},l=>{c(),o(l)})}catch(l){o(l)}i?.addEventListener("abort",u)})}var k_t="The delay was aborted.";function Yx(t,e){let r,{abortSignal:i,abortErrorMsg:n}=e??{};return wW(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:n??k_t})}function qm(t){if(Ey(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 vTe(t){return Ey(t)}function Ow(){return yy()}var Xt=Cy;var xTe=Symbol("rawContent");function IW(t){return typeof t[xTe]=="function"}function _Te(t){return IW(t)?t[xTe]():t}var DQ=Jx;function SW(){let t=vQ();return{name:DQ,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)IW(i.body)&&(i.body=_Te(i.body));return t.sendRequest(e,r)}}}var BW=oQ;function vW(){return aQ()}function xW(t={}){return lQ(t)}function _W(){return fQ()}function Gm(t){return hW(t)}function RW(t,e){return wQ(t,e)}var RTe="setClientRequestIdPolicy";function TW(t="x-ms-client-request-id"){return{name:RTe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function NW(t){return CQ(t)}function DW(t){return IQ(t)}var Pw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function TTe(t={}){let e=new OW(t.parentContext);return t.span&&(e=e.setValue(Pw.span,t.span)),t.namespace&&(e=e.setValue(Pw.namespace,t.namespace)),e}var OW=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let i=new t(this);return i._contextMap.set(e,r),i}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var DTe=P(NTe(),1),PQ=DTe.state;function L_t(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function F_t(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:L_t(),tracingContext:TTe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Kx(){return PQ.instrumenterImplementation||(PQ.instrumenterImplementation=F_t()),PQ.instrumenterImplementation}function Xx(t){let{namespace:e,packageName:r,packageVersion:i}=t;function n(u,l,f){let h=Kx().startSpan(u,{...f,packageName:r,packageVersion:i,tracingContext:l?.tracingOptions?.tracingContext}),d=h.tracingConte
Line truncated
|
||||
`&&t[s]!=="\r";s++)c+=t[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!oTt(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",Bi("InvalidTag",f,ho(t,s))}let u=tTt(t,s);if(u===!1)return Bi("InvalidAttr","Attributes for '"+c+"' have open quote.",ho(t,s));let l=u.value;if(s=u.index,l[l.length-1]==="/"){let f=s-l.length;l=l.substring(0,l.length-1);let h=dNe(l,e);if(h===!0)i=!0;else return Bi(h.err.code,h.err.msg,ho(t,f+h.err.line))}else if(a)if(u.tagClosed){if(l.trim().length>0)return Bi("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ho(t,o));if(r.length===0)return Bi("InvalidTag","Closing tag '"+c+"' has not been opened.",ho(t,o));{let f=r.pop();if(c!==f.tagName){let h=ho(t,f.tagStartPos);return Bi("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+c+"'.",ho(t,o))}r.length==0&&(n=!0)}}else return Bi("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ho(t,s));else{let f=dNe(l,e);if(f!==!0)return Bi(f.err.code,f.err.msg,ho(t,s-l.length+f.err.line));if(n===!0)return Bi("InvalidXml","Multiple possible root nodes found.",ho(t,s));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),i=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=hNe(t,s);continue}else if(t[s+1]==="?"){if(s=fNe(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=nTt(t,s);if(f==-1)return Bi("InvalidChar","char '&' is not expected.",ho(t,s));s=f}else if(n===!0&&!lNe(t[s]))return Bi("InvalidXml","Extra text at the end",ho(t,s));t[s]==="<"&&s--}}else{if(lNe(t[s]))continue;return Bi("InvalidChar","char '"+t[s]+"' is not expected.",ho(t,s))}if(i){if(r.length==1)return Bi("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ho(t,r[0].tagStartPos));if(r.length>0)return Bi("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Bi("InvalidXml","Start tag expected.",1);return!0}function lNe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function fNe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let i=t.substr(r,e-r);if(e>5&&i==="xml")return Bi("InvalidXml","XML declaration allowed only at the start of the document.",ho(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function hNe(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 ZRt='"',eTt="'";function tTt(t,e){let r="",i="",n=!1;for(;e<t.length;e++){if(t[e]===ZRt||t[e]===eTt)i===""?i=t[e]:i!==t[e]||(i="");else if(t[e]===">"&&i===""){n=!0;break}r+=t[e]}return i!==""?!1:{value:r,index:e,tagClosed:n}}var rTt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function dNe(t,e){let r=HQ(t,rTt),i={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Bi("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",c_(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Bi("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",c_(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Bi("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",c_(r[n]));let s=r[n][2];if(!sTt(s))return Bi("InvalidAttr","Attribute '"+s+"' is an invalid name.",c_(r[n]));if(!Object.prototype.hasOwnProperty.call(i,s))i[s]=1;else return Bi("InvalidAttr","Attribute '"+s+"' is repeated.",c_(r[n]))}return!0}function iTt(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 nTt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,iTt(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 Bi(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function sTt(t){return Lw(t)}function oTt(t){return Lw(t)}function ho(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function c_(t){return t.startIndex+t[1].length}var pNe=t=>a_.includes(t)?"__"+t:t,aTt={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:pNe};function cTt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(a_.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(jQ.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function mNe(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}:mNe(!0)}var ANe=function(t){let e=Object.assign({},aTt,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:i,name:n}of r)i&&cTt(i,n);return e.onDangerousProperty===null&&(e.onDangerousProperty=pNe),e.processEntities=mNe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(i=>typeof i=="string"&&i.startsWith("*.")?".."+i.substring(2):i)),e};var zQ;typeof Symbol!="function"?zQ="@@xmlMetadata":zQ=Symbol("XML Node Metadata");var na=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 na("!xml"),r=e,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=new l_(this.options.processEntities);for(let s=0;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="/"){let a=Ry(t,">",s,"Closing Tag is not closed."),c=t.substring(s+2,a).trim();if(this.options.removeNSPrefix){let l=c.indexOf(":");l!==-1&&(c=c.substr(l+1))}c=ZW(this.options.transformTagName,c,"",this.options).tagName,r&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher));let u=this.matcher.getCurrentTag();if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);u&&this.options.unpairedTags.indexOf(u)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),i="",s=a}else if(t[s+1]==="?"){let a=eJ(t,s,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let c=new na(a.tagName);c.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(c[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,c,this.readonlyMatcher,s)}s=a.closeIndex+1}else if(t.substr(s+1,3)==="!--"){let a=Ry(t,"-->",s+4,"Comment is not closed.");if(this.options.commentPropName){let c=t.substring(s+4,a-2);i=this.saveTextToParentTag(i,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}s=a}else if(t.substr(s+1,2)==="!D"){let a=n.readDocType(t,s);this.docTypeEntities=a.entities,s=a.i}else if(t.substr(s+1,2)==="!["){let a=Ry(t,"]]>",s,"CDATA is not closed.")-2,c=t.substring(s+9,a);i=this.saveTextToParentTag(i,r,this.readonlyMatcher);let u=this.parseTextData(c,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):r.add(this.options.textNodeName,u),s=a+2}else{let a=eJ(t,s,this.options.removeNSPrefix);if(!a){let w=t.substring(Math.max(0,s-50),Math.min(t.length,s+50));throw new Error(`readTagExp returned undefined at position ${s}. Context: "${w}"`)}let c=a.tagName,u=a.rawTagName,l=a.tagExp,f=a.attrExpPresent,h=a.closeIndex;if({tagName:c,tagExp:l}=ZW(this.options.transformTagName,c,l,this.options),this.options.strictReservedNames&&(c===this.options.commentPropName||c===this.options.cdataPropName||c===this.options.textNodeName||c===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);r&&i&&r.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,r,this.readonlyMatcher,!1));let d=r;d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;l.length>0&&l.lastIndexOf("/")===l.length-1&&(m=!0,c[c.length-1]==="/"?(c=c.substr(0,c.length-1),l=c):l=l.substr(0,l.length-1),f=c!==l);let A=null,y={},g;g=ETt(u),c!==e.tagname&&this.matcher.push(c,{},g),c!==l&&f&&(A=this.buildAttributesMap(l,this.matcher,c),A&&(y=yTt(A,this.options))),c!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let E=s;if(this.isCurrentNodeStopNode){let w="";if(m)s=a.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)s=a.closeIndex;else{let N=this.readStopNodeData(t,u,h+1);if(!N)throw new Error(`Unexpected end of ${u}`);s=N.i,w=N.tagContent}let S=new na(c);A&&(S[":@"]=A),S.add(this.options.textNodeName,w),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,S,this.readonlyMatcher,E)}else{if(m){({tagName:c,tagExp:l}=ZW(this.options.transformTagName,c,l,this.options));let w=new na(c);A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(c)!==-1){let w=new na(c);A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let w=new na(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),A&&(w[":@"]=A),this.addChild(r,w,this.readonlyMatcher,E),r=w}i="",s=h}}else i+=t[s];return e.child};function vTt(t,e,r,i){this.options.captureMetaData||(i=void 0);let n=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,n,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,i))}function xTt(t,e,r){let i=this.options.processEntities;if(!i||!i.enabled)return t;if(i.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(e):i.allowedTags(e,n)))return t}if(i.tagFilter){let n=this.options.jPath?r.toString():r;if(!i.tagFilter(e,n))return t}for(let n of Object.keys(this.docTypeEntities)){let s=this.docTypeEntities[n],o=t.match(s.regx);if(o){if(this.entityExpansionCount+=o.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function GTt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(aJ(r)==="?xml"){let n=r[":@"];if(n){let s=e.attributeNamePrefix+"version";if(n[s])return n[s]}}return"1.0"}function SNe(t,e,r,i,n){return!r.sanitizeName||JQ(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}function oJ(t,e){let r="";e.format&&(r=qTt);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?i.push(new mf(a)):a instanceof mf&&i.push(a)}let n=GTt(t,e),s=new Vm;return BNe(t,e,r,s,i,n)}function BNe(t,e,r,i,n,s){let o="",a=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=sJ(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],l=aJ(u);if(l===void 0)continue;let h=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:SNe(l,!1,e,i,s),d=HTt(u[":@"],e);i.push(h,d);let m=VTt(i,n);if(h===e.textNodeName){let w=u[l];m||(w=e.tagValueProcessor(h,w),w=sJ(w,e)),a&&(o+=r),o+=w,a=!1,i.pop();continue}else if(h===e.cdataPropName){a&&(o+=r);let w=u[l][0][e.textNodeName],S=WQ(w);o+=`<![CDATA[${S}]]>`,a=!1,i.pop();continue}else if(h===e.commentPropName){let w=u[l][0][e.textNodeName],S=$Q(w);o+=r+`<!--${S}-->`,a=!0,i.pop();continue}else if(h[0]==="?"){let w=INe(u[":@"],e,m,i,s);o+=(h==="?xml"?"":r)+`<${h}${w}?>`,a=!0,i.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=INe(u[":@"],e,m,i,s),g=r+`<${h}${y}`,E;m?E=vNe(u[l],e):E=BNe(u[l],e,A,i,n,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!E||E.length===0)&&e.suppressEmptyNode?o+=g+"/>":E&&E.endsWith(">")?o+=g+`>${E}${r}</${h}>`:(o+=g+">",E&&r!==""&&(E.includes("/>")||E.includes("</"))?o+=r+e.indentBy+E+r:o+=E,o+=`</${h}>`),a=!0,i.pop()}return o}function HTt(t,e){if(!t||e.ignoreAttributes)return null;let r={},i=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[s]=zm(t[n]),i=!0}return i?r:null}function vNe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let i=0;i<t.length;i++){let n=t[i],s=aJ(n);if(s===e.textNodeName)r+=n[s];else if(s===e.cdataPropName)r+=n[s][0][e.textNodeName];else if(s===e.commentPropName)r+=n[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let o=jTt(n[":@"],e),a=vNe(n[s],e);!a||a.length===0?r+=`<${s}${o}/>`:r+=`<${s}${o}>${a}</${s}>`}}}return r}function jTt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=t[i];n===!0&&e.suppressBooleanAttributes?r+=` ${i.substr(e.attributeNamePrefix.length)}`:r+=` ${i.substr(e.attributeNamePrefix.length)}="${zm(n)}"`}return r}function aJ(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i!==":@")return i}}function INe(t,e,r,i,n){let s="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:SNe(a,!0,e,i,n),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=sJ(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${c}`:s+=` ${c}="${zm(u)}"`}return s}function VTt(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 sJ(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function cJ(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 zTt={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,sanitizeName:!1};function oa(t){if(this.options=Object.assign({},zTt,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 mf(r)):r instanceof mf&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
|
||||
`,this.newLine=`
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function x_t(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}function nW(t,e,r,i,s){return!r.sanitizeName||AQ(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}Zo.prototype.build=function(t){if(this.options.preserveOrder)return rW(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Qm,r=x_t(t,this.options);return this.j2x(t,0,e,r).val}};Zo.prototype.j2x=function(t,e,r,i){let s="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:nW(c,!1,this.options,r,i);if(typeof t[c]>"u")this.isAttribute(c)&&(n+="");else if(t[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?n+="":l[0]==="?"?n+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[c]instanceof Date)n+=this.buildTextValNode(t[c],l,"",e,r);else if(typeof t[c]!="object"){let f=this.isAttribute(c);if(f&&!this.ignoreAttributesFn(f,o)){let h=nW(f,!0,this.options,r,i);s+=this.buildAttrPairStr(h,""+t[c],a)}else if(!f)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);n+=this.replaceEntitiesValue(h)}else{r.push(l);let h=this.checkStopNode(r);if(r.pop(),h){let d=""+t[c];d===""?n+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:n+=this.indentate(e)+"<"+l+">"+d+"</"+l+this.tagEndChar}else n+=this.buildTextValNode(t[c],l,"",e,r)}}else if(Array.isArray(t[c])){let f=t[c].length,h="",d="";for(let m=0;m<f;m++){let A=t[c][m];if(!(typeof A>"u"))if(A===null)l[0]==="?"?n+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(l);let y=this.j2x(A,e+1,r,i);r.pop(),h+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(d+=y.attrStr)}else h+=this.processTextOrObjNode(A,l,e,r,i);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(l,A);y=this.replaceEntitiesValue(y),h+=y}else{r.push(l);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+A;g===""?h+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:h+=this.indentate(e)+"<"+l+">"+g+"</"+l+this.tagEndChar}else h+=this.buildTextValNode(A,l,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,l,d,e)),n+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let f=Object.keys(t[c]),h=f.length;for(let d=0;d<h;d++){let m=nW(f[d],!0,this.options,r,i);s+=this.buildAttrPairStr(m,""+t[c][f[d]],a)}}else n+=this.processTextOrObjNode(t[c],l,e,r,i)}return{attrStr:s,val:n}};Zo.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+'="'+km(e)+'"'};function __t(t,e,r,i,s){let n=this.extractAttributes(t);if(i.push(e,n),this.checkStopNode(i)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,i,s);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,i):this.buildObjectNode(a.val,e,a.attrStr,r)}Zo.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s))continue;let n=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[n]=km(i[s]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=this.isAttribute(i);s&&(e[s]=km(t[i]),r=!0)}return r?e:null};Zo.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 i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isA
Line truncated
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function $Tt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let i=r[e.attributeNamePrefix+"version"];if(i)return i}return"1.0"}function uJ(t,e,r,i,n){return!r.sanitizeName||JQ(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:i.readOnly()})}oa.prototype.build=function(t){if(this.options.preserveOrder)return oJ(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vm,r=$Tt(t,this.options);return this.j2x(t,0,e,r).val}};oa.prototype.j2x=function(t,e,r,i){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:uJ(c,!1,this.options,r,i);if(typeof t[c]>"u")this.isAttribute(c)&&(s+="");else if(t[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?s+="":l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[c]instanceof Date)s+=this.buildTextValNode(t[c],l,"",e,r);else if(typeof t[c]!="object"){let f=this.isAttribute(c);if(f&&!this.ignoreAttributesFn(f,o)){let h=uJ(f,!0,this.options,r,i);n+=this.buildAttrPairStr(h,""+t[c],a)}else if(!f)if(c===this.options.textNodeName){let h=this.options.tagValueProcessor(c,""+t[c]);s+=this.replaceEntitiesValue(h)}else{r.push(l);let h=this.checkStopNode(r);if(r.pop(),h){let d=""+t[c];d===""?s+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:s+=this.indentate(e)+"<"+l+">"+d+"</"+l+this.tagEndChar}else s+=this.buildTextValNode(t[c],l,"",e,r)}}else if(Array.isArray(t[c])){let f=t[c].length,h="",d="";for(let m=0;m<f;m++){let A=t[c][m];if(!(typeof A>"u"))if(A===null)l[0]==="?"?s+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(l);let y=this.j2x(A,e+1,r,i);r.pop(),h+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(d+=y.attrStr)}else h+=this.processTextOrObjNode(A,l,e,r,i);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(l,A);y=this.replaceEntitiesValue(y),h+=y}else{r.push(l);let y=this.checkStopNode(r);if(r.pop(),y){let g=""+A;g===""?h+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:h+=this.indentate(e)+"<"+l+">"+g+"</"+l+this.tagEndChar}else h+=this.buildTextValNode(A,l,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,l,d,e)),s+=h}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let f=Object.keys(t[c]),h=f.length;for(let d=0;d<h;d++){let m=uJ(f[d],!0,this.options,r,i);n+=this.buildAttrPairStr(m,""+t[c][f[d]],a)}}else s+=this.processTextOrObjNode(t[c],l,e,r,i)}return{attrStr:n,val:s}};oa.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+'="'+zm(e)+'"'};function WTt(t,e,r,i,n){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,i,n);return i.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,i):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,i):this.buildObjectNode(a.val,e,a.attrStr,r)}oa.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let i=t[this.options.attributesGroupName];for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[s]=zm(i[n]),r=!0}}else for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=this.isAttribute(i);n&&(e[n]=zm(t[i]),r=!0)}return r?e:null};oa.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 i=t[r];if(r===this.options.textNodeName)e+=i;else if(Array.isA
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((s,n)=>xQ(s.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((s,n,o)=>!(n>0&&s.name.toLowerCase()===o[n-1].name.toLowerCase()));let i="";return r.forEach(s=>{i+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let r=SQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let s=BQ(e.url),n={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();n[c]=s[a],o.push(c)}o.sort();for(let a of o)i+=`
|
||||
${a}:${decodeURIComponent(n[a])}`}return i}};var ri=class extends yy{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Gx(e,r,this)}computeHMACSHA256(e){return(0,JRe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Xi=of("storage-common");var qc;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(qc||(qc={}));var Fm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:qc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},L_t=new Ga("The operation was aborted."),Hx=class extends ff{retryOptions;constructor(e,r,i=Fm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Fm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Fm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Fm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Fm.maxRetryDelayInMs):Fm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Fm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Fm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let s=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;n||(s.url=IQ(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Lm(s.url,Id.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(Xi.info(`RetryPolicy: =====> Try=${i} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(n,i,o))return o;r=r||!n&&o.status===404}catch(a){if(Xi.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,i,o,a))throw a}return await this.delay(n,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,s){if(r>=this.retryOptions.maxTries)return Xi.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of n)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return Xi.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||s){let o=i?i.status:s?s.statusCode:0;if(!e&&o===404)return Xi.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return Xi.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.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')?(Xi.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case qc.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case qc.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Xi.info(`RetryPolicy: Delay for ${s}ms`),vQ(s,i,L_t)}};var jx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Hx(e,r,this.retryOptions)}};var F_t="storageBrowserPolicy";function YRe(){return{name:F_t,async sendRequest(t,e){return Kt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Lm(t.url,Id.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var M_t="StorageCorrectContentLengthPolicy";function KRe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:M_t,async sendRequest(e,r){return t(e),r(e)}}}var U_t="storageRetryPolicy",Bw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:qc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},q_t=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],G_t=new Ga("The operation was aborted.");function XRe(t={}){let e=t.retryPolicyType??Bw.retryPolicyType,r=t.maxTries??Bw.maxTries,i=t.retryDelayInMs??Bw.retryDelayInMs,s=t.maxRetryDelayInMs??Bw.maxRetryDelayInMs,n=t.secondaryHost??Bw.secondaryHost,o=t.tryTimeoutInMs??Bw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return Xi.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of q_t)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),i=this.factory.computeHMACSHA256(r);return e.headers.set(rt.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${i}`),e}getHeaderValueToSign(e,r){let i=e.headers.get(r);return!i||r===rt.CONTENT_LENGTH&&i==="0"?"":i}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE));r.sort((n,s)=>ok(n.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((n,s,o)=>!(s>0&&n.name.toLowerCase()===o[s-1].name.toLowerCase()));let i="";return r.forEach(n=>{i+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
|
||||
`}),i}getCanonicalizedResourceString(e){let r=ik(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let n=nk(e.url),s={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();s[c]=n[a],o.push(c)}o.sort();for(let a of o)i+=`
|
||||
${a}:${decodeURIComponent(s[a])}`}return i}};var si=class extends Ny{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new m_(e,r,this)}computeHMACSHA256(e){return(0,PNe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rn=ff("storage-common");var $c;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})($c||($c={}));var Wm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:$c.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},iNt=new Wa("The operation was aborted."),A_=class extends Af{retryOptions;constructor(e,r,i=Wm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Wm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Wm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Wm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Wm.maxRetryDelayInMs):Wm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Wm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Wm.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,i){let n=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||i%2===1;s||(n.url=rk(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=$m(n.url,vd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(rn.info(`RetryPolicy: =====> Try=${i} ${s?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(s,i,o))return o;r=r||!s&&o.status===404}catch(a){if(rn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(s,i,o,a))throw a}return await this.delay(s,i,e.abortSignal),this.attemptSendRequest(e,r,++i)}shouldRetry(e,r,i,n){if(r>=this.retryOptions.maxTries)return rn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of s)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return rn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(i||n){let o=i?i.status:n?n.statusCode:0;if(!e&&o===404)return rn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return rn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(i&&i?.status>=400){let o=i.headers.get(rt.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')?(rn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,i){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case $c.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case $c.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return rn.info(`RetryPolicy: Delay for ${n}ms`),sk(n,i,iNt)}};var g_=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new A_(e,r,this.retryOptions)}};var nNt="storageBrowserPolicy";function QNe(){return{name:nNt,async sendRequest(t,e){return Xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=$m(t.url,vd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var sNt="StorageCorrectContentLengthPolicy";function kNe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(rt.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:sNt,async sendRequest(e,r){return t(e),r(e)}}}var oNt="storageRetryPolicy",Uw={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:$c.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},aNt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],cNt=new Wa("The operation was aborted.");function LNe(t={}){let e=t.retryPolicyType??Uw.retryPolicyType,r=t.maxTries??Uw.maxTries,i=t.retryDelayInMs??Uw.retryDelayInMs,n=t.maxRetryDelayInMs??Uw.maxRetryDelayInMs,s=t.secondaryHost??Uw.secondaryHost,o=t.tryTimeoutInMs??Uw.tryTimeoutInMs;function a({isPrimaryRetry:u,attempt:l,response:f,error:h}){if(l>=r)return rn.info(`RetryPolicy: Attempt(s) ${l} >= maxTries ${r}, no further try.`),!1;if(h){for(let d of aNt)if(h.name.toUpperCase().includes(d)||h.message.toUpperCase().includes(d)||h.code&&h.code.toString().toUpperCase()===d)return
Line truncated
|
||||
`)+`
|
||||
`+i(n)+s(n),a=(0,ZRe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(n){let o=[];for(let[c,u]of n.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>xQ(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
|
||||
`}),a}function s(n){let o=SQ(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=BQ(n.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
|
||||
${f}:${decodeURIComponent(u[f])}`}return a}return{name:H_t,async sendRequest(n,o){return e(n),o(n)}}}var j_t="storageRequestFailureDetailsParserPolicy";function eNe(){return{name:j_t,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
||||
`),r}}}}var tNe=require("node:crypto"),_Q=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,tNe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var RQ="12.31.0",NQ="2026-02-06";var TQ="https://storage.azure.com/.default",Sd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Zu="",fW="*",z_t=1*1024*1024;var V_t=4*z_t;var rNe="AES256",iNe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sNe=["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"],nNe=["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"],oNe="BlobUsesCustomerSpecifiedEncryption",aNe="BlobDoesNotUseCustomerSpecifiedEncryption",cNe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Bd(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 zx=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ii(t,e={}){t||(t=new Fr);let r=new zx([],e);return r._credential=t,r}function $_t(t){let e=[W_t,uNe,J_t,Y_t,K_t,X_t,eRt];if(t.factories.length){let r=t.factories.filter(i=>!e.some(s=>s(i)));if(r.length){let i=r.some(s=>Z_t(s));return{wrappedPolicies:z$(r),afterRetry:i}}}}function hW(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?V$(e):uW(),t._coreHttpClient=i);let s=t._corePipeline;if(!s){let n=`azsdk-js-azure-storage-blob/${RQ}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;s=_x({...r,loggingOptions:{additionalAllowedHeaderNames:sNe,additionalAllowedQueryParameters:nNe,logger:yQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:gQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:aW,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:w$}),s.addPolicy(KRe()),s.addPolicy(XRe(r.retryOptions),{phase:"Retry"}),s.addPolicy(eNe()),s.addPolicy(YRe());let a=$_t(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=dW(t);Ha(c)?s.addPolicy(bw({credential:c,scopes:r.audience??TQ
Line truncated
|
||||
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new sl(t.version,n,i,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 WNt(t,e){if(t=xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(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:n}}function JNt(t,e){if(t=xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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(n);return{sasQueryParameters:new sl(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:n}}function YNt(t,e){if(t=xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(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:n}}function KNt(t,e){if(t=xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(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:n}}function XNt(t,e){if(t=xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(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:n}}function ZNt(t,e){if(t=xy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let s;t.permissions&&(t.blobName?s=_f.parse(t.permissions.toString()).toString():s=Rf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",vy(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Xt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Xt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?il(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new sl(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:n}}function vy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function xy(t){let e=t.version?t.version:NQ;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 i_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=yw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Zu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Zu||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 _e.withSpan("BlobLeaseClient-acquireLease",r,async i=>Me(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Zu||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Zu||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 _e.withSpan("BlobLeaseClient-changeLease",r,async i=>{let s=Me(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Zu||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Zu||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 _e.withSpan("BlobLeaseClient-releaseLease",e,async r=>Me(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!==Zu||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Zu||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 _e.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"}};Lw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ty=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"}};Ty.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var d_=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var u1t=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},rK=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),i=Date.now()-this.startTime,s=(e/(1024*1024)/(i/1e3)).toFixed(1);L(`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 h1e(t,e,r){return u1t(this,void 0,void 0,function*(){var i;let s=new nl(t),n=s.getBlockBlobClient(),o=new rK((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),N(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new Qk(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw st(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var p1e=k(require("buffer"),1),Nf=k(require("fs"),1),m1e=k(require("stream"),1),A1e=k(require("util"),1);var kk=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function Lk(t){return t?t>=200&&t<300:!1}function l1t(t){return t?t>=500:!0}function f1t(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function h1t(t){return kk(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function d1e(t,e,r){return kk(this,arguments,void 0,function*(i,s,n,o=lP,a=fP,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield s()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=n(f),!l1t(h)))return f;if(h&&(d=f1t(h),u=`Cache service responded with ${h}`),N(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){N(`${i} - Error is not retryable`);break}yield h1t(a),l++}throw Error(`${i} failed: ${u}`)})}function p_(t,e){return kk(this,arguments,void 0,function*(r,i,s=lP,n=fP){return yield d1e(r,i,o=>o.statusCode,s,n,o=>{if(o instanceof Wl)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Fw(t,e){return kk(this,arguments,void 0,function*(r,i,s=lP,n=fP){return yield d1e(r,i,o=>o.message.statusCode,s,n)})}var Vc=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function d1t(t,e){return Vc(this,void 0,void 0,function*(){yield A1e.promisify(m1e.pipeline)(t.message,e)})}var Fk=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),i=Date.now()-this.startTime,s=(e/(1024*1024)/(i/1e3)).toFixed(1);L(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=
Line truncated
|
||||
Other caches with similar key:`);for(let a of n?.artifactCaches||[])N(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function oK(t,e,r){return ta(this,void 0,void 0,function*(){let i=new v1e.URL(t),s=b1e(r);i.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield y1e(t,e,s):s.concurrentBlobDownloads?yield g1e(t,e,s):yield Mk(t,e):yield Mk(t,e)})}function _1e(t,e,r){return ta(this,void 0,void 0,function*(){let i=nK(),s=lw(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield p_("reserveCache",()=>ta(this,void 0,void 0,function*(){return i.postJson(A_("caches"),n)}))})}function B1e(t,e){return`bytes ${t}-${e}/*`}function w1t(t,e,r,i,s){return ta(this,void 0,void 0,function*(){N(`Uploading chunk of size ${s-i+1} bytes at offset ${i} with content range: ${B1e(i,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":B1e(i,s)},o=yield Fw(`uploadChunk (start: ${i}, end: ${s})`,()=>ta(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Lk(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function C1t(t,e,r,i){return ta(this,void 0,void 0,function*(){let s=tf(r),n=A_(`caches/${e.toString()}`),o=Mw.openSync(r,"r"),a=iK(i),c=kV("uploadConcurrency",a.uploadConcurrency),u=kV("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];N("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>ta(this,void 0,void 0,function*(){for(;f<s;){let h=Math.min(s-f,u),d=f,m=f+h-1;f+=u,yield w1t(t,n,()=>Mw.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{Mw.closeSync(o)}})}function I1t(t,e,r){return ta(this,void 0,void 0,function*(){let i={size:r};return yield p_("commitCache",()=>ta(this,void 0,void 0,function*(){return t.postJson(A_(`caches/${e.toString()}`),i)}))})}function aK(t,e,r,i){return ta(this,void 0,void 0,function*(){if(iK(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield h1e(r,e,i)}else{let n=nK();N("Upload cache"),yield C1t(n,t,e,i),N("Commiting cache");let o=tf(e);L(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield I1t(n,t,o);if(!Lk(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);L("Cache saved successfully")}})}var C2e=k(m2e(),1),vi=k(Bi(),1),$a=k(Bi(),1),ky=k(Bi(),1),Ly=k(Bi(),1),Fy=k(Bi(),1);var tX=k(Bi(),1),rX=k(Bi(),1),E2e=k(Bi(),1),b2e=k(Bi(),1),w2e=k(Bi(),1);var XK=k(Bi(),1),ZK=k(Bi(),1),A2e=k(Bi(),1),g2e=k(Bi(),1),y2e=k(Bi(),1),eX=class extends y2e.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,g2e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,A2e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?ZK.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,XK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,XK.WireType.Varint).int64(e.permission);let s=i.writeUnknownFields;return s!==!1&&(s==!0?ZK.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},vL=new eX;var iX=class extends w2e.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:()=>vL}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,b2e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,E2e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(vL.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?rX.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,tX.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)vL.internalBinaryWrite(e.scope[n],r.tag(2,tX.WireType.LengthDelimited).fork(),i).join();let s=i.writeUnknownFields;return s!==!1&&(s==!0?rX.UnknownFieldHandler.onWrite:s)(this.type
Line truncated
|
||||
`));let i=yield yX(r,"create");yield EX(i,t)})}var rC=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},cl=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},tC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},NL=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function v2e(t){if(!t||t.length===0)throw new cl("Path Validation Error: At least one directory or file path is required")}function CX(t){if(t.length>512)throw new cl(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new cl(`Key Validation Error: ${t} cannot contain commas.`)}function IX(){return m_()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function x2e(t,e,r,i){return rC(this,arguments,void 0,function*(s,n,o,a,c=!1){let u=m_();return N(`Cache service version: ${u}`),v2e(s),u==="v2"?yield FDt(s,n,o,a,c):yield LDt(s,n,o,a,c)})}function LDt(t,e,r,i){return rC(this,arguments,void 0,function*(s,n,o,a,c=!1){o=o||[];let u=[n,...o];if(N("Resolved Keys:"),N(JSON.stringify(u)),u.length>10)throw new cl("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)CX(h);let l=yield Ax(),f="";try{let h=yield x1e(u,s,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return L("Lookup only - skipping download"),h.cacheKey;f=D_.join(yield px(),Rm(l)),N(`Archive Path: ${f}`),yield oK(h.archiveLocation,f,a),Kl()&&(yield T_(f,l));let d=tf(f);return L(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield bX(f,l),L("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===cl.name)throw h;d instanceof Wl&&typeof d.statusCode=="number"&&d.statusCode>=500?Wu(`Failed to restore: ${h.message}`):st(`Failed to restore: ${h.message}`)}finally{try{yield mx(f)}catch(h){N(`Failed to delete archive: ${h}`)}}})}function FDt(t,e,r,i){return rC(this,arguments,void 0,function*(s,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[n,...o];if(N("Resolved Keys:"),N(JSON.stringify(u)),u.length>10)throw new cl("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)CX(f);let l="";try{let f=gX(),h=yield Ax(),d={key:n,restoreKeys:o,version:lw(s,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){N(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?L(`Cache hit for restore-key: ${m.matchedKey}`):L(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return L("Lookup only - skipping download"),m.matchedKey;l=D_.join(yield px(),Rm(h)),N(`Archive path: ${l}`),N(`Starting download of archive to: ${l}`),yield oK(m.signedDownloadUrl,l,a);let y=tf(l);return L(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Kl()&&(yield T_(l,h)),yield bX(l,h),L("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===cl.name)throw f;h instanceof Wl&&typeof h.statusCode=="number"&&h.statusCode>=500?Wu(`Failed to restore: ${f.message}`):st(`Failed to restore: ${f.message}`)}finally{try{l&&(yield mx(l))}catch(f){N(`Failed to delete archive: ${f}`)}}})}function SX(t,e,r){return rC(this,arguments,void 0,function*(i,s,n,o=!1){let a=m_();return N(`Cache service version: ${a}`),v2e(i),CX(s),a==="v2"?yield UDt(i,s,n,o):yield MDt(i,s,n,o)})}function MDt(t,e,r){return rC(this,arguments,void 0,function*(i,s,n,o=!1){var a,c,u,l,f;let h=yield Ax(),d=-1,m=yield QV(i);if(N("Cache Paths:"),N(`${JSON.stringify(m)}`),m.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 A=yield px(),y=D_.join(A,Rm(h));N(`Archive Path: ${y}`);try{yield wX(A,m,h),Kl()&&(yield T_(y,h));let g=10*1024*1024*1024,E=tf(y);if(N(`File Size: ${E}`),E>g&&!sK())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);N("Reserving Cache");let w=yield _1e(s,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)d=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((l=(u=w?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new tC(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(f=w?.error)===null||f===void 0?void 0:f.message}`);N(`Saving Cache (ID: ${d})`),yield aK(d,y,"",n)}catch(g){let E=g;if(E.name===cl.name)throw g;E.name===tC.name
Line truncated
|
||||
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,s,n,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:w,escape:S,quote:D,record_delimiter:q}=this.options,{bomSkipped:T,previousBuf:$,rawBuffer:O,escapeIsQuote:j}=this.state,F;if($===void 0)if(i===void 0){o();return}else F=i;else $!==void 0&&i===void 0?F=$:F=Buffer.concat([$,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(F.length<3){if(s===!1){this.state.previousBuf=F;return}}else{for(let Te in oC)if(oC[Te].compare(F,0,oC[Te].length)===0){let he=oC[Te].length;this.state.bufBytesStart+=he,F=F.slice(he);let Qe=ZX({...this.original_options,encoding:Te});for(let X in Qe)this.options[X]=Qe[X];({comment:w,escape:S,quote:D}=this.options);break}this.state.bomSkipped=!0}let Z=F.length,J;for(J=0;J<Z&&!this.__needMoreData(J,Z,s);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&q.length===0&&this.__autoDiscoverRecordDelimiter(F,J)&&(q=this.options.record_delimiter);let Te=F[J];if(d===!0&&O.append(Te),(Te===ukt||Te===lkt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(F,J,Te)&&J+S.length<Z)if(j){if(this.__isQuote(F,J+S.length)){this.state.escaping=!0,J+=S.length-1;continue}}else{this.state.escaping=!0,J+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,J))if(this.state.quoting===!0){let X=F[J+D.length],Re=A&&this.__isCharTrimable(F,J+D.length),Ce=w!==null&&this.__compareBytes(w,F,J+D.length,X),_t=this.__isDelimiter(F,J+D.length,X),kt=q.length===0?this.__autoDiscoverRecordDelimiter(F,J+D.length):this.__isRecordDelimiter(X,F,J+D.length);if(S!==null&&this.__isEscape(F,J,Te)&&this.__isQuote(F,J+S.length))J+=S.length-1;else if(!X||_t||kt||Ce||Re){this.state.quoting=!1,this.state.wasQuoting=!0,J+=D.length-1;continue}else if(m===!1){let Ji=this.__error(new Gt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(X)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Ji!==void 0)return Ji}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(D),J+=D.length-1}else if(this.state.field.length!==0){if(m===!1){let X=this.__infoField(),Re=Object.keys(oC).map(_t=>oC[_t].equals(this.state.field.toString())?_t:!1).filter(Boolean)[0],Ce=this.__error(new Gt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(X.column)} at line ${X.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Re?`(${Re} bom)`:void 0],this.options,X,{field:this.state.field}));if(Ce!==void 0)return Ce}}else{this.state.quoting=!0,J+=D.length-1;continue}if(this.state.quoting===!1){let X=this.__isRecordDelimiter(Te,F,J);if(X!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=X-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=X-1;continue}this.info.bytes=this.state.bufBytesStart+J;let _t=this.__onField();if(_t!==void 0)return _t;this.info.bytes=this.state.bufBytesStart+J+X;let kt=this.__onRecord(n);if(kt!==void 0)return kt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,J+=X-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,F,J,Te)!==0){this.state.commenting=!0;continue}let Re=this.__isDelimiter(F,J,Te);if(Re!==0){this.info.bytes=this.state.bufBytesStart+J;let Ce=this.__onField();if(Ce!==void 0)return Ce;J+=Re-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Gt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let he=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(F,J),Qe=A===!1||this.state.wasQuoting===!1;if(he===!0&&Qe===!0)this.state.field.append(Te);else{if(A===!0&&!this.__isCharTrimable(F,J))return this.__error(new Gt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));he===!1&&(J+=this.__isCharTrimable(F,J)-1);continue}}if(s===!0)if(this.state.quoting===!0){let
Line truncated
|
||||
`,n),Buffer.from(`
|
||||
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[s+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:s,raw:n,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:i,raw:s,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:i}=this.options,s=Array.isArray(i),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:s===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var Ya=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=jOe(e),s=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=i.parse(t,!0,s,n);if(o!==void 0)throw o;return r};var Xe=class t{static getInputList(e,r){return this.getList(Rc(e),r)}static getList(e,r){let i=[];if(e=="")return i;let s=Ya(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of s)n.length==1?r?.ignoreComma?i.push(n[0]):i.push(...n[0].split(",")):r?.ignoreComma?i.push(n.join(",")):i.push(...n);return i.filter(n=>n).map(n=>n.trim())}static getInputNumber(e){let r=Rc(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let i=await Js("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${n.join(" ")}`]}}static isDirectory(e){try{return zOe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return eZ.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+i[s]}static generateRandomString(e=10){return eZ.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let i=U_.default.resolve(e);return U_.default.resolve(r).startsWith(i.endsWith(U_.default.sep)?i:`${i}${U_.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),s=Math.floor(r%3600/60),n=r%60,o=[];return i&&o.push(`${i}h`),s&&o.push(`${s}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var xi=class t{static get configDir(){return process.env.DOCKER_CONFIG||q_.default.join(VOe.default.homedir(),".docker")}static configFile(){let e=q_.default.join(t.configDir,"config.json");if(tZ.default.existsSync(e))return JSON.parse(tZ.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Js("docker",!0).then(e=>(N(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(N(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Ue.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Ue.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){
Line truncated
|
||||
`+i(s)+n(s),a=(0,FNe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");s.headers.set(rt.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(s,o){let a=s.headers.get(o);return!a||o===rt.CONTENT_LENGTH&&a==="0"?"":a}function i(s){let o=[];for(let[c,u]of s.headers)c.toLowerCase().startsWith(rt.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>ok(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,l)=>!(u>0&&c.name.toLowerCase()===l[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
|
||||
`}),a}function n(s){let o=ik(s.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=nk(s.url),u={};if(c){let l=[];for(let f in c)if(Object.prototype.hasOwnProperty.call(c,f)){let h=f.toLowerCase();u[h]=c[f],l.push(h)}l.sort();for(let f of l)a+=`
|
||||
${f}:${decodeURIComponent(u[f])}`}return a}return{name:uNt,async sendRequest(s,o){return e(s),o(s)}}}var lNt="storageRequestFailureDetailsParserPolicy";function MNe(){return{name:lNt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
||||
`),r}}}}var UNe=require("node:crypto"),ak=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,UNe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var ck="12.31.0",uk="2026-02-06";var lk="https://storage.azure.com/.default",xd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var sl="",mJ="*",fNt=1*1024*1024;var hNt=4*fNt;var qNe="AES256",GNe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",HNe=["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"],jNe=["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"],VNe="BlobUsesCustomerSpecifiedEncryption",zNe="BlobDoesNotUseCustomerSpecifiedEncryption",$Ne=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _d(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 y_=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function vi(t,e={}){t||(t=new qr);let r=new y_([],e);return r._credential=t,r}function dNt(t){let e=[pNt,WNe,mNt,ANt,gNt,yNt,bNt];if(t.factories.length){let r=t.factories.filter(i=>!e.some(n=>n(i)));if(r.length){let i=r.some(n=>ENt(n));return{wrappedPolicies:JW(r),afterRetry:i}}}}function AJ(t){let{httpClient:e,...r}=t.options,i=t._coreHttpClient;i||(i=e?YW(e):dJ(),t._coreHttpClient=i);let n=t._corePipeline;if(!n){let s=`azsdk-js-azure-storage-blob/${ck}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;n=t_({...r,loggingOptions:{additionalAllowedHeaderNames:HNe,additionalAllowedQueryParameters:jNe,logger:KQ.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:YQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:fJ,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:BW}),n.addPolicy(kNe()),n.addPolicy(LNe(r.retryOptions),{phase:"Retry"}),n.addPolicy(MNe()),n.addPolicy(QNe());let a=dNt(t);a&&n.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=gJ(t);Ja(c)?n.addPolicy(Qw({credential:c,scopes:r.audience??lk
Line truncated
|
||||
`),s=e.computeHMACSHA256(n);return{sasQueryParameters:new ll(t.version,s,i,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 p2t(t,e){if(t=Uy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Of.parse(t.permissions.toString()).toString():n=Pf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",My(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ul(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
||||
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ll(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:s}}function m2t(t,e){if(t=Uy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Of.parse(t.permissions.toString()).toString():n=Pf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",My(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ul(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,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(s);return{sasQueryParameters:new ll(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:s}}function A2t(t,e){if(t=Uy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Of.parse(t.permissions.toString()).toString():n=Pf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",My(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ul(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ll(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:s}}function g2t(t,e){if(t=Uy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Of.parse(t.permissions.toString()).toString():n=Pf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",My(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ul(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ll(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:s}}function y2t(t,e){if(t=Uy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Of.parse(t.permissions.toString()).toString():n=Pf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",My(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ul(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ll(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:s}}function E2t(t,e){if(t=Uy(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",i=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",i=t.versionId));let n;t.permissions&&(t.blobName?n=Of.parse(t.permissions.toString()).toString():n=Pf.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?Zt(t.startsOn,!1):"",t.expiresOn?Zt(t.expiresOn,!1):"",My(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Zt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Zt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ul(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ll(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:s}}function My(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function Uy(t){let e=t.version?t.version:uk;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 T_=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let i=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=i.container):(this._isContainer=!1,this._containerOrBlobOperation=i.blob),r||(r=Ow()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sl||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 Re.withSpan("BlobLeaseClient-acquireLease",r,async i=>Ue(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:i.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sl||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sl||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 Re.withSpan("BlobLeaseClient-changeLease",r,async i=>{let n=Ue(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:i.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==sl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sl||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 Re.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ue(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!==sl||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sl||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 Re.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"}};Xw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jy=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"}};jy.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var U_=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var RDt=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},oX=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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Hi(`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 K2e(t,e,r){return RDt(this,void 0,void 0,function*(){var i;let n=new fl(t),s=n.getBlockBlobClient(),o=new oX((i=r?.archiveSizeBytes)!==null&&i!==void 0?i:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),ce(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield s.uploadFile(e,a);if(c._response.status>=400)throw new pL(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw tl(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var Z2e=P(require("buffer"),1),Qf=P(require("fs"),1),eDe=P(require("stream"),1),tDe=P(require("util"),1);var mL=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function AL(t){return t?t>=200&&t<300:!1}function TDt(t){return t?t>=500:!0}function NDt(t){return t?[rr.BadGateway,rr.ServiceUnavailable,rr.GatewayTimeout].includes(t):!1}function DDt(t){return mL(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function X2e(t,e,r){return mL(this,arguments,void 0,function*(i,n,s,o=HP,a=jP,c=void 0){let u="",l=1;for(;l<=o;){let f,h,d=!1;try{f=yield n()}catch(m){c&&(f=c(m)),d=!0,u=m.message}if(f&&(h=s(f),!TDt(h)))return f;if(h&&(d=NDt(h),u=`Cache service responded with ${h}`),ce(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){ce(`${i} - Error is not retryable`);break}yield DDt(a),l++}throw Error(`${i} failed: ${u}`)})}function q_(t,e){return mL(this,arguments,void 0,function*(r,i,n=HP,s=jP){return yield X2e(r,i,o=>o.statusCode,n,s,o=>{if(o instanceof ef)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Zw(t,e){return mL(this,arguments,void 0,function*(r,i,n=HP,s=jP){return yield X2e(r,i,o=>o.message.statusCode,n,s)})}var Xc=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function ODt(t,e){return Xc(this,void 0,void 0,function*(){yield tDe.promisify(eDe.pipeline)(t.message,e)})}var gL=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,ce(`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),i=Date.now()-this.startTime,n=(e/(1024*1024)/(i/1e3)).toFixed(1);Hi(`Received ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTi
Line truncated
|
||||
Other caches with similar key:`);for(let a of s?.artifactCaches||[])ce(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function lX(t,e,r){return ca(this,void 0,void 0,function*(){let i=new fDe.URL(t),n=sDe(r);i.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield iDe(t,e,n):n.concurrentBlobDownloads?yield rDe(t,e,n):yield yL(t,e):yield yL(t,e)})}function dDe(t,e,r){return ca(this,void 0,void 0,function*(){let i=uX(),n=Bw(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:n,cacheSize:r?.cacheSize};return yield q_("reserveCache",()=>ca(this,void 0,void 0,function*(){return i.postJson(H_("caches"),s)}))})}function lDe(t,e){return`bytes ${t}-${e}/*`}function qDt(t,e,r,i,n){return ca(this,void 0,void 0,function*(){ce(`Uploading chunk of size ${n-i+1} bytes at offset ${i} with content range: ${lDe(i,n)}`);let s={"Content-Type":"application/octet-stream","Content-Range":lDe(i,n)},o=yield Zw(`uploadChunk (start: ${i}, end: ${n})`,()=>ca(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!AL(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function GDt(t,e,r,i){return ca(this,void 0,void 0,function*(){let n=af(r),s=H_(`caches/${e.toString()}`),o=eC.openSync(r,"r"),a=aX(i),c=U$("uploadConcurrency",a.uploadConcurrency),u=U$("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];ce("Awaiting all uploads");let f=0;try{yield Promise.all(l.map(()=>ca(this,void 0,void 0,function*(){for(;f<n;){let h=Math.min(n-f,u),d=f,m=f+h-1;f+=u,yield qDt(t,s,()=>eC.createReadStream(r,{fd:o,start:d,end:m,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),d,m)}})))}finally{eC.closeSync(o)}})}function HDt(t,e,r){return ca(this,void 0,void 0,function*(){let i={size:r};return yield q_("commitCache",()=>ca(this,void 0,void 0,function*(){return t.postJson(H_(`caches/${e.toString()}`),i)}))})}function fX(t,e,r,i){return ca(this,void 0,void 0,function*(){if(aX(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield K2e(r,e,i)}else{let s=uX();ce("Upload cache"),yield GDt(s,t,e,i),ce("Commiting cache");let o=af(e);Hi(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield HDt(s,t,o);if(!AL(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Hi("Cache saved successfully")}})}var aOe=P(eOe(),1),Ri=P(_i(),1),Za=P(_i(),1),Jy=P(_i(),1),Yy=P(_i(),1),Ky=P(_i(),1);var sZ=P(_i(),1),oZ=P(_i(),1),nOe=P(_i(),1),sOe=P(_i(),1),oOe=P(_i(),1);var rZ=P(_i(),1),iZ=P(_i(),1),tOe=P(_i(),1),rOe=P(_i(),1),iOe=P(_i(),1),nZ=class extends iOe.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,rOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,tOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?iZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,rZ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,rZ.WireType.Varint).int64(e.permission);let n=i.writeUnknownFields;return n!==!1&&(n==!0?iZ.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},sF=new nZ;var aZ=class extends oOe.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:()=>sF}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,sOe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,nOe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,n){let s=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(sF.internalBinaryRead(e,e.uint32(),i));break;default:let u=i.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let l=e.skip(c);u!==!1&&(u===!0?oZ.UnknownFieldHandler.onRead:u)(this.typeName,s,a,c,l)}}return s}internalBinaryWrite(e,r,i){e.repositoryId!=="0"&&r.tag(1,sZ.WireType.Varint).int64(e.repositoryId);for(let s=0;s<e.scope.length;s++)sF.internalBinaryWrite(e.scope[s],r.tag(2,sZ.WireType.LengthDelimited).fork(),i).join();let n=i.writeUnknownFields;return n!==!1&&(n==!0?oZ.UnknownFieldHandler.onWrite:n)(th
Line truncated
|
||||
`));let i=yield CZ(r,"create");yield IZ(i,t)})}var gC=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},pl=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},AC=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},uF=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function fOe(t){if(!t||t.length===0)throw new pl("Path Validation Error: At least one directory or file path is required")}function vZ(t){if(t.length>512)throw new pl(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new pl(`Key Validation Error: ${t} cannot contain commas.`)}function xZ(){return G_()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function hOe(t,e,r,i){return gC(this,arguments,void 0,function*(n,s,o,a,c=!1){let u=G_();return ce(`Cache service version: ${u}`),fOe(n),u==="v2"?yield nQt(n,s,o,a,c):yield iQt(n,s,o,a,c)})}function iQt(t,e,r,i){return gC(this,arguments,void 0,function*(n,s,o,a,c=!1){o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new pl("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)vZ(h);let l=yield Hx(),f="";try{let h=yield hDe(u,n,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return Hi("Lookup only - skipping download"),h.cacheKey;f=sR.join(yield qx(),Mm(l)),ce(`Archive Path: ${f}`),yield lX(h.archiveLocation,f,a),hy()&&(yield nR(f,l));let d=af(f);return Hi(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield SZ(f,l),Hi("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===pl.name)throw h;d instanceof ef&&typeof d.statusCode=="number"&&d.statusCode>=500?Sx(`Failed to restore: ${h.message}`):tl(`Failed to restore: ${h.message}`)}finally{try{yield Gx(f)}catch(h){ce(`Failed to delete archive: ${h}`)}}})}function nQt(t,e,r,i){return gC(this,arguments,void 0,function*(n,s,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[s,...o];if(ce("Resolved Keys:"),ce(JSON.stringify(u)),u.length>10)throw new pl("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)vZ(f);let l="";try{let f=wZ(),h=yield Hx(),d={key:s,restoreKeys:o,version:Bw(n,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){ce(`Cache not found for version ${d.version} of keys: ${u.join(", ")}`);return}if(d.key!==m.matchedKey?Hi(`Cache hit for restore-key: ${m.matchedKey}`):Hi(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return Hi("Lookup only - skipping download"),m.matchedKey;l=sR.join(yield qx(),Mm(h)),ce(`Archive path: ${l}`),ce(`Starting download of archive to: ${l}`),yield lX(m.signedDownloadUrl,l,a);let y=af(l);return Hi(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),hy()&&(yield nR(l,h)),yield SZ(l,h),Hi("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===pl.name)throw f;h instanceof ef&&typeof h.statusCode=="number"&&h.statusCode>=500?Sx(`Failed to restore: ${f.message}`):tl(`Failed to restore: ${f.message}`)}finally{try{l&&(yield Gx(l))}catch(f){ce(`Failed to delete archive: ${f}`)}}})}function _Z(t,e,r){return gC(this,arguments,void 0,function*(i,n,s,o=!1){let a=G_();return ce(`Cache service version: ${a}`),fOe(i),vZ(n),a==="v2"?yield oQt(i,n,s,o):yield sQt(i,n,s,o)})}function sQt(t,e,r){return gC(this,arguments,void 0,function*(i,n,s,o=!1){var a,c,u,l,f;let h=yield Hx(),d=-1,m=yield M$(i);if(ce("Cache Paths:"),ce(`${JSON.stringify(m)}`),m.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 A=yield qx(),y=sR.join(A,Mm(h));ce(`Archive Path: ${y}`);try{yield BZ(A,m,h),hy()&&(yield nR(y,h));let g=10*1024*1024*1024,E=af(y);if(ce(`File Size: ${E}`),E>g&&!cX())throw new Error(`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the 10GB limit, not saving cache.`);ce("Reserving Cache");let w=yield dDe(n,i,{compressionMethod:h,enableCrossOsArchive:o,cacheSize:E});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)d=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((l=(u=w?.error)===null||u===void 0?void 0:u.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(E/(1024*1024))} MB (${E} B) is over the data cap limit, not saving cache.`):new AC(`Unable to reserve cache with key ${n}, another job may be creating this cache. More details: ${(f=w?.error)===null||f===void 0?void 0:f.message}`);ce(`Saving Cache (ID: ${d})`),yield fX(d,y,"",s)}catch(g){let E=g;if(E.name===pl.nam
Line truncated
|
||||
`,o).length:f,u?(a===null?0:a.length)+c.length:0,u?c.length+f:0);return h<d},parse:function(i,n,s,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:l,ltrim:f,max_record_size:h,raw:d,relax_quotes:m,rtrim:A,skip_empty_lines:y,to:g,to_line:E}=this.options,{comment:w,escape:S,quote:N,record_delimiter:M}=this.options,{bomSkipped:T,previousBuf:V,rawBuffer:D,escapeIsQuote:G}=this.state,k;if(V===void 0)if(i===void 0){o();return}else k=i;else V!==void 0&&i===void 0?k=V:k=Buffer.concat([V,i]);if(T===!1)if(a===!1)this.state.bomSkipped=!0;else if(k.length<3){if(n===!1){this.state.previousBuf=k;return}}else{for(let De in wC)if(wC[De].compare(k,0,wC[De].length)===0){let de=wC[De].length;this.state.bufBytesStart+=de,k=k.slice(de);let ke=iee({...this.original_options,encoding:De});for(let Y in ke)this.options[Y]=ke[Y];({comment:w,escape:S,quote:N}=this.options);break}this.state.bomSkipped=!0}let Z=k.length,$;for($=0;$<Z&&!this.__needMoreData($,Z,n);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),E!==-1&&this.info.lines>E){this.state.stop=!0,o();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(k,$)&&(M=this.options.record_delimiter);let De=k[$];if(d===!0&&D.append(De),(De===RFt||De===TFt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(k,$,De)&&$+S.length<Z)if(G){if(this.__isQuote(k,$+S.length)){this.state.escaping=!0,$+=S.length-1;continue}}else{this.state.escaping=!0,$+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(k,$))if(this.state.quoting===!0){let Y=k[$+N.length],Te=A&&this.__isCharTrimable(k,$+N.length),Ie=w!==null&&this.__compareBytes(w,k,$+N.length,Y),Rt=this.__isDelimiter(k,$+N.length,Y),Lt=M.length===0?this.__autoDiscoverRecordDelimiter(k,$+N.length):this.__isRecordDelimiter(Y,k,$+N.length);if(S!==null&&this.__isEscape(k,$,De)&&this.__isQuote(k,$+S.length))$+=S.length-1;else if(!Y||Rt||Lt||Ie||Te){this.state.quoting=!1,this.state.wasQuoting=!0,$+=N.length-1;continue}else if(m===!1){let Zi=this.__error(new Ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Y)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Zi!==void 0)return Zi}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),$+=N.length-1}else if(this.state.field.length!==0){if(m===!1){let Y=this.__infoField(),Te=Object.keys(wC).map(Rt=>wC[Rt].equals(this.state.field.toString())?Rt:!1).filter(Boolean)[0],Ie=this.__error(new Ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Y.column)} at line ${Y.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Te?`(${Te} bom)`:void 0],this.options,Y,{field:this.state.field}));if(Ie!==void 0)return Ie}}else{this.state.quoting=!0,$+=N.length-1;continue}if(this.state.quoting===!1){let Y=this.__isRecordDelimiter(De,k,$);if(Y!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=Y-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=Y-1;continue}this.info.bytes=this.state.bufBytesStart+$;let Rt=this.__onField();if(Rt!==void 0)return Rt;this.info.bytes=this.state.bufBytesStart+$+Y;let Lt=this.__onRecord(s);if(Lt!==void 0)return Lt;if(g!==-1&&this.info.records>=g){this.state.stop=!0,o();return}}this.state.commenting=!1,$+=Y-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,k,$,De)!==0){this.state.commenting=!0;continue}let Te=this.__isDelimiter(k,$,De);if(Te!==0){this.info.bytes=this.state.bufBytesStart+$;let Ie=this.__onField();if(Ie!==void 0)return Ie;$+=Te-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new Ht("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let de=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(k,$),ke=A===!1||this.state.wasQuoting===!1;if(de===!0&&ke===!0)this.state.field.append(De);else{if(A===!0&&!this.__isCharTrimable(k,$))return this.__error(new Ht("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));de===!1&&($+=this.__isCharTrimable(k,$)-1);continue}}if(n===!0)if(this.state.quoting===!0){le
Line truncated
|
||||
`,s),Buffer.from(`
|
||||
`,s),Buffer.from("\r",s)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let u=0;u<c;u++)if(o[a][u]!==i[n+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(i){let{encoding:n,raw:s,skip_records_with_error:o}=this.options,a=typeof i=="string"?new Error(i):i;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,s?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:i,raw:n,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:i===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(s):void 0}},__infoField:function(){let{columns:i}=this.options,n=Array.isArray(i),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:n===!0?i.length>this.state.record.length?i[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var rc=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=RQe(e),n=a=>{i.options.objname===void 0?r.push(a):r[a[0]]=a[1]},s=()=>{},o=i.parse(t,!0,n,s);if(o!==void 0)throw o;return r};var Xe=class t{static getInputList(e,r){return this.getList(dw(e),r)}static getList(e,r){let i=[];if(e=="")return i;let n=rc(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of n)s.length==1?r?.ignoreComma?i.push(s[0]):i.push(...s[0].split(",")):r?.ignoreComma?i.push(s.join(",")):i.push(...s);return i.filter(s=>s).map(s=>s.trim())}static getInputNumber(e){let r=dw(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let i=0;i<e.length;i++)await r(e[i],i,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let i=await Zn("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let o in r)s.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${i}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${s.join(" ")}`]}}static isDirectory(e){try{return TQe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let i=e.lastIndexOf(r);return i===-1||i+r.length!==e.length?e:e.substring(0,i)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return nee.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+i[n]}static generateRandomString(e=10){return nee.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let i=dR.default.resolve(e);return dR.default.resolve(r).startsWith(i.endsWith(dR.default.sep)?i:`${i}${dR.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),i=Math.floor(r/3600),n=Math.floor(r%3600/60),s=r%60,o=[];return i&&o.push(`${i}h`),n&&o.push(`${n}m`),(s||o.length===0)&&o.push(`${s}s`),o.join("")}};var Ti=class t{static get configDir(){return process.env.DOCKER_CONFIG||pR.default.join(NQe.default.homedir(),".docker")}static configFile(){let e=pR.default.join(t.configDir,"config.json");if(see.default.existsSync(e))return JSON.parse(see.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Zn("docker",!0).then(e=>(K(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(K(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return qe.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return qe.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var iLt=class extends Error{constructor(t,e,r){super(rLt(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},sLt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],nLt=["query","method","url"],NPe=/\/api\/v3\/?$/;function oLt(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(nLt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(i).reduce((o,a)=>sLt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),n=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return NPe.test(n)&&(s.url=n.replace(NPe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new iLt(s,a,o.data)}return o.data.data})}function fZ(t,e){let r=t.defaults(e);return Object.assign((s,n)=>oLt(r,s,n),{defaults:fZ.bind(null,r),endpoint:r.endpoint})}var l6r=fZ(z_,{headers:{"user-agent":`octokit-graphql.js/${tLt} ${$m()}`},method:"POST",url:"/graphql"});function TPe(t){return fZ(t,{method:"POST",url:"/graphql"})}var hZ="(?:[a-zA-Z0-9_-]+)",DPe="\\.",OPe=new RegExp(`^${hZ}${DPe}${hZ}${DPe}${hZ}$`),aLt=OPe.test.bind(OPe);async function cLt(t){let e=aLt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function uLt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function lLt(t,e,r,i){let s=e.endpoint.merge(r,i);return s.headers.authorization=uLt(t),e(s)}var PPe=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(cLt.bind(null,e),{hook:lLt.bind(null,e)})};var dZ="7.0.6";var QPe=()=>{},fLt=console.warn.bind(console),hLt=console.error.bind(console);function dLt(t={}){return typeof t.debug!="function"&&(t.debug=QPe),typeof t.info!="function"&&(t.info=QPe),typeof t.warn!="function"&&(t.warn=fLt),typeof t.error!="function"&&(t.error=hLt),t}var kPe=`octokit-core.js/${dZ} ${$m()}`,nF=class{static VERSION=dZ;static defaults(e){return class extends this{constructor(...i){let s=i[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 uPe.Collection,i={baseUrl:z_.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${kPe}`:kPe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=z_.defaults(i),this.graphql=TPe(this.request).defaults(i),this.log=dLt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(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 n=PPe(e.auth);r.wrap("request",n.hook),this.auth=n}let s=this.constructor;for(let n=0;n<s.plugins.length;++n)Object.assign(this,s.plugins[n](this,e))}request;graphql;log;hook;auth};var pZ="17.0.0";var pLt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria
Line truncated
|
||||
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var bZ=k(require("fs"),1),wZ=k(require("path"),1);var cF=class t{buildx;constructor(e){this.buildx=e?.buildx||new $t}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await Ue.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return JSON.parse(s.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",s=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);s.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(s.length===0)throw new Error("No build refs provided");let n=wZ.default.join(Tt.tmpDir(),"export");L(`exporting build record to ${n}`),bZ.default.mkdirSync(n,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Xe.sleep(3);let o={};if(!e.noSummaries)for(let f of s)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
|
||||
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Xe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=wZ.default.join(n,`${t.exportFilename(s)}.dockerbuild`),c=["--builder",r,"--output",a,...s];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await Ue.getExecOutput(u.command,u.args);let l=bZ.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:s,summaries:o}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var p6e=k(require("fs"),1),$se=k(require("path"),1);var HPe=k(require("os"),1);function jy(){return 8*1024*1024}function uF(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function jPe(){let t=process.env.ACTIONS_RESULTS_URL;if(!t)throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable");return new URL(t).origin}function lC(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",i=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!i&&!s}function zPe(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function VPe(){let t=HPe.default.cpus().length,e=32;if(t>4){let i=16*t;e=i>300?300:i}let r=process.env.ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY;if(r){let i=parseInt(r);if(isNaN(i)||i<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable");return i<e?(L("Set concurrency based on the value set in ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY."),i):(L(`ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is higher than the cap of ${e} based on the number of cpus. Set it to the maximum value allowed.`),e)}return 5}function $Pe(){let t=process.env.ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS;if(!t)return 3e5;let e=parseInt(t);if(isNaN(e))throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS env variable");return e}function WPe(){let t=process.env.ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT||"1000",e=parseInt(t);if(isNaN(e)||e<1)throw new Error("Invalid value set for ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT env variable");return e}var uHe=k(require("fs"),1),lHe=k(require("path"),1);var $Z=k(xr(),1),WZ=k(xr(),1),vQe=k(xr(),1),xQe=k(xr(),1),_Qe=k(xr(),1),EC=k(xr(),1),RQe=k(xr(),1),JZ=class extends RQe.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){let e=this.create(),r=Date.now();return e.seconds=EC.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(EC.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),i=e.getTime();return r.seconds=EC.PbLong.from(Math.floor(i/1e3)).toString(),r.nanos=i%1e3*1e6,r}internalJsonWrite(e,r){let i=EC.PbLong.from(e.seconds).toNumber()*1e3;if(i<Date.parse("0001-01-01T00:00:00Z")||i>Date.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(e.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let s="Z";if(e.nanos>0){let n=(e.nanos+1e9).toString().substring(1);n.substring(3)==="000000"?s="."+n.substring(0,3)+"Z":n.substring(6)==="000"?s="."+n.substring(0,6)+"Z":s="."+n+"Z"}return new Date(i).toISOString().replace(".000Z",s)}internalJsonRead(e,r,i){if(typeof e!="string")throw new Error("Unable to parse Timestamp from JSON "+(0,_Qe.typeofJsonValue)(e)+".");let s=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!s)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let n=Date.parse(s[1]+"-"+s[2]+"-"+s[3]+"T"+s[4]+":"+s[5]+":"+s[6]+(s[8]?s[8]:"Z"));if(Number.isNaN(n))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");return i||(i=this.create()),i.seconds=EC.PbLong.from(n/1e3).toString(),i.nanos=0,s[7]&&(i.nanos=parseInt("1"+s[7]+"0".repeat(9-s[7].length))-1e9),i}create(e){let r={seconds:"0",nanos:0};return globalThis.Object.defineProperty(r,xQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vQe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,i,s){let n=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.seconds=e.int64().toString();break;case 2:n.nanos=e.int32();break;default:let u=i.readUnknownField;if(u==="thro
Line truncated
|
||||
`," Line feed \\n"]]),qQe=new Map([...$ee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function GQe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of qQe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
`)}var IMt=class extends Error{constructor(t,e,r){super(CMt(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},SMt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],BMt=["query","method","url"],mke=/\/api\/v3\/?$/;function vMt(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(BMt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let i=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(i).reduce((o,a)=>SMt.includes(a)?(o[a]=i[a],o):(o.variables||(o.variables={}),o.variables[a]=i[a],o),{}),s=i.baseUrl||t.endpoint.DEFAULTS.baseUrl;return mke.test(s)&&(n.url=s.replace(mke,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new IMt(n,a,o.data)}return o.data.data})}function mee(t,e){let r=t.defaults(e);return Object.assign((n,s)=>vMt(r,n,s),{defaults:mee.bind(null,r),endpoint:r.endpoint})}var K9r=mee(yR,{headers:{"user-agent":`octokit-graphql.js/${wMt} ${iA()}`},method:"POST",url:"/graphql"});function Ake(t){return mee(t,{method:"POST",url:"/graphql"})}var Aee="(?:[a-zA-Z0-9_-]+)",gke="\\.",yke=new RegExp(`^${Aee}${gke}${Aee}${gke}${Aee}$`),xMt=yke.test.bind(yke);async function _Mt(t){let e=xMt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),i=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":i?"user-to-server":"oauth"}}function RMt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function TMt(t,e,r,i){let n=e.endpoint.merge(r,i);return n.headers.authorization=RMt(t),e(n)}var Eke=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(_Mt.bind(null,e),{hook:TMt.bind(null,e)})};var gee="7.0.6";var bke=()=>{},NMt=console.warn.bind(console),DMt=console.error.bind(console);function OMt(t={}){return typeof t.debug!="function"&&(t.debug=bke),typeof t.info!="function"&&(t.info=bke),typeof t.warn!="function"&&(t.warn=NMt),typeof t.error!="function"&&(t.error=DMt),t}var wke=`octokit-core.js/${gee} ${iA()}`,FF=class{static VERSION=gee;static defaults(e){return class extends this{constructor(...i){let n=i[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 WQe.Collection,i={baseUrl:yR.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(i.headers["user-agent"]=e.userAgent?`${e.userAgent} ${wke}`:wke,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=yR.defaults(i),this.graphql=Ake(this.request).defaults(i),this.log=OMt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...o}=e,a=s(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 s=Eke(e.auth);r.wrap("request",s.hook),this.auth=s}let n=this.constructor;for(let s=0;s<n.plugins.length;++s)Object.assign(this,n.plugins[s](this,e))}request;graphql;log;hook;auth};var yee="17.0.0";var PMt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],cr
Line truncated
|
||||
More info: ${c.url}`);let d=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,m=!1;for(let A of o)if(A.remote||A.path.endsWith(u)&&A.content===l){a.push({title:f,message:h,file:A.path,startLine:d}),m=!0;break}m||K(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var See=P(require("fs"),1),Bee=P(require("path"),1);var qF=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let i=await this.getInspectCommand(r);return await qe.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",i="",n=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);n.push(h[2]),r||(r=h[0]),i||(i=h[1])}if(n.length===0)throw new Error("No build refs provided");let s=Bee.default.join(Dt.tmpDir(),"export");X(`exporting build record to ${s}`),See.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Xe.sleep(3);let o={};if(!e.noSummaries)for(let f of n)await this.inspect({ref:f,builder:r}).then(h=>{let d="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?d=h.Error.Message:h.Error.Name&&h.Error.Logs&&(d=`=> ${h.Error.Name}
|
||||
${h.Error.Logs}`)),o[f]={name:h.Name,status:h.Status,duration:Xe.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:d}});let a=Bee.default.join(s,`${t.exportFilename(n)}.dockerbuild`),c=["--builder",r,"--output",a,...n];await this.buildx.versionSatisfies(">=0.24.0")&&c.push("--finalize");let u=await this.getExportCommand(c);await qe.getExecOutput(u.command,u.args);let l=See.default.statSync(a);return{dockerbuildFilename:a,dockerbuildSize:l.size,builderName:r,nodeName:i,refs:n,summaries:o}}static exportFilename(e){let r=`${gt.context.repo.owner}~${gt.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var sVe=P(require("fs"),1),roe=P(require("path"),1);var Rke=P(require("os"),1);function ER(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function vee(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function bR(t,e,r){let i=new xee(t,e,r);process.stdout.write(i.toString()+Rke.EOL)}var _ke="::",xee=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=_ke+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let i in this.properties)if(this.properties.hasOwnProperty(i)){let n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${HMt(n)}`)}}return e+=`${_ke}${GMt(this.message)}`,e}};function GMt(t){return ER(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function HMt(t){return ER(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var Oke=P(require("os"),1);var Nke=require("os"),wR=require("fs"),_ee=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},{access:jMt,appendFile:VMt,writeFile:zMt}=wR.promises,Tke="GITHUB_STEP_SUMMARY";var Ree=class{constructor(){this._buffer=""}filePath(){return _ee(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Tke];if(!e)throw new Error(`Unable to find environment variable for $${Tke}. Check if your runtime environment supports job summaries.`);try{yield jMt(e,wR.constants.R_OK|wR.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,i={}){let n=Object.entries(i).map(([s,o])=>` ${s}="${o}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return _ee(this,void 0,void 0,function*(){let r=!!e?.overwrite,i=yield this.filePath();return yield(r?zMt:VMt)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return _ee(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Nke.EOL)}addCodeBlock(e,r){let i=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),i);return this.addRaw(n).addEOL()}addList(e,r=!1){let i=r?"ol":"ul",n=e.map(o=>this.wrap("li",o)).join(""),s=this.wrap(i,n);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(n=>{let s=n.map(o=>{if(typeof o=="string")return this.wrap("td",o);let{header:a,data:c,colspan:u,rowspan:l}=o,f=a?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),l&&{rowspan:l});return this.wrap(f,c,h)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",r);return this.addRaw(i).addEOL()}addDetails(e,r){let i=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(i).addEOL()}addImage(e,r,i){let{width:n,height:s}=i||{},o=Object.assign(Object.assign({},n&&{width:n}),s&&{height:s}),a=this.wrap("img",null,Object.assign({src:e,alt:r},o));return this.addRaw(a).addEOL()}addHeading(e,r){let i=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(n,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let i=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,i);return this.addRaw(n).addEOL()}addLink(e,r){let i=this.wrap("a",e,{href:r});return this.addRaw(i).addEOL()}},Y$r=new Ree;var Tee=P(require("os"),1);var Z$r=Tee.default.platform(),eWr=Tee.default.arch();var Dke;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Dke||(Dke={}));function GF(t){bR("add-mask",{},t)}function ft(t){bR("debug",{},t)}function CR(t,e={}){bR("error",vee(e),t insLine truncated
|
||||
`," Line feed \\n"]]),DLe=new Map([...rre,["\\"," Backslash \\"],["/"," Forward slash /"]]);function OLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of DLe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(qQe.values()).toString()}
|
||||
Invalid characters include: ${Array.from(DLe.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.`);L("Artifact name is valid!")}function Wee(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of $ee)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}
|
||||
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.`);Ct("Artifact name is valid!")}function ire(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of rre)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($ee.values()).toString()}
|
||||
Invalid characters include: ${Array.from(rre.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 VQe=k(zQe(),1);function Vf(){return`@actions/artifact-${VQe.version}`}var _C=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"}},hl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Fd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Km=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"}},Md=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"}};Md.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Jy=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"}};Jy.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var JF=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function $f(){let t=uF(),e=aF(t);if(!e.scp)throw JF;let r=e.scp.split(" ");if(r.length===0)throw JF;for(let i of r){let s=i.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw JF;let n={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return N(`Workflow Run Backend ID: ${n.workflowRunBackendId}`),N(`Workflow Job Run Backend ID: ${n.workflowJobRunBackendId}`),n}throw JF}function $Qe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Oa(r),Oa(encodeURIComponent(r)))}catch(e){N(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function WQe(t){if(typeof t!="object"||t===null){N("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$Qe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$Qe(t.signed_url)}var YF=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Jee=class{constructor(e,r,i,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let n=uF();this.baseUrl=jPe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),s&&(this.retryMultiplier=s),this.httpClient=new ds(e,[new md(n)])}request(e,r,i,s){return YF(this,void 0,void 0,function*(){let n=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;N(`[Request] ${r} ${n}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>YF(this,void 0,void 0,function*(){return this.httpClient.post(n,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return YF(this,void 0,void 0,function*(){let r=0,i="",s="";for(;r<this.maxAttempts;){let n=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),N(`[Response] - ${a.message.statusCode}`),N(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(s);if(WQe(u),N(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(n=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if(Jy.isUsageErrorMessage(u.msg))throw new Jy;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&N(`Raw Body: ${s}`),a instanceof Jy)throw a;if(Md.isNetworkErrorCode(a?.code))throw new Md(a?.code);n=!0,i=a.message}if(!n)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);L(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. 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 YF(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),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function Wf(t){let e=new Jee(Vf(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new WF(e)}var NC=k(require("fs"),1);var RC=require("path");function JQe(t){if(!NC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!NC.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);L("Root directory input is valid!")}function YQe(t,e){let r=[];e=(0,RC.normalize)(e),e=(0,RC.resolve)(e);for(let i of t){let s=NC.lstatSync(i,{throwIfNoEntry:!1});if(!s)throw new Error(`File ${i} does not exist`);if(s.isDirectory()){let n=i.replace(e,"");Wee(n),r.push({sourcePath:null,destinationPath:n,stats:s})}else{if(i=(0,RC.normalize)(i),i=(0,RC.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let n=i.replace(e,"");Wee(n),r.push({sourcePath:i,destinationPath:n,stats:s})}}return r}var XQe=k(require("crypto"),1),ZQe=k(require("stream"),1);var KQe=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}functi
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&st("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);L(`Redirecting to blob download url: ${YHe(l)}`);try{L(`Starting download of artifact to: ${r}`);let f=yield KHe(l,r,e?.skipDecompress);L("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(s=!0,N(`Computed digest: ${f.sha256Digest}`),N(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:s}})}function e6e(){return vI(this,arguments,void 0,function*(t=zPe()){return(yield _7t(t))?N(`Artifact destination folder already exists: ${t}`):(N(`Artifact destination folder does not exist, creating: ${t}`),yield jse.default.mkdir(t,{recursive:!0})),t})}var N7t=5,T7t=[400,401,403,404,422];function xI(t,e=N7t,r=T7t){var i;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let n=Object.assign(Object.assign({},t.request),{retries:e});return N(`GitHub client configured with: (retries: ${n.retries}, retry-exempt-status-code: ${(i=s.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[s,n]}var t6e="6.0.0";function BE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),s=t.request.endpoint.parse(r),n=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${n} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${n} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}BE.VERSION=t6e;var s6e=k(r6e(),1);var D7t="0.0.0-development";function O7t(t){return t.request!==void 0}async function i6e(t,e,r,i){if(!O7t(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=i.request.retries!=null?i.request.retries:t.retries,n=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,n)}throw r}async function P7t(t,e,r,i){let s=new s6e.default;return s.on("failed",function(n,o){let a=~~n.request.request?.retries,c=~~n.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(Q7t.bind(null,t,e,r),i)}async function Q7t(t,e,r,i){let s=await r(i);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 n=new kd(s.data.errors[0].message,500,{request:i,response:s});return i6e(t,e,n,i)}return s}function vE(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(s,n,o)=>(s.request.request=Object.assign({},s.request.request,{retries:n,retryAfter:o}),s)}};return r.enabled&&(t.hook.error("request",i6e.bind(null,r,i)),t.hook.wrap("request",P7t.bind(null,r,i))),i}vE.VERSION=D7t;var n6e=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function cq(t,e,r,i,s){return n6e(this,void 0,void 0,function*(){var n;let[o,a]=xI(Gy),c={log:void 0,userAgent:Vf(),previews:void 0,retry:o,request:a},l=yield Zc(s,c,vE,BE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new hl(`Invalid response from GitHub API: ${l.status} (${(n=l?.headers)===null||n===void 0?void 0:n["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}
|
||||
`)}var LLe=P(kLe(),1);function Kf(){return`@actions/artifact-${LLe.version}`}var HC=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"}},yl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Gd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},aA=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"}},Hd=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"}};Hd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var cE=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"}};cE.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var RM=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Xf(){let t=HF(),e=UF(t);if(!e.scp)throw RM;let r=e.scp.split(" ");if(r.length===0)throw RM;for(let i of r){let n=i.split(":");if(n?.[0]!=="Actions.Results")continue;if(n.length!==3)throw RM;let s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};return ft(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),ft(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw RM}function FLe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(GF(r),GF(encodeURIComponent(r)))}catch(e){ft(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function MLe(t){if(typeof t!="object"||t===null){ft("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&FLe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&FLe(t.signed_url)}var TM=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},nre=class{constructor(e,r,i,n){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=HF();this.baseUrl=Qke(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),n&&(this.retryMultiplier=n),this.httpClient=new Yr(e,[new Zo(s)])}request(e,r,i,n){return TM(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;ft(`[Request] ${r} ${s}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>TM(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(n),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return TM(this,void 0,void 0,function*(){let r=0,i="",n="";for(;r<this.maxAttempts;){let s=!1;try{let a=yield e(),c=a.message.statusCode;n=yield a.readBody(),ft(`[Response] - ${a.message.statusCode}`),ft(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(n);if(MLe(u),ft(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:u};if(s=this.isRetryableHttpStatusCode(c),i=`Failed request: (${c}) ${a.message.statusMessage}`,u.msg){if(cE.isUsageErrorMessage(u.msg))throw new cE;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&ft(`Raw Body: ${n}`),a instanceof cE)throw a;if(Hd.isNetworkErrorCode(a?.code))throw new Hd(a?.code);s=!0,i=a.message}if(!s)throw new Error(`Received non-retryable error: ${i}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${i}`);let o=this.getExponentialRetryTimeMilliseconds(r);Ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${i}. 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?[rr.BadGateway,rr.GatewayTimeout,rr.InternalServerError,rr.ServiceUnavailable,rr.TooManyRequests].includes(e):!1}sleep(e){return TM(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),i=r*this.retryMultiplier;return Math.trunc(Math.random()*(i-r)+r)}};function Zf(t){let e=new nre(Kf(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new _M(e)}var VC=P(require("fs"),1);var jC=require("path");function ULe(t){if(!VC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!VC.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);Ct("Root directory input is valid!")}function qLe(t,e){let r=[];e=(0,jC.normalize)(e),e=(0,jC.resolve)(e);for(let i of t){let n=VC.lstatSync(i,{throwIfNoEntry:!1});if(!n)throw new Error(`File ${i} does not exist`);if(n.isDirectory()){let s=i.replace(e,"");ire(s),r.push({sourcePath:null,destinationPath:s,stats:n})}else{if(i=(0,jC.normalize)(i),i=(0,jC.resolve)(i),!i.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${i}`);let s=i.replace(e,"");ire(s),r.push({sourcePath:i,destinationPath:s,stats:n})}}return r}var HLe=P(require("crypto"),1),jLe=P(require("stream"),1);var GLe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&is("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:l}=yield i.GetSignedArtifactURL(u);Ct(`Redirecting to blob download url: ${qje(l)}`);try{Ct(`Starting download of artifact to: ${r}`);let f=yield Gje(l,r,e?.skipDecompress);Ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(n=!0,ft(`Computed digest: ${f.sha256Digest}`),ft(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:n}})}function Vje(){return qI(this,arguments,void 0,function*(t=kke()){return(yield eZt(t))?ft(`Artifact destination folder already exists: ${t}`):(ft(`Artifact destination folder does not exist, creating: ${t}`),yield Zse.default.mkdir(t,{recursive:!0})),t})}var rZt=5,iZt=[400,401,403,404,422];function GI(t,e=rZt,r=iZt){var i;if(e<=0)return[{enabled:!1},t.request];let n={enabled:!0};r.length>0&&(n.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return ft(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(i=n.doNotRetry)!==null&&i!==void 0?i:"octokit default: [400, 401, 403, 404, 422]"})`),[n,s]}var zje="6.0.0";function FE(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let i=Date.now(),n=t.request.endpoint.parse(r),s=n.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${n.method} ${s} - ${o.status} with id ${a} in ${Date.now()-i}ms`),o})})}FE.VERSION=zje;var Jje=P($je(),1);var nZt="0.0.0-development";function sZt(t){return t.request!==void 0}async function Wje(t,e,r,i){if(!sZt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let n=i.request.retries!=null?i.request.retries:t.retries,s=Math.pow((i.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,n,s)}throw r}async function oZt(t,e,r,i){let n=new Jje.default;return n.on("failed",function(s,o){let a=~~s.request.request?.retries,c=~~s.request.request?.retryAfter;if(i.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),n.schedule(aZt.bind(null,t,e,r),i)}async function aZt(t,e,r,i){let n=await r(i);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 s=new Md(n.data.errors[0].message,500,{request:i,response:n});return Wje(t,e,s,i)}return n}function ME(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),i={retry:{retryRequest:(n,s,o)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:o}),n)}};return r.enabled&&(t.hook.error("request",Wje.bind(null,r,i)),t.hook.wrap("request",oZt.bind(null,r,i))),i}ME.VERSION=nZt;var Yje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function Gq(t,e,r,i,n){return Yje(this,void 0,void 0,function*(){var s;let[o,a]=GI(tE),c={log:void 0,userAgent:Kf(),previews:void 0,retry:o,request:a},l=yield su(n,c,ME,FE).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:i,run_id:e,name:t});if(l.status!==200)throw new yl(`Invalid response from GitHub API: ${l.status} (${(s=l?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(l.data.artifacts.length===0)throw new Gd(`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 f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],N(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function o6e(t){return n6e(this,void 0,void 0,function*(){var e;let r=Wf(),{workflowRunBackendId:i,workflowJobRunBackendId:s}=$f(),n={workflowRunBackendId:i,workflowJobRunBackendId:s,nameFilter:qi.create({value:t})},o=yield r.ListArtifacts(n);if(o.artifacts.length===0)throw new Fd(`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 f=l.data.artifacts[0];return l.data.artifacts.length>1&&(f=l.data.artifacts.sort((h,d)=>d.id-h.id)[0],ft(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}function Kje(t){return Yje(this,void 0,void 0,function*(){var e;let r=Zf(),{workflowRunBackendId:i,workflowJobRunBackendId:n}=Xf(),s={workflowRunBackendId:i,workflowJobRunBackendId:n,nameFilter:Vi.create({value:t})},o=yield r.ListArtifacts(s);if(o.artifacts.length===0)throw new Gd(`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((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],N(`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?Za.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var a6e=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function c6e(t,e,r,i,s){return a6e(this,void 0,void 0,function*(){var n;let[o,a]=xI(Gy),c={log:void 0,userAgent:Vf(),previews:void 0,retry:o,request:a},u=Zc(s,c,vE,BE),l=yield cq(t,e,r,i,s),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new hl(`Invalid response from GitHub API: ${f.status} (${(n=f?.headers)===null||n===void 0?void 0:n["x-github-request-id"]})`);return{id:l.artifact.id}})}function u6e(t){return a6e(this,void 0,void 0,function*(){let e=Wf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=$f(),s={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:qi.create({value:t})},n=yield e.ListArtifacts(s);if(n.artifacts.length===0)throw new Fd(`Artifact not found for name: ${t}`);let o=n.artifacts[0];n.artifacts.length>1&&(o=n.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],N(`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},c=yield e.DeleteArtifact(a);return L(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var l6e=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},uq=WPe(),lq=100,k7t=Math.ceil(uq/lq);function f6e(t,e,r,i){return l6e(this,arguments,void 0,function*(s,n,o,a,c=!1){L(`Fetching artifact list for workflow run ${s} in repository ${n}/${o}`);let u=[],[l,f]=xI(Gy),h={log:void 0,userAgent:Vf(),previews:void 0,retry:l,request:f},d=Zc(a,h,vE,BE),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:o,run_id:s,per_page:lq,page:m}),y=Math.ceil(A.total_count/lq),g=A.total_count;g>uq&&(st(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${uq}. Results will be incomplete as only the first ${uq} artifacts will be returned`),y=k7t);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){N(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:o,run_id:s,per_page:lq,page:m});for(let w of E.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return c&&(u=d6e(u)),L(`Found ${u.length} artifact(s)`),{artifacts:u}})}function h6e(){return l6e(this,arguments,void 0,function*(t=!1){let e=Wf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=$f(),s={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Za.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=d6e(o)),L(`Found ${o.length} artifact(s)`),{artifacts:o}})}function d6e(t){t.sort((i,s)=>s.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var RN=function(t,e,r,i){function s(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?n(l.value):s(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},L7t=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r},_I=class{uploadArtifact(e,r,i,s){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;return fHe(e,r,i,s)}catch(n){throw st(`Artifact upload failed with error: ${n}.
|
||||
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((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],ft(`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?sc.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var Xje=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})};function Zje(t,e,r,i,n){return Xje(this,void 0,void 0,function*(){var s;let[o,a]=GI(tE),c={log:void 0,userAgent:Kf(),previews:void 0,retry:o,request:a},u=su(n,c,ME,FE),l=yield Gq(t,e,r,i,n),f=yield u.rest.actions.deleteArtifact({owner:r,repo:i,artifact_id:l.artifact.id});if(f.status!==204)throw new yl(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:l.artifact.id}})}function eVe(t){return Xje(this,void 0,void 0,function*(){let e=Zf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Xf(),n={workflowRunBackendId:r,workflowJobRunBackendId:i,nameFilter:Vi.create({value:t})},s=yield e.ListArtifacts(n);if(s.artifacts.length===0)throw new Gd(`Artifact not found for name: ${t}`);let o=s.artifacts[0];s.artifacts.length>1&&(o=s.artifacts.sort((u,l)=>Number(l.databaseId)-Number(u.databaseId))[0],ft(`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},c=yield e.DeleteArtifact(a);return Ct(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var tVe=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},Hq=Mke(),jq=100,cZt=Math.ceil(Hq/jq);function rVe(t,e,r,i){return tVe(this,arguments,void 0,function*(n,s,o,a,c=!1){Ct(`Fetching artifact list for workflow run ${n} in repository ${s}/${o}`);let u=[],[l,f]=GI(tE),h={log:void 0,userAgent:Kf(),previews:void 0,retry:l,request:f},d=su(a,h,ME,FE),m=1,{data:A}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:jq,page:m}),y=Math.ceil(A.total_count/jq),g=A.total_count;g>Hq&&(is(`Workflow run ${n} has ${g} artifacts, exceeding the limit of ${Hq}. Results will be incomplete as only the first ${Hq} artifacts will be returned`),y=cZt);for(let E of A.artifacts)u.push({name:E.name,id:E.id,size:E.size_in_bytes,createdAt:E.created_at?new Date(E.created_at):void 0,digest:E.digest});for(m++,m;m<=y;m++){ft(`Fetching page ${m} of artifact list`);let{data:E}=yield d.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:o,run_id:n,per_page:jq,page:m});for(let w of E.artifacts)u.push({name:w.name,id:w.id,size:w.size_in_bytes,createdAt:w.created_at?new Date(w.created_at):void 0,digest:w.digest})}return c&&(u=nVe(u)),Ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}function iVe(){return tVe(this,arguments,void 0,function*(t=!1){let e=Zf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Xf(),n={workflowRunBackendId:r,workflowJobRunBackendId:i},o=(yield e.ListArtifacts(n)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?sc.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=nVe(o)),Ct(`Found ${o.length} artifact(s)`),{artifacts:o}})}function nVe(t){t.sort((i,n)=>n.id-i.id);let e=[],r=new Set;for(let i of t)r.has(i.name)||(e.push(i),r.add(i.name));return e}var oN=function(t,e,r,i){function n(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(l){try{u(i.next(l))}catch(f){o(f)}}function c(l){try{u(i.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})},uZt=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r},HI=class{uploadArtifact(e,r,i,n){return oN(this,void 0,void 0,function*(){try{if(BC())throw new aA;return rje(e,r,i,n)}catch(s){throw is(`Artifact upload 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 is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}downloadArtifact(e,r){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,token:n}}=r,o=L7t(r,["findBy"]);return XHe(e,i,s,n,o)}return ZHe(e,r)}catch(i){throw st(`Download Artifact failed with error: ${i}.
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return oN(this,void 0,void 0,function*(){try{if(BC())throw new aA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,token:s}}=r,o=uZt(r,["findBy"]);return Hje(e,i,n,s,o)}return jje(e,r)}catch(i){throw is(`Download Artifact 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 and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}listArtifacts(e){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:s,token:n}}=e;return f6e(r,i,s,n,e?.latest)}return h6e(e?.latest)}catch(r){throw st(`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).`),i}})}listArtifacts(e){return oN(this,void 0,void 0,function*(){try{if(BC())throw new aA;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:n,token:s}}=e;return rVe(r,i,n,s,e?.latest)}return iVe(e?.latest)}catch(r){throw is(`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 RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:s,repositoryName:n,token:o}}=r;return cq(e,i,s,n,o)}return o6e(e)}catch(i){throw st(`Get Artifact failed with error: ${i}.
|
||||
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 oN(this,void 0,void 0,function*(){try{if(BC())throw new aA;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:n,repositoryName:s,token:o}}=r;return Gq(e,i,n,s,o)}return Kje(e)}catch(i){throw is(`Get Artifact 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 and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return RN(this,void 0,void 0,function*(){try{if(lC())throw new Km;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,workflowRunId:n,token:o}}=r;return c6e(e,n,i,s,o)}return u6e(e)}catch(i){throw st(`Delete Artifact failed with error: ${i}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}deleteArtifact(e,r){return oN(this,void 0,void 0,function*(){try{if(BC())throw new aA;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:n,workflowRunId:s,token:o}}=r;return Zje(e,s,i,n,o)}return eVe(e)}catch(i){throw is(`Delete Artifact 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 and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var wYr=new _I;var fq=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=$se.default.basename(e.filename),i=new _I;L(`Uploading ${r} as an artifact`);let s=$se.default.dirname(e.filename),n=await i.uploadArtifact(r,[e.filename],s,{retentionDays:e.retentionDays,skipArchive:!0});if(!n.id)throw new hl("Cannot upload artifact");let o=n.size??p6e.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${n.id}`;return L(`Artifact download URL: ${a}`),{id:n.id,filename:r,digest:n.digest||"",size:o,url:a}}};var ane=k(m6e(),1);function T6e(t){return typeof t>"u"||t===null}function F7t(t){return typeof t=="object"&&t!==null}function M7t(t){return Array.isArray(t)?t:T6e(t)?[]:[t]}function U7t(t,e){var r,i,s,n;if(e)for(n=Object.keys(e),r=0,i=n.length;r<i;r+=1)s=n[r],t[s]=e[s];return t}function q7t(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function G7t(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var H7t=T6e,j7t=F7t,z7t=M7t,V7t=q7t,$7t=G7t,W7t=U7t,cs={isNothing:H7t,isObject:j7t,toArray:z7t,repeat:V7t,isNegativeZero:$7t,extend:W7t};function D6e(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}};var Fei=new HI;var Vq=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=roe.default.basename(e.filename),i=new HI;X(`Uploading ${r} as an artifact`);let n=roe.default.dirname(e.filename),s=await i.uploadArtifact(r,[e.filename],n,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new yl("Cannot upload artifact");let o=s.size??sVe.default.statSync(e.filename).size,a=`${gt.workflowRunURL()}/artifacts/${s.id}`;return X(`Artifact download URL: ${a}`),{id:s.id,filename:r,digest:s.digest||"",size:o,url:a}}};var Aoe=P(oVe(),1);function CVe(t){return typeof t>"u"||t===null}function lZt(t){return typeof t=="object"&&t!==null}function fZt(t){return Array.isArray(t)?t:CVe(t)?[]:[t]}function hZt(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function dZt(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function pZt(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var mZt=CVe,AZt=lZt,gZt=fZt,yZt=dZt,EZt=pZt,bZt=hZt,dn={isNothing:mZt,isObject:AZt,toArray:gZt,repeat:yZt,isNegativeZero:EZt,extend:bZt};function IVe(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
||||
|
||||
`+t.mark.snippet),i+" "+r):i}function DN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=D6e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}DN.prototype=Object.create(Error.prototype);DN.prototype.constructor=DN;DN.prototype.toString=function(e){return this.name+": "+D6e(this,e)};var ca=DN;function Wse(t,e,r,i,s){var n="",o="",a=Math.floor(s/2)-1;return i-e>a&&(n=" ... ",e=i-a+n.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+n.length}}function Jse(t,e){return cs.repeat(" ",e-t.length)+t}function J7t(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],s=[],n,o=-1;n=r.exec(t.buffer);)s.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,s.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=Wse(t.buffer,i[o-c],s[o-c],t.position-(i[o]-i[o-c]),f),a=cs.repeat(" ",e.indent)+Jse((t.line-c+1).toString(),l)+" | "+u.str+`
|
||||
`+a;for(u=Wse(t.buffer,i[o],s[o],t.position,f),a+=cs.repeat(" ",e.indent)+Jse((t.line+1).toString(),l)+" | "+u.str+`
|
||||
`,a+=cs.repeat("-",e.indent+l+3+u.pos)+`^
|
||||
`,c=1;c<=e.linesAfter&&!(o+c>=s.length);c++)u=Wse(t.buffer,i[o+c],s[o+c],t.position-(i[o]-i[o+c]),f),a+=cs.repeat(" ",e.indent)+Jse((t.line+c+1).toString(),l)+" | "+u.str+`
|
||||
`;return a.replace(/\n$/,"")}var Y7t=J7t,K7t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],X7t=["scalar","sequence","mapping"];function Z7t(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function eKt(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(K7t.indexOf(r)===-1)throw new ca('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Z7t(e.styleAliases||null),X7t.indexOf(this.kind)===-1)throw new ca('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Nn=eKt;function A6e(t,e){var r=[];return t[e].forEach(function(i){var s=r.length;r.forEach(function(n,o){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(s=o)}),r[s]=i}),r}function tKt(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Kse(t){return this.extend(t)}Kse.prototype.extend=function(e){var r=[],i=[];if(e instanceof Nn)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new ca("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Nn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new ca("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new ca("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof Nn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Kse.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=A6e(s,"implicit"),s.compiledExplicit=A6e(s,"explicit"),s.compiledTypeMap=tKt(s.compiledImplicit,s.compiledExplicit),s};var rKt=Kse,iKt=new Nn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),sKt=new Nn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),nKt=new Nn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),oKt=new rKt({explicit:[iKt,sKt,nKt]});function aKt(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function cKt(){return null}function uKt(t){return t===null}var lKt=new Nn("tag:yaml.org,2002:null",{kind:"scalar",resolve:aKt,construct:cKt,predicate:uKt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function fKt(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function hKt(t){return t==="true"||t==="True"||t==="TRUE"}function dKt(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var pKt=new Nn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:fKt,construct:hKt,predicate:dKt,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function mKt(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function AKt(t){return 48<=t&&t<=55}function gKt(t){return 48<=t&&t<=57}function yKt(t){if(t===null)return!1;var e=t.length,r=0,i=!1,s;if(!e)return!1;if(s=t[r],(s==="-"||s==="+")&&(s=t[++r]),s==="0"){if(r+1===e)return!0;if(s=t[++r],s==="b"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;i=!0}return i&&s!=="_"}if(s==="x"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!mKt(t.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}if(s==="o"){for(r++;r<e;r++)if(s=t[r],s!=="_"){if(!AKt(t.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}}if(s==="_")return!1;for(;r<e;r++)if(s=t[r],s!=="_"){if(!gKt(t.charCodeAt(r)))return!1;i=!0}return!(!i||s==="_")}function EKt(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur
Line truncated
|
||||
\r`;function LKt(t){if(t===null)return!1;var e,r,i=0,s=t.length,n=rne;for(r=0;r<s;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function FKt(t){var e,r,i=t.replace(/[\r\n=]/g,""),s=i.length,n=rne,o=0,a=[];for(e=0;e<s;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|n.indexOf(i.charAt(e));return r=s%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function MKt(t){var e="",r=0,i,s,n=t.length,o=rne;for(i=0;i<n;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return s=n%3,s===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):s===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):s===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function UKt(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var qKt=new Nn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:LKt,construct:FKt,predicate:UKt,represent:MKt}),GKt=Object.prototype.hasOwnProperty,HKt=Object.prototype.toString;function jKt(t){if(t===null)return!0;var e=[],r,i,s,n,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(s=a[r],o=!1,HKt.call(s)!=="[object Object]")return!1;for(n in s)if(GKt.call(s,n))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function zKt(t){return t!==null?t:[]}var VKt=new Nn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:jKt,construct:zKt}),$Kt=Object.prototype.toString;function WKt(t){if(t===null)return!0;var e,r,i,s,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],$Kt.call(i)!=="[object Object]"||(s=Object.keys(i),s.length!==1))return!1;n[e]=[s[0],i[s[0]]]}return!0}function JKt(t){if(t===null)return[];var e,r,i,s,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],s=Object.keys(i),n[e]=[s[0],i[s[0]]];return n}var YKt=new Nn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:WKt,construct:JKt}),KKt=Object.prototype.hasOwnProperty;function XKt(t){if(t===null)return!0;var e,r=t;for(e in r)if(KKt.call(r,e)&&r[e]!==null)return!1;return!0}function ZKt(t){return t!==null?t:{}}var eXt=new Nn("tag:yaml.org,2002:set",{kind:"mapping",resolve:XKt,construct:ZKt}),Q6e=NKt.extend({implicit:[PKt,kKt],explicit:[qKt,VKt,YKt,eXt]}),CA=Object.prototype.hasOwnProperty,dq=1,k6e=2,L6e=3,pq=4,Yse=1,tXt=2,g6e=3,rXt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,iXt=/[\x85\u2028\u2029]/,sXt=/[,\[\]\{\}]/,F6e=/^(?:!|!!|![a-z\-]+!)$/i,M6e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function y6e(t){return Object.prototype.toString.call(t)}function ah(t){return t===10||t===13}function _E(t){return t===9||t===32}function ua(t){return t===9||t===32||t===10||t===13}function NI(t){return t===44||t===91||t===93||t===123||t===125}function nXt(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function oXt(t){return t===120?2:t===117?4:t===85?8:0}function aXt(t){return 48<=t&&t<=57?t-48:-1}function E6e(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
||||
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function cXt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function U6e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var q6e=new Array(256),G6e=new Array(256);for(xE=0;xE<256;xE++)q6e[xE]=E6e(xE)?1:0,G6e[xE]=E6e(xE);var xE;function uXt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Q6e,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function H6e(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Y7t(r),new ca(e,r)}function Le(t,e){throw H6e(t,e)}function mq(t,e){t.onWarning&&t.onWarning.call(null,H6e(t,e))}var b6e={YAML:function(e,r,i){var s,n,o;e.version!==null&&Le(e,"duplication of %YAML directive"),i.length!==1&&Le(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),s===null&&Le(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),o=parseInt(s[2],10),n!==1&&Le(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&mq(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var s,n;i.length!==2&&Le(e,"TAG directive accepts exactly two arguments"),s=i[0],n=i[1],F6e.test(s)||Le(e,"ill-formed tag handle (first argument) of the TAG directive"),CA.call(e.tagMap,s)&&Le(e,'there is a previously declared suffix for "'+s+'" tag handle'),M6e.test(n)||Le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Le(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function wA(t,e,r,i){var s,n,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(s=0,n=a.length;s<n;s+=1)o=a.charCodeAt(s),o===9||32<=o&&o<=1114111||Le(t,"expected valid JSON character");else rXt.test(a)&&Le(t,"the stream contains non-printable characters");t.result+=a}}function w6e(t,e,r,i){var s,n,o,a;for(cs.isObject(r)||Le(t,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),o=0,a=s.length;o<a;o+=1)n=s[o],CA.call(e,n)||(U6e(e,n,r[n]),i[n]=!0)}function TI(t,e,r,i,s,n,o,a,c){var u,l;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),u=0,l=s.length;u<l;u+=1)Array.isArray(s[u])&&Le(t,"nested arrays are not supported inside keys"),typeof s=="object"&&y6e(s[u])==="[object Object]"&&(s[u]="[object Object]");if(typeof s=="object"&&y6e(s)==="[object Object]"&&(s="[object Object]"),s=String(s),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(u=0,l=n.length;u<l;u+=1)w6e(t,e,n[u],r);else w6e(t,e,n,r);else!t.json&&!CA.call(r,s)&&CA.call(e,s)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Le(t,"duplicated mapping key")),U6e(e,s,n),delete r[s];return e}function ine(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Le(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function ji(t,e,r){for(var i=0,s=t.input.charCodeAt(t.position);s!==0;){for(;_E(s);)s===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),s=t.input.charCodeAt(++t.position);if(e&&s===35)do s=t.input.charCodeAt(++t.position);while(s!==10&&s!==13&&s!==0);if(ah(s))for(ine(t),s=t.input.charCodeAt(t.position),i++,t.lineIndent=0;s===32;)t.lineIndent++,s=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&mq(t,"deficient indentation"),i}function yq(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||ua(r)))}function sne(t,e){e===1?t.result+=" ":e>1&&(t.result+=cs.repeat(`
|
||||
`,e-1))}function lXt(t,e,r){var i,s,n,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),ua(d)||NI(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(s=t.input.charCodeAt(t.position+1),ua(s)||r&&NI(s)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;d!==0;){if(d===58){if(s=t.input.charCodeAt(t.position+1),ua(s)||r&&NI(s))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),ua(i))break}else{if(t.position===t.lineStart&&yq(t)||r&&NI(d))break;if(ah(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,ji(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&(wA(t,n,o,!1),sne(t,t.line-c),n=o=t.position,a=!1),_E(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return wA(t,n,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function fXt(t,e){var r,i,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(wA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,s=t.position;else return!0;else ah(r)?(wA(t,i,s,!0),sne(t,ji(t,!1,e)),i=s=t.position):t.position===t.lineStart&&yq(t)?Le(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);Le(t,"unexpected end of the stream within a single quoted scalar")}function hXt(t,e){var r,i,s,n,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return wA(t,r,t.position,!0),t.position++,!0;if(a===92){if(wA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),ah(a))ji(t,!1,e);else if(a<256&&q6e[a])t.result+=G6e[a],t.position++;else if((o=oXt(a))>0){for(s=o,n=0;s>0;s--)a=t.input.charCodeAt(++t.position),(o=nXt(a))>=0?n=(n<<4)+o:Le(t,"expected hexadecimal character");t.result+=cXt(n),t.position++}else Le(t,"unknown escape sequence");r=i=t.position}else ah(a)?(wA(t,r,i,!0),sne(t,ji(t,!1,e)),r=i=t.position):t.position===t.lineStart&&yq(t)?Le(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Le(t,"unexpected end of the stream within a double quoted scalar")}function dXt(t,e){var r=!0,i,s,n,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(ji(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Le(t,"expected the node content, but found ','"):Le(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),ua(u)&&(f=h=!0,t.position++,ji(t,!0,e))),i=t.line,s=t.lineStart,n=t.position,DI(t,e,dq,!1,!0),y=t.tag,A=t.result,ji(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),ji(t,!0,e),DI(t,e,dq,!1,!0),g=t.result),d?TI(t,a,m,y,A,g,i,s,n):f?a.push(TI(t,null,m,y,A,g,i,s,n)):a.push(A),ji(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Le(t,"unexpected end of the stream within a flow collection")}function pXt(t,e){var r,i,s=Yse,n=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Yse===s?s=f===43?g6e:tXt:Le(t,"repeat of a chomping mode identifier");else if((l=aXt(f))>=0)l===0?Le(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Le(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(_E(f)){do f=t.input.charCodeAt(++t.position);while(_E(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ah(f)&&f!==0)}for(;f!==0;){for(ine(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),ah(f)){c++;continue}if(t.lineIndent<a){s===g6e?t.result+=cs.repeat(`
|
||||
`,n?1+c:c):s===Yse&&n&&(t.result+=`
|
||||
`);break}for(i?_E(f)?(u=!0,t.result+=cs.repeat(`
|
||||
`,n?1+c:c)):u?(u=!1,t.result+=cs.repeat(`
|
||||
`,c+1)):c===0?n&&(t.result+=" "):t.result+=cs.repeat(`
|
||||
`,c):t.result+=cs.repeat(`
|
||||
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!ah(f)&&f!==0;)f=t.input.charCodeAt(++t.position);wA(t,r,t.position,!1)}return!0}function C6e(t,e){var r,i=t.tag,s=t.anchor,n=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!ua(o))));){if(a=!0,t.position++,ji(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,DI(t,e,L6e,!1,!0),n.push(t.result),ji(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Le(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=s,t.kind="sequence",t.result=n,!0):!1}function mXt(t,e,r){var i,s,n,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Le(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(E===63||E===58)&&ua(i))E===63?(y&&(TI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,s=!0):y?(y=!1,s=!0):Le(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!DI(t,r,k6e,!1,!0))break;if(t.line===n){for(E=t.input.charCodeAt(t.position);_E(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),ua(E)||Le(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(TI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,s=!1,d=t.tag,m=t.result;else if(g)Le(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Le(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===n||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),DI(t,e,pq,!0,s)&&(y?m=t.result:A=t.result),y||(TI(t,f,h,d,m,A,o,a,c),d=m=A=null),ji(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&E!==0)Le(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&TI(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function AXt(t){var e,r=!1,i=!1,s,n,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Le(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,s="!!",o=t.input.charCodeAt(++t.position)):s="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Le(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ua(o);)o===33&&(i?Le(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),F6e.test(s)||Le(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),sXt.test(n)&&Le(t,"tag suffix cannot contain flow indicator characters")}n&&!M6e.test(n)&&Le(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Le(t,"tag name is malformed: "+n)}return r?t.tag=n:CA.call(t.tagMap,s)?t.tag=t.tagMap[s]+n:s==="!"?t.tag="!"+n:s==="!!"?t.tag="tag:yaml.org,2002:"+n:Le(t,'undeclared tag handle "'+s+'"'),!0}function gXt(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Le(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!ua(r)&&!NI(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function yXt(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!ua(i)&&!NI(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Le(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),CA.call(t.anchorMap,r)||Le(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],ji(t,!0,-1),!0}function DI(t,e,r,i,s){var n,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=o=a=pq===r||L6e===r,i&&ji(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;AXt(t)||gXt(t);)ji(t,!0,-1)?(u=!0,a=n,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||s),(c===1||pq===r)&&(dq===r||k6e===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(C6e(t,y)||mXt(t,y,A))||dXt(t,A)?l=!0:(o&&pXt(t,A)||fXt(t,A)||hXt(t,A)?l=!0:yXt(t)?(l=!0,(t.tag!==null||t.
Line truncated
|
||||
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new uXt(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Le(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)EXt(r);return r.documents}function bXt(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=j6e(t,r);if(typeof e!="function")return i;for(var s=0,n=i.length;s<n;s+=1)e(i[s])}function wXt(t,e){var r=j6e(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new ca("expected a single document in the stream, but found more")}}var CXt=bXt,IXt=wXt,z6e={loadAll:CXt,load:IXt},V6e=Object.prototype.toString,$6e=Object.prototype.hasOwnProperty,nne=65279,SXt=9,ON=10,BXt=13,vXt=32,xXt=33,_Xt=34,Xse=35,RXt=37,NXt=38,TXt=39,DXt=42,W6e=44,OXt=45,Aq=58,PXt=61,QXt=62,kXt=63,LXt=64,J6e=91,Y6e=93,FXt=96,K6e=123,MXt=124,X6e=125,Tn={};Tn[0]="\\0";Tn[7]="\\a";Tn[8]="\\b";Tn[9]="\\t";Tn[10]="\\n";Tn[11]="\\v";Tn[12]="\\f";Tn[13]="\\r";Tn[27]="\\e";Tn[34]='\\"';Tn[92]="\\\\";Tn[133]="\\N";Tn[160]="\\_";Tn[8232]="\\L";Tn[8233]="\\P";var UXt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qXt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function GXt(t,e){var r,i,s,n,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),s=0,n=i.length;s<n;s+=1)o=i[s],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&$6e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function HXt(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new ca("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+cs.repeat("0",i-e.length)+e}var jXt=1,PN=2;function zXt(t){this.schema=t.schema||Q6e,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=cs.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=GXt(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?PN:jXt,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function I6e(t,e){for(var r=cs.repeat(" ",e),i=0,s=-1,n="",o,a=t.length;i<a;)s=t.indexOf(`
|
||||
`,i),s===-1?(o=t.slice(i),i=a):(o=t.slice(i,s+1),i=s+1),o.length&&o!==`
|
||||
`&&(n+=r),n+=o;return n}function Zse(t,e){return`
|
||||
`+cs.repeat(" ",t.indent*e)}function VXt(t,e){var r,i,s;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(s=t.implicitTypes[r],s.resolve(e))return!0;return!1}function gq(t){return t===vXt||t===SXt}function QN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==nne||65536<=t&&t<=1114111}function S6e(t){return QN(t)&&t!==nne&&t!==BXt&&t!==ON}function B6e(t,e,r){var i=S6e(t),s=i&&!gq(t);return(r?i:i&&t!==W6e&&t!==J6e&&t!==Y6e&&t!==K6e&&t!==X6e)&&t!==Xse&&!(e===Aq&&!s)||S6e(e)&&!gq(e)&&t===Xse||e===Aq&&s}function $Xt(t){return QN(t)&&t!==nne&&!gq(t)&&t!==OXt&&t!==kXt&&t!==Aq&&t!==W6e&&t!==J6e&&t!==Y6e&&t!==K6e&&t!==X6e&&t!==Xse&&t!==NXt&&t!==DXt&&t!==xXt&&t!==MXt&&t!==PXt&&t!==QXt&&t!==TXt&&t!==_Xt&&t!==RXt&&t!==LXt&&t!==FXt}function WXt(t){return!gq(t)&&t!==Aq}function TN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Z6e(t){var e=/^\n* /;return e.test(t)}var eje=1,ene=2,tje=3,rje=4,RI=5;function JXt(t,e,r,i,s,n,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=$Xt(TN(t,0))&&WXt(TN(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=TN(t,c),!QN(u))return RI;A=A&&B6e(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=TN(t,c),u===ON)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!QN(u))return RI;A=A&&B6e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!s(t)?eje:n===PN?RI:ene:r>9&&Z6e(t)?RI:o?n===PN?RI:ene:h?rje:tje}function YXt(t,e,r,i,s){t.dump=(function(){if(e.length===0)return t.quotingType===PN?'""':"''";if(!t.noCompatMode&&(UXt.indexOf(e)!==-1||qXt.test(e)))return t.quotingType===PN?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return VXt(t,u)}switch(JXt(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,s)){case eje:return e;case ene:return"'"+e.replace(/'/g,"''")+"'";case tje:return"|"+v6e(e,t.indent)+x6e(I6e(e,n));case rje:return">"+v6e(e,t.indent)+x6e(I6e(KXt(e,o),n));case RI:return'"'+XXt(e)+'"';default:throw new ca("impossible error: invalid scalar style")}})()}function v6e(t,e){var r=Z6e(t)?String(e):"",i=t[t.length-1]===`
|
||||
`,s=i&&(t[t.length-2]===`
|
||||
`+t.mark.snippet),i+" "+r):i}function uN(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=IVe(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}uN.prototype=Object.create(Error.prototype);uN.prototype.constructor=uN;uN.prototype.toString=function(e){return this.name+": "+IVe(this,e)};var ma=uN;function ioe(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function noe(t,e){return dn.repeat(" ",e-t.length)+t}function wZt(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",c,u,l=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+l+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=ioe(t.buffer,i[o-c],n[o-c],t.position-(i[o]-i[o-c]),f),a=dn.repeat(" ",e.indent)+noe((t.line-c+1).toString(),l)+" | "+u.str+`
|
||||
`+a;for(u=ioe(t.buffer,i[o],n[o],t.position,f),a+=dn.repeat(" ",e.indent)+noe((t.line+1).toString(),l)+" | "+u.str+`
|
||||
`,a+=dn.repeat("-",e.indent+l+3+u.pos)+`^
|
||||
`,c=1;c<=e.linesAfter&&!(o+c>=n.length);c++)u=ioe(t.buffer,i[o+c],n[o+c],t.position-(i[o]-i[o+c]),f),a+=dn.repeat(" ",e.indent)+noe((t.line+c+1).toString(),l)+" | "+u.str+`
|
||||
`;return a.replace(/\n$/,"")}var CZt=wZt,IZt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],SZt=["scalar","sequence","mapping"];function BZt(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function vZt(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(IZt.indexOf(r)===-1)throw new ma('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=BZt(e.styleAliases||null),SZt.indexOf(this.kind)===-1)throw new ma('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Qs=vZt;function aVe(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function xZt(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function ooe(t){return this.extend(t)}ooe.prototype.extend=function(e){var r=[],i=[];if(e instanceof Qs)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new ma("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Qs))throw new ma("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ma("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ma("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Qs))throw new ma("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ooe.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=aVe(n,"implicit"),n.compiledExplicit=aVe(n,"explicit"),n.compiledTypeMap=xZt(n.compiledImplicit,n.compiledExplicit),n};var _Zt=ooe,RZt=new Qs("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),TZt=new Qs("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),NZt=new Qs("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),DZt=new _Zt({explicit:[RZt,TZt,NZt]});function OZt(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function PZt(){return null}function QZt(t){return t===null}var kZt=new Qs("tag:yaml.org,2002:null",{kind:"scalar",resolve:OZt,construct:PZt,predicate:QZt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function LZt(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function FZt(t){return t==="true"||t==="True"||t==="TRUE"}function MZt(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var UZt=new Qs("tag:yaml.org,2002:bool",{kind:"scalar",resolve:LZt,construct:FZt,predicate:MZt,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function qZt(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function GZt(t){return 48<=t&&t<=55}function HZt(t){return 48<=t&&t<=57}function jZt(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!qZt(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!GZt(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!HZt(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function VZt(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")retur
Line truncated
|
||||
\r`;function uer(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=foe;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function ler(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=foe,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function fer(t){var e="",r=0,i,n,s=t.length,o=foe;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function her(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var der=new Qs("tag:yaml.org,2002:binary",{kind:"scalar",resolve:uer,construct:ler,predicate:her,represent:fer}),per=Object.prototype.hasOwnProperty,mer=Object.prototype.toString;function Aer(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,mer.call(n)!=="[object Object]")return!1;for(s in n)if(per.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function ger(t){return t!==null?t:[]}var yer=new Qs("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Aer,construct:ger}),Eer=Object.prototype.toString;function ber(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],Eer.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function wer(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var Cer=new Qs("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ber,construct:wer}),Ier=Object.prototype.hasOwnProperty;function Ser(t){if(t===null)return!0;var e,r=t;for(e in r)if(Ier.call(r,e)&&r[e]!==null)return!1;return!0}function Ber(t){return t!==null?t:{}}var ver=new Qs("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ser,construct:Ber}),vVe=rer.extend({implicit:[oer,cer],explicit:[der,yer,Cer,ver]}),DA=Object.prototype.hasOwnProperty,$q=1,xVe=2,_Ve=3,Wq=4,soe=1,xer=2,cVe=3,_er=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rer=/[\x85\u2028\u2029]/,Ter=/[,\[\]\{\}]/,RVe=/^(?:!|!!|![a-z\-]+!)$/i,TVe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function uVe(t){return Object.prototype.toString.call(t)}function hh(t){return t===10||t===13}function qE(t){return t===9||t===32}function Aa(t){return t===9||t===32||t===10||t===13}function VI(t){return t===44||t===91||t===93||t===123||t===125}function Ner(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Der(t){return t===120?2:t===117?4:t===85?8:0}function Oer(t){return 48<=t&&t<=57?t-48:-1}function lVe(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
||||
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function Per(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function NVe(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var DVe=new Array(256),OVe=new Array(256);for(UE=0;UE<256;UE++)DVe[UE]=lVe(UE)?1:0,OVe[UE]=lVe(UE);var UE;function Qer(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||vVe,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function PVe(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=CZt(r),new ma(e,r)}function Fe(t,e){throw PVe(t,e)}function Jq(t,e){t.onWarning&&t.onWarning.call(null,PVe(t,e))}var fVe={YAML:function(e,r,i){var n,s,o;e.version!==null&&Fe(e,"duplication of %YAML directive"),i.length!==1&&Fe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Fe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Fe(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Jq(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Fe(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],RVe.test(n)||Fe(e,"ill-formed tag handle (first argument) of the TAG directive"),DA.call(e.tagMap,n)&&Fe(e,'there is a previously declared suffix for "'+n+'" tag handle'),TVe.test(s)||Fe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Fe(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function NA(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||Fe(t,"expected valid JSON character");else _er.test(a)&&Fe(t,"the stream contains non-printable characters");t.result+=a}}function hVe(t,e,r,i){var n,s,o,a;for(dn.isObject(r)||Fe(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],DA.call(e,s)||(NVe(e,s,r[s]),i[s]=!0)}function zI(t,e,r,i,n,s,o,a,c){var u,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,l=n.length;u<l;u+=1)Array.isArray(n[u])&&Fe(t,"nested arrays are not supported inside keys"),typeof n=="object"&&uVe(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&uVe(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,l=s.length;u<l;u+=1)hVe(t,e,s[u],r);else hVe(t,e,s,r);else!t.json&&!DA.call(r,n)&&DA.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Fe(t,"duplicated mapping key")),NVe(e,n,s),delete r[n];return e}function hoe(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Fe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Wi(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;qE(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(hh(n))for(hoe(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Jq(t,"deficient indentation"),i}function Xq(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Aa(r)))}function doe(t,e){e===1?t.result+=" ":e>1&&(t.result+=dn.repeat(`
|
||||
`,e-1))}function ker(t,e,r){var i,n,s,o,a,c,u,l,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),Aa(d)||VI(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),Aa(n)||r&&VI(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),Aa(n)||r&&VI(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Aa(i))break}else{if(t.position===t.lineStart&&Xq(t)||r&&VI(d))break;if(hh(d))if(c=t.line,u=t.lineStart,l=t.lineIndent,Wi(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=l;break}}a&&(NA(t,s,o,!1),doe(t,t.line-c),s=o=t.position,a=!1),qE(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return NA(t,s,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Ler(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(NA(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else hh(r)?(NA(t,i,n,!0),doe(t,Wi(t,!1,e)),i=n=t.position):t.position===t.lineStart&&Xq(t)?Fe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Fe(t,"unexpected end of the stream within a single quoted scalar")}function Fer(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return NA(t,r,t.position,!0),t.position++,!0;if(a===92){if(NA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),hh(a))Wi(t,!1,e);else if(a<256&&DVe[a])t.result+=OVe[a],t.position++;else if((o=Der(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Ner(a))>=0?s=(s<<4)+o:Fe(t,"expected hexadecimal character");t.result+=Per(s),t.position++}else Fe(t,"unknown escape sequence");r=i=t.position}else hh(a)?(NA(t,r,i,!0),doe(t,Wi(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Xq(t)?Fe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Fe(t,"unexpected end of the stream within a double quoted scalar")}function Mer(t,e){var r=!0,i,n,s,o=t.tag,a,c=t.anchor,u,l,f,h,d,m=Object.create(null),A,y,g,E;if(E=t.input.charCodeAt(t.position),E===91)l=93,d=!1,a=[];else if(E===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),E=t.input.charCodeAt(++t.position);E!==0;){if(Wi(t,!0,e),E=t.input.charCodeAt(t.position),E===l)return t.position++,t.tag=o,t.anchor=c,t.kind=d?"mapping":"sequence",t.result=a,!0;r?E===44&&Fe(t,"expected the node content, but found ','"):Fe(t,"missed comma between flow collection entries"),y=A=g=null,f=h=!1,E===63&&(u=t.input.charCodeAt(t.position+1),Aa(u)&&(f=h=!0,t.position++,Wi(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,$I(t,e,$q,!1,!0),y=t.tag,A=t.result,Wi(t,!0,e),E=t.input.charCodeAt(t.position),(h||t.line===i)&&E===58&&(f=!0,E=t.input.charCodeAt(++t.position),Wi(t,!0,e),$I(t,e,$q,!1,!0),g=t.result),d?zI(t,a,m,y,A,g,i,n,s):f?a.push(zI(t,null,m,y,A,g,i,n,s)):a.push(A),Wi(t,!0,e),E=t.input.charCodeAt(t.position),E===44?(r=!0,E=t.input.charCodeAt(++t.position)):r=!1}Fe(t,"unexpected end of the stream within a flow collection")}function Uer(t,e){var r,i,n=soe,s=!1,o=!1,a=e,c=0,u=!1,l,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)soe===n?n=f===43?cVe:xer:Fe(t,"repeat of a chomping mode identifier");else if((l=Oer(f))>=0)l===0?Fe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Fe(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if(qE(f)){do f=t.input.charCodeAt(++t.position);while(qE(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!hh(f)&&f!==0)}for(;f!==0;){for(hoe(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),hh(f)){c++;continue}if(t.lineIndent<a){n===cVe?t.result+=dn.repeat(`
|
||||
`,s?1+c:c):n===soe&&s&&(t.result+=`
|
||||
`);break}for(i?qE(f)?(u=!0,t.result+=dn.repeat(`
|
||||
`,s?1+c:c)):u?(u=!1,t.result+=dn.repeat(`
|
||||
`,c+1)):c===0?s&&(t.result+=" "):t.result+=dn.repeat(`
|
||||
`,c):t.result+=dn.repeat(`
|
||||
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!hh(f)&&f!==0;)f=t.input.charCodeAt(++t.position);NA(t,r,t.position,!1)}return!0}function dVe(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!Aa(o))));){if(a=!0,t.position++,Wi(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,$I(t,e,_Ve,!1,!0),s.push(t.result),Wi(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Fe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function qer(t,e,r){var i,n,s,o,a,c,u=t.tag,l=t.anchor,f={},h=Object.create(null),d=null,m=null,A=null,y=!1,g=!1,E;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),E=t.input.charCodeAt(t.position);E!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Fe(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(E===63||E===58)&&Aa(i))E===63?(y&&(zI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!0,n=!0):y?(y=!1,n=!0):Fe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,E=i;else{if(o=t.line,a=t.lineStart,c=t.position,!$I(t,r,xVe,!1,!0))break;if(t.line===s){for(E=t.input.charCodeAt(t.position);qE(E);)E=t.input.charCodeAt(++t.position);if(E===58)E=t.input.charCodeAt(++t.position),Aa(E)||Fe(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(zI(t,f,h,d,m,null,o,a,c),d=m=A=null),g=!0,y=!1,n=!1,d=t.tag,m=t.result;else if(g)Fe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=l,!0}else if(g)Fe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(y&&(o=t.line,a=t.lineStart,c=t.position),$I(t,e,Wq,!0,n)&&(y?m=t.result:A=t.result),y||(zI(t,f,h,d,m,A,o,a,c),d=m=A=null),Wi(t,!0,-1),E=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&E!==0)Fe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&zI(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function Ger(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Fe(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Fe(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Aa(o);)o===33&&(i?Fe(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),RVe.test(n)||Fe(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),Ter.test(s)&&Fe(t,"tag suffix cannot contain flow indicator characters")}s&&!TVe.test(s)&&Fe(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Fe(t,"tag name is malformed: "+s)}return r?t.tag=s:DA.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Fe(t,'undeclared tag handle "'+n+'"'),!0}function Her(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Fe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Aa(r)&&!VI(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Fe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function jer(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Aa(i)&&!VI(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Fe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),DA.call(t.anchorMap,r)||Fe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Wi(t,!0,-1),!0}function $I(t,e,r,i,n){var s,o,a,c=1,u=!1,l=!1,f,h,d,m,A,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Wq===r||_Ve===r,i&&Wi(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;Ger(t)||Her(t);)Wi(t,!0,-1)?(u=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||n),(c===1||Wq===r)&&($q===r||xVe===r?A=e:A=e+1,y=t.position-t.lineStart,c===1?a&&(dVe(t,y)||qer(t,y,A))||Mer(t,A)?l=!0:(o&&Uer(t,A)||Ler(t,A)||Fer(t,A)?l=!0:jer(t)?(l=!0,(t.tag!==null||t.
Line truncated
|
||||
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Qer(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ver(r);return r.documents}function zer(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=QVe(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function $er(t,e){var r=QVe(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new ma("expected a single document in the stream, but found more")}}var Wer=zer,Jer=$er,kVe={loadAll:Wer,load:Jer},LVe=Object.prototype.toString,FVe=Object.prototype.hasOwnProperty,poe=65279,Yer=9,lN=10,Ker=13,Xer=32,Zer=33,etr=34,aoe=35,ttr=37,rtr=38,itr=39,ntr=42,MVe=44,str=45,Yq=58,otr=61,atr=62,ctr=63,utr=64,UVe=91,qVe=93,ltr=96,GVe=123,ftr=124,HVe=125,ks={};ks[0]="\\0";ks[7]="\\a";ks[8]="\\b";ks[9]="\\t";ks[10]="\\n";ks[11]="\\v";ks[12]="\\f";ks[13]="\\r";ks[27]="\\e";ks[34]='\\"';ks[92]="\\\\";ks[133]="\\N";ks[160]="\\_";ks[8232]="\\L";ks[8233]="\\P";var htr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],dtr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ptr(t,e){var r,i,n,s,o,a,c;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&FVe.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function mtr(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new ma("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+dn.repeat("0",i-e.length)+e}var Atr=1,fN=2;function gtr(t){this.schema=t.schema||vVe,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=dn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=ptr(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?fN:Atr,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function pVe(t,e){for(var r=dn.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
|
||||
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
||||
`&&(s+=r),s+=o;return s}function coe(t,e){return`
|
||||
`+dn.repeat(" ",t.indent*e)}function ytr(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function Kq(t){return t===Xer||t===Yer}function hN(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==poe||65536<=t&&t<=1114111}function mVe(t){return hN(t)&&t!==poe&&t!==Ker&&t!==lN}function AVe(t,e,r){var i=mVe(t),n=i&&!Kq(t);return(r?i:i&&t!==MVe&&t!==UVe&&t!==qVe&&t!==GVe&&t!==HVe)&&t!==aoe&&!(e===Yq&&!n)||mVe(e)&&!Kq(e)&&t===aoe||e===Yq&&n}function Etr(t){return hN(t)&&t!==poe&&!Kq(t)&&t!==str&&t!==ctr&&t!==Yq&&t!==MVe&&t!==UVe&&t!==qVe&&t!==GVe&&t!==HVe&&t!==aoe&&t!==rtr&&t!==ntr&&t!==Zer&&t!==ftr&&t!==otr&&t!==atr&&t!==itr&&t!==etr&&t!==ttr&&t!==utr&&t!==ltr}function btr(t){return!Kq(t)&&t!==Yq}function cN(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function jVe(t){var e=/^\n* /;return e.test(t)}var VVe=1,uoe=2,zVe=3,$Ve=4,jI=5;function wtr(t,e,r,i,n,s,o,a){var c,u=0,l=null,f=!1,h=!1,d=i!==-1,m=-1,A=Etr(cN(t,0))&&btr(cN(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=cN(t,c),!hN(u))return jI;A=A&&AVe(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=cN(t,c),u===lN)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!hN(u))return jI;A=A&&AVe(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!n(t)?VVe:s===fN?jI:uoe:r>9&&jVe(t)?jI:o?s===fN?jI:uoe:h?$Ve:zVe}function Ctr(t,e,r,i,n){t.dump=(function(){if(e.length===0)return t.quotingType===fN?'""':"''";if(!t.noCompatMode&&(htr.indexOf(e)!==-1||dtr.test(e)))return t.quotingType===fN?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return ytr(t,u)}switch(wtr(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,n)){case VVe:return e;case uoe:return"'"+e.replace(/'/g,"''")+"'";case zVe:return"|"+gVe(e,t.indent)+yVe(pVe(e,s));case $Ve:return">"+gVe(e,t.indent)+yVe(pVe(Itr(e,o),s));case jI:return'"'+Str(e)+'"';default:throw new ma("impossible error: invalid scalar style")}})()}function gVe(t,e){var r=jVe(t)?String(e):"",i=t[t.length-1]===`
|
||||
`,n=i&&(t[t.length-2]===`
|
||||
`||t===`
|
||||
`),n=s?"+":i?"":"-";return r+n+`
|
||||
`}function x6e(t){return t[t.length-1]===`
|
||||
`?t.slice(0,-1):t}function KXt(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
|
||||
`);return u=u!==-1?u:t.length,r.lastIndex=u,_6e(t.slice(0,u),e)})(),s=t[0]===`
|
||||
`||t[0]===" ",n,o;o=r.exec(t);){var a=o[1],c=o[2];n=c[0]===" ",i+=a+(!s&&!n&&c!==""?`
|
||||
`:"")+_6e(c,e),s=n}return i}function _6e(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,s=0,n,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-s>e&&(n=o>s?o:a,c+=`
|
||||
`+t.slice(s,n),s=n+1),o=a;return c+=`
|
||||
`,t.length-s>e&&o>s?c+=t.slice(s,o)+`
|
||||
`+t.slice(o+1):c+=t.slice(s),c.slice(1)}function XXt(t){for(var e="",r=0,i,s=0;s<t.length;r>=65536?s+=2:s++)r=TN(t,s),i=Tn[r],!i&&QN(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=i||HXt(r);return e}function ZXt(t,e,r){var i="",s=t.tag,n,o,a;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(Zd(t,e,a,!1,!1)||typeof a>"u"&&Zd(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=s,t.dump="["+i+"]"}function R6e(t,e,r,i){var s="",n=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Zd(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Zd(t,e+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=Zse(t,e)),t.dump&&ON===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=n,t.dump=s||"[]"}function eZt(t,e,r){var i="",s=t.tag,n=Object.keys(r),o,a,c,u,l;for(o=0,a=n.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=n[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Zd(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Zd(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=s,t.dump="{"+i+"}"}function tZt(t,e,r,i){var s="",n=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new ca("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||s!=="")&&(h+=Zse(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),Zd(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&ON===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=Zse(t,e)),Zd(t,e+1,l,!0,f)&&(t.dump&&ON===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,s+=h));t.tag=n,t.dump=s||"{}"}function N6e(t,e,r){var i,s,n,o,a,c;for(s=r?t.explicitTypes:t.implicitTypes,n=0,o=s.length;n<o;n+=1)if(a=s[n],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,V6e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if($6e.call(a.represent,c))i=a.represent[c](e,c);else throw new ca("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function Zd(t,e,r,i,s,n,o){t.tag=null,t.dump=r,N6e(t,r,!1)||N6e(t,r,!0);var a=V6e.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(s=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(tZt(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(eZt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?R6e(t,e-1,t.dump,s):R6e(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(ZXt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&YXt(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ca("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function rZt(t,e){var r=[],i=[],s,n;for(tne(t,r,i),s=0,n=i.length;s<n;s+=1)e.duplicates.push(r[i[s]]);e.usedDuplicates=new Array(n)}function tne(t,e,r){var i,s,n;if(t!==null&&typeof t=="object")if(s=e.indexOf(t),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(e.push(t),Array.isArray(t))for(s=0,n=t.length;s<n;s+=1)tne(t[s],e,r);else for(i=Object.keys(t),s=0,n=i.length;s<n;s+=1)tne(t[i[s]],e,r)}function iZt(t,e){e=e||{};var r=new zXt(e);r.noRefs||rZt(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Zd(r,0,i,!0,!0)?r.dump+`
|
||||
`:""}var sZt=iZt,nZt={dump:sZt};function one(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var RYr=z6e.load,NYr=z6e.loadAll,ije=nZt.dump;var TYr=one("safeLoad","load"),DYr=one("safeLoadAll","loadAll"),OYr=one("safeDump","dump");var sje=k(require("os"),1);var Eq=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?sje.default.EOL:"")},i=e.exportRes.refs.length,s=i>0?e.exportRes.refs?.[0]:void 0,n=s?e.exportRes.summaries?.[s]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=E9.addHeading("Docker Build summary",2);if(o&&i===1&&s&&n){let c=t.formatDBCBuildURL(o,s,n.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Xe.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Xe.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Xe.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Xe.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(ane.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(ane.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(ije(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),L("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var RE=k(require("fs"),1),cne=k(require("path"),1);var ep=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.iidFilename=`build-iidfile-${Xe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=Xe.parseBoolOrDefault(process.env.DO
Line truncated
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of i){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[n,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=Ya(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of i)for(let[n,o]of s.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Ya(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let s of r)for(let n of s)try{let o=Xe.parseBool(n);i.push(`disabled=${!o}`)}catch{i.push(n)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),s=e.substring(0,i),n=e.substring(i+1);if(s.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&Oa(n),[s,n]}};var une=k(require("fs"),1),nje=k(require("path"),1);var OI=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.metadataFilename=`bake-metadata-${Xe.generateRandomString()}.json`}getMetadataFilePath(){return nje.default.join(Tt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!une.default.existsSync(e))return;let r=une.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],s,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Xe.isValidRef(c)){n.push(c);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=c}}s&&i.push(s);for(let c of n)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await Ue.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let s=r.target[i];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(n=>t.parseAttestEntry(n))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(n=>t.parseCacheEntry(n))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(n=>t.parseCacheEntry(n))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(n=>t.parseExportEntry(n))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(n=>t.parseSecretEntry(n))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=Xe.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of i){let[n,o]=s.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=Ya(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let n of i){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":s=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,s]=e.split("=",2);return r.id=i,s&&(r.paths=s.split
Line truncated
|
||||
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);N(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let s=i[1].trim();if(s.startsWith("tag: "))return`refs/tags/${s.split(":")[1].trim()}`;if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let o=s.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=s.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Ue.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[s]=i.split(`
|
||||
`).map(n=>n.trim()).filter(n=>n.length>0);if(s)return`refs/tags/${s}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[i]=r.split(`
|
||||
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var drt=require("crypto"),Hh=k(require("fs"),1),ug=k(require("path"),1);var z1=k(LN(),1),jh=k(cZe(),1),prt=k(Hhe(),1),AB=k(ort(),1);var Gde=k(LN(),1);var crt=k(ul(),1);var art="application/vnd.oci.empty.v1+json";var Vp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Ue.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Ue.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Ue.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return N("Cosign.versionSatisfies false: undefined version"),!1;let s=crt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return N(`Cosign.versionSatisfies ${i} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,i,s,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===Gde.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===art&&typeof u.digest=="string"&&(i=u.digest)}if(!s&&c&&c.mediaType===Gde.BUNDLE_V03_MEDIA_TYPE&&(s=c),s&&(r||i)){n=void 0;break}}return{bundle:s,signatureManifestDigest:r||i,errors:n}}};var Hde=k(require("fs"),1);var BG=class t{buildx;constructor(e){this.buildx=e?.buildx||new $t}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let s=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===s.os&&c.platform?.architecture===s.architecture&&(c.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Tt.tmpName({tmpdir:Tt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&s.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of s)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){L(`[command]${o.command} ${o.args.join(" ")}`),L("Skipped create command");return}return await Ue.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!Hde.default.existsSync(i))return;let c=Hde.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let s=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(s.command,s.args,i);let n=e.retryLimit??15,o;for(let a=0;a<n;a++)try{return await this.execInspect(s.command,s.args,i)}catch(c){if(o=c,!t.isManifest
Line truncated
|
||||
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await Ue.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return i(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var urt="application/vnd.in-toto+json";var lrt="https://fulcio.sigstore.dev",frt="https://rekor.sigstore.dev",hrt="https://timestamp.sigstore.dev",T0="https://search.sigstore.dev";var dCr="slsaprovenance1",lg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Vp,this.imageTools=e?.imageTools||new BG}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);L(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let s=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await ti("Creating Sigstore protobuf signing config",async()=>{let o=Tt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Tt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];s&&a.push("--no-default-rekor=true"),await Ue.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),L(JSON.stringify(JSON.parse(Hh.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),s&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await ti(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];L(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=Vp.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
|
||||
`),s=n?"+":i?"":"-";return r+s+`
|
||||
`}function yVe(t){return t[t.length-1]===`
|
||||
`?t.slice(0,-1):t}function Itr(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
|
||||
`);return u=u!==-1?u:t.length,r.lastIndex=u,EVe(t.slice(0,u),e)})(),n=t[0]===`
|
||||
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],c=o[2];s=c[0]===" ",i+=a+(!n&&!s&&c!==""?`
|
||||
`:"")+EVe(c,e),n=s}return i}function EVe(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,c="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,c+=`
|
||||
`+t.slice(n,s),n=s+1),o=a;return c+=`
|
||||
`,t.length-n>e&&o>n?c+=t.slice(n,o)+`
|
||||
`+t.slice(o+1):c+=t.slice(n),c.slice(1)}function Str(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=cN(t,n),i=ks[r],!i&&hN(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||mtr(r);return e}function Btr(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(ip(t,e,a,!1,!1)||typeof a>"u"&&ip(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function bVe(t,e,r,i){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(ip(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&ip(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=coe(t,e)),t.dump&&lN===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function vtr(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,c,u,l;for(o=0,a=s.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),ip(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ip(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function xtr(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,c,u,l,f,h;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new ma("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!i||n!=="")&&(h+=coe(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),ip(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&lN===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=coe(t,e)),ip(t,e+1,l,!0,f)&&(t.dump&&lN===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,n+=h));t.tag=s,t.dump=n||"{}"}function wVe(t,e,r){var i,n,s,o,a,c;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,LVe.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(FVe.call(a.represent,c))i=a.represent[c](e,c);else throw new ma("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=i}return!0}return!1}function ip(t,e,r,i,n,s,o){t.tag=null,t.dump=r,wVe(t,r,!1)||wVe(t,r,!0);var a=LVe.call(t.dump),c=i,u;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",f,h;if(l&&(f=t.duplicates.indexOf(r),h=f!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(n=!1),h&&t.usedDuplicates[f])t.dump="*ref_"+f;else{if(l&&h&&!t.usedDuplicates[f]&&(t.usedDuplicates[f]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(xtr(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(vtr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?bVe(t,e-1,t.dump,n):bVe(t,e,t.dump,n),h&&(t.dump="&ref_"+f+t.dump)):(Btr(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&Ctr(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new ma("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function _tr(t,e){var r=[],i=[],n,s;for(loe(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function loe(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)loe(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)loe(t[i[n]],e,r)}function Rtr(t,e){e=e||{};var r=new gtr(e);r.noRefs||_tr(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),ip(r,0,i,!0,!0)?r.dump+`
|
||||
`:""}var Ttr=Rtr,Ntr={dump:Ttr};function moe(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var zei=kVe.load,$ei=kVe.loadAll,WVe=Ntr.dump;var Wei=moe("safeLoad","load"),Jei=moe("safeLoadAll","loadAll"),Yei=moe("safeDump","dump");var JVe=P(require("os"),1);var Zq=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?JVe.default.EOL:"")},i=e.exportRes.refs.length,n=i>0?e.exportRes.refs?.[0]:void 0,s=n?e.exportRes.summaries?.[n]:void 0,o=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,a=y9.addHeading("Docker Build summary",2);if(o&&i===1&&n&&s){let c=t.formatDBCBuildURL(o,n,s.defaultPlatform);a.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${c}</strong>`,c)}`).addRaw("</p>")}if(e.uploadRes){let c=`./${gt.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;o&&i===1?a.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):a.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),a.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Xe.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,c)} (${Xe.formatFileSize(e.uploadRes.size)} - includes <strong>${i} build record${i>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&a.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(a.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){a.addRaw("<p>");let c=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...o&&i>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let l in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,l)){let f=e.exportRes.summaries[l];c.push([{data:`<code>${l.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Xe.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...o&&i>1?[{data:r(":whale: Open",t.formatDBCBuildURL(o,l,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}a.addTable([...c]),a.addRaw("</p>"),u&&(a.addRaw("<blockquote>"),Xe.countLines(u)>10?a.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(Aoe.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Aoe.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.inputs&&a.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(WVe(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&a.addRaw("<details><summary><strong>Bake definition</strong></summary>").addCodeBlock(JSON.stringify(e.bakeDefinition,null,2),"json").addRaw("</details>"),X("Writing summary"),await a.addSeparator().write()}static formatDBCBuildURL(e,r,i){return`https://app.docker.com/build/accounts/${e}/builds/${(i??"linux/amd64").replace("/","-")}/${r}`}};var GE=P(require("fs"),1),goe=P(require("path"),1);var np=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.iidFilename=`build-iidfile-${Xe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Xe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),i=Xe.parseBoolOrDefault(process.env.DO
Line truncated
|
||||
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let i=rc(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of i)for(let[s,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(s=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=rc(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),i=[];for(let n of r)for(let s of n)try{let o=Xe.parseBool(s);i.push(`disabled=${!o}`)}catch{i.push(s)}return i.join(",")}static hasGitAuthTokenSecret(e,r){for(let i of e){if(r&&i.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(i.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let i=e.indexOf("="),n=e.substring(0,i),s=e.substring(i+1);if(n.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&lx(s),[n,s]}};var yoe=P(require("fs"),1),YVe=P(require("path"),1);var WI=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Wt,this.metadataFilename=`bake-metadata-${Xe.generateRandomString()}.json`}getMetadataFilePath(){return YVe.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!yoe.default.existsSync(e))return;let r=yoe.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let i in e)"buildx.build.ref"in e[i]&&r.push(e[i]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let i=["bake"],n,s=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!Xe.isValidRef(c)){s.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&i.push(n);for(let c of s)i.push("--file",c);if(e.overrides)for(let c of e.overrides)i.push("--set",c);if(e.vars)for(let c of e.vars)i.push("--var",c);if(e.allow)for(let c of e.allow)i.push("--allow",c);e.call&&i.push("--call",e.call),e.load&&i.push("--load"),e.noCache&&i.push("--no-cache"),e.provenance&&i.push("--provenance",e.provenance),e.push&&i.push("--push"),e.sbom&&i.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...i,"--print",...e.targets||[]]);return await qe.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let i in r.target){let n=r.target[i];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(s=>t.parseAttestEntry(s))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(s=>t.parseCacheEntry(s))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(s=>t.parseCacheEntry(s))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(s=>t.parseExportEntry(s))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(s=>t.parseSecretEntry(s))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},i=rc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(s){case"type":r.type=o;break;case"disabled":r.disabled=Xe.parseBool(o);break;default:r[s]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},i=rc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&!i[0].includes("="))return r.type="registry",r.ref=i[0],r;for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},i=rc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(i.length===1&&i[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of i){let[s,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());s==="type"?r.type=o:r[s]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},i=rc(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let s of i){let[o,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":n=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[i,n]=e.split("=",2);return r.id=i,n&&(r.paths=n.split
Line truncated
|
||||
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);K(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let i=r.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=i[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await qe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let i=await t.exec(["tag","--contains","HEAD"]),[n]=i.split(`
|
||||
`).map(s=>s.trim()).filter(s=>s.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[i]=r.split(`
|
||||
`).map(n=>n.trim()).filter(n=>n.length>0);return i}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var nnt=require("crypto"),Wh=P(require("fs"),1),Eg=P(require("path"),1);var C2=P(pN(),1),Jh=P(ttt(),1),snt=P(Xde(),1),NB=P(Kit(),1);var Kpe=P(pN(),1);var Zit=P(ml(),1);var Xit="application/vnd.oci.empty.v1+json";var Yp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await qe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(K(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(K(`Cosign.isAvailable error: ${r}`),!1));return K(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await qe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await qe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let i=r??await this.version();if(!i)return K("Cosign.versionSatisfies false: undefined version"),!1;let n=Zit.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return K(`Cosign.versionSatisfies ${i} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,i,n,s;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===Kpe.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Xit&&typeof u.digest=="string"&&(i=u.digest)}if(!n&&c&&c.mediaType===Kpe.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||i)){s=void 0;break}}return{bundle:n,signatureManifestDigest:r||i,errors:s}}};var Xpe=P(require("fs"),1);var sH=class t{buildx;constructor(e){this.buildx=e?.buildx||new Wt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let i=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return i;let n=e.platform,s=new Map;for(let o of r.manifests)o.digest&&s.set(o.digest,o);return i.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=s.get(a);return c?c.platform?.os===n.os&&c.platform?.architecture===n.architecture&&(c.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],i=Dt.tmpName({tmpdir:Dt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],s=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&n.push(c);continue}s.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",i);for(let a of n)r.push("--file",a);for(let a of s)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){X(`[command]${o.command} ${o.args.join(" ")}`),X("Skipped create command");return}return await qe.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!Xpe.default.existsSync(i))return;let c=Xpe.default.readFileSync(i,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let u=JSON.parse(c),l=u["containerimage.descriptor"];return l?{digest:u["containerimage.digest"]||l.digest,descriptor:l,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,i){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,i);let s=e.retryLimit??15,o;for(let a=0;a<s;a++)try{return await this.execInspect(n.command,n.args,i)}catch(c){if(o=c,!t.isManifest
Line truncated
|
||||
${o.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,i){return await qe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return i(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var ent="application/vnd.in-toto+json";var tnt="https://fulcio.sigstore.dev",rnt="https://rekor.sigstore.dev",int="https://timestamp.sigstore.dev",j0="https://search.sigstore.dev";var MSr="slsaprovenance1",bg=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Yp,this.imageTools=e?.imageTools||new sH}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);X(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),s=[];await this.cosign.versionSatisfies(">=3.0.4")?await Om("Creating Sigstore protobuf signing config",async()=>{let o=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&a.push("--no-default-rekor=true"),await qe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),X(JSON.stringify(JSON.parse(Wh.default.readFileSync(o,{encoding:"utf-8"})),null,2)),s.push(`--signing-config=${o}`)}):(s.push("--use-signing-config"),n&&s.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let u=`${o}@${c}`;await Om(`Signing attestation manifest ${u}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...s];X(`[command]${this.cosign.binPath} ${[...l,u].join(" ")}`);let f=await qe.getExecOutput(this.cosign.binPath,["--verbose",...l,u],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),h=Yp.parseCommandOutput(f.stderr.trim());if(f.exitCode!=0)if(h.errors&&h.errors.length>0){let m=h.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
|
||||
`);throw new Error(`Cosign sign command failed with errors:
|
||||
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,z1.bundleFromJSON)(h.bundle));d.tlogID&&L(`Uploaded to Rekor transparency log: ${T0}?logIndex=${d.tlogID}`),L(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[s,n]of Object.entries(e))await ti(`Verifying signature of ${s}`,async()=>{let o=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});L(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),i[s]=o});return i}async verifyImageAttestations(e,r){let i={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of s){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);L(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){L(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Vp.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let s=r.retryLimit??15,n;L(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<s;o++){let a=await Ue.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Vp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
|
||||
`);if(n=new Error(`Cosign verify command failed with errors:
|
||||
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))L(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${s}...
|
||||
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);L(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let s=t.getProvenanceBlobs(e);for(let n of Object.keys(s))await ti(`Signing ${n}`,async()=>{let o=s[n],a=ug.default.join(ug.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){st(`No subjects found in provenance ${n}, skip signing.`);return}let u=await t.signPayload({data:o,type:urt},i),l=t.parseBundle(u);L("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];L(` - ${f.name} (${h}:${d})`)}l.tlogID&&L(`Attestation signature uploaded to Rekor transparency log: ${T0}?logIndex=${l.tlogID}`),L(`Writing Sigstore bundle to: ${a}`),Hh.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[n]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,n]of Object.entries(e)){let o=ug.default.dirname(s);await ti(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=ug.default.join(o,a.name);L(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??dCr];(r.noTransparencyLog||!n.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await Ue.getExecOutput(this.cosign.binPath,[...u,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:n.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){L("Verifying keyless verification bundle signature");let s=JSON.parse(Hh.default.readFileSync(r,"utf-8")),n=(0,z1.bundleFromJSON)(s);L("Fetching Sigstore TUF trusted root metadata");let o=await prt.getTrustedRoot(),a=(0,AB.toTrustMaterial)(o);try{L("Verifying artifact signature");let c=(0,AB.toSignedEntity)(n,Hh.default.readFileSync(e)),u=t.parseCertificate(n),l=n.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new AB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:s,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),L(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:lrt,rekorURL:e?void 0:frt,tsaServerURL:hrt}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=ug.default.join(e.localExportDir,"provenance.json");if(Hh.default.existsSync(r))return{[r]:Hh.default.readFileSync(r)};let i=Hh.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=i.filter(n=>n.isDirectory());if(s.length>0&&s.length===i.length&&s.every(n=>Hh.default.existsSync(ug.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of s){let a=ug.default.join(e.localExportDir,o.name,"provenance.json");n[a]=Hh.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,s){let n=[],o=new jh.FulcioSigner({identityProvider:new jh.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:s});return r.rekorURL&&n.push(new jh.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:s})),r.tsaServerURL&&n.push(new jh.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:s})),new jh.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,s=i.length>0?i[0].logIndex:void 0;return{payload:(0,z1.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}
Line truncated
|
||||
`)){let[u,...l]=c.split(":"),f=u.toLowerCase(),h=l.map(d=>d.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":i=void 0,r.name==null?r.name=h:(n&&s.gcPolicy&&(s.gcPolicy.push(n),n=void 0),s.name&&r.nodes.push(s),s={name:h});break;case f=="driver":i=void 0,r.driver=h;break;case f=="last activity":i=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":i=void 0,s.endpoint=h;break;case f=="driver options":i=void 0,s["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(d=>d.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":i=void 0,s.status=h;break;case f=="buildkit daemon flags":case f=="flags":i=void 0,s["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":i=void 0,s.buildkit=h;break;case f=="platforms":{if(i=void 0,!h)break;let d=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&d.push(m.replace(/\*/g,""));else d=h.split(", ");s.platforms=d.join(",");break}case f=="features":i="features",s.features={};break;case f=="labels":i="label",s.labels={};break;case f=="devices":i="devices",s.devices=s.devices||[];break;case f.startsWith("gc policy rule#"):i="gcpolicy",s.gcPolicy&&n&&(s.gcPolicy.push(n),n=void 0);break;case f.startsWith("file#"):i="file",a=u.split("#")[1],s.files=s.files||{},s.files[a]="";break;default:switch(i&&i!=="devices"&&s.devices&&o&&(s.devices.push(o),o=void 0),i||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!h;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{s.devices&&o&&s.devices.push(o),o={},o.name=h;break}case"on-demand":{o&&h&&(o.onDemand=h=="true");break}case"automatically allowed":{o&&h&&(o.autoAllow=h=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],n=n||{},f.trim()){case"all":{n.all=h=="true";break}case"filters":{h&&(n.filter=h.split(","));break}case"keep duration":{n.keepDuration=h;break}case"keep bytes":{n.keepBytes=h;break}case"reserved space":{n.reservedSpace=h;break}case"max used space":{n.maxUsedSpace=h;break}case"min free space":{n.minFreeSpace=h;break}}break}case"file":{a&&s.files&&(s.files[a].length>0&&(s.files[a]+=`
|
||||
`),s.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&s.devices&&s.devices.push(o),n&&s.gcPolicy&&s.gcPolicy.push(n),s.name&&r.nodes.push(s),r}};var mrt=k(ul(),1);var xG=k(require("fs"),1);var _G=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!xG.default.existsSync(e))throw new Error(`config file ${e} not found`);e=xG.default.readFileSync(e,{encoding:"utf-8"})}let i=Tt.tmpName({tmpdir:Tt.tmpDir()});return xG.default.writeFileSync(i,e),i}};var RG=class{buildx;config;constructor(e){this.config=new _G,this.buildx=e?.buildx||new $t}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){st(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),xi.getExecOutput(["inspect","--format","{{.Config.Image}}",`${$t.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),xi.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new yB({buildx:this.buildx}).inspect(e));for(let s of i.nodes){let n=s.buildkit;if(N(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(s.name||"")}catch{return N(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${s.name}: version ${n}`),i.driver=="docker"&&!n.endsWith("-moby")||!mrt.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var NG=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await xi.isAvailable();return N(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(N(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(N(`Compose.isAvailable error: ${i}`),!1));return N(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Ue.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Ue.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Wp=k(require("fs"),1),Vh=k(require("os"),1),EB=k(require("path"),1);var DG=k(ul(),1),zde=k(require("util"),1);var TG=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);N(`Install.download version: ${i.version}`);let s=await t.getRelease(i,this.githubToken);N(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);N(`Install.download vspec: ${n}`);let o=DG.clean(n)||"";if(!DG.valid(o))throw new Error(`Invalid Compose version "${n}".`);let a=new bs({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:n,baseCacheDir:EB.default.join(Vh.default.homedir(),".bin","docker-compose"),cacheFile:Vh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return L(`Compose binary found in ${c}`),c;let u=zde.format(i.downloadURL,n,this.filename());L(`Downloading ${u}`);let l=await Pc(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return L(`Cached to ${f}`),f}async installStandalone(e,r){L("Standalone mode"),r=r||Tt.tmpDir();let i=EB.default.join(r,"compose-bin-standalone");Wp.default.existsSync(i)||Wp.default.mkdirSync(i,{recursive:!0});let s=Vh.default.platform()=="win32"?"compose.exe":"compose",n=EB.default.join(i,s);return Wp.default.copyFileSync(e,n),L("Fixing perms"),Wp.default.chmodSync(n,"0755"),Yl(i),L("Added Compose to PATH"),L(`Binary path: ${n}`),n}async installPlugin(e,r){L("Docker plugin mode"),r=r||xi.configDir;let i=EB.default.join(r,"cli-plugins");Wp.default.existsSync(i)||Wp.default.mkdirSync(i,{recursive:!0});let s=Vh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",n=EB.default.join(i,s);return Wp.defaul
Line truncated
|
||||
${m}`)}else throw new Error(`Cosign sign command failed with: ${f.stderr.trim().split(/\r?\n/).filter(m=>m.length>0).pop()??"unknown error"}`);let d=t.parseBundle((0,C2.bundleFromJSON)(h.bundle));d.tlogID&&X(`Uploaded to Rekor transparency log: ${j0}?logIndex=${d.tlogID}`),X(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...d,imageName:o}})}}}catch(i){throw new Error(`Signing BuildKit attestation manifests failed: ${i.message}`)}return r}async verifySignedManifests(e,r){let i={};for(let[n,s]of Object.entries(e))await Om(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});X(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${o.signatureManifestDigest}`),i[n]=o});return i}async verifyImageAttestations(e,r){let i={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let o of n){let a=`${s}@${o}`,c=await this.verifyImageAttestation(a,r);X(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${c.signatureManifestDigest}`),i[a]=c}return i}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let i=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&i.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){X(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);let o=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Yp.parseCommandOutput(o.stderr.trim());return{cosignArgs:i,signatureManifestDigest:a.signatureManifestDigest}}let n=r.retryLimit??15,s;X(`[command]${this.cosign.binPath} ${[...i,e].join(" ")}`);for(let o=0;o<n;o++){let a=await qe.getExecOutput(this.cosign.binPath,["--verbose",...i,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Yp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:i,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
|
||||
`);if(s=new Error(`Cosign verify command failed with errors:
|
||||
${u}`),c.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))X(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
|
||||
${u}`),await new Promise(l=>setTimeout(l,Math.pow(2,o)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let i=this.signingEndpoints(e.noTransparencyLog);X(`Using Sigstore signing endpoint: ${i.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let s of Object.keys(n))await Om(`Signing ${s}`,async()=>{let o=n[s],a=Eg.default.join(Eg.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Qc(`No subjects found in provenance ${s}, skip signing.`);return}let u=await t.signPayload({data:o,type:ent},i),l=t.parseBundle(u);X("Provenance blob signed for:");for(let f of c){let[h,d]=Object.entries(f.digest)[0]||[];X(` - ${f.name} (${h}:${d})`)}l.tlogID&&X(`Attestation signature uploaded to Rekor transparency log: ${j0}?logIndex=${l.tlogID}`),X(`Writing Sigstore bundle to: ${a}`),Wh.default.writeFileSync(a,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[s]={...l,bundlePath:a,subjects:c}})}catch(i){throw new Error(`Signing BuildKit provenance blobs failed: ${i.message}`)}return r}async verifySignedArtifacts(e,r){let i={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,s]of Object.entries(e)){let o=Eg.default.dirname(n);await Om(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let a of s.subjects){let c=Eg.default.join(o,a.name);X(`Verifying signed artifact ${c}`);let u=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??MSr];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await qe.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,c],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);i[c]={bundlePath:s.bundlePath,cosignArgs:u}}})}return i}async verifyArtifact(e,r,i){X("Verifying keyless verification bundle signature");let n=JSON.parse(Wh.default.readFileSync(r,"utf-8")),s=(0,C2.bundleFromJSON)(n);X("Fetching Sigstore TUF trusted root metadata");let o=await snt.getTrustedRoot(),a=(0,NB.toTrustMaterial)(o);try{X("Verifying artifact signature");let c=(0,NB.toSignedEntity)(s,Wh.default.readFileSync(e)),u=t.parseCertificate(s),l=s.verificationMaterial.tlogEntries,f=l.length>0?l[0].logIndex:void 0;if(i?.subjectAlternativeName&&i?.subjectAlternativeName instanceof RegExp){let m=u.subjectAltName?.replace(/^uri:/i,"");if(m){if(!m.match(i.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${m}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let d=new NB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return K(`Sigstore.verifyArtifact signer: ${JSON.stringify(d)}`),{payload:n,certificate:u.toString(),tlogID:f}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),X(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:tnt,rekorURL:e?void 0:rnt,tsaServerURL:int}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=Eg.default.join(e.localExportDir,"provenance.json");if(Wh.default.existsSync(r))return{[r]:Wh.default.readFileSync(r)};let i=Wh.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=i.filter(s=>s.isDirectory());if(n.length>0&&n.length===i.length&&n.every(s=>Wh.default.existsSync(Eg.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let o of n){let a=Eg.default.join(e.localExportDir,o.name,"provenance.json");s[a]=Wh.default.readFileSync(a)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(i=>({name:i.name,digest:i.digest}))}static async signPayload(e,r,i,n){let s=[],o=new Jh.FulcioSigner({identityProvider:new Jh.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:i,retry:n});return r.rekorURL&&s.push(new Jh.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:i,retry:n})),r.tsaServerURL&&s.push(new Jh.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:i,retry:n})),new Jh.DSSEBundleBuilder({signer:o,witnesses:s}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),i=e.verificationMaterial.tlogEntries,n=i.length>0?i[0].logIndex:void 0;return{payload:(0,C2.bundleToJSON)(e),certificate:r.toString(),tlogID:n}}
Line truncated
|
||||
`)){let[u,...l]=c.split(":"),f=u.toLowerCase(),h=l.map(d=>d.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":i=void 0,r.name==null?r.name=h:(s&&n.gcPolicy&&(n.gcPolicy.push(s),s=void 0),n.name&&r.nodes.push(n),n={name:h});break;case f=="driver":i=void 0,r.driver=h;break;case f=="last activity":i=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":i=void 0,n.endpoint=h;break;case f=="driver options":i=void 0,n["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(d=>d.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":i=void 0,n.status=h;break;case f=="buildkit daemon flags":case f=="flags":i=void 0,n["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":i=void 0,n.buildkit=h;break;case f=="platforms":{if(i=void 0,!h)break;let d=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&d.push(m.replace(/\*/g,""));else d=h.split(", ");n.platforms=d.join(",");break}case f=="features":i="features",n.features={};break;case f=="labels":i="label",n.labels={};break;case f=="devices":i="devices",n.devices=n.devices||[];break;case f.startsWith("gc policy rule#"):i="gcpolicy",n.gcPolicy&&s&&(n.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):i="file",a=u.split("#")[1],n.files=n.files||{},n.files[a]="";break;default:switch(i&&i!=="devices"&&n.devices&&o&&(n.devices.push(o),o=void 0),i||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!h;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{n.devices&&o&&n.devices.push(o),o={},o.name=h;break}case"on-demand":{o&&h&&(o.onDemand=h=="true");break}case"automatically allowed":{o&&h&&(o.autoAllow=h=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{a&&n.files&&(n.files[a].length>0&&(n.files[a]+=`
|
||||
`),n.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&n.devices&&n.devices.push(o),s&&n.gcPolicy&&n.gcPolicy.push(s),n.name&&r.nodes.push(n),r}};var ont=P(ml(),1);var aH=P(require("fs"),1);var cH=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!aH.default.existsSync(e))throw new Error(`config file ${e} not found`);e=aH.default.readFileSync(e,{encoding:"utf-8"})}let i=Dt.tmpName({tmpdir:Dt.tmpDir()});return aH.default.writeFileSync(i,e),i}};var uH=class{buildx;config;constructor(e){this.config=new cH,this.buildx=e?.buildx||new Wt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Qc(r)}return e.buildkit}async getVersionWithinImage(e){return K(`BuildKit.getVersionWithinImage nodeName: ${e}`),Ti.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Wt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return K(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Ti.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.exitCode==0&&i.stdout.length>0)return`${r.stdout.trim()} => ${i.stdout.trim()}`;if(i.stderr.length>0)throw new Error(r.stderr.trim());return i.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,i){i||(i=await new OB({buildx:this.buildx}).inspect(e));for(let n of i.nodes){let s=n.buildkit;if(K(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(n.name||"")}catch{return K(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(K(`BuildKit.versionSatisfies ${n.name}: version ${s}`),i.driver=="docker"&&!s.endsWith("-moby")||!ont.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var lH=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Ti.isAvailable();return K(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(K(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(K(`Compose.isAvailable error: ${i}`),!1));return K(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await qe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await qe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var Xp=P(require("fs"),1),Kh=P(require("os"),1),PB=P(require("path"),1);var hH=P(ml(),1),eme=P(require("util"),1);var fH=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let i=await t.getDownloadVersion(e);K(`Install.download version: ${i.version}`);let n=await t.getRelease(i,this.githubToken);K(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);K(`Install.download vspec: ${s}`);let o=hH.clean(s)||"";if(!hH.valid(o))throw new Error(`Invalid Compose version "${s}".`);let a=new Sn({htcName:i.key!="official"?`compose-dl-bin-${i.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:PB.default.join(Kh.default.homedir(),".bin","docker-compose"),cacheFile:Kh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return X(`Compose binary found in ${c}`),c;let u=eme.format(i.downloadURL,s,this.filename());X(`Downloading ${u}`);let l=await Mc(u,void 0,this.githubToken);K(`Install.download htcDownloadPath: ${l}`);let f=await a.save(l);return X(`Cached to ${f}`),f}async installStandalone(e,r){X("Standalone mode"),r=r||Dt.tmpDir();let i=PB.default.join(r,"compose-bin-standalone");Xp.default.existsSync(i)||Xp.default.mkdirSync(i,{recursive:!0});let n=Kh.default.platform()=="win32"?"compose.exe":"compose",s=PB.default.join(i,n);return Xp.default.copyFileSync(e,s),X("Fixing perms"),Xp.default.chmodSync(s,"0755"),rf(i),X("Added Compose to PATH"),X(`Binary path: ${s}`),s}async installPlugin(e,r){X("Docker plugin mode"),r=r||Ti.configDir;let i=PB.default.join(r,"cli-plugins");Xp.default.existsSync(i)||Xp.default.mkdirSync(i,{recursive:!0});let n=Kh.default.platform()=="win32"?"docker-compose.exe":"docker-compose",s=PB.default.join(i,n);return Xp.defaul
Line truncated
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG GO_VERSION="1.24"
|
||||
@@ -308,8 +309,8 @@ EOT
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /out /
|
||||
`;var OG=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new $t,this.sigstore=e?.sigstore||new lg}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);N(`Install.download vspec: ${s}`);let n=wB.clean(s)||"";if(!wB.valid(n))throw new Error(`Invalid Cosign version "${s}".`);let o=new bs({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:bB.default.join(Dl.default.homedir(),".bin"),cacheFile:Dl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return L(`Cosign binary found in ${a}`),a;let c=Vde.format(r.downloadURL,s,this.filename());L(`Downloading ${c}`);let u=await Pc(c,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&wB.satisfies(s,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return L(`Cached to ${l}`),l}async build(e,r,i){let s=await this.vspec(e);N(`Install.build vspec: ${s}`);let n=new bs({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:bB.default.join(Dl.default.homedir(),".bin"),cacheFile:Dl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return L(`Cosign binary found in ${o}`),o;let a=bB.default.join(Tt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Ue.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(Art)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await n.save(u,i);return L(`Cached to ${l}`),l}async install(e,r){r=r||Tt.tmpDir();let i=bB.default.join(r,"cosign-bin");V1.default.existsSync(i)||V1.default.mkdirSync(i,{recursive:!0});let s=Dl.default.platform()=="win32"?"cosign.exe":"cosign",n=bB.default.join(i,s);return V1.default.copyFileSync(e,n),L("Fixing perms"),V1.default.chmodSync(n,"0755"),Yl(i),L("Added Cosign to PATH"),L(`Binary path: ${n}`),n}async buildCommand(e,r){let i=await new $t({standalone:!0}).isAvailable(),s=await new $t({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&i)N("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&s)N("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(i)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(s)N("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new $t({standalone:n}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;L(`Downloading keyless verification bundle at ${i}`);let s=await Pc(i,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${s}`);let n=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});L(`Cosign binary signature verified! ${n.tlogID?`${T0}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(Dl.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Dl.default.arch();break}}let r=Dl.default.platform()=="win32"?"windows":Dl.default.platform(),i=Dl.default.platform()=="win32"?".exe":"";return Vde.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Xe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return L(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let s;i.match(/^[0-9a-fA-F]{40}$/)?s=i:s=await PI.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${Xe.trimSuffix(o,".git")}/${s}`,c=Xe.hash(a);return L(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let s=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var grt=k(ul(),1);var PG=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Ue.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC
Line truncated
|
||||
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await ti("Metadata",async()=>{let h=JSON.stringify(l,null,2);L(h),$Ce("metadata",h)});let f=[];if(await ti("Build references",async()=>{if(f=await fBr(r,t,e.builder),f.length>0){for(let h of f)L(h);Ist(f)}else L("No build references found")}),hBr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await $t.convertWarningsToGitHubAnnotations(h,f);N(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await ti(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)st(m.message,m)})}}if(await ti("Check build summary support",async()=>{dBr()?e.call&&e.call!=="build"?L(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?L("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?L("Build summary requires at least one build reference"):(L("Build summary supported!"),Sst()):L("Build summary requires Buildx >= 0.23.0"):L("Build summary disabled")}),u)throw u},async()=>{yst&&await ti("Generating build summary",async()=>{try{let t=pBr(),e;t&&(e=mBr());let i=await new cF().export({refs:gst});L(`Build records written to ${i.dockerbuildFilename} (${Xe.formatFileSize(i.dockerbuildSize)})`);let s;t&&(s=await fq.upload({filename:i.dockerbuildFilename,retentionDays:e})),await Eq.writeBuildSummary({exportRes:i,uploadRes:s,inputs:mst,bakeDefinition:Ast,driver:dst,endpoint:pst})}catch(t){st(t.message)}}),BH.length>0&&await ti(`Removing temp folder ${BH}`,async()=>{vst.rmSync(BH,{recursive:!0})})});async function fBr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let s=$t.refs({dir:$t.refsDir,builderName:r,since:e}),n=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&n.push(o);return n}function hBr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Xe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function dBr(){return process.env.DOCKER_BUILD_SUMMARY?Xe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function pBr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Xe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function mBr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
|
||||
`;var dH=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Wt,this.sigstore=e?.sigstore||new bg}async download(e){let r=await t.getDownloadVersion(e.version);K(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);K(`Install.download release tag name: ${i.tag_name}`);let n=await this.vspec(i.tag_name);K(`Install.download vspec: ${n}`);let s=kB.clean(n)||"";if(!kB.valid(s))throw new Error(`Invalid Cosign version "${n}".`);let o=new Sn({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:QB.default.join(Fl.default.homedir(),".bin"),cacheFile:Fl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return X(`Cosign binary found in ${a}`),a;let c=tme.format(r.downloadURL,n,this.filename());X(`Downloading ${c}`);let u=await Mc(c,void 0,this.githubToken);K(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&kB.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let l=await o.save(u,e.skipState);return X(`Cached to ${l}`),l}async build(e,r,i){let n=await this.vspec(e);K(`Install.build vspec: ${n}`);let s=new Sn({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:QB.default.join(Fl.default.homedir(),".bin"),cacheFile:Fl.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await s.find();if(o)return X(`Cosign binary found in ${o}`),o;let a=QB.default.join(Dt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await qe.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(ant)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${f.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),l=await s.save(u,i);return X(`Cached to ${l}`),l}async install(e,r){r=r||Dt.tmpDir();let i=QB.default.join(r,"cosign-bin");I2.default.existsSync(i)||I2.default.mkdirSync(i,{recursive:!0});let n=Fl.default.platform()=="win32"?"cosign.exe":"cosign",s=QB.default.join(i,n);return I2.default.copyFileSync(e,s),X("Fixing perms"),I2.default.chmodSync(s,"0755"),rf(i),X("Added Cosign to PATH"),X(`Binary path: ${s}`),s}async buildCommand(e,r){let i=await new Wt({standalone:!0}).isAvailable(),n=await new Wt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&i)K("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&n)K("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(i)K("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(n)K("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Wt({standalone:s}).getCommand(o)}async verifySignature(e,r){let i=`${r}.sigstore.json`;X(`Downloading keyless verification bundle at ${i}`);let n=await Mc(i,void 0,this.githubToken);K(`Install.verifySignature bundlePath: ${n}`);let s=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});X(`Cosign binary signature verified! ${s.tlogID?`${j0}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Fl.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Fl.default.arch();break}}let r=Fl.default.platform()=="win32"?"windows":Fl.default.platform(),i=Fl.default.platform()=="win32"?".exe":"";return tme.format("cosign-%s-%s%s",r,e,i)}async vspec(e){if(!Xe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return X(`Use ${u} version spec cache key for ${e}`),u}let[r,i]=e.split("#");i.length==0&&(i="master");let n;i.match(/^[0-9a-fA-F]{40}$/)?n=i:n=await JI.remoteSha(r,i,process.env.GIT_AUTH_TOKEN);let[s,o]=r.substring(19).split("/"),a=`${s}/${Xe.trimSuffix(o,".git")}/${n}`,c=Xe.hash(a);return X(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let n=await new gt({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var cnt=P(ml(),1);var pH=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await qe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitC
Line truncated
|
||||
`)[0]?.trim())}else h.stderr.length>0&&(u=Error(`buildx bake failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`))});let l=r.buildxBake.resolveMetadata();l&&await ea("Metadata",async()=>{let h=JSON.stringify(l,null,2);bs(h),tSe("metadata",h)});let f=[];if(await ea("Build references",async()=>{if(f=await Lxr(r,t,e.builder),f.length>0){for(let h of f)bs(h);pot(f)}else bs("No build references found")}),Fxr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await Wt.convertWarningsToGitHubAnnotations(h,f);tP(`annotations: ${JSON.stringify(d,null,2)}`),d&&d.length>0&&await ea(`Generating GitHub annotations (${d.length} build checks found)`,async()=>{for(let m of d)ux(m.message,m)})}}if(await ea("Check build summary support",async()=>{Mxr()?e.call&&e.call!=="build"?bs(`Build summary skipped for ${e.call} subrequest`):gt.isGHES?bs("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?bs("Build summary requires at least one build reference"):(bs("Build summary supported!"),mot()):bs("Build summary requires Buildx >= 0.23.0"):bs("Build summary disabled")}),u)throw u},async()=>{uot&&await ea("Generating build summary",async()=>{try{let t=Uxr(),e;t&&(e=qxr());let i=await new qF().export({refs:cot});bs(`Build records written to ${i.dockerbuildFilename} (${Xe.formatFileSize(i.dockerbuildSize)})`);let n;t&&(n=await Vq.upload({filename:i.dockerbuildFilename,retentionDays:e})),await Zq.writeBuildSummary({exportRes:i,uploadRes:n,inputs:oot,bakeDefinition:aot,driver:not,endpoint:sot})}catch(t){ux(t.message)}}),s6.length>0&&await ea(`Removing temp folder ${s6}`,async()=>{got.rmSync(s6,{recursive:!0})})});async function Lxr(t,e,r){let i=t.buildxBake.resolveRefs();if(i)return i;r||(r=(await t.builder.inspect()).name);let n=Wt.refs({dir:Wt.refsDir,builderName:r,since:e}),s=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.push(o);return s}function Fxr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Xe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function Mxr(){return process.env.DOCKER_BUILD_SUMMARY?Xe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function Uxr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Xe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function qxr(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "koBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAUH,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,IAAUH,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,IAAmBH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
|
||||
}
|
||||
+1
@@ -5298,6 +5298,7 @@ The following npm packages may be included in this product:
|
||||
- @actions/artifact@6.2.1
|
||||
- @actions/cache@6.0.0
|
||||
- @actions/core@3.0.0
|
||||
- @actions/core@3.0.1
|
||||
- @actions/exec@3.0.0
|
||||
- @actions/github@9.0.0
|
||||
- @actions/glob@0.6.1
|
||||
|
||||
Reference in new issue
Block a user