Files
metadata-action/dist/index.cjs

373 lines
3.5 MiB
JavaScript
Raw Normal View History

2026-05-22 12:07:22 +00:00
var rVe=Object.create;var mx=Object.defineProperty;var sVe=Object.getOwnPropertyDescriptor;var nVe=Object.getOwnPropertyNames;var iVe=Object.getPrototypeOf,oVe=Object.prototype.hasOwnProperty;var aVe=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),j1e=(t,e)=>{for(var r in e)mx(t,r,{get:e[r],enumerable:!0})},cVe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nVe(e))!oVe.call(t,n)&&n!==r&&mx(t,n,{get:()=>e[n],enumerable:!(s=sVe(e,n))||s.enumerable});return t};var x=(t,e,r)=>(r=t!=null?rVe(iVe(t)):{},cVe(e||!t||!t.__esModule?mx(r,"default",{value:t,enumerable:!0}):r,t));var tre=b(Jf=>{"use strict";var Brt=require("net"),fVe=require("tls"),yx=require("http"),K1e=require("https"),bVe=require("events"),Drt=require("assert"),hVe=require("util");Jf.httpOverHttp=MVe;Jf.httpsOverHttp=mVe;Jf.httpOverHttps=gVe;Jf.httpsOverHttps=zVe;function MVe(t){var e=new cu(t);return e.request=yx.request,e}function mVe(t){var e=new cu(t);return e.request=yx.request,e.createSocket=Z1e,e.defaultPort=443,e}function gVe(t){var e=new cu(t);return e.request=K1e.request,e}function zVe(t){var e=new cu(t);return e.request=K1e.request,e.createSocket=Z1e,e.defaultPort=443,e}function cu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,n,i,o){for(var a=ere(n,i,o),c=0,u=e.requests.length;c<u;++c){var p=e.requests[c];if(p.host===a.host&&p.port===a.port){e.requests.splice(c,1),p.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}hVe.inherits(cu,bVe.EventEmitter);cu.prototype.addRequest=function(e,r,s,n){var i=this,o=Cx({request:e},i.options,ere(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",u),a.on("agentRemove",u),e.onSocket(a);function c(){i.emit("free",a,o)}function u(p){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",u),a.removeListener("agentRemove",u)}})};cu.prototype.createSocket=function(e,r){var s=this,n={};s.sockets.push(n);var i=Cx({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),rl("making CONNECT request");var o=s.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",u),o.once("error",p),o.end();function a(l){l.upgrade=!0}function c(l,A,f){process.nextTick(function(){u(l,A,f)})}function u(l,A,f){if(o.removeAllListeners(),A.removeAllListeners(),l.statusCode!==200){rl("tunneling socket could not be established, statusCode=%d",l.statusCode),A.destroy();var M=new Error("tunneling socket could not be established, statusCode="+l.statusCode);M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}if(f.length>0){rl("got illegal response body from proxy"),A.destroy();var M=new Error("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}return rl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=A,r(A)}function p(l){o.removeAllListeners(),rl(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var A=new Error("tunneling socket could not be established, cause="+l.message);A.code="ECONNRESET",e.request.emit("error",A),s.removeSocket(n)}};cu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}};function Z1e(t,e){var r=this;cu.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=Cx({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),o=fVe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function ere(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function Cx(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,o=n.length;i<o;++i){var a=n[i];s[a]!==void 0&&(t[a]=s[a])}}return t}var rl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?rl=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)}:rl=function(){};Jf.debug=rl});var Bx=b((Irt,rre)=>{rre.exports=tre()});var lt=b((Rrt,sre)=>{sre.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 O0=b((wrt,Ire)=>{"use strict";var nre=Symbol.for("undici.error.UND_ERR"),At=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[nre]===!0}[nre]=!0},ire=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Dx=class extends At{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[ire]===!0}[ire]=!0},ore=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),qx=class extends At{constructor(e){super(e),this.name="HeadersTimeo
`)||t.includes("\r")||t.includes("\0"))===!1}function x$e(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let o=s[i-1].trim();if(z$e.has(o)){n=o;break}}n!==""&&(t.referrerPolicy=n)}function W$e(){return"allowed"}function L$e(){return"success"}function _$e(){return"success"}function Q$e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function P$e(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&&OW(t.origin)&&!OW(Wg(t))&&(e=null);break;case"same-origin":j4(t,Wg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function ab(t,e){return t}function k$e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ab(t.domainLookupStartTime,r),domainLookupEndTime:ab(t.domainLookupEndTime,r),connectionStartTime:ab(t.connectionStartTime,r),connectionEndTime:ab(t.connectionEndTime,r),secureConnectionStartTime:ab(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function U$e(t){return ab(B$e.now(),t)}function G$e(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 Use(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function H$e(t){return{referrerPolicy:t.referrerPolicy}}function X$e(t){let e=t.referrerPolicy;JA(e);let r=null;if(t.referrer==="client"){let a=Wse();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=zW(r),n=zW(r,!0);s.toString().length>4096&&(s=n);let i=j4(t,s),o=xg(s)&&!xg(t.url);switch(e){case"origin":return n??zW(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let a=Wg(t);return j4(s,a)?s:xg(s)&&!xg(a)?"no-referrer":n}default:return o?"no-referrer":n}}function zW(t,e){return JA(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 xg(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function V$e(t,e){if(V4===void 0)return!0;let r=Gse(e);if(r==="no metadata"||r.length===0)return!0;let s=$$e(r),n=Y$e(r,s);for(let i of n){let o=i.algo,a=i.hash,c=V4.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)),J$e(c,a))return!0}return!1}var j$e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Gse(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=j$e.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();_se.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}function $$e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function Y$e(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.l
`);function vYe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function TYe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function xYe(t,e){Y4(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&J4(t,SYe,i)||i.position===t.length-4&&J4(t,FYe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=WYe(t,i);if(a==="failure")return"failure";let{name:c,filename:u,contentType:p,encoding:l}=a;i.position+=2;let A;{let M=t.indexOf(s.subarray(2),i.position);if(M===-1)return"failure";A=t.subarray(i.position,M-4),i.position+=A.length,l==="base64"&&(A=Buffer.from(A.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(p??="text/plain",vYe(p)||(p=""),f=new wYe([A],u,{type:p})):f=BYe(Buffer.from(A)),Y4(sne(c)),Y4(typeof f=="string"&&sne(f)||qYe(f)),n.push(IYe(c,f,u))}}function WYe(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let o=ub(a=>a!==10&&a!==13&&a!==58,t,e);if(o=IW(o,!0,!0,a=>a===9||a===32),!DYe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,ub(a=>a===32||a===9,t,e),CYe(o)){case"content-disposition":{if(r=s=null,!J4(t,NYe,e)||(e.position+=17,r=one(t,e),r===null))return"failure";if(J4(t,ine,e)){let a=e.position+ine.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=one(t,e),s===null))return"failure"}break}case"content-type":{let a=ub(c=>c!==10&&c!==13,t,e);a=IW(a,!1,!0,c=>c===9||c===32),n=nne(a);break}case"content-transfer-encoding":{let a=ub(c=>c!==10&&c!==13,t,e);a=IW(a,!1,!0,c=>c===9||c===32),i=nne(a);break}default:ub(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function one(t,e){Y4(t[e.position-1]===34);let r=ub(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function ub(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function IW(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}function J4(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}ane.exports={multipartFormDataParser:xYe,validateBoundary:TYe}});var Ab=b((tst,mne)=>{"use strict";var Qg=i0(),{ReadableStreamFrom:LYe,isBlobLike:une,isReadableStreamLike:_Ye,readableStreamClose:QYe,createDeferredPromise:PYe,fullyReadBody:kYe,extractMimeType:UYe,utf8DecodeBytes:Ane}=hn(),{FormData:pne}=_g(),{kState:lb}=sl(),{webidl:GYe}=ir(),{Blob:HYe}=require("node:buffer"),RW=require("node:assert"),{isErrored:dne,isDisturbed:XYe}=require("node:stream"),{isArrayBuffer:VYe}=require("node:util/types"),{serializeAMimeType:jYe}=ws(),{multipartFormDataParser:$Ye}=cne(),wW;try{let t=require("node:crypto");wW=e=>t.randomInt(0,e)}catch{wW=t=>Math.floor(Math.random(t))}var K4=new TextEncoder;function YYe(){}var fne=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,bne;fne&&(bne=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XYe(e)&&!dne(e)&&e.cancel("Response object has been garbage collected").catch(YYe)}));function hne(t,e=!1){let r=null;t instanceof ReadableStream?r=t:une(t)?r=t.stream():r=new ReadableStream({async pull(c){let u=typeof n=="string"?K4.encode(n):n;u.byteLength&&c.enqueue(u),queueMicrotask(()=>QYe(c))},start(){},type:"bytes"}),RW(_Ye(r));let s=null,n=null,i=null,o=null;if(typeof t=="string")n=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(VYe(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Qg.isFormDataLike(t)){let c=`----formdata-undici-0${`${wW(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let p=y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=y=>y.replace(/\r?\n|\r/g,`\r
2026-05-22 12:07:22 +00:00
`),A=[],f=new Uint8Array([13,10]);i=0;let M=!1;for(let[y,O]of t)if(typeof O=="string"){let B=K4.encode(u+`; name="${p(l(y))}"\r
\r
${l(O)}\r
2026-05-22 12:07:22 +00:00
`);A.push(B),i+=B.byteLength}else{let B=K4.encode(`${u}; name="${p(l(y))}"`+(O.name?`; filename="${p(O.name)}"`:"")+`\r
Content-Type: ${O.type||"application/octet-stream"}\r
\r
2026-05-22 12:07:22 +00:00
`);A.push(B,O,f),typeof O.size=="number"?i+=B.byteLength+O.size+f.byteLength:M=!0}let g=K4.encode(`--${c}--\r
`);A.push(g),i+=g.byteLength,M&&(i=null),n=t,s=async function*(){for(let y of A)y.stream?yield*y.stream():yield y},o=`multipart/form-data; boundary=${c}`}else if(une(t))n=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Qg.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:LYe(t)}if((typeof n=="string"||Qg.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:p,done:l}=await c.next();if(l)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!dne(r)){let A=new Uint8Array(p);A.byteLength&&u.enqueue(A)}return u.desiredSize>0},async cancel(u){await c.return()},type:"bytes"})}return[{stream:r,source:n,length:i},o]}function JYe(t,e=!1){return t instanceof ReadableStream&&(RW(!Qg.isDisturbed(t),"The body has already been consumed."),RW(!t.locked,"The stream is locked.")),hne(t,e)}function KYe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function ZYe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function eJe(t){return{blob(){return pb(this,r=>{let s=lne(this);return s===null?s="":s&&(s=jYe(s)),new HYe([r],{type:s})},t)},arrayBuffer(){return pb(this,r=>new Uint8Array(r).buffer,t)},text(){return pb(this,Ane,t)},json(){return pb(this,rJe,t)},formData(){return pb(this,r=>{let s=lne(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=$Ye(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new pne;return i[lb]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new pne;for(let[o,a]of n)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return pb(this,r=>new Uint8Array(r),t)}}}function tJe(t){Object.assign(t.prototype,eJe(t))}async function pb(t,e,r){if(GYe.brandCheck(t,r),Mne(t))throw new TypeError("Body is unusable: Body has already been read");ZYe(t[lb]);let s=PYe(),n=o=>s.reject(o),i=o=>{try{s.resolve(e(o))}catch(a){n(a)}};return t[lb].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await kYe(t[lb].body,i,n),s.promise)}function Mne(t){let e=t[lb].body;return e!=null&&(e.stream.locked||Qg.isDisturbed(e.stream))}function rJe(t){return JSON.parse(Ane(t))}function lne(t){let e=t[lb].headersList,r=UYe(e);return r==="failure"?null:r}mne.exports={extractBody:hne,safelyExtractBody:JYe,cloneBody:KYe,mixinBody:tJe,streamRegistry:bne,hasFinalizationRegistry:fne,bodyUnusable:Mne}});var Rne=b((rst,Ine)=>{"use strict";var Ne=require("node:assert"),ke=i0(),{channels:gne}=Zf(),NW=AW(),{RequestContentLengthMismatchError:KA,ResponseContentLengthMismatchError:sJe,RequestAbortedError:Bne,HeadersTimeoutError:nJe,HeadersOverflowError:iJe,SocketError:nB,InformationalError:db,BodyTimeoutError:oJe,HTTPParserError:aJe,ResponseExceededMaxSizeError:cJe}=O0(),{kUrl:Dne,kReset:Ns,kClient:TW,kParser:It,kBlocking:Ug,kRunning:br,kPending:uJe,kSize:zne,kWriting:il,kQueue:go,kNoRef:Pg,kKeepAliveDefaultTimeout:pJe,kHostHeader:lJe,kPendingIdx:AJe,kRunningIdx:ai,kError:ci,kPipelining:rB,kSocket:fb,kKeepAliveTimeoutValue:iB,kMaxHeadersSize:SW,kKeepAliveMaxTimeout:dJe,kKeepAliveTimeoutThreshold:fJe,kHeadersTimeout:bJe,kBodyTimeout:hJe,kStrictContentLength:xW,kMaxRequests:One,kCounter:MJe,kMaxResponseSize:mJe,kOnError:gJe,kResume:nl,kHTTPContext:qne}=lt(),da=bse(),zJe=Buffer.alloc(0),Z4=Buffer[Symbol.species],eB=ke.addListener,OJe=ke.removeAllListeners,FW;async function EJe(){let t=process.env.JEST_WORKER_ID?bW():void 0,e;try{e=await WebAssembly.compile(mse())}catch{e=await WebAssembly.compile(t||bW())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,n)=>0,wasm_on_status:(r,s,n)=>{Ne(M1.ptr===r);let i=s-ba+fa.byteOffset;return M1.onStatus(new Z4(fa.buffer,i,n))||0},wasm_on_message_begin:r=>(Ne(M1.ptr===r),M1.onMessageBegin()||0),wasm_on_he
`;if(typeof n=="string"?g+=`host: ${n}\r
2026-05-22 12:07:22 +00:00
`:g+=t[lJe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
2026-05-22 12:07:22 +00:00
`:t[rB]&&!f[Ns]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let O=u[y+0],B=u[y+1];if(Array.isArray(B))for(let I=0;I<B.length;I++)g+=`${O}: ${B[I]}\r
`;else g+=`${O}: ${B}\r
2026-05-22 12:07:22 +00:00
`}return gne.sendHeaders.hasSubscribers&&gne.sendHeaders.publish({request:e,headers:g,socket:f}),!c||A===0?yne(M,null,t,e,f,p,g,l):ke.isBuffer(c)?yne(M,c,t,e,f,p,g,l):ke.isBlobLike(c)?typeof c.stream=="function"?Cne(M,c.stream(),t,e,f,p,g,l):RJe(M,c,t,e,f,p,g,l):ke.isStream(c)?IJe(M,c,t,e,f,p,g,l):ke.isIterable(c)?Cne(M,c,t,e,f,p,g,l):Ne(!1),!0}function IJe(t,e,r,s,n,i,o,a){Ne(i!==0||r[br]===0,"stream body cannot be pipelined");let c=!1,u=new oB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o}),p=function(M){if(!c)try{!u.write(M)&&this.pause&&this.pause()}catch(g){ke.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},A=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let M=new Bne;queueMicrotask(()=>f(M))}},f=function(M){if(!c){if(c=!0,Ne(n.destroyed||n[il]&&r[br]<=1),n.off("drain",l).off("error",f),e.removeListener("data",p).removeListener("end",f).removeListener("close",A),!M)try{u.end()}catch(g){M=g}u.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?ke.destroy(e,M):ke.destroy(e)}};e.on("data",p).on("end",f).on("error",f).on("close",A),e.resume&&e.resume(),n.on("drain",l).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(A)}function yne(t,e,r,s,n,i,o,a){try{e?ke.isBuffer(e)&&(Ne(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${o}content-length: ${i}\r
\r
2026-05-22 12:01:11 +00:00
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(n[Ns]=!0)):i===0?n.write(`${o}content-length: 0\r
\r
2026-05-22 12:01:11 +00:00
`,"latin1"):(Ne(i===null,"no body must not have content length"),n.write(`${o}\r
2026-05-22 12:07:22 +00:00
`,"latin1")),s.onRequestSent(),r[nl]()}catch(c){t(c)}}async function RJe(t,e,r,s,n,i,o,a){Ne(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new KA;let c=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${o}content-length: ${i}\r
\r
2026-05-22 12:07:22 +00:00
`,"latin1"),n.write(c),n.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(n[Ns]=!0),r[nl]()}catch(c){t(c)}}async function Cne(t,e,r,s,n,i,o,a){Ne(i!==0||r[br]===0,"iterator body cannot be pipelined");let c=null;function u(){if(c){let A=c;c=null,A()}}let p=()=>new Promise((A,f)=>{Ne(c===null),n[ci]?f(n[ci]):c=A});n.on("close",u).on("drain",u);let l=new oB({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let A of e){if(n[ci])throw n[ci];l.write(A)||await p()}l.end()}catch(A){l.destroy(A)}finally{n.off("close",u).off("drain",u)}}var oB=class{constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[il]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ci])throw r[ci];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&o+u>n){if(i[xW])throw new KA;process.emitWarning(new KA)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[Ns]=!0),n===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
${u.toString(16)}\r
2026-05-22 12:07:22 +00:00
`,"latin1"),this.bytesWritten+=u;let p=r.write(e);return r.uncork(),s.onBodySent(e),p||r[It].timeout&&r[It].timeoutType===bb&&r[It].timeout.refresh&&r[It].timeout.refresh(),p}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[il]=!1,e[ci])throw e[ci];if(!e.destroyed){if(n===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
2026-05-22 12:07:22 +00:00
`,"latin1"),r!==null&&n!==r){if(s[xW])throw new KA;process.emitWarning(new KA)}e[It].timeout&&e[It].timeoutType===bb&&e[It].timeout.refresh&&e[It].timeout.refresh(),s[nl]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[il]=!1,e&&(Ne(s[br]<=1,"pipeline should only contain this request"),n(e))}};Ine.exports=CJe});var Wne=b((sst,xne)=>{"use strict";var ui=require("node:assert"),{pipeline:wJe}=require("node:stream"),u0=i0(),{RequestContentLengthMismatchError:QW,RequestAbortedError:wne,SocketError:Gg,InformationalError:PW}=O0(),{kUrl:aB,kReset:uB,kClient:hb,kRunning:pB,kPending:NJe,kQueue:ol,kPendingIdx:kW,kRunningIdx:zo,kError:Eo,kSocket:q1,kStrictContentLength:SJe,kOnError:UW,kMaxConcurrentStreams:Tne,kHTTP2Session:Oo,kResume:al,kSize:FJe,kHTTPContext:vJe}=lt(),fu=Symbol("open streams"),Nne,Sne=!1,cB;try{cB=require("node:http2")}catch{cB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:TJe,HTTP2_HEADER_METHOD:xJe,HTTP2_HEADER_PATH:WJe,HTTP2_HEADER_SCHEME:LJe,HTTP2_HEADER_CONTENT_LENGTH:_Je,HTTP2_HEADER_EXPECT:QJe,HTTP2_HEADER_STATUS:PJe}}=cB;function kJe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}async function UJe(t,e){t[q1]=e,Sne||(Sne=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=cB.connect(t[aB],{createConnection:()=>e,peerMaxConcurrentStreams:t[Tne]});r[fu]=0,r[hb]=t,r[q1]=e,u0.addListener(r,"error",HJe),u0.addListener(r,"frameError",XJe),u0.addListener(r,"end",VJe),u0.addListener(r,"goaway",jJe),u0.addListener(r,"close",function(){let{[hb]:n}=this,{[q1]:i}=n,o=this[q1][Eo]||this[Eo]||new Gg("closed",u0.getSocketInfo(i));if(n[Oo]=null,n.destroyed){ui(n[NJe]===0);let a=n[ol].splice(n[zo]);for(let c=0;c<a.length;c++){let u=a[c];u0.errorRequest(n,u,o)}}}),r.unref(),t[Oo]=r,e[Oo]=r,u0.addListener(e,"error",function(n){ui(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Eo]=n,this[hb][UW](n)}),u0.addListener(e,"end",function(){u0.destroy(this,new Gg("other side closed",u0.getSocketInfo(this)))}),u0.addListener(e,"close",function(){let n=this[Eo]||new Gg("closed",u0.getSocketInfo(this));t[q1]=null,this[Oo]!=null&&this[Oo].destroy(n),t[kW]=t[zo],ui(t[pB]===0),t.emit("disconnect",t[aB],[t],n),t[al]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return YJe(t,...n)},resume(){GJe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function GJe(t){let e=t[q1];e?.destroyed===!1&&(t[FJe]===0&&t[Tne]===0?(e.unref(),t[Oo].unref()):(e.ref(),t[Oo].ref()))}function HJe(t){ui(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[q1][Eo]=t,this[hb][UW](t)}function XJe(t,e,r){if(r===0){let s=new PW(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[q1][Eo]=s,this[hb][UW](s)}}function VJe(){let t=new Gg("other side closed",u0.getSocketInfo(this[q1]));this.destroy(t),u0.destroy(this[q1],t)}function jJe(t){let e=this[Eo]||new Gg(`HTTP/2: "GOAWAY" frame received with code ${t}`,u0.getSocketInfo(this)),r=this[hb];if(r[q1]=null,r[vJe]=null,this[Oo]!=null&&(this[Oo].destroy(e),this[Oo]=null),u0.destroy(this[q1],e),r[zo]<r[ol].length){let s=r[ol][r[zo]];r[ol][r[zo]++]=null,u0.errorRequest(r,s,e),r[kW]=r[zo]}ui(r[pB]===0),r.emit("disconnect",r[aB],[r],e),r[al]()}function $Je(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function YJe(t,e){let r=t[Oo],{method:s,path:n,host:i,upgrade:o,expectContinue:a,signal:c,headers:u}=e,{body:p}=e;if(o)return u0.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<u.length;R+=2){let F=u[R+0],T=u[R+1];if(Array.isArray(T))for(let _=0;_<T.length;_++)l[F]?l[F]+=`,${T[_]}`:l[F]=T[_];else l[F]=T}let A,{hostname:f,port:M}=t[aB];l[TJe]=i||`${f}${M?`:${M}`:""}`,l[xJe]=s;let g=R=>{e.aborted||e.completed||(R=R||new wne,u0.errorRequest(t,e,R),A!=null&&u0.destroy(A,R),u0.destroy(p,R),t[ol][t[zo]++]=null,t[al]())};try{e.onConnect(g)}catch(R){u0.errorRequest
`,this[EKe]=c??3e5,this[OKe]=n??3e5,this[yKe]=B??!0,this[CKe]=R,this[VW]=T,this[ul]=null,this[RKe]=j>-1?j:-1,this[NKe]=K??100,this[Vt]=null,this[yo]=[],this[hu]=0,this[Co]=0,this[jg]=Re=>$W(this,Re),this[wKe]=Re=>$ne(this,Re)}get pipelining(){return this[fB]}set pipelining(e){this[fB]=e,this[jg](!0)}get[Jg](){return this[yo].length-this[Co]}get[Yg](){return this[Co]-this[hu]}get[$g](){return this[yo].length-this[hu]}get[fKe](){return!!this[Vt]&&!this[mb]&&!this[Vt].destroyed}get[XW](){return!!(this[Vt]?.busy(null)||this[$g]>=(jne(this)||1)||this[Jg]>0)}[dKe](e){Yne(this),this.once("connect",e)}[IKe](e,r){let s=e.origin||this[Ma].origin,n=new aKe(s,e,r);return this[yo].push(n),this[e2]||(ZA.bodyLength(n.body)==null&&ZA.isIterable(n.body)?(this[e2]=1,queueMicrotask(()=>$W(this))):this[jg](!0)),this[e2]&&this[pl]!==2&&this[XW]&&(this[pl]=2),this[pl]<2}async[DKe](){return new Promise(e=>{this[$g]?this[ul]=e:e(null)})}async[qKe](e){return new Promise(r=>{let s=this[yo].splice(this[Co]);for(let i=0;i<s.length;i++){let o=s[i];ZA.errorRequest(this,o,e)}let n=()=>{this[ul]&&(this[ul](),this[ul]=null),r(null)};this[Vt]?(this[Vt].destroy(e,n),this[Vt]=null):queueMicrotask(n),this[jg]()})}},vKe=dB();function $ne(t,e){if(t[Yg]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){bu(t[Co]===t[hu]);let r=t[yo].splice(t[hu]);for(let s=0;s<r.length;s++){let n=r[s];ZA.errorRequest(t,n,e)}bu(t[$g]===0)}}async function Yne(t){bu(!t[mb]),bu(!t[Vt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ma];if(r[0]==="["){let i=r.indexOf("]");bu(i!==-1);let o=r.substring(1,i);bu(Vne.isIP(o)),r=o}t[mb]=!0,Mb.beforeConnect.hasSubscribers&&Mb.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Vt]?.version,servername:t[cl],localAddress:t[Vg]},connector:t[Xg]});try{let i=await new Promise((o,a)=>{t[Xg]({host:e,hostname:r,protocol:s,port:n,servername:t[cl],localAddress:t[Vg]},(c,u)=>{c?a(c):o(u)})});if(t.destroyed){ZA.destroy(i.on("error",Hne),new pKe);return}bu(i);try{t[Vt]=i.alpnProtocol==="h2"?await FKe(t,i):await SKe(t,i)}catch(o){throw i.destroy().on("error",Hne),o}t[mb]=!1,i[BKe]=0,i[VW]=t[VW],i[AKe]=t,i[hKe]=null,Mb.connected.hasSubscribers&&Mb.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Vt]?.version,servername:t[cl],localAddress:t[Vg]},connector:t[Xg],socket:i}),t.emit("connect",t[Ma],[t])}catch(i){if(t.destroyed)return;if(t[mb]=!1,Mb.connectError.hasSubscribers&&Mb.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Vt]?.version,servername:t[cl],localAddress:t[Vg]},connector:t[Xg],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(bu(t[Yg]===0);t[Jg]>0&&t[yo][t[Co]].servername===t[cl];){let o=t[yo][t[Co]++];ZA.errorRequest(t,o,i)}else $ne(t,i);t.emit("connectionError",t[Ma],[t],i)}t[jg]()}function Xne(t){t[pl]=0,t.emit("drain",t[Ma],[t])}function $W(t,e){t[e2]!==2&&(t[e2]=2,TKe(t,e),t[e2]=0,t[hu]>256&&(t[yo].splice(0,t[hu]),t[Co]-=t[hu],t[hu]=0))}function TKe(t,e){for(;;){if(t.destroyed){bu(t[Jg]===0);return}if(t[ul]&&!t[$g]){t[ul](),t[ul]=null;return}if(t[Vt]&&t[Vt].resume(),t[XW])t[pl]=2;else if(t[pl]===2){e?(t[pl]=1,queueMicrotask(()=>Xne(t))):Xne(t);continue}if(t[Jg]===0||t[Yg]>=(jne(t)||1))return;let r=t[yo][t[Co]];if(t[Ma].protocol==="https:"&&t[cl]!==r.servername){if(t[Yg]>0)return;t[cl]=r.servername,t[Vt]?.destroy(new uKe("servername changed"),()=>{t[Vt]=null,$W(t)})}if(t[mb])return;if(!t[Vt]){Yne(t);return}if(t[Vt].destroyed||t[Vt].busy(r))return;!r.aborted&&t[Vt].write(r)?t[Co]++:t[yo].splice(t[Co],1)}}Jne.exports=jW});var YW=b((cst,Kne)=>{"use strict";var bB=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)}};Kne.exports=class{constructor(){this.head=this.tail=new bB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
2026-05-22 12:07:22 +00:00
`.trim())}};hae.exports=s_});var FB=b((Lst,Oae)=>{"use strict";var mae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:E00}=O0(),y00=Ob();zae()===void 0&&gae(new y00);function gae(t){if(!t||typeof t.dispatch!="function")throw new E00("Argument agent must implement Agent");Object.defineProperty(globalThis,mae,{value:t,writable:!0,enumerable:!1,configurable:!1})}function zae(){return globalThis[mae]}Oae.exports={setGlobalDispatcher:gae,getGlobalDispatcher:zae}});var vB=b((Qst,Eae)=>{"use strict";Eae.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 Cae=b((Pst,yae)=>{"use strict";var C00=AB();yae.exports=t=>{let e=t?.maxRedirections;return r=>function(n,i){let{maxRedirections:o=e,...a}=n;if(!o)return r(n,i);let c=new C00(r,o,n,i);return r(a,c)}}});var Dae=b((kst,Bae)=>{"use strict";var B00=yB();Bae.exports=t=>e=>function(s,n){return e(s,new B00({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))}});var Iae=b((Ust,qae)=>{"use strict";var D00=i0(),{InvalidArgumentError:q00,RequestAbortedError:I00}=O0(),R00=vB(),n_=class extends R00{#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new q00("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#u.bind(this))}#u(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let o=D00.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new I00(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#c.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#c.onError(this.#i):this.#c.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w00({maxSize:t}={maxSize:1024*1024}){return e=>function(s,n){let{dumpMaxSize:i=t}=s,o=new n_({maxSize:i},n);return e(s,o)}}qae.exports=w00});var Nae=b((Gst,wae)=>{"use strict";var{isIP:N00}=require("node:net"),{lookup:S00}=require("node:dns"),F00=vB(),{InvalidArgumentError:Nb,InformationalError:v00}=O0(),Rae=Math.pow(2,31)-1,i_=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.get(e.hostname);if(n==null&&this.full){s(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(n==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){s(o??new v00("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),u=this.pick(e,c,i.affinity),p;typeof u.port=="number"?p=`:${u.port}`:e.port!==""?p=`:${e.port}`:p="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${p}`)});else{let o=this.pick(e,n,i.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){S00(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#n(e,r,s){let n=null,{records:i,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===Rae?(r.offset=0,s=4):(r
${i}`;break;case"retry":ppe(i)&&(r[n]=i);break;case"id":lpe(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&ppe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&lpe(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}}};Ape.exports={EventSourceStream:X_}});var Ope=b((Ont,zpe)=>{"use strict";var{pipeline:Us0}=require("node:stream"),{fetching:Gs0}=Az(),{makeRequest:Hs0}=vb(),{webidl:Ou}=ir(),{EventSourceStream:Xs0}=dpe(),{parseMIMEType:Vs0}=ws(),{createFastMessageEvent:js0}=Qb(),{isNetworkError:fpe}=pz(),{delay:$s0}=G_(),{kEnumerableProperty:h2}=i0(),{environmentSettingsObject:bpe}=hn(),hpe=!1,Mpe=3e3,Bz=0,mpe=1,Dz=2,Ys0="anonymous",Js0="use-credentials",Hb=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Bz;#n=null;#i=null;#c;#u;constructor(e,r={}){super(),Ou.util.markAsUncloneable(this);let s="EventSource constructor";Ou.argumentLengthCheck(arguments,1,s),hpe||(hpe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ou.converters.USVString(e,s,"url"),r=Ou.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#c=r.dispatcher,this.#u={lastEventId:"",reconnectionTime:Mpe};let n=bpe,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#u.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Ys0;r.withCredentials&&(o=Js0,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=bpe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#n=Hs0(a),this.#o()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#o(){if(this.#r===Dz)return;this.#r=Bz;let e={request:this.#n,dispatcher:this.#c},r=s=>{fpe(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(fpe(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?Vs0(n):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=mpe,this.dispatchEvent(new Event("open")),this.#u.origin=s.urlList[s.urlList.length-1].origin;let a=new Xs0({eventSourceSettings:this.#u,push:c=>{this.dispatchEvent(js0(c.type,c.options))}});Us0(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Gs0(e)}async#l(){this.#r!==Dz&&(this.#r=Bz,this.dispatchEvent(new Event("error")),await $s0(this.#u.reconnectionTime),this.#r===Bz&&(this.#u.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#u.lastEventId,!0),this.#o()))}close(){Ou.brandCheck(this,t),this.#r!==Dz&&(this.#r=Dz,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},gpe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Bz,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mpe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Dz,writable:!1}};Object.defineProperties(Hb,gpe);Object.definePropert
%s`,F,F,B,s);var T=B.type==="*"?k8:B.type==="?"?P8:"\\"+B.type;n=!0,s=s.slice(0,B.reStart)+T+"\\("+F}M(),i&&(s+="\\\\");var _=!1;switch(s.charAt(0)){case"[":case".":case"(":_=!0}for(var j=a.length-1;j>-1;j--){var he=a[j],we=s.slice(0,he.reStart),K=s.slice(he.reStart,he.reEnd-8),qe=s.slice(he.reEnd-8,he.reEnd),Y=s.slice(he.reEnd);qe+=Y;var Re=we.split("(").length-1,Qe=Y;for(g=0;g<Re;g++)Qe=Qe.replace(/\)[+*?]?/,"");Y=Qe;var z0="";Y===""&&e!==XD&&(z0="$");var d0=we+K+Y+z0+qe;s=d0}if(s!==""&&n&&(s="(?=.)"+s),_&&(s=A+s),e===XD)return[s,n];if(!n)return mc0(t);var x0=r.nocase?"i":"";try{var Et=new RegExp("^"+s+"$",x0)}catch{return new RegExp("$.")}return Et._glob=t,Et._src=s,Et}qn.makeRe=function(t,e){return new cr(t,e||{}).makeRe()};cr.prototype.makeRe=Mc0;function Mc0(){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?k8:e.dot?uc0:pc0,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(o){return o===U8?r:typeof o=="string"?gc0(o):o._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}qn.match=function(t,e,r){r=r||{};var s=new cr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};cr.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;kz.sep!=="/"&&(e=e.split(kz.sep).join("/")),e=e.split(f2e),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<n.length;o++){var a=n[o],c=e;s.matchBase&&a.length===1&&(c=[i]);var u=this.matchOne(c,a,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};cr.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,o=t.length,a=e.length;n<o&&i<a;n++,i++){this.debug("matchOne loop");var c=e[i],u=t[n];if(this.debug(e,c,u),c===!1)return!1;if(c===U8){this.debug("GLOBSTAR",[e,c,u]);var p=n,l=i+1;if(l===a){for(this.debug("** at the end");n<o;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;p<o;){var A=t[p];if(this.debug(`
globstar while`,t,p,e,l,A),this.matchOne(t.slice(p),e.slice(l),r))return this.debug("globstar found match!",p,o,A),!0;if(A==="."||A===".."||!s.dot&&A.charAt(0)==="."){this.debug("dot detected!",t,p,e,l);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,p,e,l),p===o))}var f;if(typeof c=="string"?(f=u===c,this.debug("string match",c,u,f)):(f=u.match(c),this.debug("pattern match",c,u,f)),!f)return!1}if(n===o&&i===a)return!0;if(n===o)return r;if(i===a)return n===o-1&&t[n]==="";throw new Error("wtf?")};function mc0(t){return t.replace(/\\(.)/g,"$1")}function gc0(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Hz=b((lot,O2e)=>{"use strict";var qc0="2.0.0",Ic0=Number.MAX_SAFE_INTEGER||9007199254740991,Rc0=16,wc0=250,Nc0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];O2e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Rc0,MAX_SAFE_BUILD_LENGTH:wc0,MAX_SAFE_INTEGER:Ic0,RELEASE_TYPES:Nc0,SEMVER_SPEC_VERSION:qc0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Xz=b((Aot,E2e)=>{"use strict";var Sc0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};E2e.exports=Sc0});var sh=b((qa,y2e)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:H8,MAX_SAFE_BUILD_LENGTH:Fc0,MAX_LENGTH:vc0}=Hz(),Tc0=Xz();qa=y2e.exports={};var xc0=qa.re=[],Wc0=qa.safeRe=[],pe=qa.src=[],Lc0=qa.safeSrc=[],le=qa.t={},_c0=0,X8="[a-zA-Z0-9-]",Qc0=[["\\s",1],["\\d",vc0],[X8,Fc0]],Pc0=t=>{for(let[e,r]of Qc0)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},je=(t,e,r)=>{let s=Pc0(e),n=_c0++;Tc0(t,n,e),le[t]=n,pe[n]=e,Lc0[n]=s,xc0[n]=new RegExp(e,r?"g":void 0),Wc0[n]=new RegExp(s,r?"g":void 0)};je("NUMERICIDENTIFIER","0|[1-9]\\d*");je("NUMERICIDENTIFIERLOOSE","\\d+");je("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${X8}*`);je("MAINVERSION",`(${pe[le.NUMERICIDENTIFIER]})\\.(${pe[le.NUMERICIDENTIFIER]})\\.(${pe[le.NUMERICIDENTIFIER]})`);je("MAINVERSIONLOOSE",`(${pe[le.NUMERICIDENTIFIERLOOSE]})\\.(${pe[le.NUMERICIDENTIFIERLOOSE]})\\.(${pe[le.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASEIDENTIFIER",`(?:${pe[le.NONNUMERICIDENTIFIER]}|${pe[le.NUMERICIDENTIFIER]})`);je("PRERELEASEIDENTIFIERLOOSE",`(?:${pe[le.NONNUMERICIDENTIFIER]}|${pe[le.NUMERICIDENTIFIERLOOSE]})`);je("PRERELEASE",`(?:-(${pe[le.PRERELEASEIDENTIFIER]}(?:\\.${pe[le.PRERELEASEIDENTIFIER]})*))`);je("PRERELEASELOOSE",`(?:-?(${pe[le.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${pe[le.PRERELEASEIDENTIFIERLOOSE]})*))`);je("BUILDIDENTIFIER",`${X8}+`);je("BUILD",`(?:\\+(${pe[le.BUILDIDENTIFIER]}(?:\\.${pe[le.BUILDIDENTIFIER]})*))`);je("FULLPLAIN",`v?${pe[le.MAINVERSION]}${pe[le.PRERELEASE]}?${pe[le.BUILD]}?`);je("FULL",`^${pe[le.FULLPLAIN]}$`);je("LOOSEPLAIN",`[v=\\s]*${pe[le.MAINVERSIONLOOSE]}${pe[le.PRERELEASELOOSE]}?${pe[le.BUILD]}?`);je("LOOSE",`^${pe[le.LOOSEPLAIN]}$`);je("GTLT","((?:<|>)?=?)");je("XRANGEIDENTIFIERLOOSE",`${pe[le.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);je("XRANGEIDENTIFIER",`${pe[le.NUMERICIDENTIFIER]}|x|X|\\*`);je("XRANGEPLAIN",`[v=\\s]*(${pe[le.XRANGEIDENTIFIER]})(?:\\.(${pe[le.XRANGEIDENTIFIER]})(?:\\.(${pe[le.XRANGEIDENTIFIER]})(?:${pe[le.PRERELEASE]})?${pe[le.BUILD]}?)?)?`);je("XRANGEPLAINLOOSE",`[v=\\s]*(${pe[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${pe[le.XRANGEIDENTIFIERLOOSE]})(?:\\.(${pe[le.XRANGEIDENTIFIERLOOSE]})(?:${pe[le.PRERELEASELOOSE]})?${pe[le.BUILD]}?)?)?`);je("XRANGE",`^${pe[le.GTLT]}\\s*${pe[le.XRANGEPLAIN]}$`);je("XRANGELOOSE",`^${pe[le.GTLT]}\\s*${pe[le.XRANGEPLAINLOOSE]}$`);je("COERCEPLAIN",`(^|[^\\d])(\\d{1,${H8}})(?:\\.(\\d{1,${H8}}))?(?:\\.(\\d{1,${H8}}))?`);je("COERCE",`${pe[le.COERCEPLAIN]}(?:$|[^\\d])`);je("COERCEFULL",pe[le.COERCEPLAIN]+`(?:${pe[le.PRERELEASE]})?(?:${pe[le.BUILD]})?(?:$|[^\\d])`);je("COERCERTL",pe[le.COERCE],!0);je("COERCERTLFULL",pe[le.COERCEFULL],!0);je("LONETILDE","(?:~>?)");je("TILDETRIM",`(\\s*)${pe[le.LONETILDE]}\\s+`,!0);qa.tildeTrimReplace="$1~";je("TILDE",`^${pe[le.LONETILDE]}${pe[le.XRANGEPLAIN]}$`);je("TILDELOOSE",`^${pe[le.LONETILDE]}${pe[le.XRANGEPLAINLOOSE]}$`);je("LONECARET","(?:\\^)");je("CARETTRIM",`(\\s*)${pe[le.LONECARET]}\\s+`,!0);qa.caretTrimReplace="$1^";je("CARET",`^${pe[le.LONECARET]}${pe[le.XRANGEPLAIN]}$`);je("CARETLOOSE",`^${pe[le.LONECARET]}${pe[le.XRANGEPLAINLOOSE]}$`);je("COMPARATORLOOSE",`^${pe[le.GTLT]}\\s*(${p
`).join(`
2026-05-22 12:07:22 +00:00
`+i),t.push(n+"m+"+vq.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=lA0()+e+" "+t[0]}function lA0(){return ur.inspectOpts.hideDate?"":new Date().toISOString()+" "}function AA0(...t){return process.stderr.write(Fq.format(...t)+`
`)}function dA0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fA0(){return process.env.DEBUG}function bA0(t){t.inspectOpts={};let e=Object.keys(ur.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ur.inspectOpts[e[r]]}vq.exports=NQ()(ur);var{formatters:sbe}=vq.exports;sbe.o=function(t){return this.inspectOpts.colors=this.useColors,Fq.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};sbe.O=function(t){return this.inspectOpts.colors=this.useColors,Fq.inspect(t,this.inspectOpts)}});var F2=b((Ict,TQ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?TQ.exports=Kfe():TQ.exports=nbe()});var abe=b(Ls=>{"use strict";var hA0=Ls&&Ls.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),MA0=Ls&&Ls.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ibe=Ls&&Ls.__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)&&hA0(e,t,r);return MA0(e,t),e};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.req=Ls.json=Ls.toBuffer=void 0;var mA0=ibe(require("http")),gA0=ibe(require("https"));async function obe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}Ls.toBuffer=obe;async function zA0(t){let r=(await obe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}Ls.json=zA0;function OA0(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?gA0:mA0).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}Ls.req=OA0});var lbe=b(Nn=>{"use strict";var ube=Nn&&Nn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),EA0=Nn&&Nn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pbe=Nn&&Nn.__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)&&ube(e,t,r);return EA0(e,t),e},yA0=Nn&&Nn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ube(e,t,r)};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.Agent=void 0;var CA0=pbe(require("net")),cbe=pbe(require("http")),BA0=require("https");yA0(abe(),Nn);var wa=Symbol("AgentBaseInternalState"),xQ=class extends cbe.Agent{constructor(e){super(e),this[wa]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new CA0.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?BA0.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof cbe.Agent)try{return a.addRequest(e,n)}catch(c){return s(c)}this[wa].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[wa].currentSocket;if(this[wa].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[wa].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[wa]&&(this[wa].defaultPort=e)}get protocol(){return this[wa].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[wa]&&(this[wa].protocol=e)}};Nn.Agent=xQ});var Abe=b(Ah=>{"use strict";var DA0=Ah&&Ah.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ah,"__esModule",{value:!0});Ah.parseProxyResponse=void 0;var qA0=DA0(F2()),Tq=(0,qA0.default)("https-proxy-agent:parse-proxy-response");function IA0(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let p=t.read();p?u(p):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Tq("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(p){o(),Tq("onerror %o",p),r(p)}function u(p){n.push(p),s+=p.length;let l=Buffer.concat(n,s),A=l.indexOf(`\r
\r
2026-05-22 12:07:22 +00:00
`);if(A===-1){Tq("have not received end of HTTP headers yet..."),i();return}let f=l.slice(0,A).toString("ascii").split(`\r
`),M=f.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),B={};for(let I of f){if(!I)continue;let R=I.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let F=I.slice(0,R).toLowerCase(),T=I.slice(R+1).trimStart(),_=B[F];typeof _=="string"?B[F]=[_,T]:Array.isArray(_)?_.push(T):B[F]=T}Tq("got proxy server response: %o %o",M,B),o(),e({connect:{statusCode:y,statusText:O,headers:B},buffered:l})}t.on("error",c),t.on("end",a),i()})}Ah.parseProxyResponse=IA0});var mbe=b(Ei=>{"use strict";var RA0=Ei&&Ei.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),wA0=Ei&&Ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hbe=Ei&&Ei.__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)&&RA0(e,t,r);return wA0(e,t),e},Mbe=Ei&&Ei.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.HttpsProxyAgent=void 0;var xq=hbe(require("net")),dbe=hbe(require("tls")),NA0=Mbe(require("assert")),SA0=Mbe(F2()),FA0=lbe(),vA0=require("url"),TA0=Abe(),oO=(0,SA0.default)("https-proxy-agent"),fbe=t=>t.servername===void 0&&t.host&&!xq.isIP(t.host)?{...t,servername:t.host}:t,Wq=class extends FA0.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new vA0.URL(e):e,this.proxyHeaders=r?.headers??{},oO("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?bbe(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(oO("Creating `tls.Socket`: %o",this.connectOpts),n=dbe.connect(fbe(this.connectOpts))):(oO("Creating `net.Socket`: %o",this.connectOpts),n=xq.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=xq.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`;let c=(0,TA0.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",xA0),r.secureEndpoint?(oO("Upgrading socket connection to TLS"),dbe.connect({...bbe(fbe(r),"host","path","port"),socket:n})):n;n.destroy();let l=new xq.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{oO("Replaying proxy buffer for failed request"),(0,NA0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};Wq.protocols=["http","https"];Ei.HttpsProxyAgent=Wq;function xA0(t){t.resume()}function bbe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Obe=b(_s=>{"use strict";var WA0=_s&&_s.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),LA0=_s&&_s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gbe=_s&&_s.__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)&&WA0(e,t,r);return LA0(e,t),e};Object.defineProperty(_s,"__esModule",{value:!0});_s.req=_s.json=_s.toBuffer=void 0;var _A0=gbe(require("http")),QA0=gbe(require("https"));async function zbe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}_s.toBuffer=zbe;async function PA0(t){let r=(await zbe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}_s.json=PA0;function kA0(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?QA0:_A0).request(t,e),n=new Promise((i,o)=>{s.once("response",i).once("error",o).end()});return s.then=n.then.bind(n),s}_s.req=kA0});var aO=b(Sn=>{"use strict";var ybe=Sn&&Sn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),UA0=Sn&&Sn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cbe=Sn&&Sn.__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)&&ybe(e,t,r);return UA0(e,t),e},GA0=Sn&&Sn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ybe(e,t,r)};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.Agent=void 0;var HA0=Cbe(require("net")),Ebe=Cbe(require("http")),XA0=require("https");GA0(Obe(),Sn);var Na=Symbol("AgentBaseInternalState"),WQ=class extends Ebe.Agent{constructor(e){super(e),this[Na]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new HA0.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?XA0.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(a=>{if(this.decrementSockets(i,o),a instanceof Ebe.Agent)return a.addRequest(e,n);this[Na].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(i,o),s(a)})}createConnection(){let e=this[Na].currentSocket;if(this[Na].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Na].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Na]&&(this[Na].defaultPort=e)}get protocol(){return this[Na].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Na]&&(this[Na].protocol=e)}};Sn.Agent=WQ});var LQ=b(yi=>{"use strict";var VA0=yi&&yi.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),jA0=yi&&yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dbe=yi&&yi.__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)&&VA0(e,t,r);return jA0(e,t),e},$A0=yi&&yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yi,"__esModule",{value:!0});yi.HttpProxyAgent=void 0;var YA0=Dbe(require("net")),JA0=Dbe(require("tls")),KA0=$A0(F2()),ZA0=require("events"),e20=aO(),Bbe=require("url"),dh=(0,KA0.default)("http-proxy-agent"),Lq=class extends e20.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Bbe.URL(e):e,this.proxyHeaders=r?.headers??{},dh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?t20(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${n}//${i}`,a=new Bbe.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(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.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 p=c[u];p&&e.setHeader(u,p)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;dh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(dh("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
2026-05-22 12:07:22 +00:00
`)+4,e.outputData[0].data=e._header+s.substring(n),dh("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(dh("Creating `tls.Socket`: %o",this.connectOpts),i=JA0.connect(this.connectOpts)):(dh("Creating `net.Socket`: %o",this.connectOpts),i=YA0.connect(this.connectOpts)),await(0,ZA0.once)(i,"connect"),i}};Lq.protocols=["http","https"];yi.HttpProxyAgent=Lq;function t20(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var jbe=b(Kq=>{"use strict";Object.defineProperty(Kq,"__esModule",{value:!0});Kq.state=void 0;Kq.state={instrumenterImplementation:void 0}});var lhe=b(sI=>{"use strict";Object.defineProperty(sI,"__esModule",{value:!0});sI.state=void 0;sI.state={operationRequestMap:new WeakMap}});var Ume=b(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var OM0=require("os"),EM0=require("util");function yM0(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var CM0=yM0(EM0);function BM0(t,...e){process.stderr.write(`${CM0.default.format(t,...e)}${OM0.EOL}`)}var Fme=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Tme,hU=[],MU=[],E5=[];Fme&&mU(Fme);var xme=Object.assign(t=>Wme(t),{enable:mU,enabled:gU,disable:DM0,log:BM0});function mU(t){Tme=t,hU=[],MU=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?MU.push(new RegExp(`^${s.substr(1)}$`)):hU.push(new RegExp(`^${s}$`));for(let s of E5)s.enabled=gU(s.namespace)}function gU(t){if(t.endsWith("*"))return!0;for(let e of MU)if(e.test(t))return!1;for(let e of hU)if(e.test(t))return!0;return!1}function DM0(){let t=Tme||"";return mU(""),t}function Wme(t){let e=Object.assign(r,{enabled:gU(t),destroy:qM0,log:xme.log,namespace:t,extend:IM0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return E5.push(e),e}function qM0(){let t=E5.indexOf(this);return t>=0?(E5.splice(t,1),!0):!1}function IM0(t){let e=Wme(`${this.namespace}:${t}`);return e.log=this.log,e}var jO=xme,Lme=new Set,z5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,y5,C5=jO("azure");C5.log=(...t)=>{jO.log(...t)};var zU=["verbose","info","warning","error"];z5&&(kme(z5)?_me(z5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${z5}'; logging is not enabled. Acceptable values: ${zU.join(", ")}.`));function _me(t){if(t&&!kme(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${zU.join(",")}`);y5=t;let e=[];for(let r of Lme)Pme(r)&&e.push(r.namespace);jO.enable(e.join(","))}function RM0(){return y5}var vme={verbose:400,info:300,warning:200,error:100};function wM0(t){let e=C5.extend(t);return Qme(C5,e),{error:O5(e,"error"),warning:O5(e,"warning"),info:O5(e,"info"),verbose:O5(e,"verbose")}}function Qme(t,e){e.log=(...r)=>{t.log(...r)}}function O5(t,e){let r=Object.assign(t.extend(e),{level:e});if(Qme(t,r),Pme(r)){let s=jO.disable();jO.enable(s+","+r.namespace)}return Lme.add(r),r}function Pme(t){return!!(y5&&vme[t.level]<=vme[y5])}function kme(t){return zU.includes(t)}Nh.AzureLogger=C5;Nh.createClientLogger=wM0;Nh.getLogLevel=RM0;Nh.setLogLevel=_me});var yU=b(YO=>{"use strict";Object.defineProperty(YO,"__esModule",{value:!0});var Sh=new WeakMap,B5=new WeakMap,$O=class t{constructor(){this.onabort=null,Sh.set(this,[]),B5.set(this,!1)}get aborted(){if(!B5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return B5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Sh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Sh.get(this).push(r)}removeEventListener(e,r){if(!Sh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Sh.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Gme(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Sh.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),B5.set(t,!0)}var OU=class extends Error{constructor(e){super(e),t
Polling from: ${r.config.operationLocation}
Operation status: ${p}
2026-05-22 12:07:22 +00:00
Polling status: ${Zme.includes(p)?"Stopped":"Running"}`),p==="succeeded"){let l=o(u,r);if(l!==void 0)return{response:await e(l).catch(Jme({state:r,stateProxy:s,isOperationError:a})),status:p}}return{response:u,status:p}}async function sge(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:u,getPollingInterval:p,processResult:l,getError:A,updateState:f,setDelay:M,isDone:g,setErrorAsResult:y}=t,{operationLocation:O}=r.config;if(O!==void 0){let{response:B,status:I}=await om0({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:O,getResourceLocation:o,isOperationError:c,options:n});if(tge({status:I,response:B,state:r,stateProxy:s,isDone:g,processResult:l,getError:A,setErrorAsResult:y}),!Zme.includes(I)){let R=p?.(B);R&&M(R);let F=a?.(B,r);if(F!==void 0){let T=O!==F;r.config.operationLocation=F,u?.(F,T)}else u?.(O,!1)}f?.(r,B)}}function nge(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function ige(t){return t.headers.location}function oge(t){return t.headers["operation-location"]}function age(t){return t.headers["azure-asyncoperation"]}function am0(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=o())!==null&&e!==void 0?e:n;default:return o()}function o(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}}function cge(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=oge(e),o=age(e),a=nge({operationLocation:i,azureAsyncOperation:o}),c=ige(e),u=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:am0({requestMethod:u,location:c,requestPath:s,resourceLocationConfig:n})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function uge(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 vU(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 J2.verbose(`LRO: unrecognized operation status: ${e}`),e}}function cm0(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return uge({status:r,statusCode:t.statusCode})}function um0(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return uge({status:i,statusCode:t.statusCode})}function vU(t){return t===202?"running":t<300?"succeeded":"failed"}function pge({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?pm0(new Date(e)):r*1e3}}function lge(t){let e=t.flatResponse.error;if(!e){J2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){J2.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 pm0(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function Age(t){let{response:e,state:r,operationLocation:s}=t;function n(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return vU(e.rawResponse.statusCode);case"Body":return TU(e,r);default:return"running"}}let i=n();return i==="running"&&s===void 0?"succeeded":i}async function lm0(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return rge({init:async()=>{let o=await n.sendInitialRequest(),a=cge({rawResponse:o.rawResponse,requestPath:n.requestPath,requestMethod:n.r
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:o=i,n=1;break;case 1:r[s++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:r[s++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:r[s++]=(o&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Lh.base64decode=jm0;function $m0(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Qu[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Qu[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Qu[n|s>>6],e+=Qu[s&63],r=0;break}return r&&(e+=Qu[n],e+="=",r==1&&(e+="=")),e}Lh.base64encode=$m0});var Uge=b(G5=>{"use strict";Object.defineProperty(G5,"__esModule",{value:!0});G5.utf8read=void 0;var HU=t=>String.fromCharCode.apply(String,t);function Ym0(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(HU(s)),n=0);return r.length?(n&&r.push(HU(s.slice(0,n))),r.join("")):HU(s.slice(0,n))}G5.utf8read=Ym0});var n3=b(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.WireType=sc.mergeBinaryOptions=sc.UnknownFieldHandler=void 0;var Jm0;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:o})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:o,data:a}of t.list(s))n.tag(i,o).raw(a)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Jm0=sc.UnknownFieldHandler||(sc.UnknownFieldHandler={}));function Km0(t,e){return Object.assign(Object.assign({},t),e)}sc.mergeBinaryOptions=Km0;var Zm0;(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"})(Zm0=sc.WireType||(sc.WireType={}))});var X5=b(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.varint32read=Xs.varint32write=Xs.int64toString=Xs.int64fromString=Xs.varint64write=Xs.varint64read=void 0;function eg0(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}Xs.varint64read=eg0;function tg0(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}Xs.varint64write=tg0;var H5=65536*65536;function rg0(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(o,a){let c=Number(t.slice(o,a));n*=r,s=s*r+c,s>=H5&&(n=n+(s/H5|0),s=s%H5)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}Xs.int64fromString=rg0;function sg0(t,e){if(e>>>0<=2097151)return""+(H5*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,o=s+n*8147497,a=n*2,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function u(p,l){let A=p?String(p):"";return l?"0000000".slice(A.length)+A:A}return u(a,0)+u(o,a)+u(i,1)}Xs.int64toString=sg0;function ng0(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)}}Xs.varint32write=ng0;function ig0(){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
`)}};gR.RpcError=mG});var zG=b(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.mergeRpcOptions=void 0;var Eze=Kt();function qz0(t,e){if(!e)return t;let r={};zR(t,r),zR(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=Eze.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Eze.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zR(t.meta,r.meta),zR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}OR.mergeRpcOptions=qz0;function zR(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}});var EG=b(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.Deferred=rd.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=rd.DeferredState||(rd.DeferredState={}));var OG=class{constructor(e=!0){this._state=oc.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};rd.Deferred=OG});var CG=b(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});ER.RpcOutputStreamController=void 0;var yze=EG(),sd=Kt(),yG=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){sd.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){sd.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){sd.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(){sd.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;sd.assert(e,"bad state"),sd.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 yze.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;sd.assert(s.state==yze.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};ER.RpcOutputStreamController=yG});var DG=b(Hh=>{"use strict";var Iz0=Hh&&Hh.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};Object.defineProperty(Hh,"__esModule",{value:!0});Hh.UnaryCall=void 0;var BG=class{constructor(e,r,s,n,i,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,
`).forEach(r=>{r.match(x40)||r.match(W40)||(e+=r)}),Buffer.from(e,"base64")}function _40(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
2026-05-22 12:07:22 +00:00
`)}});var Nw=b(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.SHA2_HASH_ALGOS=Zl.RSA_SIGNATURE_ALGOS=Zl.ECDSA_SIGNATURE_ALGOS=void 0;Zl.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"};Zl.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"};Zl.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 BX=b(Sw=>{"use strict";Object.defineProperty(Sw,"__esModule",{value:!0});Sw.RFC3161TimestampVerificationError=void 0;var CX=class extends Error{};Sw.RFC3161TimestampVerificationError=CX});var Vye=b(fc=>{"use strict";var Q40=fc&&fc.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),P40=fc&&fc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),k40=fc&&fc.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&Q40(r,e,s[n]);return P40(r,e),r}})();Object.defineProperty(fc,"__esModule",{value:!0});fc.TSTInfo=void 0;var Xye=k40(pM()),U40=Nw(),G40=BX(),DX=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 U40.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Xye.digest(this.messageImprintHashAlgorithm,e);if(!Xye.bufferEqual(r,this.messageImprintHashedMessage))throw new G40.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};fc.TSTInfo=DX});var $ye=b(bc=>{"use strict";var H40=bc&&bc.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),X40=bc&&bc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),V40=bc&&bc.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&H40(r,e,s[n]);return X40(r,e),r}})();Object.defineProperty(bc,"__esModule",{value:!0});bc.RFC3161Timestamp=void 0;var j40=Iw(),qX=V40(pM()),jye=Nw(),W3=BX(),$40=Vye(),Y40="1.2.840.113549.1.7.2",J40="1.2.840.113549.1.9.16.1.4",K40="1.2.840.113549.1.9.4",IX=class t{root;constructor(e){this.root=e}static parse(e){let r=j40.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 jye.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return jye
\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
2026-05-22 12:07:22 +00:00
\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 n4e=b(s4e=>{"use strict";var fj=tp().Buffer;s4e._dbcs=sp;var lr=-1,r4e=-2,ki=-10,bs=-1e3,CM=new Array(256),rE=-1;for(MN=0;MN<256;MN++)CM[MN]=lr;var MN;function sp(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}
2026-05-22 12:07:22 +00:00
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},ap=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(s?aI0:oI0);if(!n||s&&!xj.includes(n[1])||!ABe.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let i=n[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=jn(e,r);if(!s)return!1;if(s.isIntegrity){let n=s.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let i=s[n].find(o=>o.digest===this.digest);return i||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(xj.includes(this.algorithm)&&this.digest.match(iI0)&&this.options.every(r=>r.match(cI0)))?"":`${this.algorithm}-${this.digest}${lE(this.options)}`}};function lBe(t,e,r,s){let n=t!=="",i=!1,o="",a=s.length-1;for(let u=0;u<a;u++){let p=ap.prototype.toString.call(s[u],r);p&&(i=!0,o+=p,o+=e)}let c=ap.prototype.toString.call(s[a],r);return c&&(i=!0,o+=c),n&&i?t+e+o:t+o}var Rd=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of xj)this[n]&&(s=lBe(s,r,e,this[n]))}else for(let n of Object.keys(this))s=lBe(s,r,e,this[n]);return s}concat(e,r){let s=typeof e=="string"?e:uE(e,r);return jn(`${this.toString(r)} ${s}`,r)}hexDigest(){return jn(this,{single:!0}).hexDigest()}merge(e,r){let s=jn(e,r);for(let n in s)if(this[n]){if(!this[n].find(i=>s[n].find(o=>i.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=s[n]}match(e,r){let s=jn(e,r);if(!s)return!1;let n=s.pickAlgorithm(r,Object.keys(this));return!!n&&this[n].find(i=>s[n].find(o=>i.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||bI0,n=Object.keys(this);return r?.length&&(n=n.filter(i=>r.includes(i))),n.length?n.reduce((i,o)=>s(i,o)||i):null}};Bc.exports.parse=jn;function jn(t,e){if(!t)return null;if(typeof t=="string")return Tj(t,e);if(t.algorithm&&t.digest){let r=new Rd;return r[t.algorithm]=[t],Tj(uE(r,e),e)}else return Tj(uE(t,e),e)}function Tj(t,e){if(e?.single)return new ap(t,e);let r=t.trim().split(/\s+/).reduce((s,n)=>{let i=new ap(n,e);if(i.algorithm&&i.digest){let o=i.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(i)}return s},new Rd);return r.isEmpty()?null:r}Bc.exports.stringify=uE;function uE(t,e){return t.algorithm&&t.digest?ap.prototype.toString.call(t,e):typeof t=="string"?uE(jn(t,e),e):Rd.prototype.toString.call(t,e)}Bc.exports.fromHex=uI0;function uI0(t,e,r){let s=lE(r?.options);return jn(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Bc.exports.fromData=pI0;function pI0(t,e){let r=e?.algorithms||[...Lj],s=lE(e?.options);return r.reduce((n,i)=>{let o=pE.createHash(i).update(t).digest("base64"),a=new ap(`${i}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new Rd)}Bc.exports.fromStream=lI0;function lI0(t,e){let r=_j(e);return new Promise((s,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let i;r.on("integrity",o=>{i=o}),r.on("end",()=>s(i)),r.resume()})}Bc.exports.checkData=AI0;function AI0(t,e,r){if(e=jn(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 s=e.pickAlgorithm(r),n=pE.createHash(s).update(t).digest("base64"),i=jn({algorithm:s,digest:n}),o=i.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=
Wanted: ${r.size}
2026-05-22 12:07:22 +00:00
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 ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}Bc.exports.checkStream=dI0;function dI0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=jn(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=_j(r);return new Promise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);let o;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}Bc.exports.integrityStream=_j;function _j(t=Object.create(null)){return new Wj(t)}Bc.exports.create=fI0;function fI0(t){let e=t?.algorithms||[...Lj],r=lE(t?.options),s=e.map(pE.createHash);return{update:function(n,i){return s.forEach(o=>o.update(n,i)),this},digest:function(){return e.reduce((i,o)=>{let a=s.shift().digest("base64"),c=new ap(`${o}-${a}${r}`,t);return i[c.algorithm]||(i[c.algorithm]=[]),i[c.algorithm].push(c),i},new Rd)}}}function bI0(t,e){return pBe.indexOf(t.toLowerCase())>=pBe.indexOf(e.toLowerCase())?t:e}});var kj=b((iqt,MBe)=>{var dBe=U4e(),fBe=uBe(),hI0=Qj(),bBe={shared:!1,ignoreCargoCult:!0},MI0={status:200,headers:{}},qM=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},hBe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},Pj=class{constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=qM(r),this.response=hBe(s),this.options=n,this.policy=new dBe(this.request,this.response,bBe),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 dBe(qM(e),MI0,bBe).storable()}satisfies(e){let r=qM(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new fBe(this.request),n=new fBe(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?hI0.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=qM(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=qM(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=qM(e),n=hBe(r);return!this.policy.revalidatedPolicy(s,n).modified}};MBe.exports=Pj});var gBe=b((oqt,mBe)=>{var Uj=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"}};mBe.exports={NotCachedError:Uj}});var RBe=b((aqt,IBe)=>{"use strict";var zBe=typeof process=="object"&&process?process:{stdout:null,stderr:null},mI0=require("events"),OBe=require("stream"),EBe=require("string_decoder").StringDecoder,cp=Symbol("EOF"),up=Symbol("maybeEmitEnd"),aA=Symbol("emittedEnd"),wN=Symbol("emittingEnd"),AE=Symbol("emittedError"),NN=Symbol("closed"),yBe=Symbol("read"),SN=Symbol("flush"),CBe=Symbol("flushChunk"),Ks=Symbol("encoding"),pp=Symbol("decoder"),FN=Symbol("flowing"),dE=Symbol("paused"),IM=Symbol("resume"),G1=Symbol("bufferLength"),Gj=Symbol("bufferPush"),Hj=Symbol("bufferShift"),Fr=Symbol("objectMode"),vr=Symbol("destroyed"),Xj=Symbol("emitData"),BBe=Symbol("emitEnd"),Vj=Symbol("emitEnd2"),lp=Symbol("async"),fE=t=>Promise.resolve().then(t),DBe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",gI0=DBe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),zI0=DBe&&Symbol.iterator||Symbol("iterator not implemented"),OI0=t=>t==="end"||t==="finish"||t==="prefinish",EI0=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="Arra
Wanted: ${this.expectedSize}
2026-05-22 12:07:22 +00:00
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},hp=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(s?WI0:xI0);if(!n||s&&!l$.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let i=n[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=Yn(e,r);if(!s)return!1;if(s.isIntegrity){let n=s.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let i=s[n].find(o=>o.digest===this.digest);return i||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(l$.includes(this.algorithm)&&this.digest.match(TI0)&&this.options.every(r=>r.match(LI0)))?"":`${this.algorithm}-${this.digest}${zE(this.options)}`}};function $Be(t,e,r,s){let n=t!=="",i=!1,o="",a=s.length-1;for(let u=0;u<a;u++){let p=hp.prototype.toString.call(s[u],r);p&&(i=!0,o+=p,o+=e)}let c=hp.prototype.toString.call(s[a],r);return c&&(i=!0,o+=c),n&&i?t+e+o:t+o}var Nd=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of l$)this[n]&&(s=$Be(s,r,e,this[n]))}else for(let n of Object.keys(this))s=$Be(s,r,e,this[n]);return s}concat(e,r){let s=typeof e=="string"?e:mE(e,r);return Yn(`${this.toString(r)} ${s}`,r)}hexDigest(){return Yn(this,{single:!0}).hexDigest()}merge(e,r){let s=Yn(e,r);for(let n in s)if(this[n]){if(!this[n].find(i=>s[n].find(o=>i.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=s[n]}match(e,r){let s=Yn(e,r);if(!s)return!1;let n=s.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&s[n]&&this[n].find(i=>s[n].find(o=>i.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||XI0,n=Object.keys(this).filter(i=>r?.length?r.includes(i):!0);return n.length?n.reduce((i,o)=>s(i,o)||i):null}};Dc.exports.parse=Yn;function Yn(t,e){if(!t)return null;if(typeof t=="string")return p$(t,e);if(t.algorithm&&t.digest){let r=new Nd;return r[t.algorithm]=[t],p$(mE(r,e),e)}else return p$(mE(t,e),e)}function p$(t,e){if(e?.single)return new hp(t,e);let r=t.trim().split(/\s+/).reduce((s,n)=>{let i=new hp(n,e);if(i.algorithm&&i.digest){let o=i.algorithm;s[o]||(s[o]=[]),s[o].push(i)}return s},new Nd);return r.isEmpty()?null:r}Dc.exports.stringify=mE;function mE(t,e){return t.algorithm&&t.digest?hp.prototype.toString.call(t,e):typeof t=="string"?mE(Yn(t,e),e):Nd.prototype.toString.call(t,e)}Dc.exports.fromHex=_I0;function _I0(t,e,r){let s=zE(r?.options);return Yn(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Dc.exports.fromData=QI0;function QI0(t,e){let r=e?.algorithms||[...d$],s=zE(e?.options);return r.reduce((n,i)=>{let o=gE.createHash(i).update(t).digest("base64"),a=new hp(`${i}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;n[c]||(n[c]=[]),n[c].push(a)}return n},new Nd)}Dc.exports.fromStream=PI0;function PI0(t,e){let r=f$(e);return new Promise((s,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let i;r.on("integrity",o=>{i=o}),r.on("end",()=>s(i)),r.resume()})}Dc.exports.checkData=kI0;function kI0(t,e,r){if(e=Yn(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 s=e.pickAlgorithm(r),n=gE.createHash(s).update(t).digest("base64"),i=Yn({algorithm:s,digest:n}),o=i.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){le
Wanted: ${r.size}
2026-05-22 12:07:22 +00:00
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 ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=i,a.expected=e,a.algorithm=s,a.sri=e,a}}Dc.exports.checkStream=UI0;function UI0(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=Yn(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=f$(r);return new Promise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);let o;s.on("verified",a=>{o=a}),s.on("end",()=>n(o)),s.resume()})}Dc.exports.integrityStream=f$;function f$(t=Object.create(null)){return new A$(t)}Dc.exports.create=GI0;function GI0(t){let e=t?.algorithms||[...d$],r=zE(t?.options),s=e.map(gE.createHash);return{update:function(n,i){return s.forEach(o=>o.update(n,i)),this},digest:function(){return e.reduce((i,o)=>{let a=s.shift().digest("base64"),c=new hp(`${o}-${a}${r}`,t);if(c.algorithm&&c.digest){let u=c.algorithm;i[u]||(i[u]=[]),i[u].push(c)}return i},new Nd)}}}var HI0=gE.getHashes(),YBe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>HI0.includes(t));function XI0(t,e){return YBe.indexOf(t.toLowerCase())>=YBe.indexOf(e.toLowerCase())?t:e}});var JBe=b((dqt,b$)=>{(function(){var t;function e(r,s){var n=this instanceof e?this:t;if(n.reset(s),typeof r=="string"&&r.length>0&&n.hash(r),n!==this)return n}e.prototype.hash=function(r){var s,n,i,o,a;switch(a=r.length,this.len+=a,n=this.k1,i=0,this.rem){case 0:n^=a>i?r.charCodeAt(i++)&65535:0;case 1:n^=a>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:n^=a>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:n^=a>i?(r.charCodeAt(i)&255)<<24:0,n^=a>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(s=this.h1;n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,s^=n,s=s<<13|s>>>19,s=s*5+3864292196&4294967295,!(i>=a);)n=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,o=r.charCodeAt(i++),n^=(o&255)<<24^(o&65280)>>8;switch(n=0,this.rem){case 3:n^=(r.charCodeAt(i+2)&65535)<<16;case 2:n^=(r.charCodeAt(i+1)&65535)<<8;case 1:n^=r.charCodeAt(i)&65535}this.h1=s}return this.k1=n,this},e.prototype.result=function(){var r,s;return r=this.k1,s=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,s^=r),s^=this.len,s^=s>>>16,s=s*51819+(s&65535)*2246770688&4294967295,s^=s>>>13,s=s*44597+(s&65535)*3266445312&4294967295,s^=s>>>16,s>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof b$<"u"?b$.exports=e:this.MurmurHash3=e})()});var ZBe=b((fqt,KBe)=>{"use strict";var VI0=JBe();KBe.exports=function(t){if(t){var e=new VI0(t);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var h$=b((bqt,eDe)=>{var jI0=require("path"),$I0=ZBe();eDe.exports=function(t,e,r){return jI0.join(t,(e?e+"-":"")+$I0(r))}});var M$=b((hqt,YI0)=>{YI0.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license
`+o.map(A=>{let f=JSON.stringify(A);return`${oS(f)} ${f}`}).join(`
`),c=async()=>{let A=dS0(Ic.join(t,"tmp"),s.tmpPrefix);return await j$(Ic.dirname(A),{recursive:!0}),{target:A,moved:!1}},u=async A=>{if(!A.moved)return PIe(A.target,{recursive:!0,force:!0})},p=async A=>{await pS0(A.target,a,{flag:"wx"}),await j$(Ic.dirname(n),{recursive:!0}),await MS0(A.target,n),A.moved=!0},l=await c();try{await p(l)}finally{await u(l)}return o.reverse().map(A=>aS(t,A,!0))}Jn.exports.insert=kIe;async function kIe(t,e,r,s={}){let{metadata:n,size:i,time:o}=s,a=FE(t,e),c={key:e,integrity:r&&AS0.stringify(r),time:o||Date.now(),size:i,metadata:n};try{await j$(Ic.dirname(a),{recursive:!0});let u=JSON.stringify(c);await aS0(a,`
${oS(u)} ${u}`)}catch(u){if(u.code==="ENOENT")return;throw u}return aS(t,c)}Jn.exports.find=gS0;async function gS0(t,e){let r=FE(t,e);try{return(await iS(r)).reduce((n,i)=>i&&i.key===e?aS(t,i):n,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}Jn.exports.delete=zS0;function zS0(t,e,r={}){if(!r.removeFully)return kIe(t,e,null,r);let s=FE(t,e);return PIe(s,{recursive:!0,force:!0})}Jn.exports.lsStream=UIe;function UIe(t){let e=$$(t),r=new lS0({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(nS(),sS)),n=await V$(e);return await s(n,async i=>{let o=Ic.join(e,i),a=await V$(o);await s(a,async c=>{let u=Ic.join(o,c),p=await V$(u);await s(p,async l=>{let A=Ic.join(u,l);try{let M=(await iS(A)).reduce((g,y)=>(g.set(y.key,y),g),new Map);for(let g of M.values()){let y=aS(t,g);y&&r.write(y)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:X$})},{concurrency:X$})},{concurrency:X$}),r.end(),r}).catch(s=>r.emit("error",s)),r}Jn.exports.ls=OS0;async function OS0(t){return(await UIe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}Jn.exports.bucketEntries=iS;async function iS(t,e){let r=await cS0(t,"utf8");return ES0(r,e)}function ES0(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||oS(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}Jn.exports.bucketDir=$$;function $$(t){return Ic.join(t,`index-v${hS0}`)}Jn.exports.bucketPath=FE;function FE(t,e){let r=GIe(e);return Ic.join.apply(Ic,[$$(t)].concat(bS0(r)))}Jn.exports.hashKey=GIe;function GIe(t){return HIe(t,"sha256")}Jn.exports.hashEntry=oS;function oS(t){return HIe(t,"sha1")}function HIe(t,e){return oS0.createHash(e).update(t).digest("hex")}function aS(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?fS0(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function V$(t){return uS0(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var kM=b(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.LRUCache=void 0;var yS0=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,VIe=new Set,Y$=typeof process=="object"&&process?process:{},jIe=(t,e,r,s)=>{typeof Y$.emitWarning=="function"?Y$.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},cS=globalThis.AbortController,XIe=globalThis.AbortSignal;if(typeof cS>"u"){XIe=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},cS=class{constructor(){e()}signal=new XIe;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=Y$.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,jIe("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 CS0=t=>!VIe.has(t),uA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),$Ie=t=>uA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?PM:null:null,PM=class extends Array{constructor(e){super(e),this.fill(0)}},J$=class t{heap;length;static#e=!1;static create(e){let r=$Ie(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}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]}},K$=class t{#e;#t;#s;#r;#n;#i;#c;#u;get perf(){return this.#u}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#l;#d;#A;#a;#h;#O;#M;#m;#B;#g;#y;#C;#b;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#b,sizes:e.#y,keyMap:e.#d,keyList:e.#A,valList:e.#a,next:e.#h,prev:e.#O,get head(){return e.#M},get tail(){return e.#m},free:e.#B,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,s,n,i)=>e.#U(r,s,n,i),moveToTail:r=>e.#W(r),indexes:r=>e.#w(r),rindexes:r=>e.#S(r),isStale:r=>e.#I(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#o}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,onInsert:p,disposeAfter:l,noDisposeOnSet:A,noUpdateTTL:f,maxSize:M=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:O,memoMethod:B,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:R,allowStaleOnFetchRejection:F,allowStaleOnFetchAbort:T,ignoreFetchAbort:_,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#u=j??yS0,r!==
Wanted: ${t}
2026-05-22 12:07:22 +00:00
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var M5e=b((SIt,AY)=>{"use strict";var d5e=QM(),f5e=vE(),b5e=A5e(),o60=TN(),{PassThrough:a60}=Zj(),c60=SM(),h5e=t=>({algorithms:["sha512"],...t});AY.exports=u60;async function u60(t,e,r,s={}){let{memoize:n}=s;s=h5e(s);let i=await b5e(t,r,s),o=await d5e.insert(t,e,i.integrity,{...s,size:i.size});return n&&f5e.put(t,o,r,s),i.integrity}AY.exports.stream=p60;function p60(t,e,r={}){let{memoize:s}=r;r=h5e(r);let n,i,o,a,c=new c60;if(s){let p=new a60().on("collect",l=>{a=l});c.push(p)}let u=b5e.stream(t,r).on("integrity",p=>{n=p}).on("size",p=>{i=p}).on("error",p=>{o=p});return c.push(u),c.push(new o60({async flush(){if(!o){let p=await d5e.insert(t,e,n,{...r,size:i});s&&a&&f5e.put(t,p,a,r),c.emit("integrity",n),c.emit("size",i)}}})),c}});var g5e=b(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.range=Qd.balanced=void 0;var l60=(t,e,r)=>{let s=t instanceof RegExp?m5e(t,r):t,n=e instanceof RegExp?m5e(e,r):e,i=s!==null&&n!=null&&(0,Qd.range)(s,n,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+s.length,i[1]),post:r.slice(i[1]+n.length)}};Qd.balanced=l60;var m5e=(t,e)=>{let r=e.match(t);return r?r[0]:null},A60=(t,e,r)=>{let s,n,i,o,a,c=r.indexOf(t),u=r.indexOf(e,c+1),p=c;if(c>=0&&u>0){if(t===e)return[c,u];for(s=[],i=r.length;p>=0&&!a;){if(p===c)s.push(p),c=r.indexOf(t,p+1);else if(s.length===1){let l=s.pop();l!==void 0&&(a=[l,u])}else n=s.pop(),n!==void 0&&n<i&&(i=n,o=u),u=r.indexOf(e,p+1);p=c<u&&c>=0?c:u}s.length&&o!==void 0&&(a=[i,o])}return a};Qd.range=A60});var D5e=b(JM=>{"use strict";Object.defineProperty(JM,"__esModule",{value:!0});JM.EXPANSION_MAX=void 0;JM.expand=B60;var z5e=g5e(),O5e="\0SLASH"+Math.random()+"\0",E5e="\0OPEN"+Math.random()+"\0",fY="\0CLOSE"+Math.random()+"\0",y5e="\0COMMA"+Math.random()+"\0",C5e="\0PERIOD"+Math.random()+"\0",d60=new RegExp(O5e,"g"),f60=new RegExp(E5e,"g"),b60=new RegExp(fY,"g"),h60=new RegExp(y5e,"g"),M60=new RegExp(C5e,"g"),m60=/\\\\/g,g60=/\\{/g,z60=/\\}/g,O60=/\\,/g,E60=/\\./g;JM.EXPANSION_MAX=1e5;function dY(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function y60(t){return t.replace(m60,O5e).replace(g60,E5e).replace(z60,fY).replace(O60,y5e).replace(E60,C5e)}function C60(t){return t.replace(d60,"\\").replace(f60,"{").replace(b60,"}").replace(h60,",").replace(M60,".")}function B5e(t){if(!t)return[""];let e=[],r=(0,z5e.balanced)("{","}",t);if(!r)return t.split(",");let{pre:s,body:n,post:i}=r,o=s.split(",");o[o.length-1]+="{"+n+"}";let a=B5e(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function B60(t,e={}){if(!t)return[];let{max:r=JM.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),PE(y60(t),r,!0).map(C60)}function D60(t){return"{"+t+"}"}function q60(t){return/^-?0\d/.test(t)}function I60(t,e){return t<=e}function R60(t,e){return t>=e}function PE(t,e,r){let s=[],n=(0,z5e.balanced)("{","}",t);if(!n)return[t];let i=n.pre,o=n.post.length?PE(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let a=0;a<o.length&&a<e;a++){let c=i+"{"+n.body+"}"+o[a];s.push(c)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=a||c,p=n.body.indexOf(",")>=0;if(!u&&!p)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+fY+n.post,PE(t,e,!0)):[t];let l;if(u)l=n.body.split(/\.\./);else if(l=B5e(n.body),l.length===1&&l[0]!==void 0&&(l=PE(l[0],e,!1).map(D60),l.length===1))return o.map(f=>n.pre+l[0]+f);let A;if(u&&l[0]!==void 0&&l[1]!==void 0){let f=dY(l[0]),M=dY(l[1]),g=Math.max(l[0].length,l[1].length),y=l.length===3&&l[2]!==void 0?Math.abs(dY(l[2])):1,O=I60;M<f&&(y*=-1,O=R60);let I=l.some(q60);A=[];for(let R=f;O(R,M);R+=y){let F;if(c)F=String.fromCharCode(R),F==="\\"&&(F="");else if(F=String(R),I){let T=g-F.length;if(T>0){let _=new Array(T+1).join("0");R<0?F="-"+_+F.slice(1):F=_+F}}A.push(F)}}else{A=[];for(let f=0;f<l.length;f++)A.push.apply(A,PE(l[f],e,!1))}for(let f=0;f<A.length;f++)for(let M=0;M<o.length&&s.length<e;M++){let g=i+A[f]+o[M];(!r||u||g)&&s.push(g)}}return s}});var q5
globstar while`,e,A,r,f,M),this.matchOne(e.slice(A),r.slice(f),s))return this.debug("globstar found match!",A,c,M),!0;if(M==="."||M===".."||!n.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,A,r,f);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(s&&(this.debug(`
>>> no match, partial?`,e,A,r,f),A===c))}let g;if(typeof p=="string"?(g=l===p,this.debug("string match",p,l,g)):(g=p.test(l),this.debug("pattern match",p,l,g)),!g)return!1}if(o===c&&a===u)return!0;if(o===c)return s;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Ee.braceExpand)(this.pattern,this.options)}parse(e){(0,IS.assertValidPattern)(e);let r=this.options;if(e==="**")return Ee.GLOBSTAR;if(e==="")return"";let s,n=null;(s=e.match(nF0))?n=r.dot?oF0:iF0:(s=e.match(j60))?n=(r.nocase?r.dot?K60:J60:r.dot?Y60:$60)(s[1]):(s=e.match(aF0))?n=(r.nocase?r.dot?uF0:cF0:r.dot?pF0:lF0)(s):(s=e.match(Z60))?n=r.dot?tF0:eF0:(s=e.match(rF0))&&(n=sF0);let i=T5e.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:n}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,s=r.noglobstar?dF0:r.dot?fF0:bF0,n=new Set(r.nocase?["i"]:[]),i=e.map(c=>{let u=c.map(l=>{if(l instanceof RegExp)for(let A of l.flags.split(""))n.add(A);return typeof l=="string"?OF0(l):l===Ee.GLOBSTAR?Ee.GLOBSTAR:l._src});u.forEach((l,A)=>{let f=u[A+1],M=u[A-1];l!==Ee.GLOBSTAR||M===Ee.GLOBSTAR||(M===void 0?f!==void 0&&f!==Ee.GLOBSTAR?u[A+1]="(?:\\/|"+s+"\\/)?"+f:u[A]=s:f===void 0?u[A-1]=M+"(?:\\/|\\/"+s+")?":f!==Ee.GLOBSTAR&&(u[A-1]=M+"(?:\\/|\\/"+s+"\\/)"+f,u[A+1]=Ee.GLOBSTAR))});let p=u.filter(l=>l!==Ee.GLOBSTAR);if(this.partial&&p.length>=1){let l=[];for(let A=1;A<=p.length;A++)l.push(p.slice(0,A).join("/"));return"(?:"+l.join("|")+")"}return p.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.partial&&(i="^(?:\\/|"+o+i.slice(1,-1)+a+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let s=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let i=this.set;this.debug(this.pattern,"set",i);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<i.length;a++){let c=i[a],u=n;if(s.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return Ee.minimatch.defaults(e).Minimatch}};Ee.Minimatch=Pd;var EF0=MY();Object.defineProperty(Ee,"AST",{enumerable:!0,get:function(){return EF0.AST}});var yF0=mY();Object.defineProperty(Ee,"escape",{enumerable:!0,get:function(){return yF0.escape}});var CF0=yS();Object.defineProperty(Ee,"unescape",{enumerable:!0,get:function(){return CF0.unescape}});Ee.minimatch.AST=T5e.AST;Ee.minimatch.Minimatch=Pd;Ee.minimatch.escape=H60.escape;Ee.minimatch.unescape=X60.unescape});var G5e=b(gs=>{"use strict";var BF0=gs&&gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gs,"__esModule",{value:!0});gs.Minipass=gs.isWritable=gs.isReadable=gs.isStream=void 0;var _5e=typeof process=="object"&&process?process:{stdout:null,stderr:null},BY=require("node:events"),U5e=BF0(require("node:stream")),DF0=require("node:string_decoder"),qF0=t=>!!t&&typeof t=="object"&&(t instanceof TS||t instanceof U5e.default||(0,gs.isReadable)(t)||(0,gs.isWritable)(t));gs.isStream=qF0;var IF0=t=>!!t&&typeof t=="object"&&t instanceof BY.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==U5e.default.Writable.prototype.pipe;gs.isReadable=IF0;var RF0=t=>!!t&&typeof t=="object"&&t instanceof BY.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";gs.isWritable=RF0;var Bp=Symbol("EOF"),Dp=Symbol("maybeEmitEnd"),fA=Symbol("emittedEnd"),RS=Symbol("emittingEnd"),UE=Symbol("emittedError"),wS=Symbol("closed"),Q5e=Symbol("read"),NS=Symbol("flush"),P5e=Symbol("flushChunk"),jo=Symbol("encoding"),KM=Symbol("decoder"),V1=Sy
\r
2026-05-22 12:07:22 +00:00
`);if(A===-1){c6("have not received end of HTTP headers yet..."),i();return}let f=l.slice(0,A).toString("ascii").split(`\r
`),M=f.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),B={};for(let I of f){if(!I)continue;let R=I.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let F=I.slice(0,R).toLowerCase(),T=I.slice(R+1).trimStart(),_=B[F];typeof _=="string"?B[F]=[_,T]:Array.isArray(_)?_.push(T):B[F]=T}c6("got proxy server response: %o %o",M,B),o(),e({connect:{statusCode:y,statusText:O,headers:B},buffered:l})}t.on("error",c),t.on("end",a),i()})}sm.parseProxyResponse=mT0});var rwe=b($i=>{"use strict";var gT0=$i&&$i.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),zT0=$i&&$i.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ewe=$i&&$i.__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)&&gT0(e,t,r);return zT0(e,t),e},twe=$i&&$i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});$i.HttpsProxyAgent=void 0;var Ay=ewe(require("net")),KRe=ewe(require("tls")),OT0=twe(require("assert")),ET0=twe(F2()),yT0=aO(),CT0=require("url"),BT0=JRe(),dy=(0,ET0.default)("https-proxy-agent"),u6=class extends yT0.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new CT0.URL(e):e,this.proxyHeaders=r?.headers??{},dy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ZRe(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){dy("Creating `tls.Socket`: %o",this.connectOpts);let A=this.connectOpts.servername||this.connectOpts.host;n=KRe.connect({...this.connectOpts,servername:A&&Ay.isIP(A)?void 0:A})}else dy("Creating `net.Socket`: %o",this.connectOpts),n=Ay.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ay.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`;let c=(0,BT0.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",DT0),r.secureEndpoint){dy("Upgrading socket connection to TLS");let A=r.servername||r.host;return KRe.connect({...ZRe(r,"host","path","port"),socket:n,servername:Ay.isIP(A)?void 0:A})}return n}n.destroy();let l=new Ay.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{dy("Replaying proxy buffer for failed request"),(0,OT0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};u6.protocols=["http","https"];$i.HttpsProxyAgent=u6;function DT0(t){t.resume()}function ZRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var owe=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var swe=require("buffer"),Vd={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."};Rp.ERRORS=Vd;function qT0(t){if(!swe.Buffer.isEncoding(t))throw new Error(Vd.INVALID_ENCODING)}Rp.checkEncoding=qT0;function nwe(t){return typeof t=="number"&&isFinite(t)&&NT0(t)}Rp.isFiniteInteger=nwe;function iwe(t,e){if(typeof t=="number"){if(!nwe(t)||t<0)throw new Error(e?Vd.INVALID_OFFSET:Vd.INVALID_LENGTH)}else throw new Error(e?Vd.INVALID_OFFSET_NON_NUMBER:Vd.INVALID_LENGTH_NON_NUMBER)}function IT0(t){iwe(t,!1)}Rp.checkLengthValue=IT0;function RT0(t){iwe(t,!0)}Rp.checkOffsetValue=RT0;function wT0(t,e){if(t<0||t>e.length)throw new Error(Vd.INVALID_TARGET_OFFSET)}Rp.checkTargetOffset=wT0;function NT0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function ST0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof swe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Rp.bigIntAndBufferInt64Check=ST0});var cwe=b(uJ=>{"use strict";Object.defineProperty(uJ,"__esModule",{value:!0});var r0=owe(),awe=4096,FT0="utf8",cJ=class t{constructor(e){if(this.length=0,this._encoding=FT0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(r0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(r0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(r0.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(r0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(awe);else{if(typeof e<"u")throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(awe)}}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(Buffe
`).join(`
2026-05-22 12:07:22 +00:00
`+i),t.push(n+"m+"+yF.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=cP0()+e+" "+t[0]}function cP0(){return tr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function uP0(...t){return process.stderr.write(EF.formatWithOptions(tr.inspectOpts,...t)+`
`)}function pP0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function lP0(){return process.env.DEBUG}function AP0(t){t.inspectOpts={};let e=Object.keys(tr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=tr.inspectOpts[e[r]]}yF.exports=nZ()(tr);var{formatters:p6e}=yF.exports;p6e.o=function(t){return this.inspectOpts.colors=this.useColors,EF.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};p6e.O=function(t){return this.inspectOpts.colors=this.useColors,EF.inspect(t,this.inspectOpts)}});var oZ=b((ZRt,iZ)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?iZ.exports=u6e():iZ.exports=l6e()});var BF=b(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.DownloadHTTPError=_t.DownloadLengthMismatchError=_t.DownloadError=_t.ExpiredMetadataError=_t.EqualVersionError=_t.BadVersionError=_t.RepositoryError=_t.PersistError=_t.RuntimeError=_t.ValueError=void 0;var aZ=class extends Error{};_t.ValueError=aZ;var cZ=class extends Error{};_t.RuntimeError=cZ;var uZ=class extends Error{};_t.PersistError=uZ;var Fy=class extends Error{};_t.RepositoryError=Fy;var CF=class extends Fy{};_t.BadVersionError=CF;var pZ=class extends CF{};_t.EqualVersionError=pZ;var lZ=class extends Fy{};_t.ExpiredMetadataError=lZ;var vy=class extends Error{};_t.DownloadError=vy;var AZ=class extends vy{};_t.DownloadLengthMismatchError=AZ;var dZ=class extends vy{statusCode;constructor(e,r){super(e),this.statusCode=r}};_t.DownloadHTTPError=dZ});var d6e=b(Nm=>{"use strict";var bZ=Nm&&Nm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nm,"__esModule",{value:!0});Nm.withTempFile=void 0;var fZ=bZ(require("fs/promises")),dP0=bZ(require("os")),A6e=bZ(require("path")),fP0=async t=>bP0(async e=>t(A6e.default.join(e,"tempfile")));Nm.withTempFile=fP0;var bP0=async t=>{let e=await fZ.default.realpath(dP0.default.tmpdir()),r=await fZ.default.mkdtemp(e+A6e.default.sep);try{return await t(r)}finally{await fZ.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}}});var MZ=b(CA=>{"use strict";var qF=CA&&CA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CA,"__esModule",{value:!0});CA.DefaultFetcher=CA.BaseFetcher=void 0;var hP0=qF(oZ()),f6e=qF(require("fs")),MP0=qF(R6()),mP0=qF(require("util")),b6e=BF(),gP0=d6e(),zP0=(0,hP0.default)("tuf:fetch"),OP0="User-Agent",DF=class{async downloadFile(e,r,s){return(0,gP0.withTempFile)(async n=>{let i=await this.fetch(e),o=0,a=f6e.default.createWriteStream(n);try{for await(let c of i){if(o+=c.length,o>r)throw new b6e.DownloadLengthMismatchError("Max length reached");await EP0(a,c)}}finally{await mP0.default.promisify(a.close).bind(a)()}return s(n)})}async downloadBytes(e,r){return this.downloadFile(e,r,async s=>{let n=f6e.default.createReadStream(s),i=[];for await(let o of n)i.push(o);return Buffer.concat(i)})}};CA.BaseFetcher=DF;var hZ=class extends DF{userAgent;timeout;retry;constructor(e={}){super(),this.userAgent=e.userAgent,this.timeout=e.timeout,this.retry=e.retry}async fetch(e){zP0("GET %s",e);let r=await(0,MP0.default)(e,{headers:{[OP0]:this.userAgent||""},timeout:this.timeout,retry:this.retry});if(!r.ok||!r?.body)throw new b6e.DownloadHTTPError("Failed to download",r.status);return r.body}};CA.DefaultFetcher=hZ;var EP0=async(t,e)=>new Promise((r,s)=>{t.write(e,n=>{n&&s(n),r(!0)})})});var h6e=b((swt,yP0)=>{yP0.exports={name:"tuf-js",version:"4.1.0",description:"JavaScript implementation of The Update Framework (TUF)",main:"dist/index.js",types:"dist/index.d.ts",scripts:{build:"tsc --build tsconfig.build.json",clean:"rm -rf dist && rm tsconfig.build.tsbuildinfo",test:"jest"},repository:{type:"git",url:"git+https://github.com/theupdateframework/tuf-js.git"},files:["dist"],keywords:["tuf","security","update"],author:"bdehamer@github.com",license:"MIT",bugs:{url:"https://github.com/theupdateframework/tuf-js/issues"},homepage:"https://github.com/theupdateframework/tuf-js/tree/main/packages/client#readme",devDependencies:{"@tufjs/repo-mock":"4.0.1","@types/debug":"^4.1.12","@types/make-fetch-happen":"^10.0.4"},dependencies:{"@tufjs/models":"4.1.0",debug:"^4.4.3","make-fetch-happen":"^15.0.1"},engines:{node:"^20.17.0 || >=22.9.0"}}});var M6e=b(IF=>{"use strict";Object.defineProperty(IF,"__esModule",{value:!0});IF.defaultConfig=void 0;IF.defaultConfig={maxRootRotations:256,maxDelegations:32,rootMaxLength:512e3,timestampMaxLength:16384,snapshotMaxLength:2e6,targetsMaxLeng
2026-05-22 12:07:22 +00:00
`,Kk0=/\u2014 (\S+) (\S+)\n/g;function Zk0(t,e){let r=t.inclusionProof,s=UZ.fromString(r.checkpoint.envelope),n=GF.fromString(s.note);if(!e70(s,e))throw new Py.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}function e70(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>j6e.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?j6e.crypto.verify(r,n.publicKey,s.signature):!1})}var UZ=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(kZ))throw new Py.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(kZ),s=e.slice(0,r+1),i=e.slice(r+kZ.length).matchAll(Kk0),o=Array.from(i,a=>{let[,c,u]=a,p=Buffer.from(u,"base64");if(p.length<5)throw new Py.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:p.subarray(0,4),signature:p.subarray(4)}});if(o.length===0)throw new Py.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},GF=class t{origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Py.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,n,i,o)}};ky.LogCheckpoint=GF});var Y6e=b(VZ=>{"use strict";Object.defineProperty(VZ,"__esModule",{value:!0});VZ.verifyMerkleInclusion=s70;var XZ=Gn(),GZ=Pr(),t70=Buffer.from([0]),r70=Buffer.from([1]);function s70(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new GZ.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:o}=n70(s,n);if(r.hashes.length!==i+o)throw new GZ.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,i),c=r.hashes.slice(i),u=p70(t.canonicalizedBody),p=o70(i70(u,a,s),c);if(!XZ.crypto.bufferEqual(p,e.logHash))throw new GZ.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function n70(t,e){let r=a70(t,e),s=c70(t>>BigInt(r));return{inner:r,border:s}}function i70(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?HZ(n,s):HZ(s,n),t)}function o70(t,e){return e.reduce((r,s)=>HZ(s,r),t)}function a70(t,e){return u70(t^e-BigInt(1))}function c70(t){return t.toString(2).split("1").length-1}function u70(t){return t===0n?0:t.toString(2).length}function HZ(t,e){return XZ.crypto.digest("sha256",r70,t,e)}function p70(t){return XZ.crypto.digest("sha256",t70,t)}});var K6e=b(jZ=>{"use strict";Object.defineProperty(jZ,"__esModule",{value:!0});jZ.verifyTLogSET=d70;var J6e=Gn(),l70=Pr(),A70=xm();function d70(t,e){if(!(0,A70.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=f70(t),o=Buffer.from(J6e.json.canonicalize(i),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return J6e.crypto.verify(o,n.publicKey,a)}))throw new l70.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function f70(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var eFe=b(HF=>{"use strict";Object.defineProperty(HF,"__esModule",{value:!0});HF.verifyTLogBody=g70;HF.verifyTLogInclusion=z70;var Z6e=tK(),JZ=Pr(),$Z=H6e(),YZ=X6e(),b70=V6e(),h70=$6e(),M70=Y6e(),m70=K6e();function g70(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new JZ.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==$Z.DSSE_API_VERSION_V1)return(0,$Z.verifyDSSETLogBody)(n,e);{let i=Z6e.Entry.fromJSON(n);return(0,$Z.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,b70.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==YZ.HASHEDREKORD_API_VERSION_V1)return(0,YZ.verifyHashedRekordTLogBody)(n,e);{let i=Z6e.Entry.fromJSON(n);return(0,YZ.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new JZ.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function z70(t,e){let r=!1;if(O70(t)&&((0,m70.verifyTLogSET)(t,e),r=!0),E70(t)){let s=(0,h70.verifyCheckpoint)(t,e);(0,M70.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new JZ.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function O70(t){return t.inclusionPromise!==void 0}function E70(t){return t.inclusionProof!==void 0}});var oFe=b(XF=>{"use strict";Object.defineProperty(XF,"__esModule",{value:!0});XF.Verifier=void 0;var y70=require("util"),Wm=Pr(),tFe=_6e(),rFe=P6e(),sFe=G6e(),nFe=eFe(),KZ=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 s=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifyS
You can add a runtime option to disable the check or this warning:
2026-05-22 12:07:22 +00:00
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function q90(){Object.keys(Ov).forEach(function(t){delete Ov[t]})}});var yv=b(Vc=>{"use strict";Vc.__esModule=!0;Vc.HandlebarsEnvironment=Mee;function $Fe(t){return t&&t.__esModule?t:{default:t}}var ff=Bs(),I90=io(),bee=$Fe(I90),R90=pee(),w90=GFe(),N90=Aee(),Ev=$Fe(N90),S90=fee(),F90="4.7.8";Vc.VERSION=F90;var v90=8;Vc.COMPILER_REVISION=v90;var T90=7;Vc.LAST_COMPATIBLE_COMPILER_REVISION=T90;var x90={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"};Vc.REVISION_CHANGES=x90;var hee="[object Object]";function Mee(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},R90.registerDefaultHelpers(this),w90.registerDefaultDecorators(this)}Mee.prototype={constructor:Mee,logger:Ev.default,log:Ev.default.log,registerHelper:function(e,r){if(ff.toString.call(e)===hee){if(r)throw new bee.default("Arg not supported with multiple helpers");ff.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(ff.toString.call(e)===hee)ff.extend(this.partials,e);else{if(typeof r>"u")throw new bee.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(ff.toString.call(e)===hee){if(r)throw new bee.default("Arg not supported with multiple decorators");ff.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){S90.resetLoggedProperties()}};var W90=Ev.default.log;Vc.log=W90;Vc.createFrame=ff.createFrame;Vc.logger=Ev.default});var JFe=b((Cv,YFe)=>{"use strict";Cv.__esModule=!0;function mee(t){this.string=t}mee.prototype.toString=mee.prototype.toHTML=function(){return""+this.string};Cv.default=mee;YFe.exports=Cv.default});var KFe=b(gee=>{"use strict";gee.__esModule=!0;gee.wrapHelper=L90;function L90(t,e){if(typeof t!="function")return t;var r=function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)};return r}});var sve=b(NA=>{"use strict";NA.__esModule=!0;NA.checkRevision=G90;NA.template=H90;NA.wrapProgram=Bv;NA.resolvePartial=X90;NA.invokePartial=V90;NA.noop=tve;function _90(t){return t&&t.__esModule?t:{default:t}}function Q90(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 P90=Bs(),Lp=Q90(P90),k90=io(),_p=_90(k90),Qp=yv(),ZFe=pee(),U90=KFe(),eve=fee();function G90(t){var e=t&&t[0]||1,r=Qp.COMPILER_REVISION;if(!(e>=Qp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Qp.COMPILER_REVISION))if(e<Qp.LAST_COMPATIBLE_COMPILER_REVISION){var s=Qp.REVISION_CHANGES[r],n=Qp.REVISION_CHANGES[e];throw new _p.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new _p.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 H90(t,e){if(!e)throw new _p.default("No environment passed to template");if(!t||!t.main)throw new _p.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 s(o,a,c){c.hash&&(a=Lp.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c);var u=Lp.extend({},c,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),p=e.VM.invokePartial.call(this,o,a,u);if(p==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),p=c.partials[c.name](a,u)),p!=null){if(c.indent){for(var l=p.split(`
`),A=0,f=l.length;A<f&&!(!l[A]&&A+1===f);A++)l[A]=c.indent+l[A];p=l.join(`
`)}return p}else throw new _p.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var n={strict:function(a,c,u){if(!a||!(c in a))throw new _p.default('"'+c+'" not defined in '+a,{loc:u});return n.lookupProperty(a,c)},lookupProperty:function(a,c){var u=a[c];if(u==null||Object.prototype.hasOwnProperty.call(a,c)||eve.resultIsAllowed(u,n.protoAccessControl,c))return u},lookup:function(a,c){for(var u=a.length,p=0;p<u;p++){var l=a[p]&&n.lookupProperty(a[p],c);if(l!=null)return a[p][c]}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:Lp.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,u,p,l){var A=this.programs[a],f=this.fn(a);return c||l||p||u?A=Bv(this,a,f,c,u,p,l):A||(A=this.programs[a]=Bv(this,a,f)),A},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=Lp.extend({},c,a)),u},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;i._setup(a),!a.partial&&t.useData&&(c=j90(o,c));var u=void 0,p=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?u=o!=a.depths[0]?[o].concat(a.depths):a.depths:u=[o]);function l(A){return""+t.main(n,A,n.helpers,n.partials,c,p,u)}return l=rve(t.main,l,n,a.depths||[],c,p),l(o,a)}return i.isTop=!0,i._setup=function(o){if(o.partial)n.protoAccessControl=o.protoAccessControl,n.helpers=o.helpers,n.partials=o.partials,n.decorators=o.decorators,n.hooks=o.hooks;else{var a=Lp.extend({},e.helpers,o.helpers);$90(a,n),n.helpers=a,t.usePartial&&(n.partials=n.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Lp.extend({},e.decorators,o.decorators)),n.hooks={},n.protoAccessControl=eve.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;ZFe.moveHelperToHooks(n,"helperMissing",c),ZFe.moveHelperToHooks(n,"blockHelperMissing",c)}},i._child=function(o,a,c,u){if(t.useBlockParams&&!c)throw new _p.default("must pass block params");if(t.useDepths&&!u)throw new _p.default("must pass parent depths");return Bv(n,o,t[o],a,0,c,u)},i}function Bv(t,e,r,s,n,i,o){function a(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(p=[c].concat(o)),r(t,c,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),p)}return a=rve(r,a,t,o,s,i),a.program=e,a.depth=o?o.length:0,a.blockParams=n||0,a}function X90(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=r.partials[t]):r.name==="@partial-block"?t=r.data["partial-block"]:t=r.partials[r.name],t}function V90(t,e,r){var s=r.data&&r.data["partial-block"];r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==tve&&(function(){r.data=Qp.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Qp.createFrame(c.data),c.data["partial-block"]=s,i(a,c)},i.partials&&(r.partials=Lp.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new _p.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function tve(){return""}function j90(t,e){return(!e||!("root"in e))&&(e=e?Qp.createFrame(e):{},e.root=t),e}function rve(t,e,r,s,n,i){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],n,i,s),Lp.extend(e,o)}return e}function $90(t,e){Object.keys(t).forEach(function(r){var s=t[r];t[r]=Y90(s,e)})}function Y90(t,e){var r=e.lookupProperty;return U90.wrapHelper(t,function(s){return Lp.extend({lookupProperty:r},s)})}});var zee=b((Dv,nve)=>{"use strict";Dv.__esModule=!0;Dv.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};nve.exports=Dv.defa
`+this.lexer.showPosition()+`
2026-05-22 12:07:22 +00:00
Expecting `+Re.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Qe="Parse error on line "+(l+1)+": Unexpected "+(R==1?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Qe,{text:this.lexer.match,token:this.terminals_[R]||R,line:this.lexer.yylineno,loc:y,expected:Re})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+R);switch(_[0]){case 1:o.push(R),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(_[1]),R=null,F?(R=F,F=null):(A=this.lexer.yyleng,p=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(qe=this.productions_[_[1]][1],we.$=a[a.length-qe],we._$={first_line:c[c.length-(qe||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(qe||1)].first_column,last_column:c[c.length-1].last_column},O&&(we._$.range=[c[c.length-(qe||1)].range[0],c[c.length-1].range[1]]),he=this.performAction.call(we,p,A,l,this.yy,_[1],a,c),typeof he<"u")return he;qe&&(o=o.slice(0,-1*qe*2),a=a.slice(0,-1*qe),c=c.slice(0,-1*qe)),o.push(this.productions_[_[1]][0]),a.push(we.$),c.push(we._$),Y=u[o[o.length-2]][o[o.length-1]],o.push(Y);break;case 3:return!0}}return!0}},e=(function(){var s={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.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),i},unput:function(i){var o=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,a,c,u,p;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),A=0;A<l.length&&(a=this._input.match(this.rules[l[A]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=A,!this.options.flex)));A++);return o?(p=o[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.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],i=this.performAction.call(this,this.yy,this,l[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return typeof i<"u"?i:this.lex()},begin:function(i){this.conditionStack.push(i)},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(i){this.begin(i)}};return s.options={},s.performAction=function(i,o,a,c){function u(l,A){return o.yytext=o.yytext.substring(l,o.yyleng-A+l)}var p=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}},s.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.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}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();Rv.default=oU0;Ave.exports=Rv.default});var Fv=b((Sv,hve)=>{"use strict";Sv.__esModule=!0;function aU0(t){return t&&t.__esModule?t:{default:t}}var cU0=io(),Bee=aU0(cU0);function wv(){this.parents=[]}wv.prototype={constructor:wv,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!wv.prototype[s.type])throw new Bee.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new Bee.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){i
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new mf(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 mf?e:(e=Hee(e,this,r),new mf(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},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,s=[];Object.keys(e).forEach(function(i){var o=Hee(e[i],r);o!=="undefined"&&s.push([r.quotedString(i),":",o])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},generateList:function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(Hee(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};Pv.default=Kve;Zve.exports=Pv.default});var iTe=b((kv,nTe)=>{"use strict";kv.__esModule=!0;function sTe(t){return t&&t.__esModule?t:{default:t}}var tTe=yv(),rG0=io(),Vee=sTe(rG0),sG0=Bs(),nG0=eTe(),rTe=sTe(nG0);function Ym(t){this.value=t}function Jm(){}Jm.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=tTe.COMPILER_REVISION,r=tTe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return sG0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,o=void 0,a=void 0,c=void 0,u=void 0;for(c=0,u=i.length;c<u;c++)o=i[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 Vee.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
2026-05-22 12:07:22 +00:00
`),this.decorators=this.decorators.merge()));var p=this.createFunctionContext(n);if(this.isChild)return p;var l={compiler:this.compilerInfo(),main:p};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var A=this.context,f=A.programs,M=A.decorators;for(c=0,u=f.length;c<u;c++)f[c]&&(l[c]=f[c],M[c]&&(l[c+"_d"]=M[c],l.useDecorators=!0));return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),n?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},preamble:function(){this.lastContext=0,this.source=new rTe.default(this.options.srcName),this.decorators=new rTe.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(c){var u=r.aliases[c];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+c,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(i?o.prepend("buffer += "):n=!0,a.add(";"),o=a=void 0),i=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
2026-05-22 12:07:22 +00:00
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,n,i){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(iG0(this.options.strict&&i,this,r,s,e));return}for(var a=r.length;s<a;s++)this.replaceStack(function(c){var u=o.nameLookup(c,r[s],e);return n?[" && ",u]:[" != null ? ",u," : ",c]})},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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["fn = ",this.decorators.functionCall(s,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),o=[];s&&o.push(i.name),o.push(n),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",i.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",i," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != nul
`,e};Qt.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};Qt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Qt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Qt.prototype.BlockStatement=Qt.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};Qt.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+" }}")};Qt.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+" }}")};Qt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Qt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Qt.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};Qt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Qt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Qt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Qt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Qt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Qt.prototype.NullLiteral=function(){return"NULL"};Qt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};Qt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var dTe=b((kSt,ATe)=>{var Hv=cTe().default,lTe=uTe();Hv.PrintVisitor=lTe.PrintVisitor;Hv.print=lTe.print;ATe.exports=Hv;function pTe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=Hv.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=pTe,require.extensions[".hbs"]=pTe)});var fTe=b((Yee,Zm)=>{(function(t,e){typeof Yee=="object"&&typeof Zm<"u"?Zm.exports=e():typeof define=="function"&&define.amd?define(e):t.moment=e()})(Yee,(function(){"use strict";var t;function e(){return t.apply(null,arguments)}function r(d){t=d}function s(d){return d instanceof Array||Object.prototype.toString.call(d)==="[object Array]"}function n(d){return d!=null&&Object.prototype.toString.call(d)==="[object Object]"}function i(d,h){return Object.prototype.hasOwnProperty.call(d,h)}function o(d){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(d).length===0;var h;for(h in d)if(i(d,h))return!1;return!0}function a(d){return d===void 0}function c(d){return typeof d=="number"||Object.prototype.toString.call(d)==="[object Number]"}function u(d){return d instanceof Date||Object.prototype.toString.call(d)==="[object Date]"}function p(d,h){var m=[],z,D=d.length;for(z=0;z<D;++z)m.push(h(d[z],z));return m}function l(d,h){for(var m in h)i(h,m)&&(d[m]=h[m]);return i(h,"toString")&&(d.toString=h.toString),i(h,"valueOf")&&(d.valueOf=h.valueOf),d}function A(d,h,m,z){return B1e(d,h,m,z,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}functi
[`+N+"] ";for(L in arguments[0])i(arguments[0],L)&&(D+=L+": "+arguments[0][L]+", ");D=D.slice(0,-2)}else D=arguments[N];z.push(D)}_(d+`
Arguments: `+Array.prototype.slice.call(z).join("")+`
2026-05-22 12:07:22 +00:00
`+new Error().stack),m=!1}return h.apply(this,arguments)},h)}var he={};function we(d,h){e.deprecationHandler!=null&&e.deprecationHandler(d,h),he[d]||(_(h),he[d]=!0)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function K(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}function qe(d){var h,m;for(m in d)i(d,m)&&(h=d[m],K(h)?this[m]=h:this["_"+m]=h);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(d,h){var m=l({},d),z;for(z in h)i(h,z)&&(n(d[z])&&n(h[z])?(m[z]={},l(m[z],d[z]),l(m[z],h[z])):h[z]!=null?m[z]=h[z]:delete m[z]);for(z in d)i(d,z)&&!i(h,z)&&n(d[z])&&(m[z]=l({},m[z]));return m}function Re(d){d!=null&&this.set(d)}var Qe;Object.keys?Qe=Object.keys:Qe=function(d){var h,m=[];for(h in d)i(d,h)&&m.push(h);return m};var z0={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function d0(d,h,m){var z=this._calendar[d]||this._calendar.sameElse;return K(z)?z.call(h,m):z}function x0(d,h,m){var z=""+Math.abs(d),D=h-z.length,N=d>=0;return(N?m?"+":"":"-")+Math.pow(10,Math.max(0,D)).toString().substr(1)+z}var Et=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sr={},Ut={};function Oe(d,h,m,z){var D=z;typeof z=="string"&&(D=function(){return this[z]()}),d&&(Ut[d]=D),h&&(Ut[h[0]]=function(){return x0(D.apply(this,arguments),h[1],h[2])}),m&&(Ut[m]=function(){return this.localeData().ordinal(D.apply(this,arguments),d)})}function _A(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}function lo(d){var h=d.match(Et),m,z;for(m=0,z=h.length;m<z;m++)Ut[h[m]]?h[m]=Ut[h[m]]:h[m]=_A(h[m]);return function(D){var N="",L;for(L=0;L<z;L++)N+=K(h[L])?h[L].call(D,d):h[L];return N}}function y0(d,h){return d.isValid()?(h=qt(h,d.localeData()),sr[h]=sr[h]||lo(h),sr[h](d)):d.localeData().invalidDate()}function qt(d,h){var m=5;function z(D){return h.longDateFormat(D)||D}for(U0.lastIndex=0;m>=0&&U0.test(d);)d=d.replace(U0,z),U0.lastIndex=0,m-=1;return d}var Ff={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function vf(d){var h=this._longDateFormat[d],m=this._longDateFormat[d.toUpperCase()];return h||!m?h:(this._longDateFormat[d]=m.match(Et).map(function(z){return z==="MMMM"||z==="MM"||z==="DD"||z==="dddd"?z.slice(1):z}).join(""),this._longDateFormat[d])}var Mg="Invalid date";function tu(){return this._invalidDate}var S="%d",P=/\d{1,2}/;function k(d){return this._ordinal.replace("%d",d)}var $={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ve(d,h,m,z){var D=this._relativeTime[m];return K(D)?D(d,h,m,z):D.replace(/%d/i,d)}function c0(d,h){var m=this._relativeTime[d>0?"future":"past"];return K(m)?m(h):m.replace(/%s/i,h)}var tt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ge(d){return typeof d=="stri
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}vC.exports=pet,vC.exports.__esModule=!0,vC.exports.default=vC.exports});var Mke=b((eWt,TC)=>{var Aet=tPe(),det=XPe(),fet=bke(),bet=hke();function het(t,e){return Aet(t)||det(t,e)||fet(t,e)||bet()}TC.exports=het,TC.exports.__esModule=!0,TC.exports.default=TC.exports});var gke=b((tWt,mke)=>{"use strict";var Met=CT().forEach,met=RC(),get=met("forEach");mke.exports=get?[].forEach:function(e){return Met(this,e,arguments.length>1?arguments[1]:void 0)}});var Oke=b(()=>{"use strict";var zet=et(),zke=gke();zet({target:"Array",proto:!0,forced:[].forEach!==zke},{forEach:zke})});var yke=b((nWt,Eke)=>{"use strict";Oke();var Oet=oa();Eke.exports=Oet("Array","forEach")});var Bke=b((iWt,Cke)=>{"use strict";var Eet=yke();Cke.exports=Eet});var Dke=b(()=>{});var Ike=b((cWt,qke)=>{"use strict";var yet=ug(),Cet=Ds(),Bet=cn(),Det=Bke();Dke();var _te=Array.prototype,qet={DOMTokenList:!0,NodeList:!0};qke.exports=function(t){var e=t.forEach;return t===_te||Bet(_te,t)&&e===_te.forEach||Cet(qet,yet(t))?Det:e}});var Qte=b((uWt,Rke)=>{Rke.exports=Ike()});var wke=b(()=>{"use strict";var Iet=et(),Ret=aT().includes,wet=Pt(),Net=z0e(),Fet=wet(function(){return!Array(1).includes()});Iet({target:"Array",proto:!0,forced:Fet},{includes:function(e){return Ret(this,e,arguments.length>1?arguments[1]:void 0)}});Net("includes")});var Ske=b((AWt,Nke)=>{"use strict";wke();var vet=oa();Nke.exports=vet("Array","includes")});var vke=b((dWt,Fke)=>{"use strict";var Tet=si(),xet=kp(),Wet=a1(),Let=Wet("match");Fke.exports=function(t){var e;return Tet(t)&&((e=t[Let])!==void 0?!!e:xet(t)==="RegExp")}});var xke=b((fWt,Tke)=>{"use strict";var _et=vke(),Qet=TypeError;Tke.exports=function(t){if(_et(t))throw new Qet("The method doesn't accept regular expressions");return t}});var Lke=b((bWt,Wke)=>{"use strict";var Pet=a1(),ket=Pet("match");Wke.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[ket]=!1,"/./"[t](e)}catch{}}return!1}});var Qke=b(()=>{"use strict";var Uet=et(),Get=Dt(),Het=xke(),Xet=gf(),_ke=Zc(),Vet=Lke(),jet=Get("".indexOf);Uet({target:"String",proto:!0,forced:!Vet("includes")},{includes:function(e){return!!~jet(_ke(Xet(this)),_ke(Het(e)),arguments.length>1?arguments[1]:void 0)}})});var kke=b((mWt,Pke)=>{"use strict";Qke();var $et=oa();Pke.exports=$et("String","includes")});var Hke=b((gWt,Gke)=>{"use strict";var Uke=cn(),Yet=Ske(),Jet=kke(),Pte=Array.prototype,kte=String.prototype;Gke.exports=function(t){var e=t.includes;return t===Pte||Uke(Pte,t)&&e===Pte.includes?Yet:typeof t=="string"||t===kte||Uke(kte,t)&&e===kte.includes?Jet:e}});var Vke=b((zWt,Xke)=>{"use strict";var Ket=Hke();Xke.exports=Ket});var xC=b((OWt,jke)=>{jke.exports=Vke()});var Ute=b((EWt,$ke)=>{"use strict";$ke.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Kke=b((yWt,Jke)=>{"use strict";var Zet=Dt(),e0t=gf(),t0t=Zc(),Hte=Ute(),Yke=Zet("".replace),r0t=RegExp("^["+Hte+"]+"),s0t=RegExp("(^|[^"+Hte+"])["+Hte+"]+$"),Gte=function(t){return function(e){var r=t0t(e0t(e));return t&1&&(r=Yke(r,r0t,"")),t&2&&(r=Yke(r,s0t,"$1")),r}};Jke.exports={start:Gte(1),end:Gte(2),trim:Gte(3)}});var i7e=b((CWt,n7e)=>{"use strict";var r7e=C1(),n0t=Pt(),i0t=Dt(),o0t=Zc(),a0t=Kke().trim,Zke=Ute(),WC=r7e.parseInt,e7e=r7e.Symbol,t7e=e7e&&e7e.iterator,s7e=/^[+-]?0x/i,c0t=i0t(s7e.exec),u0t=WC(Zke+"08")!==8||WC(Zke+"0x16")!==22||t7e&&!n0t(function(){WC(Object(t7e))});n7e.exports=u0t?function(e,r){var s=a0t(o0t(e));return WC(s,r>>>0||(c0t(s7e,s)?16:10))}:WC});var a7e=b(()=>{"use strict";var p0t=et(),o7e=i7e();p0t({global:!0,forced:parseInt!==o7e},{parseInt:o7e})});var u7e=b((qWt,c7e)=>{"use strict";a7e();var l0t=ra();c7e.exports=l0t.parseInt});var l7e=b((IWt,p7e)=>{"use strict";var A0t=u7e();p7e.exports=A0t});var d7e=b((RWt,A7e)=>{A7e.exports=l7e()});var FT=b((wWt,f7e)=>{f7e.exports=Lte()});var M7e=b((NWt,h7e)=>{"use strict";var b7e=pC(),d0t=TypeError;h7e.exports=function(t,e){if(!delete t[e])throw new d0t("Cannot delete property "+b7e(e)+" of "+b7e(t))}});var z7e=b((SWt,g7e)=>{"use strict";var m7e=EC(),f0t=Math.floor,Xte=function(t,e){var r=t.length;if(r<8)for(var s=1,n,i;s<r;){for(i=s,n=t[s];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==s++&&(t[i]=n)}else for(var o=f0t(r/2),a=Xte(m7e(t,0,o),e),c=Xte(m7e(t,o),e),u=a.length,p=c.length,l=0,A=0;l<u||A<p;)t[l+A]=l<u&&A<p?e(a[l],c[A])<=0?a[l++]:c[A++]:l<u?a[l++]:c[A++];return t};g7e.exports=Xte});var y7e=b((FWt,E7e)=>{"use strict";var b0t=tg(),O7e=b0t.match(/firefox\/(\d+)/i);E7e.exports=!!O7e&&+O7e[1]});var B7e=b((vWt,C7e)=>{"use strict";var h0t=tg();C7e.exports=/MSIE|Trident/.test(h0t)});var I7e=b((TWt,q7e)=>{"use strict";var M0t=tg(),D7e=M0t.match(/AppleWebKit\/(\d+)\./);q7e.exports=!!D7e&&+D7e[1]});var W7e=b(()=>{"use strict";var m0t=et(),T7e=Dt(),g0t=Of(),z0t=Jc(),R7e=Hp(),O0t=M7e(),w7e=Zc(),Vte=Pt(),E0t=z7e(),y0t=RC(),N7e=y7e(),C0t=B7e(),S7e=rg(),F7e=I7e(),TA=[],v7e=T7e(TA.sort),B0t=T7e(TA.push),D0t=Vte(function(){TA.sort(void 0)}),q0t=Vte(function(){TA.sort(null)}),I0t=y0t("sort"),x7e=!Vte(function(){if(S7e)return S7e<70;if(!(N7e&&N7e>3)){if(C0t)return!0;if(F7e)return F7e<603;var t="",e,r,s,n;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(n=0;n<47;n++)TA.push({k:r+n,v:s})}for(TA.sort(function(i,o){return o.v-i.v}),n=0;n<TA.length;n++)r=TA[n].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),R0t=D0t||!q0t||!I0t||!x7e,w0t=function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:w7e(e)>w7e(r)?1:-1}};m0t({target:"Array",proto:!0,forced:R0t},{sort:function(e){e!==void 0&&g0t(e);var r=z0t(this);if(x7e)return e===void 0?v7e(r):v7e(r,e);var s=[],n=R7e(r),i,o;for(o=0;o<n;o++)o in r&&B0t(s,r[o]);for(E0t(s,w0t(e)),i=R7e(s),o=0;o<i;)r[o]=s[o++];for(;o<n;)O0t(r,o++);return r}})});var _7e=b((LWt,L7e)=>{"use strict";W7e();var N0t=oa();L7e.exports=N0t("Array","sort")});var P7e=b((_Wt,Q7e)=>{"use strict";var S0t=cn(),F0t=_7e(),jte=Array.prototype;Q7e.exports=function(t){var e=t.sort;return t===jte||S0t(jte,t)&&e===jte.sort?F0t:e}});var U7e=b((QWt,k7e)=>{"use strict";var v0t=P7e();k7e.exports=v0t});var H7e=b((PWt,G7e)=>{G7e.exports=U7e()});var X7e=b(()=>{});var $7e=b((GWt,j7e)=>{"use strict";var T0t=C1(),x0t=Pt(),V7e=T0t.RegExp,W0t=!x0t(function(){var t=!0;try{V7e(".","d")}catch{t=!1}var e={},r="",s=t?"dgimsy":"gimsy",n=function(c,u){Object.defineProperty(e,c,{get:function(){return r+=u,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var o in i)n(o,i[o]);var a=Object.getOwnPropertyDescriptor(V7e.prototype,"flags").get.call(e);return a!==s||r!==s});j7e.exports={correct:W0t}});var J7e=b((HWt,Y7e)=>{"use strict";var L0t=Gp();Y7e.exports=function(){var t=L0t(this),e=
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,$0t.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function stt(t,e){var r;if(t){if(typeof t=="string")return p9e(t,e);var s=(0,po.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,Z0t.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return p9e(t,e)}}function p9e(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var ut="xregexp",wf={astral:!1,namespacing:!1},kt={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},eu={},LC={},dg={},$te=[],fg="default",l9e="class",ntt={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},itt=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,ott=kt.exec.call(/()??/,"")[1]===void 0,att=(0,Rf.default)(/x/)!==void 0,ctt={},h9e=ctt.toString;function Jte(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}var M9e=Jte("u"),Kte=Jte("y"),m9e={g:!0,i:!0,m:!0,u:M9e,y:Kte};function g9e(t,e,r,s,n){var i;if(t[ut]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=oe.prototype;else for(var o in oe.prototype)t[o]=oe.prototype[o];return t[ut].source=r,t[ut].flags=s&&(0,rtt.default)(i=s.split("")).call(i).join(""),t}function _C(t){return kt.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function Sf(t,e){var r;if(!oe.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[ut]||{},n=utt(t),i="",o="",a=null,c=null;return e=e||{},e.removeG&&(o+="g"),e.removeY&&(o+="y"),o&&(n=kt.replace.call(n,new RegExp("[".concat(o,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=_C(n+i)),e.isInternalOnly||(s.source!==void 0&&(a=s.source),(0,Rf.default)(s)!=null&&(c=i?_C((0,Rf.default)(s)+i):(0,Rf.default)(s))),t=g9e(new RegExp(e.source||t.source,n),ptt(t)?(0,po.default)(r=s.captureNames).call(r,0):null,a,c,e.isInternalOnly),t}function z9e(t){return(0,b9e.default)(t,16)}function O9e(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||kt.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||ltt(t.input,t.index+t[0].length,r)?"":"(?:)"}function utt(t){return att?(0,Rf.default)(t):kt.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function ptt(t){return!!(t[ut]&&t[ut].captureNames)}function E9e(t){return(0,b9e.default)(t,10).toString(16)}function ltt(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return kt.test.call((0,Nf.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,po.default)(t).call(t,e))}function Zte(t,e){return h9e.call(t)==="[object ".concat(e,"]")}function y9e(t){for(;t.length<4;)t="0".concat(t);return t}function Att(t,e){if(_C(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=kt.replace.call(t,/^\(\?([\w$]+)\)/,function(i,o){if(kt.test.call(/[gy]/,o))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=_C(e+o),""});var r=QC(e),s;try{for(r.s();!(s=r.n()).done;){var n=s.value;if(!m9e[n])throw new SyntaxError("Unknown regex flag ".concat(n))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}function C9e(t){var e={};return Zte(t,"String")?((0,Yte.default)(oe).call(oe,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}function A9e(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){r=(0,jtt.default)(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw a}}}}function s1t(t,e){var r;if(t){if(typeof t=="string")return pUe(t,e);var s=(0,Ztt.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,Ktt.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return pUe(t,e)}}function pUe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}var n1t=function(e){var r={},s=e._dec,n=e._hex,i=e._pad4;function o(A){return A.replace(/[- _]+/g,"").toLowerCase()}function a(A){var f=/^\\[xu](.+)/.exec(A);return f?s(f[1]):A.charCodeAt(A[0]==="\\"?1:0)}function c(A){var f="",M=-1;return(0,t1t.default)(e).call(e,A,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=a(g[1]);y>M+1&&(f+="\\u".concat(i(n(M+1))),y>M+2&&(f+="-\\u".concat(i(n(y-1))))),M=a(g[2]||g[1])}),M<65535&&(f+="\\u".concat(i(n(M+1))),M<65534&&(f+="-\\uFFFF")),f}function u(A){var f="b!";return r[A][f]||(r[A][f]=c(r[A].bmp))}function p(A,f){var M=r[A],g="";if(M.bmp&&!M.isBmpLast){var y;g=(0,s1e.default)(y="[".concat(M.bmp,"]")).call(y,M.astral?"|":"")}if(M.astral&&(g+=M.astral),M.isBmpLast&&M.bmp){var O;g+=(0,s1e.default)(O="".concat(M.astral?"|":"","[")).call(O,M.bmp,"]")}return f?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}function l(A,f){var M=f?"a!":"a=";return r[A][M]||(r[A][M]=p(A,f))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(A,f,M){var g="Invalid double negation ",y="Unknown Unicode token ",O="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",R=A[1]==="P"||!!A[2],F=(0,e1t.default)(M).call(M,"A"),T=o(A[4]||A[3]),_=r[T];if(A[1]==="P"&&A[2])throw new SyntaxError(g+A[0]);if(!r.hasOwnProperty(T))throw new SyntaxError(y+A[0]);if(_.inverseOf){if(T=o(_.inverseOf),!r.hasOwnProperty(T)){var j;throw new ReferenceError((0,s1e.default)(j="".concat(O+A[0]," -> ")).call(j,_.inverseOf))}_=r[T],R=!R}if(!(_.bmp||F))throw new SyntaxError(B+A[0]);if(F){if(f==="class")throw new SyntaxError(I);return l(T,R)}return f==="class"?R?u(T):_.bmp:"".concat((R?"[^":"[")+_.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(A){var f="Unicode token requires name",M="Unicode token has no character data ",g=r1t(A),y;try{for(g.s();!(y=g.n()).done;){var O=y.value;if(!O.name)throw new Error(f);if(!(O.inverseOf||O.bmp||O.astral))throw new Error(M+O.name);r[o(O.name)]=O,O.alias&&(r[o(O.alias)]=O)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(A){var f=o(A);return r[f]}};XC.default=n1t;lUe.exports=XC.default});var fUe=b((ALt,dUe)=>{dUe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function l8(t,e){if(process.env.GITHUB_OUTPUT||"")return Ig("OUTPUT",D4(t,e));process.stdout.write(p8.EOL),ua("set-output",{name:t},ca(e))}function jpe(t){process.exitCode=u8.Failure,$b(t)}function di(){return process.env.RUNNER_DEBUG==="1"}function w(t){ua("debug",{},t)}function $b(t,e={}){ua("error",gx(e),t instanceof Error?t.toString():t)}function E0(t,e={}){ua("warning",gx(e),t instanceof Error?t.toString():t)}function W(t){process.stdout.write(t+p8.EOL)}function z2(t){Ox("group",t)}function O2(){Ox("endgroup")}function ar(t,e){return Hn0(this,void 0,void 0,function*(){z2(t);let r;try{r=yield e()}finally{O2()}return r})}function ID(t,e){if(process.env.GITHUB_STATE||"")return Ig("STATE",D4(t,e));ua("save-state",{name:t},ca(e))}function $pe(t){return process.env[`STATE_${t}`]||""}var wR=x(require("fs"),1),cH=x(require("os"),1),uH=x(require("path"),1);var F8=x(require("crypto"),1),Or=x(require("fs"),1);var Pa0=x(N8(),1);var UD=x(require("os"),1),Ro=x(require("path"),1);var hi=x(N8(),1),_Ae=x(require("stream"),1),QAe=x(require("util"),1),v8=require("assert");var LAe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},PD=class{constructor(e,r,s){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(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return LAe(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;W(i.message)}let n=this.getSleepAmount();W(`Waiting ${n} seconds before trying again`),yield this.sleep(n),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return LAe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Da=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},kD=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},PAe=process.platform==="win32",Hit=process.platform==="darwin",Ua0="actions/tool-cache";function Mi(t,e,r,s){return Da(this,void 0,void 0,function*(){e=e||Ro.join(VAe(),F8.randomUUID()),yield yu(Ro.dirname(e)),w(`Downloading ${t}`),w(`Destination ${e}`);let n=3,i=S8("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=S8("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new PD(n,i,o).execute(()=>Da(this,void 0,void 0,function*(){return yield Ga0(t,e||"",r,s)}),c=>!(c instanceof kD&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Ga0(t,e,r,s){return Da(this,void 0,void 0,function*(){if(Or.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let n=new xs(Ua0,[],{allowRetries:!1});r&&(w("set auth"),s===void 0&&(s={}),s.authorization=r);let i=yield n.get(t,s);if(i.message.statusCode!==200){let p=new kD(i.message.statusCode);throw w(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),p}let o=QAe.promisify(_Ae.pipeline),c=S8("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),u=!1;try{return yield o(c,Or.createWriteStream(e)),w("download complete"),u=!0,e}finally{if(!u){w("download failed");try{yield BD(e)}catch(p){w(`Failed to delete '${e}'. ${p.message}`)}}}})}function kAe(t,e){return Da(this,arguments,void 0,function*(r,s,n="xz"){if(!r)throw new Error("parameter
`),e=e.replace(/\r/g,`
`));let n=e.split(`
2026-05-22 12:07:22 +00:00
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Uz(i));return s.searchPaths.push(...L8(s.patterns)),s})}static stat(e,r,s){return G8(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield rh.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){w(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else n=yield rh.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield rh.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===i)){w(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Bc0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function z2e(t,e){return Bc0(this,void 0,void 0,function*(){return yield jD.create(t,e)})}var pq=x(require("crypto"),1),ih=x(require("fs"),1),D2=x(require("path"),1),lfe=x(ufe(),1),Afe=x(require("util"),1);var Kz;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Kz||(Kz={}));var es;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(es||(es={}));var In;(function(t){t.GNU="gnu",t.BSD="bsd"})(In||(In={}));var cq=2,uq=5e3,pQ=5e3,lQ=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,pfe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Zz="cache.tar",AQ="manifest.txt",tat=10*Math.pow(1024,3);var nh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},El0=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),n(a,c,o.done,o.value)})}}function n(i,o,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},o)}},yl0="1.0";function eO(){return nh(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=D2.join(s,"actions","temp")}let r=D2.join(e,pq.randomUUID());return yield yu(r),r})}function Ia(t){return ih.statSync(t).size}function dQ(t){return nh(this,void 0,void 0,function*(){var e,r,s,n,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),c=yield z2e(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,p=El0(c.globGenerator()),l;l=yield p.next(),e=l.done,!e;u=!0){n=l.value,u=!1;let f=D2.relative(a,n).replace(new RegExp(`\\${D2.sep}`,"g"),"/");w(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(A){r={error:A}}finally{try{!u&&!e&&(s=p.return)&&(yield s.call(p))}finally{if(r)throw r.error}}return o})}function tO(t){return nh(this,void 0,void 0,function*(){return Afe.promisify(ih.unlink)(t)})}function dfe(t){return nh(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),w(`Checking ${e} ${r.join(" ")}`);try{yield Bn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:n=>s+=n.toString(),stderr:n=>s+=n.toString()}})}catch(n){w(n.message)}return s=s.trim(),w(s),s})}function rO(){return nh(this,void 0,void 0,function*(){let t=yield dfe("zstd",["--quiet"]),e=lfe.clean(t);return w(`zstd version: ${e}`),t===""?es.Gzip:es.ZstdWithoutLong})}function Il(t){return t===es.Gzip?Kz.Gzip:Kz.Zstd}function ffe(){return nh(this,void 0,void 0,function*(){return ih.existsSync(lQ)?lQ:(yield dfe("tar")).toLowerCase().includes("gnu tar")?or("tar"):""})}function fQ(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function oh(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(yl0),pq.createHash("sha256").update(s.join("|")).digest("hex")}function bfe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var xh=x(require("fs"),1),Qge=require("url");var Ra=class extends Error{constructor(e){super(e),this.name="AbortError"}};var hfe=require("node:os"),Mfe=x(require("node:util"),1),mfe=x(require("node:process"),1);function gfe(t,...e){mfe.default.stderr.write(`${Mfe.default.format(t,...e)}${hfe.EOL}`)}var zfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Efe,bQ=[],hQ=[],Aq=[];zfe&&MQ(zfe);var yfe=Object.assign(t=>Cfe(t),{enable:MQ,enabled:mQ,disable:Cl0,log:gfe});function MQ(t){Efe=t,bQ=[],hQ=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?hQ.push(r.substring(1)):bQ.push(r);for(let r of Aq)r.enabled=mQ(r.namespace)}function mQ(t){if(t.endsWith("*"))return!0;for(let e of hQ)if(Ofe(t,e))return!1;for(let e of bQ)if(Ofe(t,e))return!0;return!1}function Ofe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let A=[],f="";for(let M of e)M==="*"&&f==="*"||(f=M,A.push(M));r=A.join("")}let s=0,n=0,i=r.length,o=t.length,a=-1,c=-1;for(;s<o&&n<i;)if(r[n]==="*"){if(a=n,n++,n===i)return!0;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else if(r[n]===t[s])n++,s++;else if(a>=0){if(n=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[n];)if(s++,s===o)return!1;c=s,s++,n++;continue}else return!1;let u=s===t.length,p=n===r.length,l=n===r.length-1&&r[n]==="*";return u&&(p||l)}function Cl0(){let t=Efe||"";return MQ(""),t}function Cfe(t){let e=Object.assign(r,{enabled:mQ(t),destroy:Bl0,log:yfe.log,namespace:t,extend:Dl0});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return Aq.push(e),e}function Bl0(){let t=Aq.indexOf(this);return t>=0?(Aq.splice(t,1),!0):!1}function Dl0(t){let e=Cfe(`${this.namespace}:${t}`);return e.log=this.log,e}var ah=yfe;var gQ=["verbose","info","warning","error"],Bfe={verbose:400,info:300,warning:200,error:100};function Dfe(t,e){e.log=(...r)=>{t.log(...r)}}function qfe(t){return gQ.includes(t)}function dq(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,n=ah(t.namespace);n.log=(...p)=>{ah.log(...p)};function i(p){if(p&&!qfe(p))throw new Error(`Unknown log level '${p}'. Acceptable values: ${gQ.join(",")}`);s=p;let l=[];for(let A of e)o(A)&&l.push(A.namespace);ah.enable(l.join(","))}r&&(qfe(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${gQ.join(", ")}.`));function o(p){return!!(s&&Bfe[p.level]<=Bfe[s])}function a(p,l){let A=Object.assign(p.extend(l),{level:l});if(Dfe(p,A),o(A)){let f=ah.disable();ah.enab
${Nl0.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Mq(t){return t instanceof ts?!0:I2(t)&&t.name==="RestError"}function Ws(t,e){return Buffer.from(t,e)}var mq=x(require("node:http"),1),gq=x(require("node:https"),1),CQ=x(require("node:zlib"),1),Ffe=require("node:stream");var zi=sO("ts-http-runtime");var Sl0={};function nO(t){return t&&typeof t.pipe=="function"}function Sfe(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 vfe(t){return t&&typeof t.byteLength=="number"}var zq=class extends Ffe.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},BQ=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ra("The operation was aborted. Request has already been canceled.");s=u=>{u.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new So;zi.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let u=xl0(a);u!==null&&e.headers.set("Content-Length",u)}let c;try{if(a&&e.onUploadProgress){let M=e.onUploadProgress,g=new zq(M);g.on("error",y=>{zi.error("Error in upload progress",y)}),nO(a)?a.pipe(g):g.end(a),a=g}let u=await this.makeRequest(e,r,a);n!==void 0&&clearTimeout(n);let p=Fl0(u),A={status:u.statusCode??0,headers:p,request:e};if(e.method==="HEAD")return u.resume(),A;c=o?vl0(u,p):u;let f=e.onDownloadProgress;if(f){let M=new zq(f);M.on("error",g=>{zi.error("Error in download progress",g)}),c.pipe(M),c=M}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(A.status)?A.readableStreamBody=c:A.bodyAsText=await Tl0(c),A}finally{if(e.abortSignal&&s){let u=Promise.resolve();nO(a)&&(u=Sfe(a));let p=Promise.resolve();nO(c)&&(p=Sfe(c)),Promise.all([u,p]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(l=>{zi.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,u)=>{let p=i?mq.default.request(a,c):gq.default.request(a,c);p.once("error",l=>{u(new ts(l.message,{code:l.code??ts.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Ra("The operation was aborted. Rejecting from abort signal callback while making request.");p.destroy(l),u(l)}),s&&nO(s)?s.pipe(p):s?typeof s=="string"||Buffer.isBuffer(s)?p.end(s):vfe(s)?p.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(zi.error("Unrecognized body type",s),u(new ts("Unrecognized body type"))):p.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?mq.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new mq.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return gq.default.globalAgent;let n=e.tlsSettings??Sl0,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(zi.info("No cached TLS Agent exist, creating a new Agent"),i=new gq.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Fl0(t){let e=Rn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(
`;return e}function f20(t){return t instanceof Uint8Array?t.byteLength:Uq(t)?t.size===-1?void 0:t.size:void 0}function b20(t){let e=0;for(let r of t){let s=f20(r);if(s===void 0)return;e+=s}return e}async function h20(t,e,r){let s=[Ws(`--${r}`,"utf-8"),...e.flatMap(i=>[Ws(`\r
`,"utf-8"),Ws(d20(i.headers),"utf-8"),Ws(`\r
2026-05-22 12:01:11 +00:00
`,"utf-8"),i.body,Ws(`\r
--${r}`,"utf-8")]),Ws(`--\r
\r
2026-05-22 12:07:22 +00:00
`,"utf-8")],n=b20(s);n&&t.headers.set("Content-Length",n),t.body=await xbe(s)}var cO="multipartPolicy",M20=70,m20=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function g20(t){if(t.length>M20)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!m20.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Hq(){return{name:cO,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,o]=n;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?g20(r):r=A20(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await h20(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function Xq(){return hq()}var Wbe=dq({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Lpt=Wbe.logger;function Sa(t){return Wbe.createClientLogger(t)}var Fa=Sa("core-rest-pipeline");function HQ(t={}){return Eq({logger:Fa.info,...t})}var XQ=yq;function VQ(t={}){return Cq(t)}var Vq=x(require("node:os"),1),jq=x(require("node:process"),1);function Lbe(){return"User-Agent"}async function _be(t){if(jq.default&&jq.default.versions){let e=`${Vq.default.type()} ${Vq.default.release()}; ${Vq.default.arch()}`,r=jq.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 $q="1.22.2";function q20(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}function Qbe(){return Lbe()}async function Yq(t){let e=new Map;e.set("core-rest-pipeline",$q),await _be(e);let r=q20(e);return t?`${t} ${r}`:r}var Pbe=Qbe(),kbe="userAgentPolicy";function jQ(t={}){let e=Yq(t.userAgentPrefix);return{name:kbe,async sendRequest(r,s){return r.headers.has(Pbe)||r.headers.set(Pbe,await e),s(r)}}}var Fn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function $Q(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,o)=>{function a(){o(new Fn(n??"The operation was aborted."))}function c(){s?.removeEventListener("abort",u)}function u(){r?.(),c(),a()}if(s?.aborted)return a();try{t(p=>{c(),i(p)},p=>{c(),o(p)})}catch(p){o(p)}s?.addEventListener("abort",u)})}var S20="The delay was aborted.";function uO(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return $Q(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:n??S20})}function wl(t){if(I2(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 Ube(t){return I2(t)}function fh(){return q2()}var q0=N2;var Gbe=Symbol("rawContent");function JQ(t){return typeof t[Gbe]=="function"}function Hbe(t){return JQ(t)?t[Gbe]():t}var Jq=cO;function KQ(){let t=Hq();return{name:Jq,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)JQ(s.body)&&(s.body=Hbe(s.body));return t.sendRequest(e,r)}}}var ZQ=Bq;function eP(){return Dq()}function tP(t={}){return Rq(t)}function rP(){return wq()}function Nl(t){return QQ(t)}function sP(t,e){return Qq(t,e)}var Xbe="setClientRequestIdPolicy";function nP(t="x-ms-client-request-id"){return{name:Xbe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function iP(t){return Pq(t)}function oP(t){return kq(t)}var bh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Vbe(t={}){let e=new aP(t.parentContext);return t.span&&(e=e.setValue(bh.span,t.span)),t.namespace&&(e=e.setValue(bh.namespace,t.namespace)),e}var aP=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!rf0(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",$t("InvalidTag",l,rs(t,i))}let u=Jd0(t,i);if(u===!1)return $t("InvalidAttr","Attributes for '"+c+"' have open quote.",rs(t,i));let p=u.value;if(i=u.index,p[p.length-1]==="/"){let l=i-p.length;p=p.substring(0,p.length-1);let A=whe(p,e);if(A===!0)s=!0;else return $t(A.err.code,A.err.msg,rs(t,l+A.err.line))}else if(a)if(u.tagClosed){if(p.trim().length>0)return $t("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",rs(t,o));if(r.length===0)return $t("InvalidTag","Closing tag '"+c+"' has not been opened.",rs(t,o));{let l=r.pop();if(c!==l.tagName){let A=rs(t,l.tagStartPos);return $t("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+c+"'.",rs(t,o))}r.length==0&&(n=!0)}}else return $t("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",rs(t,i));else{let l=whe(p,e);if(l!==!0)return $t(l.err.code,l.err.msg,rs(t,i-p.length+l.err.line));if(n===!0)return $t("InvalidXml","Multiple possible root nodes found.",rs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Rhe(t,i);continue}else if(t[i+1]==="?"){if(i=Ihe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=ef0(t,i);if(l==-1)return $t("InvalidChar","char '&' is not expected.",rs(t,i));i=l}else if(n===!0&&!qhe(t[i]))return $t("InvalidXml","Extra text at the end",rs(t,i));t[i]==="<"&&i--}}else{if(qhe(t[i]))continue;return $t("InvalidChar","char '"+t[i]+"' is not expected.",rs(t,i))}if(s){if(r.length==1)return $t("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",rs(t,r[0].tagStartPos));if(r.length>0)return $t("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return $t("InvalidXml","Start tag expected.",1);return!0}function qhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Ihe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return $t("InvalidXml","XML declaration allowed only at the start of the document.",rs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Rhe(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 $d0='"',Yd0="'";function Jd0(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===$d0||t[e]===Yd0)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}var Kd0=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function whe(t,e){let r=cI(t,Kd0),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return $t("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",OO(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return $t("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",OO(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return $t("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",OO(r[n]));let i=r[n][2];if(!tf0(i))return $t("InvalidAttr","Attribute '"+i+"' is an invalid name.",OO(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return $t("InvalidAttr","Attribute '"+i+"' is repeated.",OO(r[n]))}return!0}function Zd0(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 ef0(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Zd0(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 $t(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function tf0(t){return BP(t)}function rf0(t){return BP(t)}function rs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function OO(t){return t.startIndex+t[1].length}var Nhe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},She={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",tho
`);let e=new Ps("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new CO(n.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let u=t.charCodeAt(a+1);if(u===47){let p=zh(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,p).trim();if(n.removeNSPrefix){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1))}l=FP(n.transformTagName,l,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(l&&n.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);A&&n.unpairedTagsSet.has(A)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=p}else if(u===63){let p=vP(t,a,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let l=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(l){let A=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(A)||1),i.setXmlVersion(Number(A)||1)}if(!(n.ignoreDeclaration&&p.tagName==="?xml"||n.ignorePiTags)){let A=new Ps(p.tagName);A.add(n.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&n.ignoreAttributes!==!0&&(A[":@"]=l),this.addChild(r,A,this.readonlyMatcher,a)}a=p.closeIndex+1}else if(u===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let p=zh(t,"-->",a+4,"Comment is not closed.");if(n.commentPropName){let l=t.substring(a+4,p-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:l}])}a=p}else if(u===33&&t.charCodeAt(a+2)===68){let p=i.readDocType(t,a);this.entityDecoder.addInputEntities(p.entities),a=p.i}else if(u===33&&t.charCodeAt(a+2)===91){let p=zh(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,p);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:l}]):r.add(n.textNodeName,A),a=p+2}else{let p=vP(t,a,n.removeNSPrefix);if(!p){let T=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${T}"`)}let l=p.tagName,A=p.rawTagName,f=p.tagExp,M=p.attrExpPresent,g=p.closeIndex;if({tagName:l,tagExp:f}=FP(n.transformTagName,l,f,n),n.strictReservedNames&&(l===n.commentPropName||l===n.cdataPropName||l===n.textNodeName||l===n.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let O=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(O=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),f=l):f=f.substr(0,f.length-1),M=l!==f);let B=null,I={},R;R=Bf0(A),l!==e.tagname&&this.matcher.push(l,{},R),l!==f&&M&&(B=this.buildAttributesMap(f,this.matcher,l),B&&(I=Cf0(B,n))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let F=a;if(this.isCurrentNodeStopNode){let T="";if(O)a=p.closeIndex;else if(n.unpairedTagsSet.has(l))a=p.closeIndex;else{let j=this.readStopNodeData(t,A,g+1);if(!j)throw new Error(`Unexpected end of ${A}`);a=j.i,T=j.tagContent}let _=new Ps(l);B&&(_[":@"]=B),_.add(n.textNodeName,T),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,_,this.readonlyMatcher,F)}else{if(O){({tagName:l,tagExp:f}=FP(n.transformTagName,l,f,n));let T=new Ps(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(l)){let T=new Ps(l);B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=p.closeIndex;continue}else{let T=new Ps(l);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(T[":@"]=B),this.addChild(r,T,this.readonlyMatcher,F),r=T}s="",a=g}}}else s+=t[a];return e.child};function N
`;function Uf0(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(QP(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}function Zhe(t,e,r,s,n){return!r.sanitizeName||W2(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function _P(t,e){let r="";e.format&&(r=kf0);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new xn(a)):a instanceof xn&&s.push(a)}let n=Uf0(t,e),i=new xa;return eMe(t,e,r,i,s,n)}function eMe(t,e,r,s,n,i){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=LP(c,e),c}return""}for(let c=0;c<t.length;c++){let u=t[c],p=QP(u);if(p===void 0)continue;let A=p===e.textNodeName||p===e.cdataPropName||p===e.commentPropName||p[0]==="?"?p:Zhe(p,!1,e,s,i),f=Gf0(u[":@"],e);s.push(A,f);let M=Xf0(s,n);if(A===e.textNodeName){let I=u[p];M||(I=e.tagValueProcessor(A,I),I=LP(I,e)),a&&(o+=r),o+=I,a=!1,s.pop();continue}else if(A===e.cdataPropName){a&&(o+=r);let I=u[p][0][e.textNodeName],R=bI(I);o+=`<![CDATA[${R}]]>`,a=!1,s.pop();continue}else if(A===e.commentPropName){let I=u[p][0][e.textNodeName],R=fI(I);o+=r+`<!--${R}-->`,a=!0,s.pop();continue}else if(A[0]==="?"){let I=Khe(u[":@"],e,M,s,i);o+=(A==="?xml"?"":r)+`<${A}${I}?>`,a=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=Khe(u[":@"],e,M,s,i),O=r+`<${A}${y}`,B;M?B=tMe(u[p],e):B=eMe(u[p],e,g,s,n,i),e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?o+=O+">":o+=O+"/>":(!B||B.length===0)&&e.suppressEmptyNode?o+=O+"/>":B&&B.endsWith(">")?o+=O+`>${B}${r}</${A}>`:(o+=O+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?o+=r+e.indentBy+B+r:o+=B,o+=`</${A}>`),a=!0,s.pop()}return o}function Gf0(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=vl(t[n]),s=!0}return s?r:null}function tMe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=QP(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Hf0(n[":@"],e),a=tMe(n[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Hf0(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${vl(n)}"`}return r}function QP(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function Khe(t,e,r,s,n){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Zhe(a,!0,e,s,n),u;r?u=t[o]:(u=e.attributeValueProcessor(o,t[o]),u=LP(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${vl(u)}"`}return i}function Xf0(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 LP(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function PP(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 Vf0={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("&","
`,this.newLine=`
2026-05-22 12:07:22 +00:00
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function jf0(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function kP(t,e,r,s,n){return!r.sanitizeName||W2(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}Us.prototype.build=function(t){if(this.options.preserveOrder)return _P(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xa,r=jf0(t,this.options);return this.j2x(t,0,e,r).val}};Us.prototype.j2x=function(t,e,r,s){let n="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let p=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:kP(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||p===this.options.cdataPropName||p===this.options.commentPropName?i+="":p[0]==="?"?i+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],p,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let A=kP(l,!0,this.options,r,s);n+=this.buildAttrPairStr(A,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let A=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(A)}else{r.push(p);let A=this.checkStopNode(r);if(r.pop(),A){let f=""+t[c];f===""?i+=this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:i+=this.indentate(e)+"<"+p+">"+f+"</"+p+this.tagEndChar}else i+=this.buildTextValNode(t[c],p,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,A="",f="";for(let M=0;M<l;M++){let g=t[c][M];if(!(typeof g>"u"))if(g===null)p[0]==="?"?i+=this.indentate(e)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+p+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(p);let y=this.j2x(g,e+1,r,s);r.pop(),A+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else A+=this.processTextOrObjNode(g,p,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(p,g);y=this.replaceEntitiesValue(y),A+=y}else{r.push(p);let y=this.checkStopNode(r);if(r.pop(),y){let O=""+g;O===""?A+=this.indentate(e)+"<"+p+this.closeTag(p)+this.tagEndChar:A+=this.indentate(e)+"<"+p+">"+O+"</"+p+this.tagEndChar}else A+=this.buildTextValNode(g,p,"",e,r)}}this.options.oneListGroup&&(A=this.buildObjectNode(A,p,f,e)),i+=A}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),A=l.length;for(let f=0;f<A;f++){let M=kP(l[f],!0,this.options,r,s);n+=this.buildAttrPairStr(M,""+t[c][l[f]],a)}}else i+=this.processTextOrObjNode(t[c],p,e,r,s)}return{attrStr:n,val:i}};Us.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+'="'+vl(e)+'"'};function $f0(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let c=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,u,r)}let a=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}Us.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e
`)+`
2026-05-22 12:07:22 +00:00
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(_e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===_e.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(_e.PREFIX_FOR_STORAGE));r.sort((n,i)=>DI(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,o)=>!(i>0&&n.name.toLowerCase()===o[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=yI(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=CI(e.url),i={};if(n){let o=[];for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)){let c=a.toLowerCase();i[c]=n[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(i[a])}`}return s}};var Rt=class extends Q2{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new RO(e,r,this)}computeHMACSHA256(e){return(0,uMe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var g1=Sa("storage-common");var Ci;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ci||(Ci={}));var xl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ci.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},nb0=new Fn("The operation was aborted."),wO=class extends Wa{retryOptions;constructor(e,r,s=xl){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:xl.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):xl.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:xl.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:xl.maxRetryDelayInMs):xl.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:xl.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:xl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=EI(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Tl(n.url,wu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(g1.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,o))return o;r=r||!i&&o.status===404}catch(a){if(g1.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,s,o,a))throw a}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return g1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n){for(let o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return g1.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||n){let o=s?s.status:n?n.statusCode:0;if(!e&&o===404)return g1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return g1.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(_e.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(g1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Ci.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ci.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return g1.info(`RetryPolicy: Delay for ${n}ms`),BI(n,s,nb0)}};var NO=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new wO(e,r,this.retryOptions)}};var ib0="storageBrowserPolicy";function pMe(){return{name:ib0,async sendRequest(t,e){return q0||((t.method==="GET"||t.method==="HEAD")&&(t.url=Tl(t.url,wu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(_e.COOKIE),t.headers.delete(_e.CONTENT_LENGTH)),e(t)}}}var ob0="StorageCorrectContentLengthPolicy";function lMe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(_e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ob0,async send
`)+`
2026-05-22 12:07:22 +00:00
`+s(i)+n(i),a=(0,dMe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(_e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===_e.CONTENT_LENGTH&&a==="0"?"":a}function s(i){let o=[];for(let[c,u]of i.headers)c.toLowerCase().startsWith(_e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:u});o.sort((c,u)=>DI(c.name.toLowerCase(),u.name.toLowerCase())),o=o.filter((c,u,p)=>!(u>0&&c.name.toLowerCase()===p[u-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function n(i){let o=yI(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=CI(i.url),u={};if(c){let p=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let A=l.toLowerCase();u[A]=c[l],p.push(A)}p.sort();for(let l of p)a+=`
${l}:${decodeURIComponent(u[l])}`}return a}return{name:pb0,async sendRequest(i,o){return e(i),o(i)}}}var lb0="storageRequestFailureDetailsParserPolicy";function fMe(){return{name:lb0,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 bMe=require("node:crypto"),qI=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,bMe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var II="12.31.0",RI="2026-02-06";var wI="https://storage.azure.com/.default",Nu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Fo="",jP="*",Ab0=1*1024*1024;var db0=4*Ab0;var hMe="AES256",MMe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",mMe=["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"],gMe=["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"],zMe="BlobUsesCustomerSpecifiedEncryption",OMe="BlobDoesNotUseCustomerSpecifiedEncryption",EMe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Su(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 SO=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Yt(t,e={}){t||(t=new bt);let r=new SO([],e);return r._credential=t,r}function fb0(t){let e=[bb0,yMe,hb0,Mb0,mb0,gb0,Ob0];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>zb0(n));return{wrappedPolicies:yP(r),afterRetry:s}}}}function $P(t)
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Lo(t.version,i,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function bM0(t,e){if(t=$2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=ec.parse(t.permissions.toString()).toString():n=tc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function hM0(t,e){if(t=$2(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=ec.parse(t.permissions.toString()).toString():n=tc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function MM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=ec.parse(t.permissions.toString()).toString():n=tc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function mM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=ec.parse(t.permissions.toString()).toString():n=tc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function gM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=ec.parse(t.permissions.toString()).toString():n=tc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function zM0(t,e){if(t=$2(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=ec.parse(t.permissions.toString()).toString():n=tc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?I0(t.startsOn,!1):"",t.expiresOn?I0(t.expiresOn,!1):"",j2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?I0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?I0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Wo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Lo(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function j2(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function $2(t){let e=t.version?t.version:RI;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 GO=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=fh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fo||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 ze.withSpan("BlobLeaseClient-acquireLease",r,async s=>Be(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fo||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 ze.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Be(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Fo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Fo||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"}};vh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Z2=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"}};Z2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var e3=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var wm0=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},_U=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);W(`Sent ${e} of ${this.contentLength} (${r}%), ${n} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Dge(t,e,r){return wm0(this,void 0,void 0,function*(){var s;let n=new _u(t),i=n.getBlockBlobClient(),o=new _U((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),w(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new v5(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw E0(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var Ige=x(require("buffer"),1),rc=x(require("fs"),1),Rge=x(require("stream"),1),wge=x(require("util"),1);var T5=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function x5(t){return t?t>=200&&t<300:!1}function Nm0(t){return t?t>=500:!0}function Sm0(t){return t?[ft.BadGateway,ft.ServiceUnavailable,ft.GatewayTimeout].includes(t):!1}function Fm0(t){return T5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function qge(t,e,r){return T5(this,arguments,void 0,function*(s,n,i,o=cq,a=uq,c=void 0){let u="",p=1;for(;p<=o;){let l,A,f=!1;try{l=yield n()}catch(M){c&&(l=c(M)),f=!0,u=M.message}if(l&&(A=i(l),!Nm0(A)))return l;if(A&&(f=Sm0(A),u=`Cache service responded with ${A}`),w(`${s} - Attempt ${p} of ${o} failed with error: ${u}`),!f){w(`${s} - Error is not retryable`);break}yield Fm0(a),p++}throw Error(`${s} failed: ${u}`)})}function t3(t,e){return T5(this,arguments,void 0,function*(r,s,n=cq,i=uq){return yield qge(r,s,o=>o.statusCode,n,i,o=>{if(o instanceof Oa)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Th(t,e){return T5(this,arguments,void 0,function*(r,s,n=cq,i=uq){return yield qge(r,s,o=>o.message.statusCode,n,i)})}var Ri=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})};function vm0(t,e){return Ri(this,void 0,void 0,function*(){yield wge.promisify(Rge.pipeline)(t.message,e)})}var W5=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.s
Other caches with similar key:`);for(let a of i?.artifactCaches||[])w(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function UU(t,e,r){return Hs(this,void 0,void 0,function*(){let s=new Qge.URL(t),n=vge(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield Sge(t,e,n):n.concurrentBlobDownloads?yield Nge(t,e,n):yield L5(t,e):yield L5(t,e)})}function kge(t,e,r){return Hs(this,void 0,void 0,function*(){let s=kU(),n=oh(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield t3("reserveCache",()=>Hs(this,void 0,void 0,function*(){return s.postJson(s3("caches"),i)}))})}function _ge(t,e){return`bytes ${t}-${e}/*`}function km0(t,e,r,s,n){return Hs(this,void 0,void 0,function*(){w(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${_ge(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":_ge(s,n)},o=yield Th(`uploadChunk (start: ${s}, end: ${n})`,()=>Hs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!x5(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Um0(t,e,r,s){return Hs(this,void 0,void 0,function*(){let n=Ia(r),i=s3(`caches/${e.toString()}`),o=xh.openSync(r,"r"),a=QU(s),c=fQ("uploadConcurrency",a.uploadConcurrency),u=fQ("uploadChunkSize",a.uploadChunkSize),p=[...new Array(c).keys()];w("Awaiting all uploads");let l=0;try{yield Promise.all(p.map(()=>Hs(this,void 0,void 0,function*(){for(;l<n;){let A=Math.min(n-l,u),f=l,M=l+A-1;l+=u,yield km0(t,i,()=>xh.createReadStream(r,{fd:o,start:f,end:M,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,M)}})))}finally{xh.closeSync(o)}})}function Gm0(t,e,r){return Hs(this,void 0,void 0,function*(){let s={size:r};return yield t3("commitCache",()=>Hs(this,void 0,void 0,function*(){return t.postJson(s3(`caches/${e.toString()}`),s)}))})}function GU(t,e,r,s){return Hs(this,void 0,void 0,function*(){if(QU(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Dge(r,e,s)}else{let i=kU();w("Upload cache"),yield Um0(i,t,e,s),w("Commiting cache");let o=Ia(e);W(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Gm0(i,t,o);if(!x5(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);W("Cache saved successfully")}})}var xze=x(Rze(),1),Zt=x(Kt(),1),_n=x(Kt(),1),nd=x(Kt(),1),id=x(Kt(),1),od=x(Kt(),1);var LG=x(Kt(),1),_G=x(Kt(),1),Fze=x(Kt(),1),vze=x(Kt(),1),Tze=x(Kt(),1);var TG=x(Kt(),1),xG=x(Kt(),1),wze=x(Kt(),1),Nze=x(Kt(),1),Sze=x(Kt(),1),WG=class extends Sze.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,Nze.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,wze.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let p=e.skip(c);u!==!1&&(u===!0?xG.UnknownFieldHandler.onRead:u)(this.typeName,i,a,c,p)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,TG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,TG.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?xG.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},BR=new WG;var QG=class extends Tze.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:()=>BR}])}create(e){let r={repositoryId:"0",scope:[]};
`));let s=yield tH(r,"create");yield rH(s,t)})}var Zh=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(p){try{u(s.next(p))}catch(l){o(l)}}function c(p){try{u(s.throw(p))}catch(l){o(l)}}function u(p){p.done?i(p.value):n(p.value).then(a,c)}u((s=s.apply(t,e||[])).next())})},Po=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Kh=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},RR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Qze(t){if(!t||t.length===0)throw new Po("Path Validation Error: At least one directory or file path is required")}function iH(t){if(t.length>512)throw new Po(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Po(`Key Validation Error: ${t} cannot contain commas.`)}function oH(){return r3()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Pze(t,e,r,s){return Zh(this,arguments,void 0,function*(n,i,o,a,c=!1){let u=r3();return w(`Cache service version: ${u}`),Qze(n),u==="v2"?yield iO0(n,i,o,a,c):yield nO0(n,i,o,a,c)})}function nO0(t,e,r,s){return Zh(this,arguments,void 0,function*(n,i,o,a,c=!1){o=o||[];let u=[i,...o];if(w("Resolved Keys:"),w(JSON.stringify(u)),u.length>10)throw new Po("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of u)iH(A);let p=yield rO(),l="";try{let A=yield Pge(u,n,{compressionMethod:p,enableCrossOsArchive:c});if(!A?.archiveLocation)return;if(a?.lookupOnly)return W("Lookup only - skipping download"),A.cacheKey;l=g3.join(yield eO(),Il(p)),w(`Archive Path: ${l}`),yield UU(A.archiveLocation,l,a),di()&&(yield m3(l,p));let f=Ia(l);return W(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield sH(l,p),W("Cache restored successfully"),A.cacheKey}catch(A){let f=A;if(f.name===Po.name)throw A;f instanceof Oa&&typeof f.statusCode=="number"&&f.statusCode>=500?$b(`Failed to restore: ${A.message}`):E0(`Failed to restore: ${A.message}`)}finally{try{yield tO(l)}catch(A){w(`Failed to delete archive: ${A}`)}}})}function iO0(t,e,r,s){return Zh(this,arguments,void 0,function*(n,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(w("Resolved Keys:"),w(JSON.stringify(u)),u.length>10)throw new Po("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of u)iH(l);let p="";try{let l=eH(),A=yield rO(),f={key:i,restoreKeys:o,version:oh(n,A,c)},M=yield l.GetCacheEntryDownloadURL(f);if(!M.ok){w(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==M.matchedKey?W(`Cache hit for restore-key: ${M.matchedKey}`):W(`Cache hit for: ${M.matchedKey}`),a?.lookupOnly)return W("Lookup only - skipping download"),M.matchedKey;p=g3.join(yield eO(),Il(A)),w(`Archive path: ${p}`),w(`Starting download of archive to: ${p}`),yield UU(M.signedDownloadUrl,p,a);let y=Ia(p);return W(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),di()&&(yield m3(p,A)),yield sH(p,A),W("Cache restored successfully"),M.matchedKey}catch(l){let A=l;if(A.name===Po.name)throw l;A instanceof Oa&&typeof A.statusCode=="number"&&A.statusCode>=500?$b(`Failed to restore: ${l.message}`):E0(`Failed to restore: ${l.message}`)}finally{try{p&&(yield tO(p))}catch(l){w(`Failed to delete archive: ${l}`)}}})}function aH(t,e,r){return Zh(this,arguments,void 0,function*(s,n,i,o=!1){let a=r3();return w(`Cache service version: ${a}`),Qze(s),iH(n),a==="v2"?yield aO0(s,n,i,o):yield oO0(s,n,i,o)})}function oO0(t,e,r){return Zh(this,arguments,void 0,function*(s,n,i,o=!1){var a,c,u,p,l;let A=yield rO(),f=-1,M=yield dQ(s);if(w("Cache Paths:"),w(`${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 g=yield eO(),y=g3.join(g,Il(A));w(`Archive Path: ${y}`);try{yie
`+t.errors.map(e=>` - ${e.message}`).join(`
2026-05-22 12:07:22 +00:00
`)}var r30=class extends Error{constructor(t,e,r){super(t30(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},s30=["method","baseUrl","url","headers","request","query","mediaType","operationName"],n30=["query","method","url"],IOe=/\/api\/v3\/?$/;function i30(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(n30.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((o,a)=>s30.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return IOe.test(i)&&(n.url=i.replace(IOe,"/api/graphql")),t(n).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new r30(n,a,o.data)}return o.data.data})}function gH(t,e){let r=t.defaults(e);return Object.assign((n,i)=>i30(r,n,i),{defaults:gH.bind(null,r),endpoint:r.endpoint})}var Zyt=gH(y3,{headers:{"user-agent":`octokit-graphql.js/${e30} ${Hl()}`},method:"POST",url:"/graphql"});function ROe(t){return gH(t,{method:"POST",url:"/graphql"})}var zH="(?:[a-zA-Z0-9_-]+)",wOe="\\.",NOe=new RegExp(`^${zH}${wOe}${zH}${wOe}${zH}$`),o30=NOe.test.bind(NOe);async function a30(t){let e=o30(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function c30(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function u30(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=c30(t),e(n)}var SOe=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(a30.bind(null,e),{hook:u30.bind(null,e)})};var OH="7.0.6";var FOe=()=>{},p30=console.warn.bind(console),l30=console.error.bind(console);function A30(t={}){return typeof t.debug!="function"&&(t.debug=FOe),typeof t.info!="function"&&(t.info=FOe),typeof t.warn!="function"&&(t.warn=p30),typeof t.error!="function"&&(t.error=l30),t}var vOe=`octokit-core.js/${OH} ${Hl()}`,kR=class{static VERSION=OH;static defaults(e){return class extends this{constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new aOe.Collection,s={baseUrl:y3.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${vOe}`:vOe,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=y3.defaults(s),this.graphql=ROe(this.request).defaults(s),this.log=A30(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=SOe(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var EH="17.0.0";var d30={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
`,o).length:l,u?(a===null?0:a.length)+c.length:0,u?c.length+l:0);return A<f},parse:function(s,n,i,o){let{bom:a,comment_no_infix:c,encoding:u,from_line:p,ltrim:l,max_record_size:A,raw:f,relax_quotes:M,rtrim:g,skip_empty_lines:y,to:O,to_line:B}=this.options,{comment:I,escape:R,quote:F,record_delimiter:T}=this.options,{bomSkipped:_,previousBuf:j,rawBuffer:he,escapeIsQuote:we}=this.state,K;if(j===void 0)if(s===void 0){o();return}else K=s;else j!==void 0&&s===void 0?K=j:K=Buffer.concat([j,s]);if(_===!1)if(a===!1)this.state.bomSkipped=!0;else if(K.length<3){if(n===!1){this.state.previousBuf=K;return}}else{for(let Re in oM)if(oM[Re].compare(K,0,oM[Re].length)===0){let Qe=oM[Re].length;this.state.bufBytesStart+=Qe,K=K.slice(Qe);let z0=tX({...this.original_options,encoding:Re});for(let d0 in z0)this.options[d0]=z0[d0];({comment:I,escape:R,quote:F}=this.options);break}this.state.bomSkipped=!0}let qe=K.length,Y;for(Y=0;Y<qe&&!this.__needMoreData(Y,qe,n);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,o();return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(K,Y)&&(T=this.options.record_delimiter);let Re=K[Y];if(f===!0&&he.append(Re),(Re===kC0||Re===UC0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(R!==null&&this.state.quoting===!0&&this.__isEscape(K,Y,Re)&&Y+R.length<qe)if(we){if(this.__isQuote(K,Y+R.length)){this.state.escaping=!0,Y+=R.length-1;continue}}else{this.state.escaping=!0,Y+=R.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(K,Y))if(this.state.quoting===!0){let d0=K[Y+F.length],x0=g&&this.__isCharTrimable(K,Y+F.length),Et=I!==null&&this.__compareBytes(I,K,Y+F.length,d0),U0=this.__isDelimiter(K,Y+F.length,d0),sr=T.length===0?this.__autoDiscoverRecordDelimiter(K,Y+F.length):this.__isRecordDelimiter(d0,K,Y+F.length);if(R!==null&&this.__isEscape(K,Y,Re)&&this.__isQuote(K,Y+R.length))Y+=R.length-1;else if(!d0||U0||sr||Et||x0){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=F.length-1;continue}else if(M===!1){let Ut=this.__error(new g0("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(d0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Ut!==void 0)return Ut}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(F),Y+=F.length-1}else if(this.state.field.length!==0){if(M===!1){let d0=this.__infoField(),x0=Object.keys(oM).map(U0=>oM[U0].equals(this.state.field.toString())?U0:!1).filter(Boolean)[0],Et=this.__error(new g0("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(d0.column)} at line ${d0.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,x0?`(${x0} bom)`:void 0],this.options,d0,{field:this.state.field}));if(Et!==void 0)return Et}}else{this.state.quoting=!0,Y+=F.length-1;continue}if(this.state.quoting===!1){let d0=this.__isRecordDelimiter(Re,K,Y);if(d0!==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)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=d0-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=d0-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let U0=this.__onField();if(U0!==void 0)return U0;this.info.bytes=this.state.bufBytesStart+Y+d0;let sr=this.__onRecord(i);if(sr!==void 0)return sr;if(O!==-1&&this.info.records>=O){this.state.stop=!0,o();return}}this.state.commenting=!1,Y+=d0-1;continue}if(this.state.commenting)continue;if(I!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,K,Y,Re)!==0){this.state.commenting=!0;continue}let x0=this.__isDelimiter(K,Y,R
`,i),Buffer.from(`
2026-05-22 12:07:22 +00:00
`,i),Buffer.from("\r",i)];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]!==s[n+u])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:n,raw:i,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,i?this.state.rawBuffer.toString(n):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},__infoField:function(){let{columns:s}=this.options,n=Array.isArray(s);return{...this.__infoRecord(),column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var A1=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=eye(e),n=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},i=()=>{},o=s.parse(t,!0,n,i);if(o!==void 0)throw o;return r};var S0=class t{static getInputList(e,r){return this.getList(Dn(e),r)}static getList(e,r){let s=[];if(e=="")return s;let n=A1(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>i.trim())}static getInputNumber(e){let r=Dn(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await or("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let o in r)i.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return tye.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return rX.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){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 formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return rX.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 s=N3.default.resolve(e);return N3.default.resolve(r).startsWith(s.endsWith(N3.default.sep)?s:`${s}${N3.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,o=[];return s&&o.push(`${s}h`),n&&o.push(`${n}m`),(i||o.length===0)&&o.push(`${i}s`),o.join("")}};var qr=class t{static get configDir(){return process.env.DOCKER_CONFIG||S3.default.join(rye.default.homedir(),".docker")}static configFile()
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,M=!1;for(let g of o)if(g.remote||g.path.endsWith(u)&&g.content===p){a.push({title:l,message:A,file:g.path,startLine:f}),M=!0;break}M||w(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${l}`)}return a}};var Xl=x(require("fs"),1),nX=x(require("path"),1);var ow=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new J0,this.iidFilename=`build-iidfile-${S0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${S0.generateRandomString()}.json`}getImageIDFilePath(){return nX.default.join(R0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Xl.default.existsSync(e))return Xl.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return nX.default.join(R0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Xl.default.existsSync(e))return;let r=Xl.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact),i=R0.tmpName({tmpdir:R0.tmpDir()});if(r?.asFile){if(!Xl.default.existsSync(n))throw new Error(`secret file ${n} not found`);Xl.default.copyFileSync(n,i)}else Xl.default.writeFileSync(i,n);return[s,i]}static getProvenanceInput(e){let r=Dn(e);if(!r)return r;try{return Vpe(e)?`builder-id=${m0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${m0.workflowRunURL(!0)}`;let r=A1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${m0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",o=A1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?n=c[1]:c[0]==="ghtoken"&&(i=c[1])}return s==="gha"&&(n||(e=`${e},repository=${m0.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=A1(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=A1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,o]of n.map(a=>a.split("=").map(c=>c.trim())))if(i=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=A1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let o=S0.parseBool(i);s.push(`disabled=${!o}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Ea(i),[n,i]}};var iX=x(require("fs"),1),nye=x(require("path"),1);var aw=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new J0,this.metadataFilename=`bake-metadata-${S0.generateRandomString()}.json`}getMetadataFilePath(){return nye.default.join(R0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!iX.default.existsSync(e))return;let r=iX.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],n,i=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(u=>u?u.trim():""))if(c.length!=0){if(!S0.isValidRef(c)){i.push(c);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=c}}n&&s.push(n);for(let c of i)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Te.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 s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=A1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(i){case"type":r.type=o;break;case"disabled":r.disabled=S0.parseBool(o);break;default:r[i]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=A1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,o]=n.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());i==="type"?r.type=o:r[i]=o}ret
`)[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"]);w(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=s[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let o=n.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=n.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Te.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 i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[n]=s.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
2026-05-22 12:07:22 +00:00
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var bFe=require("crypto"),Uc=x(require("fs"),1),IA=x(require("path"),1);var Uy=x(v3(),1),Gc=x(iSe(),1),hFe=x(qZ(),1),Lm=x(cFe(),1);var ZZ=x(v3(),1);var pFe=x(xi(),1);var uFe="application/vnd.oci.empty.v1+json";var vp=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Te.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(w(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(w(`Cosign.isAvailable error: ${r}`),!1));return w(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Te.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 Te.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return w("Cosign.versionSatisfies false: undefined version"),!1;let n=pFe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return w(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;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&&(i=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let u=c.manifests[0];u?.artifactType===ZZ.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===uFe&&typeof u.digest=="string"&&(s=u.digest)}if(!n&&c&&c.mediaType===ZZ.BUNDLE_V03_MEDIA_TYPE&&(n=c),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var VF=class{buildx;constructor(e){this.buildx=e?.buildx||new J0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async inspectImage(e){let r=await this.getInspectCommand([e,"--format","{{json .Image}}"]);return await Te.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());let n=JSON.parse(s.stdout);if(typeof n=="object"&&!Array.isArray(n)&&n!==null)return Object.prototype.hasOwnProperty.call(n,"config"),n;throw new Error("Unexpected output format")})}async inspectManifest(e){let r=await this.getInspectCommand([e,"--format","{{json .Manifest}}"]);return await Te.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());let n=JSON.parse(s.stdout);if(typeof n=="object"&&!Array.isArray(n)&&n!==null)return Object.prototype.hasOwnProperty.call(n,"manifests"),n;throw new Error("Unexpected output format")})}async attestationDescriptors(e,r){let s=await this.inspectManifest(e);if(typeof s!="object"||s===null||!("manifests"in s)||!Array.isArray(s.manifests))throw new Error(`No descriptor found for ${e}`);let n=s.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!r)return n;let i=new Map;for(let o of s.manifests)o.digest&&i.set(o.digest,o);return n.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=i.get(a);return c?c.platform?.os===r.os&&c.platform?.architecture===r.architecture&&(c.platform?.variant??"")===(r.variant??""):!1})}async attestationDigests(e,r){return(await this.attestationDescriptors(e,r)).map(s=>s.digest)}};var lFe="application/vnd.in-toto+json";var AFe="https://fulcio.sigstore.dev",dFe="https://rekor.sigstore.dev",fFe="https://timestamp.sigstore.dev",Af="https://search.sigstore.dev";var RA=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new vp,
`);throw new Error(`Cosign sign command failed with errors:
2026-05-22 12:07:22 +00:00
${M}`)}else throw new Error(`Cosign sign command failed with: ${l.stderr.trim().split(/\r?\n/).filter(M=>M.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,Uy.bundleFromJSON)(A.bundle));f.tlogID&&W(`Uploaded to Rekor transparency log: ${Af}?logIndex=${f.tlogID}`),W(`Signature manifest pushed: https://oci.dag.dev/?referrers=${u}`),r[u]={...f,imageName:o}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[n,i]of Object.entries(e))await ar(`Verifying signature of ${n}`,async()=>{let o=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});W(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${o.signatureManifestDigest}`),s[n]=o});return s}async verifyImageAttestations(e,r){let s={},n=await this.imageTools.attestationDigests(e,r.platform);if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let o of n){let a=`${i}@${o}`,c=await this.verifyImageAttestation(a,r);W(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${c.signatureManifestDigest}`),s[a]=c}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){W(`[command]cosign ${[...s,e].join(" ")}`);let o=await Te.getExecOutput("cosign",["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=vp.parseCommandOutput(o.stderr.trim());return{cosignArgs:s,signatureManifestDigest:a.signatureManifestDigest}}let n=15,i;W(`[command]cosign ${[...s,e].join(" ")}`);for(let o=0;o<n;o++){let a=await Te.getExecOutput("cosign",["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=vp.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let u=c.errors.map(p=>`- [${p.code}] ${p.message} : ${p.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
2026-05-22 12:07:22 +00:00
${u}`),c.errors.some(p=>p.code==="MANIFEST_UNKNOWN"))W(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${n}...
${u}`),await new Promise(p=>setTimeout(p,Math.pow(2,o)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`)}throw i}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 s=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await ar(`Signing ${i}`,async()=>{let o=n[i],a=IA.default.join(IA.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){E0(`No subjects found in provenance ${i}, skip signing.`);return}let u=await t.signPayload({data:o,type:lFe},s),p=t.parseBundle(u);W("Provenance blob signed for:");for(let l of c){let[A,f]=Object.entries(l.digest)[0]||[];W(` - ${l.name} (${A}:${f})`)}p.tlogID&&W(`Attestation signature uploaded to Rekor transparency log: ${Af}?logIndex=${p.tlogID}`),W(`Writing Sigstore bundle to: ${a}`),Uc.default.writeFileSync(a,JSON.stringify(p.payload,null,2),{encoding:"utf-8"}),r[i]={...p,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let o=IA.default.dirname(n);await ar(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let a of i.subjects){let c=IA.default.join(o,a.name);W(`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];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let p=await Te.getExecOutput("cosign",[...u,"--bundle",i.bundlePath,c],{ignoreReturnCode:!0});if(p.stderr.length>0&&p.exitCode!=0)throw new Error(p.stderr);s[c]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){W("Verifying keyless verification bundle signature");let n=JSON.parse(Uc.default.readFileSync(r,"utf-8")),i=(0,Uy.bundleFromJSON)(n);W("Fetching Sigstore TUF trusted root metadata");let o=await hFe.getTrustedRoot(),a=(0,Lm.toTrustMaterial)(o);try{W("Verifying artifact signature");let c=(0,Lm.toSignedEntity)(i,Uc.default.readFileSync(e)),u=t.parseCertificate(i),p=i.verificationMaterial.tlogEntries,l=p.length>0?p[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let M=u.subjectAltName?.replace(/^uri:/i,"");if(M){if(!M.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${M}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new Lm.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return w(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:n,certificate:u.toString(),tlogID:l}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:AFe,rekorURL:e?void 0:dFe,tsaServerURL:fFe}}static noTransparencyLog(e){return e??m0.context.payload.repository?.private}static getProvenanceBlobs(e){let r=IA.default.join(e.localExportDir,"provenance.json");if(Uc.default.existsSync(r))return{[r]:Uc.default.readFileSync(r)};let s=Uc.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Uc.default.existsSync(IA.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let o of n){let a=IA.default.join(e.localExportDir,o.name,"
`)){let[u,...p]=c.split(":"),l=u.toLowerCase(),A=p.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case l=="name":s=void 0,r.name==null?r.name=A:(i&&n.gcPolicy&&(n.gcPolicy.push(i),i=void 0),n.name&&r.nodes.push(n),n={name:A});break;case l=="driver":s=void 0,r.driver=A;break;case l=="last activity":s=void 0,r.lastActivity=new Date(A);break;case l=="endpoint":s=void 0,n.endpoint=A;break;case l=="driver options":s=void 0,n["driver-opts"]=(A.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":s=void 0,n.status=A;break;case l=="buildkit daemon flags":case l=="flags":s=void 0,n["buildkitd-flags"]=A;break;case l=="buildkit version":case l=="buildkit":s=void 0,n.buildkit=A;break;case l=="platforms":{if(s=void 0,!A)break;let f=[];if(A.includes("*"))for(let M of A.split(", "))M.includes("*")&&f.push(M.replace(/\*/g,""));else f=A.split(", ");n.platforms=f.join(",");break}case l=="features":s="features",n.features={};break;case l=="labels":s="label",n.labels={};break;case l=="devices":s="devices",n.devices=n.devices||[];break;case l.startsWith("gc policy rule#"):s="gcpolicy",n.gcPolicy&&i&&(n.gcPolicy.push(i),i=void 0);break;case l.startsWith("file#"):s="file",a=u.split("#")[1],n.files=n.files||{},n.files[a]="";break;default:switch(s&&s!=="devices"&&n.devices&&o&&(n.devices.push(o),o=void 0),s||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!A;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=A;break}case"devices":{switch(l.trim()){case"name":{n.devices&&o&&n.devices.push(o),o={},o.name=A;break}case"on-demand":{o&&A&&(o.onDemand=A=="true");break}case"automatically allowed":{o&&A&&(o.autoAllow=A=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[u.trim()]=A)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],i=i||{},l.trim()){case"all":{i.all=A=="true";break}case"filters":{A&&(i.filter=A.split(","));break}case"keep duration":{i.keepDuration=A;break}case"keep bytes":{i.keepBytes=A;break}case"reserved space":{i.reservedSpace=A;break}case"max used space":{i.maxUsedSpace=A;break}case"min free space":{i.minFreeSpace=A;break}}break}case"file":{a&&n.files&&(n.files[a].length>0&&(n.files[a]+=`
`),n.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&n.devices&&n.devices.push(o),i&&n.gcPolicy&&n.gcPolicy.push(i),n.name&&r.nodes.push(n),r}};var MFe=x(xi(),1);var $F=x(require("fs"),1);var YF=class{resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!$F.default.existsSync(e))throw new Error(`config file ${e} not found`);e=$F.default.readFileSync(e,{encoding:"utf-8"})}let s=R0.tmpName({tmpdir:R0.tmpDir()});return $F.default.writeFileSync(s,e),s}};var JF=class{buildx;config;constructor(e){this.config=new YF,this.buildx=e?.buildx||new J0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){E0(r)}return e.buildkit}async getVersionWithinImage(e){return w(`BuildKit.getVersionWithinImage nodeName: ${e}`),qr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${J0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return w(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),qr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new Qm({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(w(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return w(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(w(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!MFe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var KF=class t{_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await qr.isAvailable();return w(`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 Te.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(w(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(w(`Compose.isAvailable error: ${s}`),!1));return w(`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 Te.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 Te.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var xp=x(require("fs"),1),Xc=x(require("os"),1),Pm=x(require("path"),1);var ev=x(xi(),1),tee=x(require("util"),1);var ZF=class t{standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let s=await t.getDownloadVersion(e);w(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);w(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);w(`Install.download vspec: ${i}`);let o=ev.clean(i)||"";if(!ev.valid(o))throw new Error(`Invalid Compose version "${i}".`);let a=new v1({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:Pm.default.join(Xc.default.homedir(),".bin","docker-compose"),cacheFile:Xc.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),c=await a.find();if(c)return W(`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 /
2026-05-22 12:07:22 +00:00
`;var tv=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new J0,this.sigstore=e?.sigstore||new RA}async download(e){let r=await t.getDownloadVersion(e.version);w(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);w(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);w(`Install.download vspec: ${n}`);let i=Um.clean(n)||"";if(!Um.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let o=new v1({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:km.default.join(Zo.default.homedir(),".bin"),cacheFile:Zo.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return W(`Cosign binary found in ${a}`),a;let c=ree.format(r.downloadURL,n,this.filename());W(`Downloading ${c}`);let u=await Mi(c,void 0,this.githubToken);w(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Um.satisfies(n,">=3.0.1")&&await this.verifySignature(u,c);let p=await o.save(u,e.skipState);return W(`Cached to ${p}`),p}async build(e,r,s){let n=await this.vspec(e);w(`Install.build vspec: ${n}`);let i=new v1({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:km.default.join(Zo.default.homedir(),".bin"),cacheFile:Zo.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await i.find();if(o)return W(`Cosign binary found in ${o}`),o;let a=km.default.join(R0.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),u=await Te.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from(mFe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),p=await i.save(u,s);return W(`Cached to ${p}`),p}async install(e,r){r=r||R0.tmpDir();let s=km.default.join(r,"cosign-bin");Gy.default.existsSync(s)||Gy.default.mkdirSync(s,{recursive:!0});let n=Zo.default.platform()=="win32"?"cosign.exe":"cosign",i=km.default.join(s,n);return Gy.default.copyFileSync(e,i),W("Fixing perms"),Gy.default.chmodSync(i,"0755"),Ca(s),W("Added Cosign to PATH"),W(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new J0({standalone:!0}).isAvailable(),n=await new J0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)w("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)w("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)w("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)w("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!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 J0({standalone:i}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;W(`Downloading keyless verification bundle at ${s}`);let n=await Mi(s,void 0,this.githubToken);w(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});W(`Cosign binary signature verified! ${i.tlogID?`${Af}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Zo.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Zo.default.arch();break}}let r=Zo.default.platform()=="win32"?"windows":Zo.default.platform(),s=Zo.default.platform()=="win32"?".exe":"";return ree.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!S0.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return W(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await Gu.remoteSha(r,s,process.env.GIT_AU
`,sepLabels:Dn("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Dn("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Dn("bake-target")||"docker-metadata-action",githubToken:Dn("github-token")}}async function EFe(t,e){switch(t){case"workflow":return await q70(e);case"git":return await I70();default:throw new Error(`Invalid context source: ${t}`)}}async function q70(t){let e=m0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await R70(e.sha,t),...e}}async function I70(){let t=await Gu.context();return{commitDate:await Gu.commitDate(t.sha),...t}}async function R70(t,e){let r=m0.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:m0.context.repo.owner,repo:m0.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return w(`Failed to get commit date from GitHub API: ${s.message}`),new Date}}var $p=x(dTe(),1),iGe=x(require("fs"),1),oGe=x(require("path"),1),ZC=x(gTe(),1),ni=x(eGe(),1),hg=x(xi(),1);function rGe(t){let e=[];if(t.length==1){let r=!1,s=A1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(o=>o.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return tGe(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=A1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let o=i.toString().split("=").map(a=>a.trim());if(o.length==1)s.name=o[0];else{let a=o[0].toLowerCase(),c=o[1];switch(a){case"name":{s.name=c;break}case"enable":{if(!["true","false"].includes(c))throw new Error(`Invalid enable attribute value: ${r}`);s.enable=/true/i.test(c);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(s.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(s)}return tGe(e)}function tGe(t){z2("Processing images input");for(let e of t)W(`name=${e.name},enable=${e.enable}`);return O2(),t}var M1e=(c=>(c.Schedule="schedule",c.Semver="semver",c.Pep440="pep440",c.Match="match",c.Edge="edge",c.Ref="ref",c.Raw="raw",c.Sha="sha",c))(M1e||{}),WT=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(WT||{}),LT=(r=>(r.Short="short",r.Long="long",r))(LT||{}),h1e=class{type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},Art={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function sGe(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(drt(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);z2("Processing tags input");for(let s of r)W(s.toString());return O2(),r}function drt(t){let e=A1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new h1e;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),o=n[1];switch(i){case"type":{if(!Object.values(M1e).includes(o))throw new Error(`Unknown tag type attribute: ${o}`);r.type=o;break}default:{r.attrs[i]=o;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing
/*! 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
*)
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:
(**
* @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.
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
moment-timezone/moment-timezone.js:
(*! moment-timezone.js *)
(*! version : 0.6.1 *)
(*! Copyright (c) JS Foundation and other contributors *)
(*! license : MIT *)
(*! github.com/moment/moment-timezone *)
xregexp/lib/xregexp.js:
(*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*)
xregexp/lib/addons/build.js:
(*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*)
xregexp/lib/addons/matchrecursive.js:
(*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*)
xregexp/lib/addons/unicode-base.js:
(*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*)
xregexp/lib/addons/unicode-blocks.js:
(*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-categories.js:
(*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-properties.js:
(*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-scripts.js:
(*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
@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 *)
*/
//# sourceMappingURL=index.cjs.map