448 lines
3.2 MiB
JavaScript
448 lines
3.2 MiB
JavaScript
|
|
var Sst=Object.create;var PH=Object.defineProperty;var Bst=Object.getOwnPropertyDescriptor;var vst=Object.getOwnPropertyNames;var xst=Object.getPrototypeOf,_st=Object.prototype.hasOwnProperty;var Rst=(t,e)=>()=>(t&&(e=t(t=0)),e);var p=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qpe=(t,e)=>{for(var r in e)PH(t,r,{get:e[r],enumerable:!0})},Tst=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of vst(e))!_st.call(t,s)&&s!==r&&PH(t,s,{get:()=>e[s],enumerable:!(i=Bst(e,s))||i.enumerable});return t};var k=(t,e,r)=>(r=t!=null?Sst(xst(t)):{},Tst(e||!t||!t.__esModule?PH(r,"default",{value:t,enumerable:!0}):r,t));var Wpe=p(eb=>{"use strict";var iBr=require("net"),kst=require("tls"),UH=require("http"),zpe=require("https"),Lst=require("events"),sBr=require("assert"),Mst=require("util");eb.httpOverHttp=Fst;eb.httpsOverHttp=Ust;eb.httpOverHttps=qst;eb.httpsOverHttps=Gst;function Fst(t){var e=new td(t);return e.request=UH.request,e}function Ust(t){var e=new td(t);return e.request=UH.request,e.createSocket=Vpe,e.defaultPort=443,e}function qst(t){var e=new td(t);return e.request=zpe.request,e}function Gst(t){var e=new td(t);return e.request=zpe.request,e.createSocket=Vpe,e.defaultPort=443,e}function td(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||UH.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(i,s,n,o){for(var a=$pe(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)})}Mst.inherits(td,Lst.EventEmitter);td.prototype.addRequest=function(e,r,i,s){var n=this,o=qH({request:e},n.options,$pe(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)}})};td.prototype.createSocket=function(e,r){var i=this,s={};i.sockets.push(s);var n=qH({},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")),sm("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){sm("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){sm("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 sm("tunneling connection has established"),i.sockets[i.sockets.indexOf(s)]=h,r(h)}function l(f){o.removeAllListeners(),sm(`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)}};td.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 Vpe(t,e){var r=this;td.prototype.createSocket.call(r,t,function(i){var s=t.request.getHeader("host"),n=qH({},r.options,{socket:i,servername:s?s.replace(/:.*$/,""):t.host}),o=kst.connect(0,n);r.sockets[r.sockets.indexOf(i)]=o,e(o)})}function $pe(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function qH(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 sm;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sm=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)}:sm=function(){};eb.debug=sm});var GH=p((oBr,Jpe)=>{Jpe.exports=Wpe()});var Qr=p((aBr,Ype)=>{Ype.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((cBr,wme)=>{"use strict";var Kpe=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[Kpe]===!0}[Kpe]=!0},Xpe=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),HH=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[Xpe]===!0}[Xpe]=!0},Zpe=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),jH=class extends kr{constructor(e){super(e),this.name="HeadersTimeo
|
|||
|
|
`)||t.includes("\r")||t.includes("\0"))===!1}function sat(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(Got.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function nat(){return"allowed"}function oat(){return"success"}function aat(){return"success"}function cat(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function uat(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&&M6(t.origin)&&!M6(WB(t))&&(e=null);break;case"same-origin":V1(t,WB(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function lb(t,e){return t}function lat(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:lb(t.domainLookupStartTime,r),domainLookupEndTime:lb(t.domainLookupEndTime,r),connectionStartTime:lb(t.connectionStartTime,r),connectionEndTime:lb(t.connectionEndTime,r),secureConnectionStartTime:lb(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function fat(t){return lb($ot.now(),t)}function hat(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 QAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function dat(t){return{referrerPolicy:t.referrerPolicy}}function pat(t){let e=t.referrerPolicy;Tg(e);let r=null;if(t.referrer==="client"){let a=RAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let i=L6(r),s=L6(r,!0);i.toString().length>4096&&(i=s);let n=V1(t,i),o=$B(i)&&!$B(t.url);switch(e){case"origin":return s??L6(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=WB(t);return V1(i,a)?i:$B(i)&&!$B(a)?"no-referrer":s}default:return o?"no-referrer":s}}function L6(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 $B(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 mat(t,e){if(z1===void 0)return!0;let r=kAe(e);if(r==="no metadata"||r.length===0)return!0;let i=gat(r),s=yat(r,i);for(let n of s){let o=n.algo,a=n.hash,c=z1.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)),Eat(c,a))return!0}return!1}var Aat=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function kAe(t){let e=[],r=!0;for(let i of t.split(" ")){r=!1;let s=Aat.exec(i);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();NAe.includes(n)&&e.push(s.groups)}return r===!0?"no metadata":e}function gat(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 yat(t,e){if(t.length===1)return t;let r=0;for(let i=0;i<t.l
|
|||
|
|
`);function rct(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function ict(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 sct(t,e){W1(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&&J1(t,ect,n)||n.position===t.length-4&&J1(t,tct,n))return s;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=nct(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",rct(l)||(l=""),d=new Xat([h],u,{type:l})):d=$at(Buffer.from(h)),W1(JAe(c)),W1(typeof d=="string"&&JAe(d)||Jat(d)),s.push(Yat(c,d,u))}}function nct(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=hb(a=>a!==10&&a!==13&&a!==58,t,e);if(o=z6(o,!0,!0,a=>a===9||a===32),!Wat.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,hb(a=>a===32||a===9,t,e),Vat(o)){case"content-disposition":{if(r=i=null,!J1(t,Zat,e)||(e.position+=17,r=XAe(t,e),r===null))return"failure";if(J1(t,KAe,e)){let a=e.position+KAe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,i=XAe(t,e),i===null))return"failure"}break}case"content-type":{let a=hb(c=>c!==10&&c!==13,t,e);a=z6(a,!1,!0,c=>c===9||c===32),s=YAe(a);break}case"content-transfer-encoding":{let a=hb(c=>c!==10&&c!==13,t,e);a=z6(a,!1,!0,c=>c===9||c===32),n=YAe(a);break}default:hb(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function XAe(t,e){W1(t[e.position-1]===34);let r=hb(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 hb(t,e,r){let i=r.position;for(;i<e.length&&t(e[i]);)++i;return e.subarray(r.position,r.position=i)}function z6(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 J1(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}ZAe.exports={multipartFormDataParser:sct,validateBoundary:ict}});var mb=p((OBr,lge)=>{"use strict";var KB=wt(),{ReadableStreamFrom:oct,isBlobLike:tge,isReadableStreamLike:act,readableStreamClose:cct,createDeferredPromise:uct,fullyReadBody:lct,extractMimeType:fct,utf8DecodeBytes:sge}=Sa(),{FormData:rge}=YB(),{kState:pb}=nm(),{webidl:hct}=Ws(),{Blob:dct}=require("node:buffer"),V6=require("node:assert"),{isErrored:nge,isDisturbed:pct}=require("node:stream"),{isArrayBuffer:mct}=require("node:util/types"),{serializeAMimeType:Act}=Go(),{multipartFormDataParser:gct}=ege(),$6;try{let t=require("node:crypto");$6=e=>t.randomInt(0,e)}catch{$6=t=>Math.floor(Math.random(t))}var Y1=new TextEncoder;function yct(){}var oge=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,age;oge&&(age=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!pct(e)&&!nge(e)&&e.cancel("Response object has been garbage collected").catch(yct)}));function cge(t,e=!1){let r=null;t instanceof ReadableStream?r=t:tge(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof s=="string"?Y1.encode(s):s;u.byteLength&&c.enqueue(u),queueMicrotask(()=>cct(c))},start(){},type:"bytes"}),V6(act(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(mct(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(KB.isFormDataLike(t)){let c=`----formdata-undici-0${`${$6(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=Y1.encode(u+`; name="${l(f(y))}"\r
|
|||
|
|
\r
|
|||
|
|
${f(g)}\r
|
|||
|
|
`);h.push(E),n+=E.byteLength}else{let E=Y1.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=Y1.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(tge(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(KB.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:oct(t)}if((typeof s=="string"||KB.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(!nge(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 Ect(t,e=!1){return t instanceof ReadableStream&&(V6(!KB.isDisturbed(t),"The body has already been consumed."),V6(!t.locked,"The stream is locked.")),cge(t,e)}function bct(t,e){let[r,i]=e.stream.tee();return e.stream=r,{stream:i,length:e.length,source:e.source}}function wct(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Cct(t){return{blob(){return db(this,r=>{let i=ige(this);return i===null?i="":i&&(i=Act(i)),new dct([r],{type:i})},t)},arrayBuffer(){return db(this,r=>new Uint8Array(r).buffer,t)},text(){return db(this,sge,t)},json(){return db(this,Sct,t)},formData(){return db(this,r=>{let i=ige(this);if(i!==null)switch(i.essence){case"multipart/form-data":{let s=gct(r,i);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new rge;return n[pb]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),n=new rge;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 db(this,r=>new Uint8Array(r),t)}}}function Ict(t){Object.assign(t.prototype,Cct(t))}async function db(t,e,r){if(hct.brandCheck(t,r),uge(t))throw new TypeError("Body is unusable: Body has already been read");wct(t[pb]);let i=uct(),s=o=>i.reject(o),n=o=>{try{i.resolve(e(o))}catch(a){s(a)}};return t[pb].body==null?(n(Buffer.allocUnsafe(0)),i.promise):(await lct(t[pb].body,n,s),i.promise)}function uge(t){let e=t[pb].body;return e!=null&&(e.stream.locked||KB.isDisturbed(e.stream))}function Sct(t){return JSON.parse(sge(t))}function ige(t){let e=t[pb].headersList,r=fct(e);return r==="failure"?null:r}lge.exports={extractBody:cge,safelyExtractBody:Ect,cloneBody:bct,mixinBody:Ict,streamRegistry:age,hasFinalizationRegistry:oge,bodyUnusable:uge}});var wge=p((PBr,bge)=>{"use strict";var We=require("node:assert"),it=wt(),{channels:fge}=rb(),W6=R6(),{RequestContentLengthMismatchError:Ng,ResponseContentLengthMismatchError:Bct,RequestAbortedError:gge,HeadersTimeoutError:vct,HeadersOverflowError:xct,SocketError:rD,InformationalError:Ab,BodyTimeoutError:_ct,HTTPParserError:Rct,ResponseExceededMaxSizeError:Tct}=Vt(),{kUrl:yge,kReset:Ho,kClient:X6,kParser:ei,kBlocking:ev,kRunning:dn,kPending:Nct,kSize:hge,kWriting:am,kQueue:Fu,kNoRef:XB,kKeepAliveDefaultTimeout:Dct,kHostHeader:Oct,kPendingIdx:Pct,kRunningIdx:Sc,kError:Bc,kPipelining:eD,kSocket:gb,kKeepAliveTimeoutValue:iD,kMaxHeadersSize:J6,kKeepAliveMaxTimeout:Qct,kKeepAliveTimeoutThreshold:kct,kHeadersTimeout:Lct,kBodyTimeout:Mct,kStrictContentLength:Z6,kMaxRequests:dge,kCounter:Fct,kMaxResponseSize:Uct,kOnError:qct,kResume:om,kHTTPContext:Ege}=Qr(),ql=aAe(),Gct=Buffer.alloc(0),K1=Buffer[Symbol.species],X1=it.addListener,Hct=it.removeAllListeners,Y6;async function jct(){let t=process.env.JEST_WORKER_ID?D6():void 0,e;try{e=await WebAssembly.compile(lAe())}catch{e=await WebAssembly.compile(t||D6())}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-Hl+Gl.byteOffset;return Yi.onStatus(new K1(Gl.buffer,n,s))||0},wasm_on_message_begin:r=>(We(Yi.ptr===r),Yi.onMessageBegin()||0),wasm_on_he
|
|||
|
|
`;if(typeof s=="string"?A+=`host: ${s}\r
|
|||
|
|
`:A+=t[Oct],n?A+=`connection: upgrade\r
|
|||
|
|
upgrade: ${n}\r
|
|||
|
|
`:t[eD]&&!d[Ho]?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 C=0;C<E.length;C++)A+=`${g}: ${E[C]}\r
|
|||
|
|
`;else A+=`${g}: ${E}\r
|
|||
|
|
`}return fge.sendHeaders.hasSubscribers&&fge.sendHeaders.publish({request:e,headers:A,socket:d}),!c||h===0?mge(m,null,t,e,d,l,A,f):it.isBuffer(c)?mge(m,c,t,e,d,l,A,f):it.isBlobLike(c)?typeof c.stream=="function"?Age(m,c.stream(),t,e,d,l,A,f):Kct(m,c,t,e,d,l,A,f):it.isStream(c)?Yct(m,c,t,e,d,l,A,f):it.isIterable(c)?Age(m,c,t,e,d,l,A,f):We(!1),!0}function Yct(t,e,r,i,s,n,o,a){We(n!==0||r[dn]===0,"stream body cannot be pipelined");let c=!1,u=new sD({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 gge;queueMicrotask(()=>d(m))}},d=function(m){if(!c){if(c=!0,We(s.destroyed||s[am]&&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 mge(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
|
|||
|
|
\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
|
|||
|
|
\r
|
|||
|
|
`,"latin1"):(We(n===null,"no body must not have content length"),s.write(`${o}\r
|
|||
|
|
`,"latin1")),i.onRequestSent(),r[om]()}catch(c){t(c)}}async function Kct(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 Ng;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${n}\r
|
|||
|
|
\r
|
|||
|
|
`,"latin1"),s.write(c),s.uncork(),i.onBodySent(c),i.onRequestSent(),!a&&i.reset!==!1&&(s[Ho]=!0),r[om]()}catch(c){t(c)}}async function Age(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[Bc]?d(s[Bc]):c=h});s.on("close",u).on("drain",u);let f=new sD({abort:t,socket:s,request:i,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let h of e){if(s[Bc])throw s[Bc];f.write(h)||await l()}f.end()}catch(h){f.destroy(h)}finally{s.off("close",u).off("drain",u)}}var sD=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[am]=!0}write(e){let{socket:r,request:i,contentLength:s,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Bc])throw r[Bc];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&o+u>s){if(n[Z6])throw new Ng;process.emitWarning(new Ng)}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
|
|||
|
|
\r
|
|||
|
|
`,"latin1")),s===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===yb&&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[am]=!1,e[Bc])throw e[Bc];if(!e.destroyed){if(s===0?n?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[Z6])throw new Ng;process.emitWarning(new Ng)}e[ei].timeout&&e[ei].timeoutType===yb&&e[ei].timeout.refresh&&e[ei].timeout.refresh(),i[om]()}}destroy(e){let{socket:r,client:i,abort:s}=this;r[am]=!1,e&&(We(i[dn]<=1,"pipeline should only contain this request"),s(e))}};bge.exports=Vct});var Rge=p((QBr,_ge)=>{"use strict";var vc=require("node:assert"),{pipeline:Xct}=require("node:stream"),Rt=wt(),{RequestContentLengthMismatchError:ij,RequestAbortedError:Cge,SocketError:tv,InformationalError:sj}=Vt(),{kUrl:nD,kReset:aD,kClient:Eb,kRunning:cD,kPending:Zct,kQueue:cm,kPendingIdx:nj,kRunningIdx:Uu,kError:Gu,kSocket:hs,kStrictContentLength:eut,kOnError:oj,kMaxConcurrentStreams:xge,kHTTP2Session:qu,kResume:um,kSize:tut,kHTTPContext:rut}=Qr(),ad=Symbol("open streams"),Ige,Sge=!1,oD;try{oD=require("node:http2")}catch{oD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:iut,HTTP2_HEADER_METHOD:sut,HTTP2_HEADER_PATH:nut,HTTP2_HEADER_SCHEME:out,HTTP2_HEADER_CONTENT_LENGTH:aut,HTTP2_HEADER_EXPECT:cut,HTTP2_HEADER_STATUS:uut}}=oD;function lut(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 fut(t,e){t[hs]=e,Sge||(Sge=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=oD.connect(t[nD],{createConnection:()=>e,peerMaxConcurrentStreams:t[xge]});r[ad]=0,r[Eb]=t,r[hs]=e,Rt.addListener(r,"error",dut),Rt.addListener(r,"frameError",put),Rt.addListener(r,"end",mut),Rt.addListener(r,"goaway",Aut),Rt.addListener(r,"close",function(){let{[Eb]:s}=this,{[hs]:n}=s,o=this[hs][Gu]||this[Gu]||new tv("closed",Rt.getSocketInfo(n));if(s[qu]=null,s.destroyed){vc(s[Zct]===0);let a=s[cm].splice(s[Uu]);for(let c=0;c<a.length;c++){let u=a[c];Rt.errorRequest(s,u,o)}}}),r.unref(),t[qu]=r,e[qu]=r,Rt.addListener(e,"error",function(s){vc(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Gu]=s,this[Eb][oj](s)}),Rt.addListener(e,"end",function(){Rt.destroy(this,new tv("other side closed",Rt.getSocketInfo(this)))}),Rt.addListener(e,"close",function(){let s=this[Gu]||new tv("closed",Rt.getSocketInfo(this));t[hs]=null,this[qu]!=null&&this[qu].destroy(s),t[nj]=t[Uu],vc(t[cD]===0),t.emit("disconnect",t[nD],[t],s),t[um]()});let i=!1;return e.on("close",()=>{i=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return yut(t,...s)},resume(){hut(t)},destroy(s,n){i?queueMicrotask(n):e.destroy(s).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function hut(t){let e=t[hs];e?.destroyed===!1&&(t[tut]===0&&t[xge]===0?(e.unref(),t[qu].unref()):(e.ref(),t[qu].ref()))}function dut(t){vc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hs][Gu]=t,this[Eb][oj](t)}function put(t,e,r){if(r===0){let i=new sj(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hs][Gu]=i,this[Eb][oj](i)}}function mut(){let t=new tv("other side closed",Rt.getSocketInfo(this[hs]));this.destroy(t),Rt.destroy(this[hs],t)}function Aut(t){let e=this[Gu]||new tv(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this)),r=this[Eb];if(r[hs]=null,r[rut]=null,this[qu]!=null&&(this[qu].destroy(e),this[qu]=null),Rt.destroy(this[hs],e),r[Uu]<r[cm].length){let i=r[cm][r[Uu]];r[cm][r[Uu]++]=null,Rt.errorRequest(r,i,e),r[nj]=r[Uu]}vc(r[cD]===0),r.emit("disconnect",r[nD],[r],e),r[um]()}function gut(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function yut(t,e){let r=t[qu],{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 N=0;N<q.length;N++)f[D]?f[D]+=`,${q[N]}`:f[D]=q[N];else f[D]=q}let h,{hostname:d,port:m}=t[nD];f[iut]=n||`${d}${m?`:${m}`:""}`,f[sut]=i;let A=S=>{e.aborted||e.completed||(S=S||new Cge,Rt.errorRequest(t,e,S),h!=null&&Rt.destroy(h,S),Rt.destroy(l,S),t[cm][t[Uu]++]=null,t[um]())};try{e.onConnect(A)}catch(S){Rt.errorRequest
|
|||
|
|
`,this[jut]=c??3e5,this[Hut]=s??3e5,this[zut]=E??!0,this[Vut]=S,this[lj]=q,this[fm]=null,this[Kut]=$>-1?$:-1,this[Zut]=M??100,this[bi]=null,this[Hu]=[],this[ud]=0,this[ju]=0,this[nv]=J=>hj(this,J),this[Xut]=J=>qge(this,J)}get pipelining(){return this[hD]}set pipelining(e){this[hD]=e,this[nv](!0)}get[cv](){return this[Hu].length-this[ju]}get[av](){return this[ju]-this[ud]}get[ov](){return this[Hu].length-this[ud]}get[kut](){return!!this[bi]&&!this[wb]&&!this[bi].destroyed}get[uj](){return!!(this[bi]?.busy(null)||this[ov]>=(Uge(this)||1)||this[cv]>0)}[Qut](e){Gge(this),this.once("connect",e)}[Yut](e,r){let i=e.origin||this[zl].origin,s=new Rut(i,e,r);return this[Hu].push(s),this[Og]||(Dg.bodyLength(s.body)==null&&Dg.isIterable(s.body)?(this[Og]=1,queueMicrotask(()=>hj(this))):this[nv](!0)),this[Og]&&this[hm]!==2&&this[uj]&&(this[hm]=2),this[hm]<2}async[Wut](){return new Promise(e=>{this[ov]?this[fm]=e:e(null)})}async[Jut](e){return new Promise(r=>{let i=this[Hu].splice(this[ju]);for(let n=0;n<i.length;n++){let o=i[n];Dg.errorRequest(this,o,e)}let s=()=>{this[fm]&&(this[fm](),this[fm]=null),r(null)};this[bi]?(this[bi].destroy(e,s),this[bi]=null):queueMicrotask(s),this[nv]()})}},rlt=fD();function qge(t,e){if(t[av]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){cd(t[ju]===t[ud]);let r=t[Hu].splice(t[ud]);for(let i=0;i<r.length;i++){let s=r[i];Dg.errorRequest(t,s,e)}cd(t[ov]===0)}}async function Gge(t){cd(!t[wb]),cd(!t[bi]);let{host:e,hostname:r,protocol:i,port:s}=t[zl];if(r[0]==="["){let n=r.indexOf("]");cd(n!==-1);let o=r.substring(1,n);cd(Fge.isIP(o)),r=o}t[wb]=!0,bb.beforeConnect.hasSubscribers&&bb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[lm],localAddress:t[sv]},connector:t[iv]});try{let n=await new Promise((o,a)=>{t[iv]({host:e,hostname:r,protocol:i,port:s,servername:t[lm],localAddress:t[sv]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){Dg.destroy(n.on("error",Lge),new Dut);return}cd(n);try{t[bi]=n.alpnProtocol==="h2"?await tlt(t,n):await elt(t,n)}catch(o){throw n.destroy().on("error",Lge),o}t[wb]=!1,n[$ut]=0,n[lj]=t[lj],n[Put]=t,n[Mut]=null,bb.connected.hasSubscribers&&bb.connected.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[lm],localAddress:t[sv]},connector:t[iv],socket:n}),t.emit("connect",t[zl],[t])}catch(n){if(t.destroyed)return;if(t[wb]=!1,bb.connectError.hasSubscribers&&bb.connectError.publish({connectParams:{host:e,hostname:r,protocol:i,port:s,version:t[bi]?.version,servername:t[lm],localAddress:t[sv]},connector:t[iv],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(cd(t[av]===0);t[cv]>0&&t[Hu][t[ju]].servername===t[lm];){let o=t[Hu][t[ju]++];Dg.errorRequest(t,o,n)}else qge(t,n);t.emit("connectionError",t[zl],[t],n)}t[nv]()}function Mge(t){t[hm]=0,t.emit("drain",t[zl],[t])}function hj(t,e){t[Og]!==2&&(t[Og]=2,ilt(t,e),t[Og]=0,t[ud]>256&&(t[Hu].splice(0,t[ud]),t[ju]-=t[ud],t[ud]=0))}function ilt(t,e){for(;;){if(t.destroyed){cd(t[cv]===0);return}if(t[fm]&&!t[ov]){t[fm](),t[fm]=null;return}if(t[bi]&&t[bi].resume(),t[uj])t[hm]=2;else if(t[hm]===2){e?(t[hm]=1,queueMicrotask(()=>Mge(t))):Mge(t);continue}if(t[cv]===0||t[av]>=(Uge(t)||1))return;let r=t[Hu][t[ju]];if(t[zl].protocol==="https:"&&t[lm]!==r.servername){if(t[av]>0)return;t[lm]=r.servername,t[bi]?.destroy(new Nut("servername changed"),()=>{t[bi]=null,hj(t)})}if(t[wb])return;if(!t[bi]){Gge(t);return}if(t[bi].destroyed||t[bi].busy(r))return;!r.aborted&&t[bi].write(r)?t[ju]++:t[Hu].splice(t[ju],1)}}Hge.exports=fj});var dj=p((UBr,jge)=>{"use strict";var dD=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)}};jge.exports=class{constructor(){this.head=this.tail=new dD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head
|
|||
|
|
${i.count} ${i.noun} ${i.is} pending:
|
|||
|
|
|
|||
|
|
${e.format(r)}
|
|||
|
|
`.trim())}};c0e.exports=bz});var ND=p((Avr,d0e)=>{"use strict";var l0e=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:jht}=Vt(),zht=Sb();h0e()===void 0&&f0e(new zht);function f0e(t){if(!t||typeof t.dispatch!="function")throw new jht("Argument agent must implement Agent");Object.defineProperty(globalThis,l0e,{value:t,writable:!0,enumerable:!1,configurable:!1})}function h0e(){return globalThis[l0e]}d0e.exports={setGlobalDispatcher:f0e,getGlobalDispatcher:h0e}});var DD=p((yvr,p0e)=>{"use strict";p0e.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 A0e=p((Evr,m0e)=>{"use strict";var Vht=lD();m0e.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 Vht(r,o,s,n);return r(a,c)}}});var y0e=p((bvr,g0e)=>{"use strict";var $ht=wD();g0e.exports=t=>e=>function(i,s){return e(i,new $ht({...i,retryOptions:{...t,...i.retryOptions}},{handler:s,dispatch:e}))}});var b0e=p((wvr,E0e)=>{"use strict";var Wht=wt(),{InvalidArgumentError:Jht,RequestAbortedError:Yht}=Vt(),Kht=DD(),wz=class extends Kht{#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 Jht("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=Wht.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new Yht(`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 Xht({maxSize:t}={maxSize:1024*1024}){return e=>function(i,s){let{dumpMaxSize:n=t}=i,o=new wz({maxSize:n},s);return e(i,o)}}E0e.exports=Xht});var I0e=p((Cvr,C0e)=>{"use strict";var{isIP:Zht}=require("node:net"),{lookup:edt}=require("node:dns"),tdt=DD(),{InvalidArgumentError:Pb,InformationalError:rdt}=Vt(),w0e=Math.pow(2,31)-1,Cz=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 rdt("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){edt(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===w0e?(r.offset=0,i=4):(r
|
|||
|
|
${n}`;break;case"retry":rCe(n)&&(r[s]=n);break;case"id":iCe(n)&&(r[s]=n);break;case"event":n.length>0&&(r[s]=n);break}}processEvent(e){e.retry&&rCe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&iCe(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}}};sCe.exports={EventSourceStream:c9}});var dCe=p((Zvr,hCe)=>{"use strict";var{pipeline:hgt}=require("node:stream"),{fetching:dgt}=Iv(),{makeRequest:pgt}=Lb(),{webidl:pd}=Ws(),{EventSourceStream:mgt}=nCe(),{parseMIMEType:Agt}=Go(),{createFastMessageEvent:ggt}=Hb(),{isNetworkError:oCe}=wv(),{delay:ygt}=o9(),{kEnumerableProperty:Jg}=wt(),{environmentSettingsObject:aCe}=Sa(),cCe=!1,uCe=3e3,kv=0,lCe=1,Lv=2,Egt="anonymous",bgt="use-credentials",Wb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#i=!1;#r=kv;#s=null;#n=null;#l;#u;constructor(e,r={}){super(),pd.util.markAsUncloneable(this);let i="EventSource constructor";pd.argumentLengthCheck(arguments,1,i),cCe||(cCe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=pd.converters.USVString(e,i,"url"),r=pd.converters.EventSourceInitDict(r,i,"eventSourceInitDict"),this.#l=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:uCe};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=Egt;r.withCredentials&&(o=bgt,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=pgt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#i}#a(){if(this.#r===Lv)return;this.#r=kv;let e={request:this.#s,dispatcher:this.#l},r=i=>{oCe(i)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=i=>{if(oCe(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?Agt(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=lCe,this.dispatchEvent(new Event("open")),this.#u.origin=i.urlList[i.urlList.length-1].origin;let a=new mgt({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(ggt(c.type,c.options))}});hgt(i.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=dgt(e)}async#c(){this.#r!==Lv&&(this.#r=kv,this.dispatchEvent(new Event("error")),await ygt(this.#u.reconnectionTime),this.#r===kv&&(this.#u.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#a()))}close(){pd.brandCheck(this,t),this.#r!==Lv&&(this.#r=Lv,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}},fCe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:kv,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:lCe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Lv,writable:!1}};Object.defineProperties(Wb,fCe);Object.definePropert
|
|||
|
|
%s`,D,D,E,i);var q=E.type==="*"?sV:E.type==="?"?iV:"\\"+E.type;s=!0,i=i.slice(0,E.reStart)+q+"\\("+D}m(),n&&(i+="\\\\");var N=!1;switch(i.charAt(0)){case"[":case".":case"(":N=!0}for(var $=a.length-1;$>-1;$--){var O=a[$],j=i.slice(0,O.reStart),M=i.slice(O.reStart,O.reEnd-8),Z=i.slice(O.reEnd-8,O.reEnd),J=i.slice(O.reEnd);Z+=J;var Ne=j.split("(").length-1,he=J;for(A=0;A<Ne;A++)he=he.replace(/\)[+*?]?/,"");J=he;var Qe="";J===""&&e!==zO&&(Qe="$");var X=j+M+J+Qe+Z;i=X}if(i!==""&&s&&(i="(?=.)"+i),N&&(i=h+i),e===zO)return[i,s];if(!s)return jbt(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=Hbt;function Hbt(){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?sV:e.dot?Qbt:kbt,i=e.nocase?"i":"",s=t.map(function(n){return n.map(function(o){return o===nV?r:typeof o=="string"?zbt(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;Zv.sep!=="/"&&(e=e.split(Zv.sep).join("/")),e=e.split(iBe),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===nV){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(`
|
|||
|
|
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 jbt(t){return t.replace(/\\(.)/g,"$1")}function zbt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var rx=p((q_r,lBe)=>{"use strict";var Zbt="2.0.0",ewt=Number.MAX_SAFE_INTEGER||9007199254740991,twt=16,rwt=250,iwt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lBe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:twt,MAX_SAFE_BUILD_LENGTH:rwt,MAX_SAFE_INTEGER:ewt,RELEASE_TYPES:iwt,SEMVER_SPEC_VERSION:Zbt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ix=p((G_r,fBe)=>{"use strict";var swt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fBe.exports=swt});var nw=p((tf,hBe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:aV,MAX_SAFE_BUILD_LENGTH:nwt,MAX_LENGTH:owt}=rx(),awt=ix();tf=hBe.exports={};var cwt=tf.re=[],uwt=tf.safeRe=[],Ae=tf.src=[],lwt=tf.safeSrc=[],ge=tf.t={},fwt=0,cV="[a-zA-Z0-9-]",hwt=[["\\s",1],["\\d",owt],[cV,nwt]],dwt=t=>{for(let[e,r]of hwt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},ct=(t,e,r)=>{let i=dwt(e),s=fwt++;awt(t,s,e),ge[t]=s,Ae[s]=e,lwt[s]=i,cwt[s]=new RegExp(e,r?"g":void 0),uwt[s]=new RegExp(i,r?"g":void 0)};ct("NUMERICIDENTIFIER","0|[1-9]\\d*");ct("NUMERICIDENTIFIERLOOSE","\\d+");ct("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${cV}*`);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",`${cV}+`);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,${aV}})(?:\\.(\\d{1,${aV}}))?(?:\\.(\\d{1,${aV}}))?`);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);tf.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);tf.caretTrimReplace="$1^";ct("CARET",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAIN]}$`);ct("CARETLOOSE",`^${Ae[ge.LONECARET]}${Ae[ge.XRANGEPLAINLOOSE]}$`);ct("COMPARATORLOOSE",`^${Ae[ge.GTLT]}\\s*(${A
|
|||
|
|
`).join(`
|
|||
|
|
`+n),t.push(s+"m+"+OP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=LSt()+e+" "+t[0]}function LSt(){return Ks.inspectOpts.hideDate?"":new Date().toISOString()+" "}function MSt(...t){return process.stderr.write(DP.format(...t)+`
|
|||
|
|
`)}function FSt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function USt(){return process.env.DEBUG}function qSt(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]]}OP.exports=$V()(Ks);var{formatters:Vxe}=OP.exports;Vxe.o=function(t){return this.inspectOpts.colors=this.useColors,DP.inspect(t,this.inspectOpts).split(`
|
|||
|
|
`).map(e=>e.trim()).join(" ")};Vxe.O=function(t){return this.inspectOpts.colors=this.useColors,DP.inspect(t,this.inspectOpts)}});var ly=p((sNr,KV)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?KV.exports=qxe():KV.exports=$xe()});var Yxe=p(Jo=>{"use strict";var GSt=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]})),HSt=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wxe=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)&&GSt(e,t,r);return HSt(e,t),e};Object.defineProperty(Jo,"__esModule",{value:!0});Jo.req=Jo.json=Jo.toBuffer=void 0;var jSt=Wxe(require("http")),zSt=Wxe(require("https"));async function Jxe(t){let e=0,r=[];for await(let i of t)e+=i.length,r.push(i);return Buffer.concat(r,e)}Jo.toBuffer=Jxe;async function VSt(t){let r=(await Jxe(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Jo.json=VSt;function $St(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?zSt:jSt).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=$St});var e_e=p(Ua=>{"use strict";var Xxe=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]})),WSt=Ua&&Ua.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zxe=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)&&Xxe(e,t,r);return WSt(e,t),e},JSt=Ua&&Ua.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xxe(e,t,r)};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Agent=void 0;var YSt=Zxe(require("net")),Kxe=Zxe(require("http")),KSt=require("https");JSt(Yxe(),Ua);var nf=Symbol("AgentBaseInternalState"),XV=class extends Kxe.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 YSt.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)?KSt.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 Kxe.Agent)try{return a.addRequest(e,s)}catch(c){return i(c)}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)}};Ua.Agent=XV});var t_e=p(pw=>{"use strict";var XSt=pw&&pw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pw,"__esModule",{value:!0});pw.parseProxyResponse=void 0;var ZSt=XSt(ly()),PP=(0,ZSt.default)("https-proxy-agent:parse-proxy-response");function eBt(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(),PP("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(l){o(),PP("onerror %o",l),r(l)}function u(l){s.push(l),i+=l.length;let f=Buffer.concat(s,i),h=f.indexOf(`\r
|
|||
|
|
\r
|
|||
|
|
`);if(h===-1){PP("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 C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let D=C.slice(0,S).toLowerCase(),q=C.slice(S+1).trimStart(),N=E[D];typeof N=="string"?E[D]=[N,q]:Array.isArray(N)?N.push(q):E[D]=q}PP("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()})}pw.parseProxyResponse=eBt});var a_e=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]})),rBt=Uc&&Uc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),n_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 rBt(e,t),e},o_e=Uc&&Uc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uc,"__esModule",{value:!0});Uc.HttpsProxyAgent=void 0;var QP=n_e(require("net")),r_e=n_e(require("tls")),iBt=o_e(require("assert")),sBt=o_e(ly()),nBt=e_e(),oBt=require("url"),aBt=t_e(),gx=(0,sBt.default)("https-proxy-agent"),i_e=t=>t.servername===void 0&&t.host&&!QP.isIP(t.host)?{...t,servername:t.host}:t,kP=class extends nBt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new oBt.URL(e):e,this.proxyHeaders=r?.headers??{},gx("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?s_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:"?(gx("Creating `tls.Socket`: %o",this.connectOpts),s=r_e.connect(i_e(this.connectOpts))):(gx("Creating `net.Socket`: %o",this.connectOpts),s=QP.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=QP.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,aBt.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",cBt),r.secureEndpoint?(gx("Upgrading socket connection to TLS"),r_e.connect({...s_e(i_e(r),"host","path","port"),socket:s})):s;s.destroy();let f=new QP.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{gx("Replaying proxy buffer for failed request"),(0,iBt.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};kP.protocols=["http","https"];Uc.HttpsProxyAgent=kP;function cBt(t){t.resume()}function s_e(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var l_e=p(Yo=>{"use strict";var uBt=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]})),lBt=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c_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)&&uBt(e,t,r);return lBt(e,t),e};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.req=Yo.json=Yo.toBuffer=void 0;var fBt=c_e(require("http")),hBt=c_e(require("https"));async function u_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=u_e;async function dBt(t){let r=(await u_e(t)).toString("utf8");try{return JSON.parse(r)}catch(i){let s=i;throw s.message+=` (input: ${r})`,s}}Yo.json=dBt;function pBt(t,e={}){let i=((typeof t=="string"?t:t.href).startsWith("https:")?hBt:fBt).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=pBt});var yx=p(qa=>{"use strict";var h_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]})),mBt=qa&&qa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),d_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)&&h_e(e,t,r);return mBt(e,t),e},ABt=qa&&qa.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&h_e(e,t,r)};Object.defineProperty(qa,"__esModule",{value:!0});qa.Agent=void 0;var gBt=d_e(require("net")),f_e=d_e(require("http")),yBt=require("https");ABt(l_e(),qa);var of=Symbol("AgentBaseInternalState"),ZV=class extends f_e.Agent{constructor(e){super(e),this[of]={}}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 gBt.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))?yBt.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 f_e.Agent)return a.addRequest(e,s);this[of].currentSocket=a,super.createSocket(e,r,i)},a=>{this.decrementSockets(n,o),i(a)})}createConnection(){let e=this[of].currentSocket;if(this[of].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[of].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[of]&&(this[of].defaultPort=e)}get protocol(){return this[of].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[of]&&(this[of].protocol=e)}};qa.Agent=ZV});var e$=p(qc=>{"use strict";var EBt=qc&&qc.__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]})),bBt=qc&&qc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),m_e=qc&&qc.__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 bBt(e,t),e},wBt=qc&&qc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qc,"__esModule",{value:!0});qc.HttpProxyAgent=void 0;var CBt=m_e(require("net")),IBt=m_e(require("tls")),SBt=wBt(ly()),BBt=require("events"),vBt=yx(),p_e=require("url"),mw=(0,SBt.default)("http-proxy-agent"),LP=class extends vBt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new p_e.URL(e):e,this.proxyHeaders=r?.headers??{},mw("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?xBt(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 p_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;mw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(mw("Patching connection write() output buffer with updated header"),i=e.outputData[0].data,s=i.indexOf(`\r
|
|||
|
|
\r
|
|||
|
|
`)+4,e.outputData[0].data=e._header+i.substring(s),mw("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(mw("Creating `tls.Socket`: %o",this.connectOpts),n=IBt.connect(this.connectOpts)):(mw("Creating `net.Socket`: %o",this.connectOpts),n=CBt.connect(this.connectOpts)),await(0,BBt.once)(n,"connect"),n}};LP.protocols=["http","https"];qc.HttpProxyAgent=LP;function xBt(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var L_e=p(KP=>{"use strict";Object.defineProperty(KP,"__esModule",{value:!0});KP.state=void 0;KP.state={instrumenterImplementation:void 0}});var eRe=p(rQ=>{"use strict";Object.defineProperty(rQ,"__esModule",{value:!0});rQ.state=void 0;rQ.state={operationRequestMap:new WeakMap}});var gNe=p(Nw=>{"use strict";Object.defineProperty(Nw,"__esModule",{value:!0});var QTt=require("os"),kTt=require("util");function LTt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var MTt=LTt(kTt);function FTt(t,...e){process.stderr.write(`${MTt.default.format(t,...e)}${QTt.EOL}`)}var aNe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,uNe,S7=[],B7=[],gk=[];aNe&&v7(aNe);var lNe=Object.assign(t=>fNe(t),{enable:v7,enabled:x7,disable:UTt,log:FTt});function v7(t){uNe=t,S7=[],B7=[];let e=/\*/g,r=t.split(",").map(i=>i.trim().replace(e,".*?"));for(let i of r)i.startsWith("-")?B7.push(new RegExp(`^${i.substr(1)}$`)):S7.push(new RegExp(`^${i}$`));for(let i of gk)i.enabled=x7(i.namespace)}function x7(t){if(t.endsWith("*"))return!0;for(let e of B7)if(e.test(t))return!1;for(let e of S7)if(e.test(t))return!0;return!1}function UTt(){let t=uNe||"";return v7(""),t}function fNe(t){let e=Object.assign(r,{enabled:x7(t),destroy:qTt,log:lNe.log,namespace:t,extend:GTt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return gk.push(e),e}function qTt(){let t=gk.indexOf(this);return t>=0?(gk.splice(t,1),!0):!1}function GTt(t){let e=fNe(`${this.namespace}:${t}`);return e.log=this.log,e}var s_=lNe,hNe=new Set,mk=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,yk,Ek=s_("azure");Ek.log=(...t)=>{s_.log(...t)};var _7=["verbose","info","warning","error"];mk&&(ANe(mk)?dNe(mk):console.error(`AZURE_LOG_LEVEL set to unknown log level '${mk}'; logging is not enabled. Acceptable values: ${_7.join(", ")}.`));function dNe(t){if(t&&!ANe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${_7.join(",")}`);yk=t;let e=[];for(let r of hNe)mNe(r)&&e.push(r.namespace);s_.enable(e.join(","))}function HTt(){return yk}var cNe={verbose:400,info:300,warning:200,error:100};function jTt(t){let e=Ek.extend(t);return pNe(Ek,e),{error:Ak(e,"error"),warning:Ak(e,"warning"),info:Ak(e,"info"),verbose:Ak(e,"verbose")}}function pNe(t,e){e.log=(...r)=>{t.log(...r)}}function Ak(t,e){let r=Object.assign(t.extend(e),{level:e});if(pNe(t,r),mNe(r)){let i=s_.disable();s_.enable(i+","+r.namespace)}return hNe.add(r),r}function mNe(t){return!!(yk&&cNe[t.level]<=cNe[yk])}function ANe(t){return _7.includes(t)}Nw.AzureLogger=Ek;Nw.createClientLogger=jTt;Nw.getLogLevel=HTt;Nw.setLogLevel=dNe});var N7=p(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});var Dw=new WeakMap,bk=new WeakMap,n_=class t{constructor(){this.onabort=null,Dw.set(this,[]),bk.set(this,!1)}get aborted(){if(!bk.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return bk.get(this)}static get none(){return new t}addEventListener(e,r){if(!Dw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Dw.get(this).push(r)}removeEventListener(e,r){if(!Dw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let i=Dw.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 yNe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Dw.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),bk.set(t,!0)}var R7=class extends Error{constructor(e){super(e),t
|
|||
|
|
Polling from: ${r.config.operationLocation}
|
|||
|
|
Operation status: ${l}
|
|||
|
|
Polling status: ${xNe.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let f=o(u,r);if(f!==void 0)return{response:await e(f).catch(BNe({state:r,stateProxy:i,isOperationError:a})),status:l}}return{response:u,status:l}}async function NNe(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:C}=await bNt({poll:e,getOperationStatus:n,state:r,stateProxy:i,operationLocation:g,getResourceLocation:o,isOperationError:c,options:s});if(RNe({status:C,response:E,state:r,stateProxy:i,isDone:A,processResult:f,getError:h,setErrorAsResult:y}),!xNe.includes(C)){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 DNe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function ONe(t){return t.headers.location}function PNe(t){return t.headers["operation-location"]}function QNe(t){return t.headers["azure-asyncoperation"]}function wNt(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 kNe(t){let{rawResponse:e,requestMethod:r,requestPath:i,resourceLocationConfig:s}=t,n=PNe(e),o=QNe(e),a=DNe({operationLocation:n,azureAsyncOperation:o}),c=ONe(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:wNt({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 LNe(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 G7(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 xy.verbose(`LRO: unrecognized operation status: ${e}`),e}}function CNt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return LNe({status:r,statusCode:t.statusCode})}function INt(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 LNe({status:n,statusCode:t.statusCode})}function G7(t){return t===202?"running":t<300?"succeeded":"failed"}function MNe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?SNt(new Date(e)):r*1e3}}function FNe(t){let e=t.flatResponse.error;if(!e){xy.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){xy.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 SNt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function UNe(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 G7(e.rawResponse.statusCode);case"Body":return H7(e,r);default:return"running"}}let n=s();return n==="running"&&i===void 0?"succeeded":n}async function BNt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:i,lro:s,setErrorAsResult:n}=t;return TNe({init:async()=>{let o=await s.sendInitialRequest(),a=kNe({rawResponse:o.rawResponse,requestPath:s.requestPath,requestMethod:s.r
|
|||
|
|
`: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)}Mw.base64decode=c2t;function u2t(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Od[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Od[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Od[s|i>>6],e+=Od[i&63],r=0;break}return r&&(e+=Od[s],e+="=",r==1&&(e+="=")),e}Mw.base64encode=u2t});var g2e=p(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.utf8read=void 0;var Z7=t=>String.fromCharCode.apply(String,t);function l2t(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(Z7(i)),s=0);return r.length?(s&&r.push(Z7(i.slice(0,s))),r.join("")):Z7(i.slice(0,s))}Fk.utf8read=l2t});var p_=p(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.WireType=Df.mergeBinaryOptions=Df.UnknownFieldHandler=void 0;var f2t;(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])})(f2t=Df.UnknownFieldHandler||(Df.UnknownFieldHandler={}));function h2t(t,e){return Object.assign(Object.assign({},t),e)}Df.mergeBinaryOptions=h2t;var d2t;(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"})(d2t=Df.WireType||(Df.WireType={}))});var qk=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 p2t(){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=p2t;function m2t(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=m2t;var Uk=65536*65536;function A2t(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>=Uk&&(s=s+(i/Uk|0),i=i%Uk)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}ra.int64fromString=A2t;function g2t(t,e){if(e>>>0<=2097151)return""+(Uk*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=g2t;function y2t(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=y2t;function E2t(){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.bu
|
|||
|
|
`)}};pL.RpcError=vK});var _K=p(AL=>{"use strict";Object.defineProperty(AL,"__esModule",{value:!0});AL.mergeRpcOptions=void 0;var Y2e=Bi();function q1t(t,e){if(!e)return t;let r={};mL(t,r),mL(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=Y2e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Y2e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mL(t.meta,r.meta),mL(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}AL.mergeRpcOptions=q1t;function mL(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 TK=p(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.Deferred=Dy.DeferredState=void 0;var Qf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Qf=Dy.DeferredState||(Dy.DeferredState={}));var RK=class{constructor(e=!0){this._state=Qf.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!==Qf.PENDING)throw new Error(`cannot resolve ${Qf[this.state].toLowerCase()}`);this._resolve(e),this._state=Qf.RESOLVED}reject(e){if(this.state!==Qf.PENDING)throw new Error(`cannot reject ${Qf[this.state].toLowerCase()}`);this._reject(e),this._state=Qf.REJECTED}resolvePending(e){this._state===Qf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Qf.PENDING&&this.reject(e)}};Dy.Deferred=RK});var DK=p(gL=>{"use strict";Object.defineProperty(gL,"__esModule",{value:!0});gL.RpcOutputStreamController=void 0;var K2e=TK(),Oy=Bi(),NK=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){Oy.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){Oy.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){Oy.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(){Oy.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;Oy.assert(e,"bad state"),Oy.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 K2e.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;Oy.assert(i.state==K2e.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};gL.RpcOutputStreamController=NK});var PK=p(zw=>{"use strict";var G1t=zw&&zw.__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(zw,"__esModule",{value:!0});zw.UnaryCall=void 0;var OK=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i,this.headers=s,this.response=n,
|
|||
|
|
`: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)}uC.base64decode=nLt;function oLt(t){let e="",r=0,i,s=0;for(let n=0;n<t.length;n++)switch(i=t[n],r){case 0:e+=Md[i>>2],s=(i&3)<<4,r=1;break;case 1:e+=Md[s|i>>4],s=(i&15)<<2,r=2;break;case 2:e+=Md[s|i>>6],e+=Md[i&63],r=0;break}return r&&(e+=Md[s],e+="=",r==1&&(e+="=")),e}uC.base64encode=oLt});var LPe=p(aM=>{"use strict";Object.defineProperty(aM,"__esModule",{value:!0});aM.utf8read=void 0;var dZ=t=>String.fromCharCode.apply(String,t);function aLt(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(dZ(i)),s=0);return r.length?(s&&r.push(dZ(i.slice(0,s))),r.join("")):dZ(i.slice(0,s))}aM.utf8read=aLt});var H_=p(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.WireType=Ff.mergeBinaryOptions=Ff.UnknownFieldHandler=void 0;var cLt;(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])})(cLt=Ff.UnknownFieldHandler||(Ff.UnknownFieldHandler={}));function uLt(t,e){return Object.assign(Object.assign({},t),e)}Ff.mergeBinaryOptions=uLt;var lLt;(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"})(lLt=Ff.WireType||(Ff.WireType={}))});var uM=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 fLt(){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=fLt;function hLt(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=hLt;var cM=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>=cM&&(s=s+(i/cM|0),i=i%cM)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,i,s]}na.int64fromString=dLt;function pLt(t,e){if(e>>>0<=2097151)return""+(cM*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=pLt;function mLt(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=mLt;function ALt(){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.bu
|
|||
|
|
`)}};kM.RpcError=ZZ});var tee=p(MM=>{"use strict";Object.defineProperty(MM,"__esModule",{value:!0});MM.mergeRpcOptions=void 0;var EQe=xr();function MMt(t,e){if(!e)return t;let r={};LM(t,r),LM(e,r);for(let i of Object.keys(e)){let s=e[i];switch(i){case"jsonOptions":r.jsonOptions=EQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=EQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LM(t.meta,r.meta),LM(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}MM.mergeRpcOptions=MMt;function LM(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 iee=p(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.Deferred=zy.DeferredState=void 0;var Vf;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Vf=zy.DeferredState||(zy.DeferredState={}));var ree=class{constructor(e=!0){this._state=Vf.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!==Vf.PENDING)throw new Error(`cannot resolve ${Vf[this.state].toLowerCase()}`);this._resolve(e),this._state=Vf.RESOLVED}reject(e){if(this.state!==Vf.PENDING)throw new Error(`cannot reject ${Vf[this.state].toLowerCase()}`);this._reject(e),this._state=Vf.REJECTED}resolvePending(e){this._state===Vf.PENDING&&this.resolve(e)}rejectPending(e){this._state===Vf.PENDING&&this.reject(e)}};zy.Deferred=ree});var nee=p(FM=>{"use strict";Object.defineProperty(FM,"__esModule",{value:!0});FM.RpcOutputStreamController=void 0;var bQe=iee(),Vy=xr(),see=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){Vy.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){Vy.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){Vy.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(){Vy.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;Vy.assert(e,"bad state"),Vy.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 bQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r)if(r.p){let i=r.p;Vy.assert(i.state==bQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}};FM.RpcOutputStreamController=see});var aee=p(yC=>{"use strict";var FMt=yC&&yC.__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(yC,"__esModule",{value:!0});yC.UnaryCall=void 0;var oee=class{constructor(e,r,i,s,n,o,a){this.method=e,this.requestHeaders=r,this.request=i
|
|||
|
|
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 rke(this.pattern,this.options)}parse(e,r){zM(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return pl;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}(?:$|\\/))":"(?!\\.)",C=N=>N.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":s+=jee,n=!0;break;case"?":s+=$ee,n=!0;break;default:s+="\\"+u;break}this.debug("clearStateChar %j %j",u,s),u=!1}};for(let N=0,$;N<e.length&&($=e.charAt(N));N++){if(this.debug("%s %s %s %j",e,N,s,$),o){if($==="/")return!1;ZQe[$]&&(s+="\\"),s+=$,o=!1;continue}switch($){case"/":return!1;case"\\":if(l&&e.charAt(N+1)==="-"){s+=$;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,N,s,$),l){this.debug(" in class"),$==="!"&&N===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:N-1,reStart:s.length,open:XQe[u].open,close:XQe[u].close};this.debug(this.pattern," ",O),a.push(O),s+=O.open,O.start===0&&O.type!=="!"&&(y=!0,s+=C(e.slice(N+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+=C(e.slice(N+1)));continue}case"[":if(S(),l){s+="\\"+$;continue}l=!0,h=N,f=s.length,s+=$;continue;case"]":if(N===h+1||!l){s+="\\"+$;continue}d=e.substring(h+1,N);try{RegExp("["+RFt(xFt(d))+"]"),s+=$}catch{s=s.substring(0,f)+"(?:$.)"}n=!0,l=!1;continue;default:S(),ZQe[$]&&!($==="^"&&l)&&(s+="\\"),s+=$;break}}for(l&&(d=e.slice(h+1),A=this.parse(d,zee),s=s.substring(0,f)+"\\["+A[0],n=n||A[1]),m=a.pop();m;m=a.pop()){let N;N=s.slice(m.reStart+m.open.length),this.debug("setting tail",s,m),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(O,j,M)=>(M||(M="\\"),j+j+M+"|")),this.debug(`tail=%j
|
|||
|
|
%s`,N,N,m,s);let $=m.type==="*"?jee:m.type==="?"?$ee:"\\"+m.type;n=!0,s=s.slice(0,m.reStart)+$+"\\("+N}S(),o&&(s+="\\\\");let D=SFt[s.charAt(0)];for(let N=c.length-1;N>-1;N--){let $=c[N],O=s.slice(0,$.reStart),j=s.slice($.reStart,$.reEnd-8),M=s.slice($.reEnd),Z=s.slice($.reEnd-8,$.reEnd)+M,J=O.split(")").length,Ne=O.split("(").length-J,he=M;for(let X=0;X<Ne;X++)he=he.replace(/\)[+*?]?/,"");M=he;let Qe=M===""&&r!==zee?"(?:$|\\/)":"";s=O+j+M+Qe+Z}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=E()+s),r===zee)return[s,n];if(i.nocase&&!n&&(n=e.toUpperCase()!==e.toLowerCase()),!n)return vFt(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?jee:r.dot?CFt:IFt,s=r.nocase?"i":"",n=e.map(o=>(o=o.map(a=>typeof a=="string"?_Ft(a):a===pl?pl:a._src).reduce((a,c)=>(a[a.length-1]===pl&&c===pl||a.push(c),a),[]),o.forEach((a,c)=>{a!==pl||o[c-1]===pl||(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]=pl))}),o.filter(a=>a!==pl).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;Vee.sep!=="/"&&(e=e.split(Vee.sep).join("/")),e=e.split(eke),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 tc.defaults(e).Minimatch}};tc.Minimatch=_C});var cke=p((dzr,ake)=>{ake.exports=oke;var Yee=require("fs"),{EventEmitter:TFt}=require("events"),{Minimatch:Jee}=ike(),{resolve:NFt}=require("path");function DFt(t,e){return new Promise((r,i)=>{Yee.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 ske(t,e){return new Promise((r,i)=>{(e?Yee.stat:Yee.lstat)(t,(n,o)=>{n?n.code==="ENOENT"?r(e?ske(t,!1):null):r(null):r(o)})})}async function*nke(t,e,r,i,s,n){let o=await DFt(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 ske(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*nke(u,e,r,i,s,!1)):yield{relative:l,absolute:f,stats:h}}}async function*OFt(t,e,r,i){yield*nke("",t,e,r,i,!0)}function PFt(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 VM=class extends TFt{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=PFt(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 Jee(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 Jee(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 Jee(n,{dot:!0}))}this.iterator=OFt(NFt(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
|
|||
|
|
`,x);x=F===-1?v.length:F}else if(P!==-1&&v[x]==="/"&&v[x+1]==="*"){let F=v.indexOf("*/",x);F!==-1?(x=F+2,P=v.indexOf("*/",x)):(I+=v[x],x++)}else I+=v[x],x++;return I}function L0(v){let I=pg(v.toString()),x=I.match(Ll);if(x||(x=I.match(Lu)),!x)throw new Error(`could not parse args in autoInject
|
|||
|
|
Source:
|
|||
|
|
`+I);let[,P]=x;return P.replace(/\s/g,"").split(k0).map(F=>F.replace(dg,"").trim())}function em(v,I){var x={};return Object.keys(v).forEach(P=>{var F=v[P],G,V=d(F),W=!V&&F.length===1||V&&F.length===0;if(Array.isArray(F))G=[...F],F=G.pop(),x[P]=G.concat(G.length>0?ee:F);else if(W)x[P]=F;else{if(G=L0(F),F.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(F)(...jt)}}),kl(x,I)}class M0{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):mg(this,I)}push(I){this.tail?this.insertAfter(this.tail,I):mg(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 mg(v,I){v.length=1,v.head=v.tail=I}function tm(v,I,x){if(I==null)I=1;else if(I===0)throw new RangeError("Concurrency must not be zero");var P=y(v),F=0,G=[];let V={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function W(je,Te){V[je].push(Te)}function ee(je,Te){let ze=(...Mt)=>{De(je,ze),Te(...Mt)};V[je].push(ze)}function De(je,Te){if(!je)return Object.keys(V).forEach(ze=>V[ze]=[]);if(!Te)return V[je]=[];V[je]=V[je].filter(ze=>ze!==Te)}function Qt(je,...Te){V[je].forEach(ze=>ze(...Te))}var jt=!1;function Lt(je,Te,ze,Mt){if(Mt!=null&&typeof Mt!="function")throw new Error("task callback must be a function");zt.started=!0;var Pr,ls;function Cc(vg,...FB){if(vg)return ze?ls(vg):Pr();if(FB.length<=1)return Pr(FB[0]);Pr(FB)}var Z0=zt._createTaskItem(je,ze?Cc:Mt||Cc);if(Te?zt._tasks.unshift(Z0):zt._tasks.push(Z0),jt||(jt=!0,u(()=>{jt=!1,zt.process()})),ze||!Mt)return new Promise((vg,FB)=>{Pr=vg,ls=FB})}function wc(je){return function(Te,...ze){F-=1;for(var Mt=0,Pr=je.length;Mt<Pr;Mt++){var ls=je[Mt],Cc=G.indexOf(ls);Cc===0?G.shift():Cc>0&&G.splice(Cc,1),ls.callback(Te,...ze),Te!=null&&Qt("error",Te,ls.data)}F<=zt.concurrency-zt.buffer&&Qt("unsaturated"),zt.idle()&&Qt("drain"),zt.process()}}function X0(je){return je.length===0&&zt.idle()?(u(()=>Qt("drain")),!0):!1}let Bg=je=>Te=>{if(!Te)return new Promise((ze,Mt)=>{ee(je,(Pr,ls)=>{if(Pr)return Mt(Pr);ze(ls)})});De(je),W(je,Te)};var MB=!1,zt={_tasks:new M0,_createTaskItem(je,Te){return{data:je,callback:Te}},*[Symbol.iterator](){yield*zt._tasks[Symbol.iterator]()},concurrency:I,payload:x,buffer:I/4,started:!1,paused:!1,push(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!1,!1,Te)):Lt(je,!1,!1,Te)},pushAsync(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!1,!0,Te)):Lt(je,!1,!0,Te)},kill(){De(),zt._tasks.empty()},unshift(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!0,!1,Te)):Lt(je,!0,!1,Te)},unshiftAsync(je,Te){return Array.isArray(je)?X0(je)?void 0:je.map(ze=>Lt(ze,!0,!0,Te)):Lt(je,!0,!0,Te)},remove(je){zt._tasks.remove(je)},process(){if(!MB){for(MB=!0;!zt.paused&&F<zt.concurrency&&zt._tasks.length;){var je=[],Te=[],ze=zt._tasks.length;zt.payload&&(ze=Math.min(ze,zt.payload));for(var Mt=0;Mt<ze;Mt++){var Pr=zt._tasks.shift();je.push(Pr),G.push(Pr),Te.push(Pr.data)}F+=1,zt._tasks.length===0&&Qt("empty"),F===zt.concurrency&&Qt("saturated");var ls=J(wc(je));P(Te,ls)}MB=!1}},length(){return zt._tasks.length},running(){return F},workersList(){return G},idle(){return zt._tasks.length+F===0},pause(){zt.paused=!0},resume(){zt.paused!==!1&&(zt.paused=!1,u(zt.process))}};return Object.defineProperties(zt,{saturated:{writable:!1,value:Bg("saturated")},unsaturated:{writable:!1,va
|
|||
|
|
GFS4: `),console.error(t)});Jr[Zs]||(yke=global[Zs]||[],bke(Jr,yke),Jr.close=(function(t){function e(r,i){return t.call(Jr,r,function(s){s||Eke(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,KM,{value:t}),e})(Jr.close),Jr.closeSync=(function(t){function e(r){t.apply(Jr,arguments),Eke()}return Object.defineProperty(e,KM,{value:t}),e})(Jr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Wy(Jr[Zs]),require("assert").equal(Jr[Zs].length,0)}));var yke;global[Zs]||bke(global,Jr[Zs]);ete.exports=Xee(HFt(Jr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Jr.__patched&&(ete.exports=Xee(Jr),Jr.__patched=!0);function Xee(t){qFt(t),t.gracefulify=Xee,t.createReadStream=D,t.createWriteStream=q;var e=t.readFile;t.readFile=r;function r(O,j,M){return typeof j=="function"&&(M=j,j=null),Z(O,j,M);function Z(J,Ne,he,Qe){return e(J,Ne,function(X){X&&(X.code==="EMFILE"||X.code==="ENFILE")?RC([Z,[J,Ne,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,M,Z){return typeof M=="function"&&(Z=M,M=null),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return i(Ne,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,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,M,Z){return typeof M=="function"&&(Z=M,M=null),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return n(Ne,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,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,M,Z){return typeof M=="function"&&(Z=M,M=0),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return a(Ne,he,Qe,function(Ce){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,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,M){typeof j=="function"&&(M=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,M);function J(Ne,he,Qe,X){return function(Re,Ce){Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?RC([Z,[Ne,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=GFt(t);g=h.ReadStream,C=h.WriteStream}var d=t.ReadStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=E);var m=t.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.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 C},set:function(O){C=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=C;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,M){j?(O.autoClose&&O.destroy(),O.emit("error",j)):(O.fd=M,O.emit("open",M),O.read())})}function C(O,j){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function S(){var O=this;$(O.path,O.flags,O.mode,function(j,M){j?(O.destroy(),O.emit("error",j)):(O.fd=M,O.emit("open",M))})}function D(O,j){return new t.ReadStream(O,j)}function q(O,j){return new t.WriteStream(O,j)}var N=t.open;t.open=$;function $(O,j,M,Z){return typeof M=="function"&&(Z=M,M=null),J(O,j,M,Z);function J(Ne,he,Qe,X,Re){return N(Ne,he,Qe,function(Ce,_t){Ce&&(Ce.code==="EMFILE"||Ce.code==="ENFILE")?RC([J,[Ne,he,Qe,X],Ce,Re||Date.now(),Date.now()]):typeof X=="function"&&X.apply(this,arguments)})}}return t}function RC(t){Wy("ENQUEUE
|
|||
|
|
`;super(r),this.name="AggregateError",this.errors=e}};Ute.exports={AggregateError:Fte,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 v5t},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:x5t,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);dFe(e,"signal"),_5t(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[C5t]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[I5t](){var s;(s=i)===null||s===void 0||s()}}},AbortSignalAny:S5t.any||function(e){if(e.length===1)return e[0];let r=new B5t,i=()=>r.abort();return e.forEach(s=>{dFe(s,"signals"),s.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(s=>s.removeEventListener("abort",i))},{once:!0}),r.signal}};Ute.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var mo=p((R9r,AFe)=>{"use strict";var{format:R5t,inspect:bF,AggregateError:T5t}=Bn(),N5t=globalThis.AggregateError||T5t,D5t=Symbol("kIsNodeError"),O5t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],P5t=/^([A-Z][a-z0-9]*)+$/,Q5t="__node_internal_",wF={};function Ky(t,e){if(!t)throw new wF.ERR_INTERNAL_ASSERTION(e)}function pFe(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 k5t(t,e,r){if(typeof e=="function")return Ky(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 Ky(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:R5t(e,...r)}function tn(t,e,r){r||(r=Error);class i extends r{constructor(...n){super(k5t(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[D5t]=!0,wF[t]=i}function mFe(t){let e=Q5t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function L5t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new N5t([e,t],e.message);return r.code=e.code,r}return t||e}var qte=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new wF.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)=>{Ky(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)Ky(typeof c=="string","All expected entries have to be of type string"),O5t.includes(c)?s.push(c.toLowerCase()):P5t.test(c)?n.push(c):(Ky(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(n.
|
|||
|
|
`)),e.linkname&&(r+=gse(" linkpath="+e.linkname+`
|
|||
|
|
`));let i=e.pax;if(i)for(let s in i)r+=gse(" "+s+"="+i[s]+`
|
|||
|
|
`);return Ht.from(r)};yI.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};yI.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,pA(e.mode&ZJt,6),100),Ht.write(r,pA(e.uid,6),108),Ht.write(r,pA(e.gid,6),116),oYt(e.size,r,124),Ht.write(r,pA(e.mtime.getTime()/1e3|0,11),136),r[156]=KU+sYt(e.type),e.linkname&&Ht.write(r,e.linkname,157),Ht.copy(mGe,r,ET),Ht.copy(YJt,r,yse),e.uname&&Ht.write(r,e.uname,265),e.gname&&Ht.write(r,e.gname,297),Ht.write(r,pA(e.devmajor||0,6),329),Ht.write(r,pA(e.devminor||0,6),337),s&&Ht.write(r,s,345),Ht.write(r,pA(gGe(r),6),148),r)};yI.decode=function(e,r,i){let s=e[156]===0?0:e[156]-KU,n=gI(e,0,100,r),o=dA(e,100,8),a=dA(e,108,8),c=dA(e,116,8),u=dA(e,124,12),l=dA(e,136,12),f=iYt(s),h=e[157]===0?null:gI(e,157,100,r),d=gI(e,265,32),m=gI(e,297,32),A=dA(e,329,8),y=dA(e,337,8),g=gGe(e);if(g===256)return null;if(g!==dA(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=gI(e,345,155,r)+"/"+n);else if(!tYt(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(mGe,t.subarray(ET,ET+6))}function tYt(t){return Ht.equals(KJt,t.subarray(ET,ET+6))&&Ht.equals(XJt,t.subarray(yse,yse+2))}function rYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function iYt(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 sYt(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 AGe(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function gGe(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 pA(t,e){return t=t.toString(8),t.length>e?JJt.slice(0,e)+" ":WJt.slice(0,e-t.length)+t+" "}function nYt(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function oYt(t,e,r){t.toString(8).length>11?nYt(t,e,r):Ht.write(e,pA(t,11),r)}function aYt(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 dA(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return aYt(t);{for(;e<t.length&&t[e]===32;)e++;let i=rYt(AGe(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 gI(t,e,r,i){return Ht.toString(t.subarray(e,AGe(t,0,e,e+r)),i)}function gse(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 CGe=p((J$r,wGe)=>{var{Writable:cYt,Readable:uYt,getStreamError:yGe}=Ase(),lYt=ese(),EGe=YU(),EI=Ese(),fYt=EGe.alloc(0),wse=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new lYt,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
|
|||
|
|
`,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:"\u01
|
|||
|
|
`).forEach(r=>{r.match(OZt)||r.match(PZt)||(e+=r)}),Buffer.from(e,"base64")}function kZt(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
|||
|
|
`).concat(`
|
|||
|
|
`)}});var Lq=p(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});_A.SHA2_HASH_ALGOS=_A.RSA_SIGNATURE_ALGOS=_A.ECDSA_SIGNATURE_ALGOS=void 0;_A.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"};_A.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"};_A.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 bne=p(Mq=>{"use strict";Object.defineProperty(Mq,"__esModule",{value:!0});Mq.RFC3161TimestampVerificationError=void 0;var Ene=class extends Error{};Mq.RFC3161TimestampVerificationError=Ene});var kje=p(dh=>{"use strict";var LZt=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]})),MZt=dh&&dh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FZt=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"&&LZt(r,e,i[s]);return MZt(r,e),r}})();Object.defineProperty(dh,"__esModule",{value:!0});dh.TSTInfo=void 0;var Qje=FZt(kI()),UZt=Lq(),qZt=bne(),wne=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 UZt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Qje.digest(this.messageImprintHashAlgorithm,e);if(!Qje.bufferEqual(r,this.messageImprintHashedMessage))throw new qZt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};dh.TSTInfo=wne});var Mje=p(ph=>{"use strict";var GZt=ph&&ph.__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]})),HZt=ph&&ph.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),jZt=ph&&ph.__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"&&GZt(r,e,i[s]);return HZt(r,e),r}})();Object.defineProperty(ph,"__esModule",{value:!0});ph.RFC3161Timestamp=void 0;var zZt=Pq(),Cne=jZt(kI()),Lje=Lq(),kT=bne(),VZt=kje(),$Zt="1.2.840.113549.1.7.2",WZt="1.2.840.113549.1.9.16.1.4",JZt="1.2.840.113549.1.9.4",Ine=class t{root;constructor(e){this.root=e}static parse(e){let r=zZt.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 Lje.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();r
|
|||
|
|
\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\uFE9
|
|||
|
|
\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 r9e=p(t9e=>{"use strict";var aae=pp().Buffer;t9e._dbcs=mp;var on=-1,e9e=-2,yu=-10,_o=-1e3,WI=new Array(256),eN=-1;for(C3=0;C3<256;C3++)WI[C3]=on;var C3;function mp(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=[
|
|||
|
|
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))}},bp=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?Xrr:Krr);if(!s||i&&!Nae.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=lc(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&&!(Nae.includes(this.algorithm)&&this.digest.match(Yrr)&&this.options.every(r=>r.match(Zrr)))?"":`${this.algorithm}-${this.digest}${cN(this.options)}`}};function lVe(t,e,r,i){let s=t!=="",n=!1,o="",a=i.length-1;for(let u=0;u<a;u++){let l=bp.prototype.toString.call(i[u],r);l&&(n=!0,o+=l,o+=e)}let c=bp.prototype.toString.call(i[a],r);return c&&(n=!0,o+=c),s&&n?t+e+o:t+o}var zE=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 Nae)this[s]&&(i=lVe(i,r,e,this[s]))}else for(let s of Object.keys(this))i=lVe(i,r,e,this[s]);return i}concat(e,r){let i=typeof e=="string"?e:oN(e,r);return lc(`${this.toString(r)} ${i}`,r)}hexDigest(){return lc(this,{single:!0}).hexDigest()}merge(e,r){let i=lc(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=lc(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||air,s=Object.keys(this).filter(n=>r?.length?r.includes(n):!0);return s.length?s.reduce((n,o)=>i(n,o)||n):null}};Ih.exports.parse=lc;function lc(t,e){if(!t)return null;if(typeof t=="string")return Tae(t,e);if(t.algorithm&&t.digest){let r=new zE;return r[t.algorithm]=[t],Tae(oN(r,e),e)}else return Tae(oN(t,e),e)}function Tae(t,e){if(e?.single)return new bp(t,e);let r=t.trim().split(/\s+/).reduce((i,s)=>{let n=new bp(s,e);if(n.algorithm&&n.digest){let o=n.algorithm;i[o]||(i[o]=[]),i[o].push(n)}return i},new zE);return r.isEmpty()?null:r}Ih.exports.stringify=oN;function oN(t,e){return t.algorithm&&t.digest?bp.prototype.toString.call(t,e):typeof t=="string"?oN(lc(t,e),e):zE.prototype.toString.call(t,e)}Ih.exports.fromHex=eir;function eir(t,e,r){let i=cN(r?.options);return lc(`${e}-${Buffer.from(t,"hex").toString("base64")}${i}`,r)}Ih.exports.fromData=tir;function tir(t,e){let r=e?.algorithms||[...Oae],i=cN(e?.options);return r.reduce((s,n)=>{let o=aN.createHash(n).update(t).digest("base64"),a=new bp(`${n}-${o}${i}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;s[c]||(s[c]=[]),s[c].push(a)}return s},new zE)}Ih.exports.fromStream=rir;function rir(t,e){let r=Pae(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()})}Ih.exports.checkData=iir;function iir(t,e,r){if(e=lc(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=aN.createHash(i).update(t).digest("base64"),n=lc({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
|
|||
|
|
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}}Ih.exports.checkStream=sir;function sir(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=lc(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=Pae(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()})}Ih.exports.integrityStream=Pae;function Pae(t=Object.create(null)){return new Dae(t)}Ih.exports.create=nir;function nir(t){let e=t?.algorithms||[...Oae],r=cN(t?.options),i=e.map(aN.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 bp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new zE)}}}var oir=aN.getHashes(),fVe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>oir.includes(t));function air(t,e){return fVe.indexOf(t.toLowerCase())>=fVe.indexOf(e.toLowerCase())?t:e}});var kae=p((fKr,AVe)=>{var hVe=Iae(),dVe=Rae(),cir=Sh(),pVe={shared:!1,ignoreCargoCult:!0},uir={status:200,headers:{}},XI=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},mVe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},Qae=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=XI(r),this.response=mVe(i),this.options=s,this.policy=new hVe(this.request,this.response,pVe),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 hVe(XI(e),uir,pVe).storable()}satisfies(e){let r=XI(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new dVe(this.request),s=new dVe(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?cir.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=XI(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=XI(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=XI(e),s=mVe(r);return!this.policy.revalidatedPolicy(i,s).modified}};AVe.exports=Qae});var yVe=p((hKr,gVe)=>{var Lae=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"}};gVe.exports={NotCachedError:Lae}});var _Ve=p((dKr,xVe)=>{"use strict";var EVe=typeof process=="object"&&process?process:{stdout:null,stderr:null},lir=require("events"),bVe=require("stream"),wVe=require("string_decoder").StringDecoder,wp=Symbol("EOF"),Cp=Symbol("maybeEmitEnd"),kA=Symbol("emittedEnd"),k3=Symbol("emittingEnd"),uN=Symbol("emittedError"),L3=Symbol("closed"),CVe=Symbol("read"),M3=Symbol("flush"),IVe=Symbol("flushChunk"),da=Symbol("encoding"),Ip=Symbol("decoder"),F3=Symbol("flowing"),lN=Symbol("paused"),ZI=Symbol("resume"),ks=Symbol("bufferLength"),Mae=Symbol("bufferPush"),Fae=Symbol("bufferShift"),Mn=Symbol("objectMode"),Fn=Symbol("destroyed"),Uae=Symbol("emitData"),SVe=Symbol("emitEnd"),qae=Symbol("emitEnd2"),Sp=Symbol("async"),fN=t=>Promise.resolve().then(t),BVe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",fir=BVe&&Symbol.asyncIterator||Symbol("asyncIterator not
|
|||
|
|
`+o.map(h=>{let d=JSON.stringify(h);return`${f4(d)} ${d}`}).join(`
|
|||
|
|
`),c=async()=>{let h=War(vh.join(t,"tmp"),i.tmpPrefix);return await Lce(vh.dirname(h),{recursive:!0}),{target:h,moved:!1}},u=async h=>{if(!h.moved)return MJe(h.target,{recursive:!0,force:!0})},l=async h=>{await zar(h.target,a,{flag:"wx"}),await Lce(vh.dirname(s),{recursive:!0}),await Xar(h.target,s),h.moved=!0},f=await c();try{await l(f)}finally{await u(f)}return o.reverse().map(h=>h4(t,h,!0))}hc.exports.insert=FJe;async function FJe(t,e,r,i={}){let{metadata:s,size:n,time:o}=i,a=_N(t,e),c={key:e,integrity:r&&$ar.stringify(r),time:o||Date.now(),size:n,metadata:s};try{await Lce(vh.dirname(a),{recursive:!0});let u=JSON.stringify(c);await Gar(a,`
|
|||
|
|
${f4(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return h4(t,c)}hc.exports.find=ecr;async function ecr(t,e){let r=_N(t,e);try{return(await l4(r)).reduce((s,n)=>n&&n.key===e?h4(t,n):s,null)}catch(i){if(i.code==="ENOENT")return null;throw i}}hc.exports.delete=tcr;function tcr(t,e,r={}){if(!r.removeFully)return FJe(t,e,null,r);let i=_N(t,e);return MJe(i,{recursive:!0,force:!0})}hc.exports.lsStream=UJe;function UJe(t){let e=Mce(t),r=new Var({objectMode:!0});return Promise.resolve().then(async()=>{let{default:i}=await Promise.resolve().then(()=>(u4(),c4)),s=await kce(e);return await i(s,async n=>{let o=vh.join(e,n),a=await kce(o);await i(a,async c=>{let u=vh.join(o,c),l=await kce(u);await i(l,async f=>{let h=vh.join(u,f);try{let m=(await l4(h)).reduce((A,y)=>(A.set(y.key,y),A),new Map);for(let A of m.values()){let y=h4(t,A);y&&r.write(y)}}catch(d){if(d.code==="ENOENT")return;throw d}},{concurrency:Qce})},{concurrency:Qce})},{concurrency:Qce}),r.end(),r}).catch(i=>r.emit("error",i)),r}hc.exports.ls=rcr;async function rcr(t){return(await UJe(t).collect()).reduce((r,i)=>(r[i.key]=i,r),{})}hc.exports.bucketEntries=l4;async function l4(t,e){let r=await Har(t,"utf8");return icr(r,e)}function icr(t){let e=[];return t.split(`
|
|||
|
|
`).forEach(r=>{if(!r)return;let i=r.split(" ");if(!i[1]||f4(i[1])!==i[0])return;let s;try{s=JSON.parse(i[1])}catch{}s&&e.push(s)}),e}hc.exports.bucketDir=Mce;function Mce(t){return vh.join(t,`index-v${Kar}`)}hc.exports.bucketPath=_N;function _N(t,e){let r=qJe(e);return vh.join.apply(vh,[Mce(t)].concat(Yar(r)))}hc.exports.hashKey=qJe;function qJe(t){return GJe(t,"sha256")}hc.exports.hashEntry=f4;function f4(t){return GJe(t,"sha1")}function GJe(t,e){return qar.createHash(e).update(t).digest("hex")}function h4(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Jar(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function kce(t){return jar(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var fS=p(p4=>{"use strict";Object.defineProperty(p4,"__esModule",{value:!0});p4.LRUCache=void 0;var scr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,jJe=new Set,Fce=typeof process=="object"&&process?process:{},zJe=(t,e,r,i)=>{typeof Fce.emitWarning=="function"?Fce.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},d4=globalThis.AbortController,HJe=globalThis.AbortSignal;if(typeof d4>"u"){HJe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},d4=class{constructor(){e()}signal=new HJe;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=Fce.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,zJe("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 ncr=t=>!jJe.has(t),MA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),VJe=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?lS:null:null,lS=class extends Array{constructor(e){super(e),this.fill(0)}},Uce=class t{heap;length;static#e=!1;static create(e){let r=VJe(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]}},qce=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.#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.#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:C,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:N,perf:$}=e;if($!==void 0&&typeof $?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=$
|
|||
|
|
Wanted: ${t}
|
|||
|
|
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var pYe=p((LXr,tue)=>{"use strict";var lYe=uS(),fYe=RN(),hYe=uYe(),qcr=hN(),{PassThrough:Gcr}=$ae(),Hcr=$E(),dYe=t=>({algorithms:["sha512"],...t});tue.exports=jcr;async function jcr(t,e,r,i={}){let{memoize:s}=i;i=dYe(i);let n=await hYe(t,r,i),o=await lYe.insert(t,e,n.integrity,{...i,size:n.size});return s&&fYe.put(t,o,r,i),n.integrity}tue.exports.stream=zcr;function zcr(t,e,r={}){let{memoize:i}=r;r=dYe(r);let s,n,o,a,c=new Hcr;if(i){let l=new Gcr().on("collect",f=>{a=f});c.push(l)}let u=hYe.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 qcr({async flush(){if(!o){let l=await lYe.insert(t,e,s,{...r,size:n});i&&a&&fYe.put(t,l,a,r),c.emit("integrity",s),c.emit("size",n)}}})),c}});var AYe=p(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.range=r0.balanced=void 0;var Vcr=(t,e,r)=>{let i=t instanceof RegExp?mYe(t,r):t,s=e instanceof RegExp?mYe(e,r):e,n=i!==null&&s!=null&&(0,r0.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)}};r0.balanced=Vcr;var mYe=(t,e)=>{let r=e.match(t);return r?r[0]:null},$cr=(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};r0.range=$cr});var sue=p(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS.EXPANSION_MAX=void 0;bS.expand=our;var gYe=AYe(),yYe="\0SLASH"+Math.random()+"\0",EYe="\0OPEN"+Math.random()+"\0",iue="\0CLOSE"+Math.random()+"\0",bYe="\0COMMA"+Math.random()+"\0",wYe="\0PERIOD"+Math.random()+"\0",Wcr=new RegExp(yYe,"g"),Jcr=new RegExp(EYe,"g"),Ycr=new RegExp(iue,"g"),Kcr=new RegExp(bYe,"g"),Xcr=new RegExp(wYe,"g"),Zcr=/\\\\/g,eur=/\\{/g,tur=/\\}/g,rur=/\\,/g,iur=/\\./g;bS.EXPANSION_MAX=1e5;function rue(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function sur(t){return t.replace(Zcr,yYe).replace(eur,EYe).replace(tur,iue).replace(rur,bYe).replace(iur,wYe)}function nur(t){return t.replace(Wcr,"\\").replace(Jcr,"{").replace(Ycr,"}").replace(Kcr,",").replace(Xcr,".")}function CYe(t){if(!t)return[""];let e=[],r=(0,gYe.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=CYe(n);return n.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function our(t,e={}){if(!t)return[];let{max:r=bS.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),kN(sur(t),r,!0).map(nur)}function aur(t){return"{"+t+"}"}function cur(t){return/^-?0\d/.test(t)}function uur(t,e){return t<=e}function lur(t,e){return t>=e}function kN(t,e,r){let i=[],s=(0,gYe.balanced)("{","}",t);if(!s)return[t];let n=s.pre,o=s.post.length?kN(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+iue+s.post,kN(t,e,!0)):[t];let f;if(u)f=s.body.split(/\.\./);else if(f=CYe(s.body),f.length===1&&f[0]!==void 0&&(f=kN(f[0],e,!1).map(aur),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=rue(f[0]),m=rue(f[1]),A=Math.max(f[0].length,f[1].length),y=f.length===3&&f[2]!==void 0?Math.abs(rue(f[2])):1,g=uur;m<d&&(y*=-1,g=lur);let C=f.some(cur);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),C){let q=A-D.length;if(q>0){let N=new Array(q+1).join("0");S<0?D="-"+N+D.slice(1):D=N+D}}h.push(D)}}else{h=[];for(let d=0;d<f.length;d++)h.push.apply(h,kN(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
|
|||
|
|
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,O4.assertValidPattern)(e);let r=this.options;if(e==="**")return Oe.GLOBSTAR;if(e==="")return"";let i,s=null;(i=e.match(Fur))?s=r.dot?qur:Uur:(i=e.match(Rur))?s=(r.nocase?r.dot?Our:Dur:r.dot?Nur:Tur)(i[1]):(i=e.match(Gur))?s=(r.nocase?r.dot?jur:Hur:r.dot?zur:Vur)(i):(i=e.match(Pur))?s=r.dot?kur:Qur:(i=e.match(Lur))&&(s=Mur);let n=NYe.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?Wur:r.dot?Jur:Yur,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"?rlr(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=i0;var ilr=aue();Object.defineProperty(Oe,"AST",{enumerable:!0,get:function(){return ilr.AST}});var slr=cue();Object.defineProperty(Oe,"escape",{enumerable:!0,get:function(){return slr.escape}});var nlr=_4();Object.defineProperty(Oe,"unescape",{enumerable:!0,get:function(){return nlr.unescape}});Oe.minimatch.AST=NYe.AST;Oe.minimatch.Minimatch=i0;Oe.minimatch.escape=vur.escape;Oe.minimatch.unescape=xur.unescape});var UYe=p(Do=>{"use strict";var olr=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 QYe=typeof process=="object"&&process?process:{stdout:null,stderr:null},mue=require("node:events"),FYe=olr(require("node:stream")),alr=require("node:string_decoder"),clr=t=>!!t&&typeof t=="object"&&(t instanceof U4||t instanceof FYe.default||(0,Do.isReadable)(t)||(0,Do.isWritable)(t));Do.isStream=clr;var ulr=t=>!!t&&typeof t=="object"&&t instanceof mue.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==FYe.default.Writable.prototype.pipe;Do.isReadable=ulr;var llr=t=>!!t&&typeof t=="object"&&t instanceof mue.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Do.isWritable=llr;var Lp=Symbol("EOF"),Mp=Symbol("maybeEmitEnd"),HA=Symbol("emittedEnd"),P4=Symbol("emittingEnd"),MN=Symbol("emittedError"),Q4=Symbol("closed"),kYe=Symbol("read"),k4=Symbol("flush"),LYe=Symbol("flushChunk"),xl=Symbol("encoding"),wS=Symbol("decoder"),
|
|||
|
|
\r
|
|||
|
|
`);if(h===-1){g5("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 C of d){if(!C)continue;let S=C.indexOf(":");if(S===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${C}"`));let D=C.slice(0,S).toLowerCase(),q=C.slice(S+1).trimStart(),N=E[D];typeof N=="string"?E[D]=[N,q]:Array.isArray(N)?N.push(q):E[D]=q}g5("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()})}_S.parseProxyResponse=Chr});var oKe=p(Bu=>{"use strict";var Ihr=Bu&&Bu.__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]})),Shr=Bu&&Bu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sKe=Bu&&Bu.__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)&&Ihr(e,t,r);return Shr(e,t),e},nKe=Bu&&Bu.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.HttpsProxyAgent=void 0;var a2=sKe(require("net")),rKe=sKe(require("tls")),Bhr=nKe(require("assert")),vhr=nKe(ly()),xhr=yx(),_hr=require("url"),Rhr=tKe(),c2=(0,vhr.default)("https-proxy-agent"),y5=class extends xhr.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??{},c2("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?iKe(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:"){c2("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;s=rKe.connect({...this.connectOpts,servername:h&&a2.isIP(h)?void 0:h})}else c2("Creating `net.Socket`: %o",this.connectOpts),s=a2.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=a2.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,Rhr.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",Thr),r.secureEndpoint){c2("Upgrading socket connection to TLS");let h=r.servername||r.host;return rKe.connect({...iKe(r,"host","path","port"),socket:s,servername:a2.isIP(h)?void 0:h})}return s}s.destroy();let f=new a2.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{c2("Replaying proxy buffer for failed request"),(0,Bhr.default)(h.listenerCount("data")>0),h.push(l),h.push(null)}),f}};y5.protocols=["http","https"];Bu.HttpsProxyAgent=y5;function Thr(t){t.resume()}function iKe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var lKe=p(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});var aKe=require("buffer"),u0={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."};qp.ERRORS=u0;function Nhr(t){if(!aKe.Buffer.isEncoding(t))throw new Error(u0.INVALID_ENCODING)}qp.checkEncoding=Nhr;function cKe(t){return typeof t=="number"&&isFinite(t)&&Qhr(t)}qp.isFiniteInteger=cKe;function uKe(t,e){if(typeof t=="number"){if(!cKe(t)||t<0)throw new Error(e?u0.INVALID_OFFSET:u0.INVALID_LENGTH)}else throw new Error(e?u0.INVALID_OFFSET_NON_NUMBER:u0.INVALID_LENGTH_NON_NUMBER)}function Dhr(t){uKe(t,!1)}qp.checkLengthValue=Dhr;function Ohr(t){uKe(t,!0)}qp.checkOffsetValue=Ohr;function Phr(t,e){if(t<0||t>e.length)throw new Error(u0.INVALID_TARGET_OFFSET)}qp.checkTargetOffset=Phr;function Qhr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function khr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof aKe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}qp.bigIntAndBufferInt64Check=khr});var hKe=p(sle=>{"use strict";Object.defineProperty(sle,"__esModule",{value:!0});var bt=lKe(),fKe=4096,Lhr="utf8",ile=class t{constructor(e){if(this.length=0,this._encoding=Lhr,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(fKe);else{if(typeof e<"u")throw new Error(bt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(fKe)}}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(Bu
|
|||
|
|
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,A8.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?mgr:pgr:(i=e.match(igr))?s=(r.nocase?r.dot?agr:ogr:r.dot?ngr:sgr)(i[1]):(i=e.match(Agr))?s=(r.nocase?r.dot?ygr:ggr:r.dot?Egr:bgr)(i):(i=e.match(cgr))?s=r.dot?lgr:ugr:(i=e.match(fgr))&&(s=hgr);let n=SZe.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?Cgr:r.dot?Igr:Sgr,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"?Tgr(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=g0;var Ngr=Rfe();Object.defineProperty(Pe,"AST",{enumerable:!0,get:function(){return Ngr.AST}});var Dgr=Tfe();Object.defineProperty(Pe,"escape",{enumerable:!0,get:function(){return Dgr.escape}});var Ogr=f8();Object.defineProperty(Pe,"unescape",{enumerable:!0,get:function(){return Ogr.unescape}});Pe.minimatch.AST=SZe.AST;Pe.minimatch.Minimatch=g0;Pe.minimatch.escape=egr.escape;Pe.minimatch.unescape=tgr.unescape});var Ofe=p(Nu=>{"use strict";var RZe=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 TZe=RZe(require("crypto")),Pgr=_Ze(),g8=RZe(require("util")),y8=Fh(),y0=Nl();Nu.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var B2=class t{keyIDs;threshold;unrecognizedFields;constructor(e){let{keyIDs:r,threshold:i,unrecognizedFields:s}=e;if(Qgr(r))throw new y8.ValueError("duplicate key IDs found");if(i<1)throw new y8.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&&g8.default.isDeepStrictEqual(this.keyIDs,e.keyIDs)&&g8.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(!y0.guard.isStringArray(r))throw new TypeError("keyid
|
|||
|
|
`).join(`
|
|||
|
|
`+n),t.push(s+"m+"+T8.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Fyr()+e+" "+t[0]}function Fyr(){return $s.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Uyr(...t){return process.stderr.write(R8.formatWithOptions($s.inspectOpts,...t)+`
|
|||
|
|
`)}function qyr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Gyr(){return process.env.DEBUG}function Hyr(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]]}T8.exports=Zfe()($s);var{formatters:zZe}=T8.exports;zZe.o=function(t){return this.inspectOpts.colors=this.useColors,R8.inspect(t,this.inspectOpts).split(`
|
|||
|
|
`).map(e=>e.trim()).join(" ")};zZe.O=function(t){return this.inspectOpts.colors=this.useColors,R8.inspect(t,this.inspectOpts)}});var the=p((eti,ehe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ehe.exports=jZe():ehe.exports=VZe()});var WZe=p((tti,$Ze)=>{var jyr=require("dns"),zyr=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],Vyr=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:jyr.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(s=>zyr.includes(s.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};$Ze.exports=Vyr});var ihe=p((rti,ZZe)=>{var JZe=Iae(),YZe=Rae(),$yr=Sh(),KZe={shared:!1,ignoreCargoCult:!0},Wyr={status:200,headers:{}},tB=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},XZe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,i)=>{e.headers[i]=r}),e},rhe=class{constructor({entry:e,request:r,response:i,options:s}){this.entry=e,this.request=tB(r),this.response=XZe(i),this.options=s,this.policy=new JZe(this.request,this.response,KZe),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 JZe(tB(e),Wyr,KZe).storable()}satisfies(e){let r=tB(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let i=new YZe(this.request),s=new YZe(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?$yr.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=tB(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=tB(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let i=tB(e),s=XZe(r);return!this.policy.revalidatedPolicy(i,s).modified}};ZZe.exports=rhe});var tet=p((iti,eet)=>{var she=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"}};eet.exports={NotCachedError:she}});var ohe=p((sti,ret)=>{"use strict";var Jyr=$E(),nhe=class extends Jyr{#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)}};ret.exports=nhe});var set=p((nti,iet)=>{var{URL:Yyr,format:Kyr}=require("url"),Xyr={auth:!1,fragment:!1,search:!0,unicode:!1},Zyr=t=>{let e=new Yyr(t.url);return`make-fetch-happen:request-cache:${Kyr(e,Xyr)}`};iet.exports=Zyr});var net=p((oti,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",
|
|||
|
|
`).forEach(r=>{r.match(G0r)||r.match(H0r)||(e+=r)}),Buffer.from(e,"base64")}function z0r(t,e="CERTIFICATE"){let i=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...i,`-----END ${e}-----`].join(`
|
|||
|
|
`).concat(`
|
|||
|
|
`)}});var rG=p(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.SHA2_HASH_ALGOS=ng.RSA_SIGNATURE_ALGOS=ng.ECDSA_SIGNATURE_ALGOS=void 0;ng.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"};ng.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"};ng.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 $he=p(iG=>{"use strict";Object.defineProperty(iG,"__esModule",{value:!0});iG.RFC3161TimestampVerificationError=void 0;var Vhe=class extends Error{};iG.RFC3161TimestampVerificationError=Vhe});var ntt=p(qh=>{"use strict";var V0r=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]})),$0r=qh&&qh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W0r=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"&&V0r(r,e,i[s]);return $0r(r,e),r}})();Object.defineProperty(qh,"__esModule",{value:!0});qh.TSTInfo=void 0;var stt=W0r(cB()),J0r=rG(),Y0r=$he(),Whe=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 J0r.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=stt.digest(this.messageImprintHashAlgorithm,e);if(!stt.bufferEqual(r,this.messageImprintHashedMessage))throw new Y0r.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};qh.TSTInfo=Whe});var att=p(Gh=>{"use strict";var K0r=Gh&&Gh.__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]})),X0r=Gh&&Gh.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z0r=Gh&&Gh.__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"&&K0r(r,e,i[s]);return X0r(r,e),r}})();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.RFC3161Timestamp=void 0;var ebr=Z8(),Jhe=Z0r(cB()),ott=rG(),Q2=$he(),tbr=ntt(),rbr="1.2.840.113549.1.7.2",ibr="1.2.840.113549.1.9.16.1.4",sbr="1.2.840.113549.1.9.4",Yhe=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 ott.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();r
|
|||
|
|
|
|||
|
|
`,Ewr=/\u2014 (\S+) (\S+)\n/g;function bwr(t,e){let r=t.inclusionProof,i=Ide.fromString(r.checkpoint.envelope),s=AG.fromString(i.note);if(!wwr(i,e))throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}function wwr(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(i=>{let s=e.find(n=>Ptt.crypto.bufferEqual(n.logID.subarray(0,4),i.keyHint)&&n.baseURL.match(i.name));return s?Ptt.crypto.verify(r,s.publicKey,i.signature):!1})}var Ide=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Cde))throw new U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Cde),i=e.slice(0,r+1),n=e.slice(r+Cde.length).matchAll(Ewr),o=Array.from(n,a=>{let[,c,u]=a,l=Buffer.from(u,"base64");if(l.length<5)throw new U2.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 U2.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(i,o)}},AG=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 U2.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)}};q2.LogCheckpoint=AG});var ktt=p(xde=>{"use strict";Object.defineProperty(xde,"__esModule",{value:!0});xde.verifyMerkleInclusion=Swr;var vde=Dl(),Sde=$n(),Cwr=Buffer.from([0]),Iwr=Buffer.from([1]);function Swr(t,e){let r=t.inclusionProof,i=BigInt(r.logIndex),s=BigInt(e.logSize);if(i<0n||i>=s)throw new Sde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${i}`});let{inner:n,border:o}=Bwr(i,s);if(r.hashes.length!==n+o)throw new Sde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),u=Nwr(t.canonicalizedBody),l=xwr(vwr(u,a,i),c);if(!vde.crypto.bufferEqual(l,e.logHash))throw new Sde.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function Bwr(t,e){let r=_wr(t,e),i=Rwr(t>>BigInt(r));return{inner:r,border:i}}function vwr(t,e,r){return e.reduce((i,s,n)=>r>>BigInt(n)&BigInt(1)?Bde(s,i):Bde(i,s),t)}function xwr(t,e){return e.reduce((r,i)=>Bde(i,r),t)}function _wr(t,e){return Twr(t^e-BigInt(1))}function Rwr(t){return t.toString(2).split("1").length-1}function Twr(t){return t===0n?0:t.toString(2).length}function Bde(t,e){return vde.crypto.digest("sha256",Iwr,t,e)}function Nwr(t){return vde.crypto.digest("sha256",Cwr,t)}});var Mtt=p(_de=>{"use strict";Object.defineProperty(_de,"__esModule",{value:!0});_de.verifyTLogSET=Pwr;var Ltt=Dl(),Dwr=$n(),Owr=fB();function Pwr(t,e){if(!(0,Owr.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let n=Qwr(t),o=Buffer.from(Ltt.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return Ltt.crypto.verify(o,s.publicKey,a)}))throw new Dwr.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function Qwr(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 Utt=p(gG=>{"use strict";Object.defineProperty(gG,"__esModule",{value:!0});gG.verifyTLogBody=Uwr;gG.verifyTLogInclusion=qwr;var Ftt=Xle(),Nde=$n(),Rde=Ntt(),Tde=Dtt(),kwr=Ott(),Lwr=Qtt(),Mwr=ktt(),Fwr=Mtt();function Uwr(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 Nde.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${i}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(i==Rde.DSSE_API_VERSION_V1)return(0,Rde.verifyDSSETLogBody)(s,e);{let n=Ftt.Entry.fromJSON(s);return(0,Rde.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,kwr.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(i==Tde.HASHEDREKORD_API_VERSION_V1)return(0,Tde.verifyHashedRekordTLogBody)(s,e);{let n=Ftt.Entry.fromJSON(s);return(0,Tde.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new Nde.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function qwr(t,e){let r=!1;if(Gwr(t)&&((0,Fwr.verifyTLogSET)(t,e),r=!0),Hwr(t)){let i=(0,Lwr.verifyCheckpoint)(t,e);(0,Mwr.verifyMerkleInclusion)(t,i),r=!0}if(!r)throw new Nde.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function Gwr(t){return t.inclusionPromise!==void 0}function Hwr(t){return t.inclusionProof!==void 0}});var Vtt=p(yG=>{"use strict";Object.defineProperty(yG,"__esModule",{value:!0});yG.Verifier=void 0;var jwr=require("util"),hB=$n(),qtt=Btt(),Gtt=xtt(),Htt=Ttt(),jtt=Utt(),Dde=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
|
|||
|
|
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 jCr(){Object.keys($G).forEach(function(t){delete $G[t]})}});var JG=p(Wh=>{"use strict";Wh.__esModule=!0;Wh.HandlebarsEnvironment=Kde;function Drt(t){return t&&t.__esModule?t:{default:t}}var N0=Mo(),zCr=yc(),Jde=Drt(zCr),VCr=zde(),$Cr=_rt(),WCr=$de(),WG=Drt(WCr),JCr=Wde(),YCr="4.7.9";Wh.VERSION=YCr;var KCr=8;Wh.COMPILER_REVISION=KCr;var XCr=7;Wh.LAST_COMPATIBLE_COMPILER_REVISION=XCr;var ZCr={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"};Wh.REVISION_CHANGES=ZCr;var Yde="[object Object]";function Kde(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},VCr.registerDefaultHelpers(this),$Cr.registerDefaultDecorators(this)}Kde.prototype={constructor:Kde,logger:WG.default,log:WG.default.log,registerHelper:function(e,r){if(N0.toString.call(e)===Yde){if(r)throw new Jde.default("Arg not supported with multiple helpers");N0.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(N0.toString.call(e)===Yde)N0.extend(this.partials,e);else{if(typeof r>"u")throw new Jde.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(N0.toString.call(e)===Yde){if(r)throw new Jde.default("Arg not supported with multiple decorators");N0.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){JCr.resetLoggedProperties()}};var eIr=WG.default.log;Wh.log=eIr;Wh.createFrame=N0.createFrame;Wh.logger=WG.default});var Prt=p((YG,Ort)=>{"use strict";YG.__esModule=!0;function Xde(t){this.string=t}Xde.prototype.toString=Xde.prototype.toHTML=function(){return""+this.string};YG.default=Xde;Ort.exports=YG.default});var Qrt=p(Zde=>{"use strict";Zde.__esModule=!0;Zde.wrapHelper=tIr;function tIr(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 qrt=p(fg=>{"use strict";fg.__esModule=!0;fg.checkRevision=aIr;fg.template=cIr;fg.wrapProgram=KG;fg.resolvePartial=uIr;fg.invokePartial=lIr;fg.noop=Frt;function rIr(t){return t&&t.__esModule?t:{default:t}}function iIr(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 sIr=Mo(),bB=iIr(sIr),nIr=yc(),Kp=rIr(nIr),Xp=JG(),krt=zde(),oIr=Qrt(),Lrt=Wde();function aIr(t){var e=t&&t[0]||1,r=Xp.COMPILER_REVISION;if(!(e>=Xp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Xp.COMPILER_REVISION))if(e<Xp.LAST_COMPATIBLE_COMPILER_REVISION){var i=Xp.REVISION_CHANGES[r],s=Xp.REVISION_CHANGES[e];throw new Kp.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 Kp.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 cIr(t,e){if(!e)throw new Kp.default("No environment passed to template");if(!t||!t.main)throw new Kp.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=bB.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 Kp.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 Kp.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)||Lrt.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:bB.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=KG(this,a,d,c,u,l,f):h||(h=this.programs[a]=KG(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=bB.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=fIr(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=Urt(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={};Mrt(a,e.helpers,s),Mrt(a,o.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=bB.extend({},e.decorators,o.decorators)),s.hooks={},s.protoAccessControl=Lrt.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;krt.moveHelperToHooks(s,"helperMissing",c),krt.moveHelperToHooks(s,"blockHelperMissing",c)}},n._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new Kp.default("must pass block params");if(t.useDepths&&!u)throw new Kp.default("must pass parent depths");return KG(s,o,t[o],a,0,c,u)},n}function KG(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=Urt(r,a,t,o,i,n),a.program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function uIr(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=XG(r.partials,t)):r.name==="@partial-block"?t=XG(r.data,"partial-block"):t=XG(r.partials,r.name),t}function lIr(t,e,r){var i=XG(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!==Frt&&(function(){r.data=Xp.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=Xp.createFrame(c.data),c.data["partial-block"]=i,n(a,c)},n.partials&&(r.partials=bB.extend({},r.partials,n.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Kp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function Frt(){return""}function XG(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function fIr(t,e){return(!e||!("root"in e))&&(e=e?Xp.createFrame(e):{},e.root=t),e}function Urt(t,e,r,i,s,n){if(t.decorator){var o={};e=t.decorator(e,o,r,i&&i[0],s,n,i),bB.extend(e,o)}return e}function Mrt(t,e,r){e&&Object.keys(e).forEach(function(i){var s=e[i];t[i]=hIr(s,r)})}function hIr(t,e){var r=e.lookupProperty;return oIr.wrapHelper(t,function(i){return i.lookupProperty=r,i})}});var epe=p((ZG,Grt)=>{"use strict";ZG.__esModule=!0;ZG.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 globalThi
|
|||
|
|
`+this.lexer.showPosition()+`
|
|||
|
|
Expecting `+Ne.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:Ne})}}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+S);switch(N[0]){case 1:o.push(S),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(N[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_[N[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,N[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_[N[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})();rH.default=CIr;Yrt.exports=rH.default});var oH=p((nH,eit)=>{"use strict";nH.__esModule=!0;function IIr(t){return t&&t.__esModule?t:{default:t}}var SIr=yc(),npe=IIr(SIr);function iH(){this.parents=[]}iH.prototype={constructor:iH,mutating:!1,acceptKey:function(e,r){var i=this.accept(e[r]);if(this.mutating){if(i&&!iH.prototype[i.type])throw new npe.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 npe.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){
|
|||
|
|
`])}),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 Q0(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 Q0?e:(e=xpe(e,this,r),new Q0(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=xpe(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(xpe(e[i],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};pH.default=Qit;kit.exports=pH.default});var Git=p((mH,qit)=>{"use strict";mH.__esModule=!0;function Uit(t){return t&&t.__esModule?t:{default:t}}var Mit=JG(),wSr=yc(),Rpe=Uit(wSr),CSr=Mo(),ISr=Lit(),Fit=Uit(ISr);function vB(t){this.value=t}function xB(){}xB.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=Mit.COMPILER_REVISION,r=Mit.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,i){return CSr.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 Rpe.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|||
|
|
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|||
|
|
`),this.decorators.push(`}
|
|||
|
|
`),this.decorators=this.decorators.merge()));var 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 Fit.default(this.options.srcName),this.decorators=new Fit.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.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|||
|
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|||
|
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|||
|
|
return parent[propertyName];
|
|||
|
|
}
|
|||
|
|
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(SSr(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")
|
|||
|
|
`,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 Yit=p((ysi,Jit)=>{var yH=zit().default,Wit=Vit();yH.PrintVisitor=Wit.PrintVisitor;yH.print=Wit.print;Jit.exports=yH;function $it(t,e){var r=require("fs"),i=r.readFileSync(e,"utf8");t.exports=yH.compile(i)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=$it,require.extensions[".hbs"]=$it)});var pst=k(require("fs"),1),mst=k(require("path"),1);var Hpe=k(require("os"),1);function Zh(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 ed(t,e,r){let i=new kH(t,e,r);process.stdout.write(i.toString()+Hpe.EOL)}function LH(t,e=""){ed(t,{},e)}var Gpe="::",kH=class{constructor(e,r,i){e||(e="missing.command"),this.command=e,this.properties=r,this.message=i}toString(){let e=Gpe+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}=${Dst(s)}`)}}return e+=`${Gpe}${Nst(this.message)}`,e}};function Nst(t){return Zh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function Dst(t){return Zh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var jpe=k(require("crypto"),1),I1=k(require("fs"),1),C1=k(require("os"),1);function S1(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!I1.existsSync(r))throw new Error(`Missing file at path: ${r}`);I1.appendFileSync(r,`${Zh(e)}${C1.EOL}`,{e
|
|||
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function MCe(t,e){if(process.env.GITHUB_OUTPUT||"")return S1("OUTPUT",MH(t,e));process.stdout.write(v9.EOL),ed("set-output",{name:t},Zh(e))}function xO(t){process.exitCode=B9.Failure,Ju(t)}function Xl(){return process.env.RUNNER_DEBUG==="1"}function T(t){ed("debug",{},t)}function Ju(t,e={}){ed("error",QH(e),t instanceof Error?t.toString():t)}function st(t,e={}){ed("warning",QH(e),t instanceof Error?t.toString():t)}function L(t){process.stdout.write(t+v9.EOL)}function Ayt(t){LH("group",t)}function gyt(){LH("endgroup")}function ti(t,e){return myt(this,void 0,void 0,function*(){Ayt(t);let r;try{r=yield e()}finally{gyt()}return r})}function Nc(t,e){if(process.env.GITHUB_STATE||"")return S1("STATE",MH(t,e));ed("save-state",{name:t},Zh(e))}function FCe(t){return process.env[`STATE_${t}`]||""}var BL=k(require("fs"),1),AX=k(require("os"),1),gX=k(require("path"),1);var W9=k(require("crypto"),1),yn=k(require("fs"),1);var dbt=k(V9(),1);var GO=k(require("os"),1),Yu=k(require("path"),1);var Pc=k(V9(),1),RSe=k(require("stream"),1),TSe=k(require("util"),1),J9=require("assert");var _Se=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())})},UO=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 _Se(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 _Se(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var ef=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())})},qO=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},NSe=process.platform==="win32",w_r=process.platform==="darwin",mbt="actions/tool-cache";function Qc(t,e,r,i){return ef(this,void 0,void 0,function*(){e=e||Yu.join(LSe(),W9.randomUUID()),yield gd(Yu.dirname(e)),T(`Downloading ${t}`),T(`Destination ${e}`);let s=3,n=$9("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=$9("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new UO(s,n,o).execute(()=>ef(this,void 0,void 0,function*(){return yield Abt(t,e||"",r,i)}),c=>!(c instanceof qO&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Abt(t,e,r,i){return ef(this,void 0,void 0,function*(){if(yn.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new ds(mbt,[],{allowRetries:!1});r&&(T("set auth"),i===void 0&&(i={}),i.authorization=r);let n=yield s.get(t,i);if(n.message.statusCode!==200){let l=new qO(n.message.statusCode);throw T(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),l}let o=TSe.promisify(RSe.pipeline),c=$9("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),u=!1;try{return yield o(c,yn.createWriteStream(e)),T("download complete"),u=!0,e}finally{if(!u){T("download failed");try{yield SO(e)}catch(l){T(`Failed to delete '${e}'. ${l.message}`)}}}})}function DSe(t,e){return ef(this,arguments,void 0,function*(r,i,s="xz"){if(!r)throw new Error("param
|
|||
|
|
`),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 ex(n));return i.searchPaths.push(...Z9(i.patterns)),i})}static stat(e,r,i){return oV(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield sw.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){T(`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 sw.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let n=yield sw.promises.realpath(e.path);for(;i.length>=e.level;)i.pop();if(i.some(o=>o===n)){T(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}i.push(n)}return s})}};var Kbt=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 uBe(t,e){return Kbt(this,void 0,void 0,function*(){return yield $O.create(t,e)})}var uP=k(require("crypto"),1),aw=k(require("fs"),1),iy=k(require("path"),1),exe=k(Xve(),1),txe=k(require("util"),1);var ux;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ux||(ux={}));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 aP=2,cP=5e3,vV=5e3,xV=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Zve=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,lx="cache.tar",_V="manifest.txt",NRr=10*Math.pow(1024,3);var ow=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())})},WIt=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)}},JIt="1.0";function fx(){return ow(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=iy.join(i,"actions","temp")}let r=iy.join(e,uP.randomUUID());return yield gd(r),r})}function rf(t){return aw.statSync(t).size}function RV(t){return ow(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 uBe(t.join(`
|
|||
|
|
`),{implicitDescendants:!1});try{for(var u=!0,l=WIt(c.globGenerator()),f;f=yield l.next(),e=f.done,!e;u=!0){s=f.value,u=!1;let d=iy.relative(a,s).replace(new RegExp(`\\${iy.sep}`,"g"),"/");T(`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 hx(t){return ow(this,void 0,void 0,function*(){return txe.promisify(aw.unlink)(t)})}function rxe(t){return ow(this,arguments,void 0,function*(e,r=[]){let i="";r.push("--version"),T(`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){T(s.message)}return i=i.trim(),T(i),i})}function dx(){return ow(this,void 0,void 0,function*(){let t=yield rxe("zstd",["--quiet"]),e=exe.clean(t);return T(`zstd version: ${e}`),t===""?no.Gzip:no.ZstdWithoutLong})}function Tm(t){return t===no.Gzip?ux.Gzip:ux.Zstd}function ixe(){return ow(this,void 0,void 0,function*(){return aw.existsSync(xV)?xV:(yield rxe("tar")).toLowerCase().includes("gnu tar")?Js("tar"):""})}function TV(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function cw(t,e,r=!1){let i=t.slice();return e&&i.push(e),process.platform==="win32"&&!r&&i.push("windows-only"),i.push(JIt),uP.createHash("sha256").update(i.join("|")).digest("hex")}function sxe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var kw=k(require("fs"),1),p2e=require("url");var sf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var nxe=require("node:os"),oxe=k(require("node:util"),1),axe=k(require("node:process"),1);function cxe(t,...e){axe.default.stderr.write(`${oxe.default.format(t,...e)}${nxe.EOL}`)}var uxe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,fxe,NV=[],DV=[],fP=[];uxe&&OV(uxe);var hxe=Object.assign(t=>dxe(t),{enable:OV,enabled:PV,disable:YIt,log:cxe});function OV(t){fxe=t,NV=[],DV=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?DV.push(r.substring(1)):NV.push(r);for(let r of fP)r.enabled=PV(r.namespace)}function PV(t){if(t.endsWith("*"))return!0;for(let e of DV)if(lxe(t,e))return!1;for(let e of NV)if(lxe(t,e))return!0;return!1}function lxe(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 YIt(){let t=fxe||"";return OV(""),t}function dxe(t){let e=Object.assign(r,{enabled:PV(t),destroy:KIt,log:hxe.log,namespace:t,extend:XIt});function r(...i){e.enabled&&(i.length>0&&(i[0]=`${t} ${i[0]}`),e.log(...i))}return fP.push(e),e}function KIt(){let t=fP.indexOf(this);return t>=0?(fP.splice(t,1),!0):!1}function XIt(t){let e=dxe(`${this.namespace}:${t}`);return e.log=this.log,e}var uw=hxe;var QV=["verbose","info","warning","error"],pxe={verbose:400,info:300,warning:200,error:100};function mxe(t,e){e.log=(...r)=>{t.log(...r)}}function Axe(t){return QV.includes(t)}function hP(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,i,s=uw(t.namespace);s.log=(...l)=>{uw.log(...l)};function n(l){if(l&&!Axe(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);uw.enable(f.join(","))}r&&(Axe(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&&pxe[l.level]<=pxe[i])}function a(l,f){let h=Object.assign(l.extend(f),{level:f});if(mxe(l,h),o(h)){let d=uw.disable();uw.enab
|
|||
|
|
${iSt.sanitize({...this,request:{...this.request,agent:i},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function AP(t){return t instanceof oo?!0:ny(t)&&t.name==="RestError"}function Wo(t,e){return Buffer.from(t,e)}var gP=k(require("node:http"),1),yP=k(require("node:https"),1),UV=k(require("node:zlib"),1),Cxe=require("node:stream");var Mc=px("ts-http-runtime");var sSt={};function mx(t){return t&&typeof t.pipe=="function"}function wxe(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 Ixe(t){return t&&typeof t.byteLength=="number"}var EP=class extends Cxe.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}},qV=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,i;if(e.abortSignal){if(e.abortSignal.aborted)throw new sf("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 Zu;Mc.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=cSt(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let m=e.onUploadProgress,A=new EP(m);A.on("error",y=>{Mc.error("Error in upload progress",y)}),mx(a)?a.pipe(A):A.end(a),a=A}let u=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let l=nSt(u),h={status:u.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return u.resume(),h;c=o?oSt(u,l):u;let d=e.onDownloadProgress;if(d){let m=new EP(d);m.on("error",A=>{Mc.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 aSt(c),h}finally{if(e.abortSignal&&i){let u=Promise.resolve();mx(a)&&(u=wxe(a));let l=Promise.resolve();mx(c)&&(l=wxe(c)),Promise.all([u,l]).then(()=>{i&&e.abortSignal?.removeEventListener("abort",i)}).catch(f=>{Mc.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?gP.default.request(a,c):yP.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 sf("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(f),u(f)}),i&&mx(i)?i.pipe(l):i?typeof i=="string"||Buffer.isBuffer(i)?l.end(i):Ixe(i)?l.end(ArrayBuffer.isView(i)?Buffer.from(i.buffer):Buffer.from(i)):(Mc.error("Unrecognized body type",i),u(new oo("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let i=e.disableKeepAlive;if(r)return i?gP.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new gP.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!e.tlsSettings)return yP.default.globalAgent;let s=e.tlsSettings??sSt,n=this.cachedHttpsAgents.get(s);return n&&n.options.keepAlive===!i||(Mc.info("No cached TLS Agent exist, creating a new Agent"),n=new yP.default.Agent({keepAlive:!i,...s}),this.cachedHttpsAgents.set(s,n)),n}}};function nSt(t){let e=Ma();for(let r of Object.keys(t.headers)){let i=t.headers[r];Array.isArray(i)?i.length>0&&e.set(
|
|||
|
|
`;return e}function UBt(t){return t instanceof Uint8Array?t.byteLength:GP(t)?t.size===-1?void 0:t.size:void 0}function qBt(t){let e=0;for(let r of t){let i=UBt(r);if(i===void 0)return;e+=i}return e}async function GBt(t,e,r){let i=[Wo(`--${r}`,"utf-8"),...e.flatMap(n=>[Wo(`\r
|
|||
|
|
`,"utf-8"),Wo(FBt(n.headers),"utf-8"),Wo(`\r
|
|||
|
|
`,"utf-8"),n.body,Wo(`\r
|
|||
|
|
--${r}`,"utf-8")]),Wo(`--\r
|
|||
|
|
\r
|
|||
|
|
`,"utf-8")],s=qBt(i);s&&t.headers.set("Content-Length",s),t.body=await B_e(i)}var Ex="multipartPolicy",HBt=70,jBt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zBt(t){if(t.length>HBt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!jBt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function jP(){return{name:Ex,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?zBt(r):r=MBt(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await GBt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function zP(){return mP()}var v_e=hP({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),p1r=v_e.logger;function af(t){return v_e.createClientLogger(t)}var cf=af("core-rest-pipeline");function a$(t={}){return wP({logger:cf.info,...t})}var c$=CP;function u$(t={}){return IP(t)}var VP=k(require("node:os"),1),$P=k(require("node:process"),1);function x_e(){return"User-Agent"}async function __e(t){if($P.default&&$P.default.versions){let e=`${VP.default.type()} ${VP.default.release()}; ${VP.default.arch()}`,r=$P.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 WP="1.22.2";function ZBt(t){let e=[];for(let[r,i]of t){let s=i?`${r}/${i}`:r;e.push(s)}return e.join(" ")}function R_e(){return x_e()}async function JP(t){let e=new Map;e.set("core-rest-pipeline",WP),await __e(e);let r=ZBt(e);return t?`${t} ${r}`:r}var T_e=R_e(),N_e="userAgentPolicy";function l$(t={}){let e=JP(t.userAgentPrefix);return{name:N_e,async sendRequest(r,i){return r.headers.has(T_e)||r.headers.set(T_e,await e),i(r)}}}var Ga=class extends Error{constructor(e){super(e),this.name="AbortError"}};function f$(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 svt="The delay was aborted.";function bx(t,e){let r,{abortSignal:i,abortErrorMsg:s}=e??{};return f$(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:i,abortErrorMsg:s??svt})}function Dm(t){if(ny(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 D_e(t){return ny(t)}function Aw(){return sy()}var Kt=cy;var O_e=Symbol("rawContent");function d$(t){return typeof t[O_e]=="function"}function P_e(t){return d$(t)?t[O_e]():t}var YP=Ex;function p$(){let t=jP();return{name:YP,sendRequest:async(e,r)=>{if(e.multipartBody)for(let i of e.multipartBody.parts)d$(i.body)&&(i.body=P_e(i.body));return t.sendRequest(e,r)}}}var m$=SP;function A$(){return BP()}function g$(t={}){return _P(t)}function y$(){return RP()}function Om(t){return r$(t)}function E$(t,e){return FP(t,e)}var Q_e="setClientRequestIdPolicy";function b$(t="x-ms-client-request-id"){return{name:Q_e,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function w$(t){return UP(t)}function C$(t){return qP(t)}var gw={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function k_e(t={}){let e=new I$(t.parentContext);return t.span&&(e=e.setValue(gw.span,t.span)),t.namespace&&(e=e.setValue(gw.namespace,t.namespace)),e}var I$=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
|
|||
|
|
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!_xt(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=Ixt(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=ERe(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=ERe(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=yRe(t,n);continue}else if(t[n+1]==="?"){if(n=gRe(t,++n),n.err)return n}else break;else if(t[n]==="&"){let f=vxt(t,n);if(f==-1)return Ci("InvalidChar","char '&' is not expected.",ao(t,n));n=f}else if(s===!0&&!ARe(t[n]))return Ci("InvalidXml","Extra text at the end",ao(t,n));t[n]==="<"&&n--}}else{if(ARe(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 ARe(t){return t===" "||t===" "||t===`
|
|||
|
|
`||t==="\r"}function gRe(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 yRe(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 wxt='"',Cxt="'";function Ixt(t,e){let r="",i="",s=!1;for(;e<t.length;e++){if(t[e]===wxt||t[e]===Cxt)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 Sxt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ERe(t,e){let r=aQ(t,Sxt),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.",Dx(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ci("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dx(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ci("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dx(r[s]));let n=r[s][2];if(!xxt(n))return Ci("InvalidAttr","Attribute '"+n+"' is an invalid name.",Dx(r[s]));if(!Object.prototype.hasOwnProperty.call(i,n))i[n]=1;else return Ci("InvalidAttr","Attribute '"+n+"' is repeated.",Dx(r[s]))}return!0}function Bxt(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 vxt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Bxt(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 xxt(t){return bw(t)}function _xt(t){return bw(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 Dx(t){return t.startIndex+t[1].length}var bRe=t=>Nx.includes(t)?"__"+t:t,Rxt={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:bRe};function Txt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Nx.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(cQ.some(i=>r===i.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function wRe(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}:wRe(!0)}v
|
|||
|
|
`);let e=new Ko("!xml"),r=e,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Px(this.options.processEntities);for(let n=0;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="/"){let a=py(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=H$(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=j$(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=py(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=py(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=j$(t,n,this.options.removeNSPrefix);if(!a){let C=t.substring(Math.max(0,n-50),Math.min(t.length,n+50));throw new Error(`readTagExp returned undefined at position ${n}. Context: "${C}"`)}let c=a.tagName,u=a.rawTagName,l=a.tagExp,f=a.attrExpPresent,h=a.closeIndex;if({tagName:c,tagExp:l}=H$(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=qxt(u),c!==e.tagname&&this.matcher.push(c,{},g),c!==l&&f&&(A=this.buildAttributesMap(l,this.matcher,c),A&&(y=Uxt(A,this.options))),c!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let E=n;if(this.isCurrentNodeStopNode){let C="";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,C=D.tagContent}let S=new Ko(c);A&&(S[":@"]=A),S.add(this.options.textNodeName,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,S,this.readonlyMatcher,E)}else{if(m){({tagName:c,tagExp:l}=H$(this.options.transformTagName,c,l,this.options));let C=new Ko(c);A&&(C[":@"]=A),this.addChild(r,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(c)!==-1){let C=new Ko(c);A&&(C[":@"]=A),this.addChild(r,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=a.closeIndex;continue}else{let C=new Ko(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.
|
|||
|
|
`;function J$(t,e){let r="";e.format&&e.indentBy.length>0&&(r=s_t);let i=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let n=0;n<e.stopNodes.length;n++){let o=e.stopNodes[n];typeof o=="string"?i.push(new za(o)):o instanceof za&&i.push(o)}let s=new ff;return xRe(t,e,r,s,i)}function xRe(t,e,r,i,s){let n="",o=!1;if(e.maxNestedTags&&i.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=W$(a,e),a}return""}for(let a=0;a<t.length;a++){let c=t[a],u=RRe(c);if(u===void 0)continue;let l=n_t(c[":@"],e);i.push(u,l);let f=a_t(i,s);if(u===e.textNodeName){let y=c[u];f||(y=e.tagValueProcessor(u,y),y=W$(y,e)),o&&(n+=r),n+=y,o=!1,i.pop();continue}else if(u===e.cdataPropName){o&&(n+=r),n+=`<![CDATA[${c[u][0][e.textNodeName]}]]>`,o=!1,i.pop();continue}else if(u===e.commentPropName){n+=r+`<!--${c[u][0][e.textNodeName]}-->`,o=!0,i.pop();continue}else if(u[0]==="?"){let y=vRe(c[":@"],e,f),g=u==="?xml"?"":r,E=c[u][0][e.textNodeName];E=E.length!==0?" "+E:"",n+=g+`<${u}${E}${y}?>`,o=!0,i.pop();continue}let h=r;h!==""&&(h+=e.indentBy);let d=vRe(c[":@"],e,f),m=r+`<${u}${d}`,A;f?A=_Re(c[u],e):A=xRe(c[u],e,h,i,s),e.unpairedTags.indexOf(u)!==-1?e.suppressUnpairedNode?n+=m+">":n+=m+"/>":(!A||A.length===0)&&e.suppressEmptyNode?n+=m+"/>":A&&A.endsWith(">")?n+=m+`>${A}${r}</${u}>`:(n+=m+">",A&&r!==""&&(A.includes("/>")||A.includes("</"))?n+=r+e.indentBy+A+r:n+=A,n+=`</${u}>`),o=!0,i.pop()}return n}function n_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]=t[s],i=!0}return i?r:null}function _Re(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=RRe(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=o_t(s[":@"],e),a=_Re(s[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function o_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)}="${s}"`}return r}function RRe(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 vRe(t,e,r){let i="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n;r?n=t[s]:(n=e.attributeValueProcessor(s,t[s]),n=W$(n,e)),n===!0&&e.suppressBooleanAttributes?i+=` ${s.substr(e.attributeNamePrefix.length)}`:i+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return i}function a_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 W$(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 Y$(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 c_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};function Zo(t){if(this.options=Object.assign({},c_t,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.st
|
|||
|
|
`,this.newLine=`
|
|||
|
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Zo.prototype.build=function(t){if(this.options.preserveOrder)return J$(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ff;return this.j2x(t,0,e).val}};Zo.prototype.j2x=function(t,e,r){let i="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let n=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,n))i+=this.buildAttrPairStr(c,""+t[a],o);else if(!c)if(a===this.options.textNodeName){let u=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(u)}else{r.push(a);let u=this.checkStopNode(r);if(r.pop(),u){let l=""+t[a];l===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+l+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let c=t[a].length,u="",l="";for(let f=0;f<c;f++){let h=t[a][f];if(!(typeof h>"u"))if(h===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){r.push(a);let d=this.j2x(h,e+1,r);r.pop(),u+=d.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(l+=d.attrStr)}else u+=this.processTextOrObjNode(h,a,e,r);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(a,h);d=this.replaceEntitiesValue(d),u+=d}else{r.push(a);let d=this.checkStopNode(r);if(r.pop(),d){let m=""+h;m===""?u+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:u+=this.indentate(e)+"<"+a+">"+m+"</"+a+this.tagEndChar}else u+=this.buildTextValNode(h,a,"",e,r)}}this.options.oneListGroup&&(u=this.buildObjectNode(u,a,l,e)),s+=u}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let c=Object.keys(t[a]),u=c.length;for(let l=0;l<u;l++)i+=this.buildAttrPairStr(c[l],""+t[a][c[l]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:i,val:s}};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+'="'+e+'"'};function u_t(t,e,r,i){let s=this.extractAttributes(t);if(i.push(e,s),this.checkStopNode(i)){let a=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return i.pop(),this.buildObjectNode(a,e,c,r)}let o=this.j2x(t,r+1,i);return i.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,i):this.buildObjectNode(o.val,e,o.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]=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]=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)
|
|||
|
|
`)+`
|
|||
|
|
`+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)=>wQ(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=yQ(e.url)||"/",i="";i+=`/${this.factory.accountName}${r}`;let s=EQ(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 Ay{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Fx(e,r,this)}computeHMACSHA256(e){return(0,LRe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Xi=af("storage-common");var Gc;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Gc||(Gc={}));var Lm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gc.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},y_t=new Ga("The operation was aborted."),Ux=class extends hf{retryOptions;constructor(e,r,i=Lm){super(e,r),this.retryOptions={retryPolicyType:i.retryPolicyType?i.retryPolicyType:Lm.retryPolicyType,maxTries:i.maxTries&&i.maxTries>=1?Math.floor(i.maxTries):Lm.maxTries,tryTimeoutInMs:i.tryTimeoutInMs&&i.tryTimeoutInMs>=0?i.tryTimeoutInMs:Lm.tryTimeoutInMs,retryDelayInMs:i.retryDelayInMs&&i.retryDelayInMs>=0?Math.min(i.retryDelayInMs,i.maxRetryDelayInMs?i.maxRetryDelayInMs:Lm.maxRetryDelayInMs):Lm.retryDelayInMs,maxRetryDelayInMs:i.maxRetryDelayInMs&&i.maxRetryDelayInMs>=0?i.maxRetryDelayInMs:Lm.maxRetryDelayInMs,secondaryHost:i.secondaryHost?i.secondaryHost:Lm.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=gQ(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=km(s.url,Sd.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 Gc.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Gc.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Xi.info(`RetryPolicy: Delay for ${s}ms`),bQ(s,i,y_t)}};var qx=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ux(e,r,this.retryOptions)}};var E_t="storageBrowserPolicy";function MRe(){return{name:E_t,async sendRequest(t,e){return Kt||((t.method==="GET"||t.method==="HEAD")&&(t.url=km(t.url,Sd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(rt.COOKIE),t.headers.delete(rt.CONTENT_LENGTH)),e(t)}}}var b_t="StorageCorrectContentLengthPolicy";function FRe(){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:b_t,async send
|
|||
|
|
`)+`
|
|||
|
|
`+i(n)+s(n),a=(0,qRe.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)=>wQ(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=yQ(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=EQ(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:S_t,async sendRequest(n,o){return e(n),o(n)}}}var B_t="storageRequestFailureDetailsParserPolicy";function GRe(){return{name:B_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 HRe=require("node:crypto"),CQ=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,HRe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var IQ="12.31.0",SQ="2026-02-06";var BQ="https://storage.azure.com/.default",Bd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var el="",rW="*",v_t=1*1024*1024;var x_t=4*v_t;var jRe="AES256",zRe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",VRe=["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"],$Re=["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"],WRe="BlobUsesCustomerSpecifiedEncryption",JRe="BlobDoesNotUseCustomerSpecifiedEncryption",YRe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function vd(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 Gx=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 Mr);let r=new Gx([],e);return r._credential=t,r}function __t(t){let e=[R_t,KRe,T_t,N_t,D_t,O_t,Q_t];if(t.factories.length){let r=t.factories.filter(i=>!e.some(s=>s(i)));if(r.length){let i=r.some(s=>P_t(s));return{wrappedPolicies:F$(r),afterRetry:i}}}}function iW(t)
|
|||
|
|
`),n=e.computeHMACSHA256(s);return{sasQueryParameters:new nl(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 RTt(t,e){if(t=By(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=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sl(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 nl(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 TTt(t,e){if(t=By(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=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?sl(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 nl(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 NTt(t,e){if(t=By(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=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(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?sl(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 nl(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 DTt(t,e){if(t=By(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=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(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?sl(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 nl(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 OTt(t,e){if(t=By(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=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(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?sl(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 nl(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 PTt(t,e){if(t=By(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=Rf.parse(t.permissions.toString()).toString():s=Tf.parse(t.permissions.toString()).toString());let n=[s||"",t.startsOn?Xt(t.startsOn,!1):"",t.expiresOn?Xt(t.expiresOn,!1):"",Sy(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?sl(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 nl(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 Sy(t,e,r){let i=[`/blob/${t}/${e}`];return r&&i.push(`/${r}`),i.join("")}function By(t){let e=t.version?t.version:SQ;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 e_=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=Aw()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==el||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==el||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=>Fe(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!==el||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==el||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=Fe(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!==el||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==el||e.conditions?.tagConditions))throw new RangeError("The IfMatch,
|
|||
|
|
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"}};Pw.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ry=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"}};Ry.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var l_=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var jNt=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())})},$7=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 e2e(t,e,r){return jNt(this,void 0,void 0,function*(){var i;let s=new ol(t),n=s.getBlockBlobClient(),o=new $7((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(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new Rk(`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 r2e=k(require("buffer"),1),Nf=k(require("fs"),1),i2e=k(require("stream"),1),s2e=k(require("util"),1);var Tk=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 Nk(t){return t?t>=200&&t<300:!1}function zNt(t){return t?t>=500:!0}function VNt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function $Nt(t){return Tk(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function t2e(t,e,r){return Tk(this,arguments,void 0,function*(i,s,n,o=aP,a=cP,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),!zNt(h)))return f;if(h&&(d=VNt(h),u=`Cache service responded with ${h}`),T(`${i} - Attempt ${l} of ${o} failed with error: ${u}`),!d){T(`${i} - Error is not retryable`);break}yield $Nt(a),l++}throw Error(`${i} failed: ${u}`)})}function f_(t,e){return Tk(this,arguments,void 0,function*(r,i,s=aP,n=cP){return yield t2e(r,i,o=>o.statusCode,s,n,o=>{if(o instanceof Jl)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Qw(t,e){return Tk(this,arguments,void 0,function*(r,i,s=aP,n=cP){return yield t2e(r,i,o=>o.message.statusCode,s,n)})}var $c=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 WNt(t,e){return $c(this,void 0,void 0,function*(){yield s2e.promisify(i2e.pipeline)(t.message,e)})}var Dk=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
|
|||
|
|
Other caches with similar key:`);for(let a of n?.artifactCaches||[])T(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function K7(t,e,r){return ta(this,void 0,void 0,function*(){let i=new p2e.URL(t),s=c2e(r);i.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield o2e(t,e,s):s.concurrentBlobDownloads?yield n2e(t,e,s):yield Ok(t,e):yield Ok(t,e)})}function A2e(t,e,r){return ta(this,void 0,void 0,function*(){let i=Y7(),s=cw(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:s,cacheSize:r?.cacheSize};return yield f_("reserveCache",()=>ta(this,void 0,void 0,function*(){return i.postJson(d_("caches"),n)}))})}function d2e(t,e){return`bytes ${t}-${e}/*`}function r2t(t,e,r,i,s){return ta(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-i+1} bytes at offset ${i} with content range: ${d2e(i,s)}`);let n={"Content-Type":"application/octet-stream","Content-Range":d2e(i,s)},o=yield Qw(`uploadChunk (start: ${i}, end: ${s})`,()=>ta(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!Nk(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function i2t(t,e,r,i){return ta(this,void 0,void 0,function*(){let s=rf(r),n=d_(`caches/${e.toString()}`),o=kw.openSync(r,"r"),a=W7(i),c=TV("uploadConcurrency",a.uploadConcurrency),u=TV("uploadChunkSize",a.uploadChunkSize),l=[...new Array(c).keys()];T("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 r2t(t,n,()=>kw.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{kw.closeSync(o)}})}function s2t(t,e,r){return ta(this,void 0,void 0,function*(){let i={size:r};return yield f_("commitCache",()=>ta(this,void 0,void 0,function*(){return t.postJson(d_(`caches/${e.toString()}`),i)}))})}function X7(t,e,r,i){return ta(this,void 0,void 0,function*(){if(W7(i).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield e2e(r,e,i)}else{let n=Y7();T("Upload cache"),yield i2t(n,t,e,i),T("Commiting cache");let o=rf(e);L(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield s2t(n,t,o);if(!Nk(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);L("Cache saved successfully")}})}var l1e=k(i1e(),1),vi=k(Bi(),1),Wa=k(Bi(),1),Py=k(Bi(),1),Qy=k(Bi(),1),ky=k(Bi(),1);var VK=k(Bi(),1),$K=k(Bi(),1),a1e=k(Bi(),1),c1e=k(Bi(),1),u1e=k(Bi(),1);var HK=k(Bi(),1),jK=k(Bi(),1),s1e=k(Bi(),1),n1e=k(Bi(),1),o1e=k(Bi(),1),zK=class extends o1e.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,n1e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,s1e.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?jK.UnknownFieldHandler.onRead:u)(this.typeName,n,a,c,l)}}return n}internalBinaryWrite(e,r,i){e.scope!==""&&r.tag(1,HK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,HK.WireType.Varint).int64(e.permission);let s=i.writeUnknownFields;return s!==!1&&(s==!0?jK.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},bL=new zK;var WK=class extends u1e.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:()=>bL}])}create(e){let r={repositoryId:"0",scope:[]};
|
|||
|
|
`));let i=yield uX(r,"create");yield lX(i,t)})}var Zw=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())})},ul=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Xw=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},SL=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function p1e(t){if(!t||t.length===0)throw new ul("Path Validation Error: At least one directory or file path is required")}function dX(t){if(t.length>512)throw new ul(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ul(`Key Validation Error: ${t} cannot contain commas.`)}function pX(){return h_()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function m1e(t,e,r,i){return Zw(this,arguments,void 0,function*(s,n,o,a,c=!1){let u=h_();return T(`Cache service version: ${u}`),p1e(s),u==="v2"?yield EDt(s,n,o,a,c):yield yDt(s,n,o,a,c)})}function yDt(t,e,r,i){return Zw(this,arguments,void 0,function*(s,n,o,a,c=!1){o=o||[];let u=[n,...o];if(T("Resolved Keys:"),T(JSON.stringify(u)),u.length>10)throw new ul("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)dX(h);let l=yield dx(),f="";try{let h=yield m2e(u,s,{compressionMethod:l,enableCrossOsArchive:c});if(!h?.archiveLocation)return;if(a?.lookupOnly)return L("Lookup only - skipping download"),h.cacheKey;f=R_.join(yield fx(),Tm(l)),T(`Archive Path: ${f}`),yield K7(h.archiveLocation,f,a),Xl()&&(yield __(f,l));let d=rf(f);return L(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),yield fX(f,l),L("Cache restored successfully"),h.cacheKey}catch(h){let d=h;if(d.name===ul.name)throw h;d instanceof Jl&&typeof d.statusCode=="number"&&d.statusCode>=500?Ju(`Failed to restore: ${h.message}`):st(`Failed to restore: ${h.message}`)}finally{try{yield hx(f)}catch(h){T(`Failed to delete archive: ${h}`)}}})}function EDt(t,e,r,i){return Zw(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(T("Resolved Keys:"),T(JSON.stringify(u)),u.length>10)throw new ul("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of u)dX(f);let l="";try{let f=cX(),h=yield dx(),d={key:n,restoreKeys:o,version:cw(s,h,c)},m=yield f.GetCacheEntryDownloadURL(d);if(!m.ok){T(`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=R_.join(yield fx(),Tm(h)),T(`Archive path: ${l}`),T(`Starting download of archive to: ${l}`),yield K7(m.signedDownloadUrl,l,a);let y=rf(l);return L(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Xl()&&(yield __(l,h)),yield fX(l,h),L("Cache restored successfully"),m.matchedKey}catch(f){let h=f;if(h.name===ul.name)throw f;h instanceof Jl&&typeof h.statusCode=="number"&&h.statusCode>=500?Ju(`Failed to restore: ${f.message}`):st(`Failed to restore: ${f.message}`)}finally{try{l&&(yield hx(l))}catch(f){T(`Failed to delete archive: ${f}`)}}})}function mX(t,e,r){return Zw(this,arguments,void 0,function*(i,s,n,o=!1){let a=h_();return T(`Cache service version: ${a}`),p1e(i),dX(s),a==="v2"?yield wDt(i,s,n,o):yield bDt(i,s,n,o)})}function bDt(t,e,r){return Zw(this,arguments,void 0,function*(i,s,n,o=!1){var a,c,u,l,f;let h=yield dx(),d=-1,m=yield RV(i);if(T("Cache Paths:"),T(`${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 fx(),y=R_.join(A,Tm(h));T(`Archive Path: ${y}`);try{yie
|
|||
|
|
`,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:C,escape:S,quote:D,record_delimiter:q}=this.options,{bomSkipped:N,previousBuf:$,rawBuffer:O,escapeIsQuote:j}=this.state,M;if($===void 0)if(i===void 0){o();return}else M=i;else $!==void 0&&i===void 0?M=$:M=Buffer.concat([$,i]);if(N===!1)if(a===!1)this.state.bomSkipped=!0;else if(M.length<3){if(s===!1){this.state.previousBuf=M;return}}else{for(let Ne in iC)if(iC[Ne].compare(M,0,iC[Ne].length)===0){let he=iC[Ne].length;this.state.bufBytesStart+=he,M=M.slice(he);let Qe=jX({...this.original_options,encoding:Ne});for(let X in Qe)this.options[X]=Qe[X];({comment:C,escape:S,quote:D}=this.options);break}this.state.bomSkipped=!0}let Z=M.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(M,J)&&(q=this.options.record_delimiter);let Ne=M[J];if(d===!0&&O.append(Ne),(Ne===jQt||Ne===zQt)&&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(M,J,Ne)&&J+S.length<Z)if(j){if(this.__isQuote(M,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(M,J))if(this.state.quoting===!0){let X=M[J+D.length],Re=A&&this.__isCharTrimable(M,J+D.length),Ce=C!==null&&this.__compareBytes(C,M,J+D.length,X),_t=this.__isDelimiter(M,J+D.length,X),kt=q.length===0?this.__autoDiscoverRecordDelimiter(M,J+D.length):this.__isRecordDelimiter(X,M,J+D.length);if(S!==null&&this.__isEscape(M,J,Ne)&&this.__isQuote(M,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(iC).map(_t=>iC[_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(Ne,M,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(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,M,J,Ne)!==0){this.state.commenting=!0;continue}let Re=this.__isDelimiter(M,J,Ne);if(Re!==0){this.info.byt
|
|||
|
|
`,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 Ka=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],i=DOe(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(Tc(e),r)}static getList(e,r){let i=[];if(e=="")return i;let s=Ka(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=Tc(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 OOe.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 zX.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 zX.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=L_.default.resolve(e);return L_.default.resolve(r).startsWith(i.endsWith(L_.default.sep)?i:`${i}${L_.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==
|
|||
|
|
`+t.errors.map(e=>` - ${e.message}`).join(`
|
|||
|
|
`)}var Mkt=class extends Error{constructor(t,e,r){super(Lkt(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},Fkt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Ukt=["query","method","url"],yPe=/\/api\/v3\/?$/;function qkt(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(Ukt.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)=>Fkt.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 yPe.test(n)&&(s.url=n.replace(yPe,"/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 Mkt(s,a,o.data)}return o.data.data})}function rZ(t,e){let r=t.defaults(e);return Object.assign((s,n)=>qkt(r,s,n),{defaults:rZ.bind(null,r),endpoint:r.endpoint})}var PHr=rZ(G_,{headers:{"user-agent":`octokit-graphql.js/${kkt} ${Vm()}`},method:"POST",url:"/graphql"});function EPe(t){return rZ(t,{method:"POST",url:"/graphql"})}var iZ="(?:[a-zA-Z0-9_-]+)",bPe="\\.",wPe=new RegExp(`^${iZ}${bPe}${iZ}${bPe}${iZ}$`),Gkt=wPe.test.bind(wPe);async function Hkt(t){let e=Gkt(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 jkt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function zkt(t,e,r,i){let s=e.endpoint.merge(r,i);return s.headers.authorization=jkt(t),e(s)}var CPe=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(Hkt.bind(null,e),{hook:zkt.bind(null,e)})};var sZ="7.0.6";var IPe=()=>{},Vkt=console.warn.bind(console),$kt=console.error.bind(console);function Wkt(t={}){return typeof t.debug!="function"&&(t.debug=IPe),typeof t.info!="function"&&(t.info=IPe),typeof t.warn!="function"&&(t.warn=Vkt),typeof t.error!="function"&&(t.error=$kt),t}var SPe=`octokit-core.js/${sZ} ${Vm()}`,ZL=class{static VERSION=sZ;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 KOe.Collection,i={baseUrl:G_.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} ${SPe}`:SPe,e.baseUrl&&(i.baseUrl=e.baseUrl),e.previews&&(i.mediaType.previews=e.previews),e.timeZone&&(i.headers["time-zone"]=e.timeZone),this.request=G_.defaults(i),this.graphql=EPe(this.request).defaults(i),this.log=Wkt(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=CPe(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 nZ="17.0.0";var Jkt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
|
|||
|
|
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||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return a}};var fZ=k(require("fs"),1),hZ=k(require("path"),1);var rM=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=hZ.default.join(Nt.tmpDir(),"export");L(`exporting build record to ${n}`),fZ.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=hZ.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=fZ.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 r6e=k(require("fs"),1),Mse=k(require("path"),1);var NPe=k(require("os"),1);function Gy(){return 8*1024*1024}function iM(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}function DPe(){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 aC(){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 OPe(){let t=process.env.GITHUB_WORKSPACE;if(!t)throw new Error("Unable to get the GITHUB_WORKSPACE env variable");return t}function PPe(){let t=NPe.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 QPe(){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 kPe(){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 KGe=k(require("fs"),1),XGe=k(require("path"),1);var MZ=k(xr(),1),FZ=k(xr(),1),pQe=k(xr(),1),mQe=k(xr(),1),AQe=k(xr(),1),AC=k(xr(),1),gQe=k(xr(),1),UZ=class extends gQe.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=AC.PbLong.from(Math.floor(r/1e3)).toString(),e.nanos=r%1e3*1e6,e}toDate(e){return new Date(AC.PbLong.from(e.seconds).toNumber()*1e3+Math.ceil(e.nanos/1e6))}fromDate(e){let r=this.create(),i=e.getTime();return r.seconds=AC.PbLong.from(Math.floor(i/1e3)).toString(),r.nanos=i%1e3*1e6,r}internalJsonWrite(e,r){let i=AC.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,AQe.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]+"-"+
|
|||
|
|
`," Line feed \\n"]]),RQe=new Map([...Mee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function TQe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of RQe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
|||
|
|
|
|||
|
|
Invalid characters include: ${Array.from(RQe.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 Fee(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of Mee)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(Mee.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 PQe=k(OQe(),1);function $f(){return`@actions/artifact-${PQe.version}`}var BC=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"}},dl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Fd=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Ym=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"}},Ud=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"}};Ud.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var $y=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"}};$y.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var HM=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Wf(){let t=iM(),e=tM(t);if(!e.scp)throw HM;let r=e.scp.split(" ");if(r.length===0)throw HM;for(let i of r){let s=i.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw HM;let n={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return T(`Workflow Run Backend ID: ${n.workflowRunBackendId}`),T(`Workflow Job Run Backend ID: ${n.workflowJobRunBackendId}`),n}throw HM}function QQe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Oa(r),Oa(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function kQe(t){if(typeof t!="object"||t===null){T("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&QQe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&QQe(t.signed_url)}var jM=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())})},Uee=class{constructor(e,r,i,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let n=iM();this.baseUrl=DPe(),r&&(this.maxAttempts=r),i&&(this.baseRetryIntervalMilliseconds=i),s&&(this.retryMultiplier=s),this.httpClient=new ds(e,[new Ad(n)])}request(e,r,i,s){return jM(this,void 0,void 0,function*(){let n=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;T(`[Request] ${r} ${n}`);let o={"Content-Type":i};try{let{body:a}=yield this.retryableRequest(()=>jM(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 jM(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(),T(`[Response] - ${a.message.statusCode}`),T(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let u=JSON.parse(s);if(kQe(u),T(`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($y.isUsageErrorMessage(u.msg))throw new $y;i=`${i}: ${u.msg}`}}catch(a){if(a instanceof SyntaxError&&T(`Raw Body: ${s}`),a instanceof $y)throw a;if(Ud.isNetworkErrorCode(a?.code))throw new Ud(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 jM(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 Jf(t){let e=new Uee($f(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new GM(e)}var xC=k(require("fs"),1);var vC=require("path");function LQe(t){if(!xC.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);i
|
|||
|
|
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: ${MHe(l)}`);try{L(`Starting download of artifact to: ${r}`);let f=yield FHe(l,r,e?.skipDecompress);L("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(s=!0,T(`Computed digest: ${f.sha256Digest}`),T(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:s}})}function GHe(){return II(this,arguments,void 0,function*(t=OPe()){return(yield u7t(t))?T(`Artifact destination folder already exists: ${t}`):(T(`Artifact destination folder does not exist, creating: ${t}`),yield Qse.default.mkdir(t,{recursive:!0})),t})}var f7t=5,h7t=[400,401,403,404,422];function SI(t,e=f7t,r=h7t){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 T(`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 HHe="6.0.0";function IE(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})})}IE.VERSION=HHe;var VHe=k(jHe(),1);var d7t="0.0.0-development";function p7t(t){return t.request!==void 0}async function zHe(t,e,r,i){if(!p7t(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 m7t(t,e,r,i){let s=new VHe.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(A7t.bind(null,t,e,r),i)}async function A7t(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 Ld(s.data.errors[0].message,500,{request:i,response:s});return zHe(t,e,n,i)}return s}function SE(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",zHe.bind(null,r,i)),t.hook.wrap("request",m7t.bind(null,r,i))),i}SE.VERSION=d7t;var $He=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 rq(t,e,r,i,s){return $He(this,void 0,void 0,function*(){var n;let[o,a]=SI(Uy),c={log:void 0,userAgent:$f(),previews:void 0,retry:o,request:a},l=yield eu(s,c,SE,IE).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 dl(`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}
|
|||
|
|
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],T(`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 WHe(t){return $He(this,void 0,void 0,function*(){var e;let r=Jf(),{workflowRunBackendId:i,workflowJobRunBackendId:s}=Wf(),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}
|
|||
|
|
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],T(`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?ec.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var JHe=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 YHe(t,e,r,i,s){return JHe(this,void 0,void 0,function*(){var n;let[o,a]=SI(Uy),c={log:void 0,userAgent:$f(),previews:void 0,retry:o,request:a},u=eu(s,c,SE,IE),l=yield rq(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 dl(`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 KHe(t){return JHe(this,void 0,void 0,function*(){let e=Jf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Wf(),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],T(`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 XHe=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())})},iq=kPe(),sq=100,g7t=Math.ceil(iq/sq);function ZHe(t,e,r,i){return XHe(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]=SI(Uy),h={log:void 0,userAgent:$f(),previews:void 0,retry:l,request:f},d=eu(a,h,SE,IE),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:sq,page:m}),y=Math.ceil(A.total_count/sq),g=A.total_count;g>iq&&(st(`Workflow run ${s} has ${g} artifacts, exceeding the limit of ${iq}. Results will be incomplete as only the first ${iq} artifacts will be returned`),y=g7t);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++){T(`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:sq,page:m});for(let C of E.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest})}return c&&(u=t6e(u)),L(`Found ${u.length} artifact(s)`),{artifacts:u}})}function e6e(){return XHe(this,arguments,void 0,function*(t=!1){let e=Jf(),{workflowRunBackendId:r,workflowJobRunBackendId:i}=Wf(),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?ec.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=t6e(o)),L(`Found ${o.length} artifact(s)`),{artifacts:o}})}function t6e(t){t.sort((i,s)=>s.id-i.id);let e=[],r=new Set;for(le
|
|||
|
|
|
|||
|
|
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 vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,token:n}}=r,o=y7t(r,["findBy"]);return UHe(e,i,s,n,o)}return qHe(e,r)}catch(i){throw st(`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 vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:i,repositoryName:s,token:n}}=e;return ZHe(r,i,s,n,e?.latest)}return e6e(e?.latest)}catch(r){throw st(`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 vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(r?.findBy){let{findBy:{workflowRunId:i,repositoryOwner:s,repositoryName:n,token:o}}=r;return rq(e,i,s,n,o)}return WHe(e)}catch(i){throw st(`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 vT(this,void 0,void 0,function*(){try{if(aC())throw new Ym;if(r?.findBy){let{findBy:{repositoryOwner:i,repositoryName:s,workflowRunId:n,token:o}}=r;return YHe(e,n,i,s,o)}return KHe(e)}catch(i){throw st(`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 zJr=new BI;var nq=class{static async upload(e){if(gt.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=Mse.default.basename(e.filename),i=new BI;L(`Uploading ${r} as an artifact`);let s=Mse.default.dirname(e.filename),n=await i.uploadArtifact(r,[e.filename],s,{retentionDays:e.retentionDays,skipArchive:!0});if(!n.id)throw new dl("Cannot upload artifact");let o=n.size??r6e.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 Xse=k(i6e(),1);function E6e(t){return typeof t>"u"||t===null}function E7t(t){return typeof t=="object"&&t!==null}function b7t(t){return Array.isArray(t)?t:E6e(t)?[]:[t]}function w7t(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 C7t(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function I7t(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var S7t=E6e,B7t=E7t,v7t=b7t,x7t=C7t,_7t=I7t,R7t=w7t,cs={isNothing:S7t,isObject:B7t,toArray:v7t,repeat:x7t,isNegativeZero:_7t,extend:R7t};function b6e(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 RT(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=b6e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}RT.prototype=Object.create(Error.prototype);RT.prototype.constructor=RT;RT.prototype.toString=function(e){return this.name+": "+b6e(this,e)};var ca=RT;function Fse(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 Use(t,e){return cs.repeat(" ",e-t.length)+t}function T7t(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=Fse(t.buffer,i[o-c],s[o-c],t.position-(i[o]-i[o-c]),f),a=cs.repeat(" ",e.indent)+Use((t.line-c+1).toString(),l)+" | "+u.str+`
|
|||
|
|
`+a;for(u=Fse(t.buffer,i[o],s[o],t.position,f),a+=cs.repeat(" ",e.indent)+Use((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=Fse(t.buffer,i[o+c],s[o+c],t.position-(i[o]-i[o+c]),f),a+=cs.repeat(" ",e.indent)+Use((t.line+c+1).toString(),l)+" | "+u.str+`
|
|||
|
|
`;return a.replace(/\n$/,"")}var N7t=T7t,D7t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],O7t=["scalar","sequence","mapping"];function P7t(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Q7t(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(D7t.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=P7t(e.styleAliases||null),O7t.indexOf(this.kind)===-1)throw new ca('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Tn=Q7t;function s6e(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 k7t(){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 Gse(t){return this.extend(t)}Gse.prototype.extend=function(e){var r=[],i=[];if(e instanceof Tn)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 Tn))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 Tn))throw new ca("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Gse.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=s6e(s,"implicit"),s.compiledExplicit=s6e(s,"explicit"),s.compiledTypeMap=k7t(s.compiledImplicit,s.compiledExplicit),s};var L7t=Gse,M7t=new Tn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),F7t=new Tn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),U7t=new Tn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),q7t=new L7t({explicit:[M7t,F7t,U7t]});function G7t(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function H7t(){return null}function j7t(t){return t===null}var z7t=new Tn("tag:yaml.org,2002:null",{kind:"scalar",resolve:G7t,construct:H7t,predicate:j7t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function V7t(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 $7t(t){return t==="true"||t==="True"||t==="TRUE"}function W7t(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var J7t=new Tn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:V7t,construct:$7t,predicate:W7t,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"F
|
|||
|
|
\r`;function yKt(t){if(t===null)return!1;var e,r,i=0,s=t.length,n=$se;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 EKt(t){var e,r,i=t.replace(/[\r\n=]/g,""),s=i.length,n=$se,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 bKt(t){var e="",r=0,i,s,n=t.length,o=$se;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 wKt(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var CKt=new Tn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:yKt,construct:EKt,predicate:wKt,represent:bKt}),IKt=Object.prototype.hasOwnProperty,SKt=Object.prototype.toString;function BKt(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,SKt.call(s)!=="[object Object]")return!1;for(n in s)if(IKt.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 vKt(t){return t!==null?t:[]}var xKt=new Tn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:BKt,construct:vKt}),_Kt=Object.prototype.toString;function RKt(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 TKt(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 NKt=new Tn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:RKt,construct:TKt}),DKt=Object.prototype.hasOwnProperty;function OKt(t){if(t===null)return!0;var e,r=t;for(e in r)if(DKt.call(r,e)&&r[e]!==null)return!1;return!0}function PKt(t){return t!==null?t:{}}var QKt=new Tn("tag:yaml.org,2002:set",{kind:"mapping",resolve:OKt,construct:PKt}),I6e=fKt.extend({implicit:[mKt,gKt],explicit:[CKt,xKt,NKt,QKt]}),wA=Object.prototype.hasOwnProperty,aq=1,S6e=2,B6e=3,cq=4,qse=1,kKt=2,n6e=3,LKt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,MKt=/[\x85\u2028\u2029]/,FKt=/[,\[\]\{\}]/,v6e=/^(?:!|!!|![a-z\-]+!)$/i,x6e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function o6e(t){return Object.prototype.toString.call(t)}function ch(t){return t===10||t===13}function vE(t){return t===9||t===32}function ua(t){return t===9||t===32||t===10||t===13}function xI(t){return t===44||t===91||t===93||t===123||t===125}function UKt(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function qKt(t){return t===120?2:t===117?4:t===85?8:0}function GKt(t){return 48<=t&&t<=57?t-48:-1}function a6e(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 HKt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function _6e(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var R6e=new Array(256),T6e=new Array(256);for(BE=0;BE<256;BE++)R6e[BE]=a6e(BE)?1:0,T6e[BE]=a6e(BE);var BE;function jKt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||I6e,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 N6e(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=N7t(r),new ca(e,r)}function Le(t,e){throw N6e(t,e)}function uq(t,e){t.onWarning&&t.onWarning.call(null,N6e(t,e))}var c6e={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&&uq(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],v6e.test(s)||Le(e,"ill-formed tag handle (first argument) of the TAG directive"),wA.call(e.tagMap,s)&&Le(e,'there is a previously declared suffix for "'+s+'" tag handle'),x6e.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 bA(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 LKt.test(a)&&Le(t,"the stream contains non-printable characters");t.result+=a}}function u6e(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],wA.call(e,n)||(_6e(e,n,r[n]),i[n]=!0)}function _I(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"&&o6e(s[u])==="[object Object]"&&(s[u]="[object Object]");if(typeof s=="object"&&o6e(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)u6e(t,e,n[u],r);else u6e(t,e,n,r);else!t.json&&!wA.call(r,s)&&wA.call(e,s)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Le(t,"duplicated mapping key")),_6e(e,s,n),delete r[s];return e}function Wse(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(;vE(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(ch(s))for(Wse(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&&uq(t,"deficient indentation"),i}function hq(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)
|
|||
|
|
`,e-1))}function zKt(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)||xI(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&&xI(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&&xI(s))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),ua(i))break}else{if(t.position===t.lineStart&&hq(t)||r&&xI(d))break;if(ch(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&&(bA(t,n,o,!1),Jse(t,t.line-c),n=o=t.position,a=!1),vE(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return bA(t,n,o,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function VKt(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(bA(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 ch(r)?(bA(t,i,s,!0),Jse(t,ji(t,!1,e)),i=s=t.position):t.position===t.lineStart&&hq(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 $Kt(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 bA(t,r,t.position,!0),t.position++,!0;if(a===92){if(bA(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),ch(a))ji(t,!1,e);else if(a<256&&R6e[a])t.result+=T6e[a],t.position++;else if((o=qKt(a))>0){for(s=o,n=0;s>0;s--)a=t.input.charCodeAt(++t.position),(o=UKt(a))>=0?n=(n<<4)+o:Le(t,"expected hexadecimal character");t.result+=HKt(n),t.position++}else Le(t,"unknown escape sequence");r=i=t.position}else ch(a)?(bA(t,r,i,!0),Jse(t,ji(t,!1,e)),r=i=t.position):t.position===t.lineStart&&hq(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 WKt(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,RI(t,e,aq,!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),RI(t,e,aq,!1,!0),g=t.result),d?_I(t,a,m,y,A,g,i,s,n):f?a.push(_I(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 JKt(t,e){var r,i,s=qse,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)qse===s?s=f===43?n6e:kKt:Le(t,"repeat of a chomping mode identifier");else if((l=GKt(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(vE(f)){do f=t.input.charCodeAt(++t.position);while(vE(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ch(f)&&f!==0)}for(;f!==0;){for(Wse(t),t.lineIndent=0,f=t.input.charC
|
|||
|
|
`,n?1+c:c):s===qse&&n&&(t.result+=`
|
|||
|
|
`);break}for(i?vE(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;!ch(f)&&f!==0;)f=t.input.charCodeAt(++t.position);bA(t,r,t.position,!1)}return!0}function l6e(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,RI(t,e,B6e,!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 YKt(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&&(_I(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,!RI(t,r,S6e,!1,!0))break;if(t.line===n){for(E=t.input.charCodeAt(t.position);vE(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&&(_I(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),RI(t,e,cq,!0,s)&&(y?m=t.result:A=t.result),y||(_I(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&&_I(t,f,h,d,m,null,o,a,c),g&&(t.tag=u,t.anchor=l,t.kind="mapping",t.result=f),g}function KKt(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),v6e.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),FKt.test(n)&&Le(t,"tag suffix cannot contain flow indicator characters")}n&&!x6e.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:wA.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 XKt(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)&&!xI(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 ZKt(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;f
|
|||
|
|
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new jKt(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 tXt(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=D6e(t,r);if(typeof e!="function")return i;for(var s=0,n=i.length;s<n;s+=1)e(i[s])}function rXt(t,e){var r=D6e(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 iXt=tXt,sXt=rXt,O6e={loadAll:iXt,load:sXt},P6e=Object.prototype.toString,Q6e=Object.prototype.hasOwnProperty,Yse=65279,nXt=9,TT=10,oXt=13,aXt=32,cXt=33,uXt=34,Hse=35,lXt=37,fXt=38,hXt=39,dXt=42,k6e=44,pXt=45,lq=58,mXt=61,AXt=62,gXt=63,yXt=64,L6e=91,M6e=93,EXt=96,F6e=123,bXt=124,U6e=125,Nn={};Nn[0]="\\0";Nn[7]="\\a";Nn[8]="\\b";Nn[9]="\\t";Nn[10]="\\n";Nn[11]="\\v";Nn[12]="\\f";Nn[13]="\\r";Nn[27]="\\e";Nn[34]='\\"';Nn[92]="\\\\";Nn[133]="\\N";Nn[160]="\\_";Nn[8232]="\\L";Nn[8233]="\\P";var wXt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],CXt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function IXt(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&&Q6e.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function SXt(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 BXt=1,NT=2;function vXt(t){this.schema=t.schema||I6e,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=IXt(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==='"'?NT:BXt,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 f6e(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 jse(t,e){return`
|
|||
|
|
`+cs.repeat(" ",t.indent*e)}function xXt(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 fq(t){return t===aXt||t===nXt}function DT(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Yse||65536<=t&&t<=1114111}function h6e(t){return DT(t)&&t!==Yse&&t!==oXt&&t!==TT}function d6e(t,e,r){var i=h6e(t),s=i&&!fq(t);return(r?i:i&&t!==k6e&&t!==L6e&&t!==M6e&&t!==F6e&&t!==U6e)&&t!==Hse&&!(e===lq&&!s)||h6e(e)&&!fq(e)&&t===Hse||e===lq&&s}function _Xt(t){return DT(t)&&t!==Yse&&!fq(t)&&t!==pXt&&t!==gXt&&t!==lq&&t!==k6e&&t!==L6e&&t!==M6e&&t!==F6e&&t!==U6e&&t!==Hse&&t!==fXt&&t!==dXt&&t!==cXt&&t!==bXt&&t!==mXt&&t!==AXt&&t!==hXt&&t!==uXt&&t!==lXt&&t!==yXt&&t!==EXt}function RXt(t){return!fq(t)&&t!==lq}function _T(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 q6e(t){var e=/^\n* /;return e.test(t)}var G6e=1,zse=2,H6e=3,j6e=4,vI=5;function TXt(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(_T(t,0))&&RXt(_T(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=_T(t,c),!DT(u))return vI;A=A&&d6e(u,l,a),l=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=_T(t,c),u===TT)f=!0,d&&(h=h||c-m-1>i&&t[m+1]!==" ",m=c);else if(!DT(u))return vI;A=A&&d6e(u,l,a),l=u}h=h||d&&c-m-1>i&&t[m+1]!==" "}return!f&&!h?A&&!o&&!s(t)?G6e:n===NT?vI:zse:r>9&&q6e(t)?vI:o?n===NT?vI:zse:h?j6e:H6e}function NXt(t,e,r,i,s){t.dump=(function(){if(e.length===0)return t.quotingType===NT?'""':"''";if(!t.noCompatMode&&(wXt.indexOf(e)!==-1||CXt.test(e)))return t.quotingType===NT?'"'+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 xXt(t,u)}switch(TXt(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!i,s)){case G6e:return e;case zse:return"'"+e.replace(/'/g,"''")+"'";case H6e:return"|"+p6e(e,t.indent)+m6e(f6e(e,n));case j6e:return">"+p6e(e,t.indent)+m6e(f6e(DXt(e,o),n));case vI:return'"'+OXt(e)+'"';default:throw new ca("impossible error: invalid scalar style")}})()}function p6e(t,e){var r=q6e(t)?String(e):"",i=t[t.length-1]===`
|
|||
|
|
`,s=i&&(t[t.length-2]===`
|
|||
|
|
`||t===`
|
|||
|
|
`),n=s?"+":i?"":"-";return r+n+`
|
|||
|
|
`}function m6e(t){return t[t.length-1]===`
|
|||
|
|
`?t.slice(0,-1):t}function DXt(t,e){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=t.indexOf(`
|
|||
|
|
`);return u=u!==-1?u:t.length,r.lastIndex=u,A6e(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!==""?`
|
|||
|
|
`:"")+A6e(c,e),s=n}return i}function A6e(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 OXt(t){for(var e="",r=0,i,s=0;s<t.length;r>=65536?s+=2:s++)r=_T(t,s),i=Nn[r],!i&&DT(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=i||SXt(r);return e}function PXt(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)),(ep(t,e,a,!1,!1)||typeof a>"u"&&ep(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=s,t.dump="["+i+"]"}function g6e(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)),(ep(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&ep(t,e+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=jse(t,e)),t.dump&&TT===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=n,t.dump=s||"[]"}function QXt(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)),ep(t,e,c,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ep(t,e,u,!1,!1)&&(l+=t.dump,i+=l));t.tag=s,t.dump="{"+i+"}"}function kXt(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+=jse(t,e)),u=o[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),ep(t,e+1,u,!0,!0,!0)&&(f=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,f&&(t.dump&&TT===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,f&&(h+=jse(t,e)),ep(t,e+1,l,!0,f)&&(t.dump&&TT===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,s+=h));t.tag=n,t.dump=s||"{}"}function y6e(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,P6e.call(a.represent)==="[object Function]")i=a.represent(e,c);else if(Q6e.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 ep(t,e,r,i,s,n,o){t.tag=null,t.dump=r,y6e(t,r,!1)||y6e(t,r,!0);var a=P6e.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?(kXt(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(QXt(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?g6e(t,e-1,t.dump,s):g6e(t,e,t.dump,s),h&&(t.dump="&ref_"+f+t.dump)):(PXt(t,e,t.dump),h&&(t.dump="&ref_"+f+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&NXt(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 LXt(t,e){var r=[],i=[],s,n;for(Vse(t,r,i),s=0,n=i.length;s<n;s+=1)e.duplicates.push(r[i[s]]);e.usedDuplicates=new Array(n)}function Vse(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)Vse(t[s],e,r);else for(i=Object.keys(t),s=0,n=i.length;s<n;s+=1)Vse(t[i[s]],e,r)}function MXt(t,e){e=e||{};var r=new vXt(e);r.noRefs||LXt(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),ep(r,0,i,!0,!0)?r.dump+`
|
|||
|
|
`:""}var FXt=MXt,UXt={dump:FXt};function Kse(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 ZJr=O6e.load,eYr=O6e.loadAll,z6e=UXt.dump;var tYr=Kse("safeLoad","load"),rYr=Kse("safeLoadAll","loadAll"),iYr=Kse("safeDump","dump");var V6e=k(require("os"),1);var dq=class t{static async writeBuildSummary(e){let r=function(c,u,l=!1){return`<a href="${u}">${c}</a>`+(l?V6e.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=d9.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(Xse.default.encode(u),"text").addRaw("</details>"):a.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(Xse.default.encode(u),"text").addRaw("</p>"),a.addRaw("</blockquote>"))}e.in
|
|||
|
|
`),{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=Ka(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=Ka(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 ene=k(require("fs"),1),$6e=k(require("path"),1);var TI=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new $t,this.metadataFilename=`bake-metadata-${Xe.generateRandomString()}.json`}getMetadataFilePath(){return $6e.default.join(Nt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ene.default.existsSync(e))return;let r=ene.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=Ka(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=Ka(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(/(?<=^[^=]+?)
|
|||
|
|
`)[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"]);T(`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 trt=require("crypto"),jh=k(require("fs"),1),cg=k(require("path"),1);var G2=k(PT(),1),zh=k(YXe(),1),rrt=k(Phe(),1),dB=k(Wtt(),1);var Ode=k(PT(),1);var Ytt=k(ll(),1);var Jtt="application/vnd.oci.empty.v1+json";var $p=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?(T(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailable error: ${r}`),!1));return T(`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 T("Cosign.versionSatisfies false: undefined version"),!1;let s=Ytt.satisfies(i,e)||/^[0-9a-f]{7}$/.exec(i)!==null;return T(`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===Ode.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===Jtt&&typeof u.digest=="string"&&(i=u.digest)}if(!s&&c&&c.mediaType===Ode.BUNDLE_V03_MEDIA_TYPE&&(s=c),s&&(r||i)){n=void 0;break}}return{bundle:s,signatureManifestDigest:r||i,errors:n}}};var Pde=k(require("fs"),1);var EG=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=Nt.tmpName({tmpdir:Nt.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.getCreat
|
|||
|
|
${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 Ktt="application/vnd.in-toto+json";var Xtt="https://fulcio.sigstore.dev",Ztt="https://rekor.sigstore.dev",ert="https://timestamp.sigstore.dev",R0="https://search.sigstore.dev";var Wwr="slsaprovenance1",ug=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new $p,this.imageTools=e?.imageTools||new EG}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=Nt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Nt.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(jh.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=$p.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,G2.bundleFromJSON)(h.bundle));d.tlogID&&L(`Uploaded to Rekor transparency log: ${R0}?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=$p.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=$p.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=cg.default.join(cg.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:Ktt},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: ${R0}?logIndex=${l.tlogID}`),L(`Writing Sigstore bundle to: ${a}`),jh.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=cg.default.dirname(s);await ti(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=cg.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??Wwr];(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(jh.default.readFileSync(r,"utf-8")),n=(0,G2.bundleFromJSON)(s);L("Fetching Sigstore TUF trusted root metadata");let o=await rrt.getTrustedRoot(),a=(0,dB.toTrustMaterial)(o);try{L("Verifying artifact signature");let c=(0,dB.toSignedEntity)(n,jh.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 dB.Verifier(a).verify(c,{subjectAlternativeName:i?.subjectAlternativeName&&typeof i.subjectAlternativeName=="string"?i.subjectAlternativeName:void 0,extensions:i?.issuer?{issuer:i.issuer}:void 0});return T(`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:Xtt,rekorURL:e?void 0:Ztt,tsaServerURL:ert}}static noTransparencyLog(e){return e??gt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=cg.default.join(e.localExportDir,"provenance.json");if(jh.default.existsSync(r))return{[r]:jh.default.readFileSync(r)};let i=jh.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=i.filter(n=>n.isDirectory());if(s.length>0&&s.length===i.length&&s.every(n=>jh.default.existsSync(cg.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of s){let a=
|
|||
|
|
`)){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 irt=k(ll(),1);var wG=k(require("fs"),1);var CG=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!wG.default.existsSync(e))throw new Error(`config file ${e} not found`);e=wG.default.readFileSync(e,{encoding:"utf-8"})}let i=Nt.tmpName({tmpdir:Nt.tmpDir()});return wG.default.writeFileSync(i,e),i}};var IG=class{buildx;config;constructor(e){this.config=new CG,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 T(`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 T(`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 mB({buildx:this.buildx}).inspect(e));for(let s of i.nodes){let n=s.buildkit;if(T(`BuildKit.versionSatisfies ${n}: ${r}`),!n)try{n=await this.getVersionWithinImage(s.name||"")}catch{return T(`BuildKit.versionSatisfies ${s.name}: can't get version`),!1}if(T(`BuildKit.versionSatisfies ${s.name}: version ${n}`),i.driver=="docker"&&!n.endsWith("-moby")||!irt.satisfies(n.replace(/-moby$/,""),r))return!1}return!0}};var SG=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 T(`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?(T(`Compose.isAvailable cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(T(`Compose.isAvailable error: ${i}`),!1));return T(`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 Jp=k(require("fs"),1),$h=k(require("os"),1),AB=k(require("path"),1);var vG=k(ll(),1),kde=k(require("util"),1);var BG=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);T(`Install.download version: ${i.version}`);let s=await t.getRelease(i,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);T(`Install.download vspec: ${n}`);let o=vG.clean(n)||"";if(!vG.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:AB.default.join($h.default.homedir(),".bin","docker-compose"),cacheFile:$h.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return L(`Compose binary found in ${c}`),c
|
|||
|
|
# syntax=docker/dockerfile:1
|
|||
|
|
|
|||
|
|
ARG GO_VERSION="1.24"
|
|||
|
|
ARG ALPINE_VERSION="3.22"
|
|||
|
|
|
|||
|
|
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
|
|||
|
|
|
|||
|
|
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
|
|||
|
|
COPY --from=xx / /
|
|||
|
|
RUN apk add --no-cache git
|
|||
|
|
ENV GOTOOLCHAIN=auto
|
|||
|
|
ENV CGO_ENABLED=0
|
|||
|
|
WORKDIR /src
|
|||
|
|
RUN --mount=type=cache,target=/go/pkg/mod \\
|
|||
|
|
--mount=type=bind,source=go.mod,target=go.mod \\
|
|||
|
|
--mount=type=bind,source=go.sum,target=go.sum \\
|
|||
|
|
go mod download
|
|||
|
|
|
|||
|
|
FROM builder-base AS version
|
|||
|
|
RUN --mount=type=bind,target=. <<'EOT'
|
|||
|
|
git rev-parse HEAD 2>/dev/null || {
|
|||
|
|
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
|
|||
|
|
exit 1
|
|||
|
|
}
|
|||
|
|
set -ex
|
|||
|
|
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
|
|||
|
|
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
|
|||
|
|
echo -n "\${VERSION}" > /tmp/.version;
|
|||
|
|
EOT
|
|||
|
|
|
|||
|
|
FROM builder-base AS builder
|
|||
|
|
ARG TARGETPLATFORM
|
|||
|
|
RUN --mount=type=bind,target=. \\
|
|||
|
|
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
|
|||
|
|
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
|
|||
|
|
--mount=type=cache,target=/go/pkg/mod <<EOT
|
|||
|
|
set -ex
|
|||
|
|
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
|
|||
|
|
xx-verify --static /out/cosign
|
|||
|
|
EOT
|
|||
|
|
|
|||
|
|
FROM scratch
|
|||
|
|
COPY --from=builder /out /
|
|||
|
|
`;var xG=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 ug}async download(e){let r=await t.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);let i=await t.getRelease(r,this.githubToken);T(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);T(`Install.download vspec: ${s}`);let n=yB.clean(s)||"";if(!yB.valid(n))throw new Error(`Invalid Cosign version "${s}".`);let o=new bs({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:gB.default.join(Ol.default.homedir(),".bin"),cacheFile:Ol.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=Lde.format(r.downloadURL,s,this.filename());L(`Downloading ${c}`);let u=await Qc(c,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&yB.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);T(`Install.build vspec: ${s}`);let n=new bs({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:gB.default.join(Ol.default.homedir(),".bin"),cacheFile:Ol.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return L(`Cosign binary found in ${o}`),o;let a=gB.default.join(Nt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Ue.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(srt)}).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||Nt.tmpDir();let i=gB.default.join(r,"cosign-bin");H2.default.existsSync(i)||H2.default.mkdirSync(i,{recursive:!0});let s=Ol.default.platform()=="win32"?"cosign.exe":"cosign",n=gB.default.join(i,s);return H2.default.copyFileSync(e,n),L("Fixing perms"),H2.default.chmodSync(n,"0755"),Kl(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)T("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(i)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(s)T("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 Qc(i,void 0,this.githubToken);T(`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?`${R0}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(Ol.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ol.default.arch();break}}let r=Ol.default.platform()=="win32"?"windows":Ol.default.platform(),i=Ol.default.platform()=="win32"?".exe":"";return Lde.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 NI.remoteSha(r,i,process.env.GIT_AU
|
|||
|
|
`)[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),MCe("metadata",h)});let f=[];if(await ti("Build references",async()=>{if(f=await VSr(r,t,e.builder),f.length>0){for(let h of f)L(h);fst(f)}else L("No build references found")}),$Sr()){let h=r.buildxBake.resolveWarnings(l);if(f.length>0&&h&&h.length>0){let d=await $t.convertWarningsToGitHubAnnotations(h,f);T(`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()=>{WSr()?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!"),hst()):L("Build summary requires Buildx >= 0.23.0"):L("Build summary disabled")}),u)throw u},async()=>{ost&&await ti("Generating build summary",async()=>{try{let t=JSr(),e;t&&(e=YSr());let i=await new rM().export({refs:nst});L(`Build records written to ${i.dockerbuildFilename} (${Xe.formatFileSize(i.dockerbuildSize)})`);let s;t&&(s=await nq.upload({filename:i.dockerbuildFilename,retentionDays:e})),await dq.writeBuildSummary({exportRes:i,uploadRes:s,inputs:ist,bakeDefinition:sst,driver:tst,endpoint:rst})}catch(t){st(t.message)}}),EH.length>0&&await ti(`Removing temp folder ${EH}`,async()=>{pst.rmSync(EH,{recursive:!0})})});async function VSr(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 $Sr(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Xe.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}function WSr(){return process.env.DOCKER_BUILD_SUMMARY?Xe.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}function JSr(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Xe.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}function YSr(){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:
|
|||
|
|
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|||
|
|
|
|||
|
|
undici/lib/web/websocket/frame.js:
|
|||
|
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|||
|
|
|
|||
|
|
tmp/lib/tmp.js:
|
|||
|
|
(*!
|
|||
|
|
* Tmp
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|||
|
|
*
|
|||
|
|
* MIT Licensed
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
normalize-path/index.js:
|
|||
|
|
(*!
|
|||
|
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|||
|
|
* Released under the MIT License.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
archiver/lib/error.js:
|
|||
|
|
archiver/lib/core.js:
|
|||
|
|
(**
|
|||
|
|
* Archiver Core
|
|||
|
|
*
|
|||
|
|
* @ignore
|
|||
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|||
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
crc-32/crc32.js:
|
|||
|
|
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|||
|
|
|
|||
|
|
zip-stream/index.js:
|
|||
|
|
(**
|
|||
|
|
* ZipStream
|
|||
|
|
*
|
|||
|
|
* @ignore
|
|||
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
|||
|
|
* @copyright (c) 2014 Chris Talkington, contributors.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
archiver/lib/plugins/zip.js:
|
|||
|
|
(**
|
|||
|
|
* ZIP Format Plugin
|
|||
|
|
*
|
|||
|
|
* @module plugins/zip
|
|||
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|||
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
archiver/lib/plugins/tar.js:
|
|||
|
|
(**
|
|||
|
|
* TAR Format Plugin
|
|||
|
|
*
|
|||
|
|
* @module plugins/tar
|
|||
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|||
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
archiver/lib/plugins/json.js:
|
|||
|
|
(**
|
|||
|
|
* JSON Format Plugin
|
|||
|
|
*
|
|||
|
|
* @module plugins/json
|
|||
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|||
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
archiver/index.js:
|
|||
|
|
(**
|
|||
|
|
* Archiver Vending
|
|||
|
|
*
|
|||
|
|
* @ignore
|
|||
|
|
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|||
|
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
he/he.js:
|
|||
|
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|||
|
|
|
|||
|
|
negotiator/index.js:
|
|||
|
|
(*!
|
|||
|
|
* negotiator
|
|||
|
|
* Copyright(c) 2012 Federico Romero
|
|||
|
|
* Copyright(c) 2012-2014 Isaac Z. Schlueter
|
|||
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|||
|
|
* MIT Licensed
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
imurmurhash/imurmurhash.js:
|
|||
|
|
(**
|
|||
|
|
* @preserve
|
|||
|
|
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
|
|||
|
|
*
|
|||
|
|
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
|
|||
|
|
* @see http://github.com/homebrewing/brauhaus-diff
|
|||
|
|
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
|
|||
|
|
* @see http://github.com/garycourt/murmurhash-js
|
|||
|
|
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
|
|||
|
|
* @see http://sites.google.com/site/murmurhash/
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
make-fetch-happen/lib/fetch.js:
|
|||
|
|
make-fetch-happen/lib/fetch.js:
|
|||
|
|
(**
|
|||
|
|
* @license
|
|||
|
|
* Copyright (c) 2010-2012 Mikeal Rogers
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
* Unless required by applicable law or agreed to in writing,
|
|||
|
|
* software distributed under the License is distributed on an "AS
|
|||
|
|
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|||
|
|
* express or implied. See the License for the specific language
|
|||
|
|
* governing permissions and limitations under the License.
|
|||
|
|
*)
|
|||
|
|
|
|||
|
|
@octokit/request-error/dist-src/index.js:
|
|||
|
|
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
|
|||
|
|
|
|||
|
|
@octokit/request/dist-bundle/index.js:
|
|||
|
|
(* v8 ignore next -- @preserve *)
|
|||
|
|
(* v8 ignore else -- @preserve *)
|
|||
|
|
|
|||
|
|
js-yaml/dist/js-yaml.mjs:
|
|||
|
|
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|||
|
|
*/
|
|||
|
|
//# sourceMappingURL=index.cjs.map
|