Files
docker-login/dist/index.cjs

259 lines
2.0 MiB
JavaScript
Raw Normal View History

2026-06-03 22:35:08 +00:00
var GOe=Object.create;var Kb=Object.defineProperty;var HOe=Object.getOwnPropertyDescriptor;var zOe=Object.getOwnPropertyNames;var VOe=Object.getPrototypeOf,YOe=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wn=(t,e)=>{for(var r in e)Kb(t,r,{get:e[r],enumerable:!0})},V9=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of zOe(e))!YOe.call(t,s)&&s!==r&&Kb(t,s,{get:()=>e[s],enumerable:!(n=HOe(e,s))||n.enumerable});return t};var L=(t,e,r)=>(r=t!=null?GOe(VOe(t)):{},V9(e||!t||!t.__esModule?Kb(r,"default",{value:t,enumerable:!0}):r,t)),ie=t=>V9(Kb({},"__esModule",{value:!0}),t);var tK=b(PA=>{"use strict";var Xkt=require("net"),KOe=require("tls"),EO=require("http"),X9=require("https"),XOe=require("events"),Zkt=require("assert"),ZOe=require("util");PA.httpOverHttp=eMe;PA.httpsOverHttp=tMe;PA.httpOverHttps=rMe;PA.httpsOverHttps=nMe;function eMe(t){var e=new Zl(t);return e.request=EO.request,e}function tMe(t){var e=new Zl(t);return e.request=EO.request,e.createSocket=Z9,e.defaultPort=443,e}function rMe(t){var e=new Zl(t);return e.request=X9.request,e}function nMe(t){var e=new Zl(t);return e.request=X9.request,e.createSocket=Z9,e.defaultPort=443,e}function Zl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,o,i){for(var a=eK(s,o,i),c=0,l=e.requests.length;c<l;++c){var d=e.requests[c];if(d.host===a.host&&d.port===a.port){e.requests.splice(c,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}ZOe.inherits(Zl,XOe.EventEmitter);Zl.prototype.addRequest=function(e,r,n,s){var o=this,i=CO({request:e},o.options,eK(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(i);return}o.createSocket(i,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){o.emit("free",a,i)}function l(d){o.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Zl.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var o=CO({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),Ad("making CONNECT request");var i=n.request(o);i.useChunkedEncodingByDefault=!1,i.once("response",a),i.once("upgrade",c),i.once("connect",l),i.once("error",d),i.end();function a(u){u.upgrade=!0}function c(u,p,m){process.nextTick(function(){l(u,p,m)})}function l(u,p,m){if(i.removeAllListeners(),p.removeAllListeners(),u.statusCode!==200){Ad("tunneling socket could not be established, statusCode=%d",u.statusCode),p.destroy();var g=new Error("tunneling socket could not be established, statusCode="+u.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(m.length>0){Ad("got illegal response body from proxy"),p.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}return Ad("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}function d(u){i.removeAllListeners(),Ad(`tunneling socket could not be established, cause=%s
`,u.message,u.stack);var p=new Error("tunneling socket could not be established, cause="+u.message);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s)}};Zl.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function Z9(t,e){var r=this;Zl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=CO({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),i=KOe.connect(0,o);r.sockets[r.sockets.indexOf(n)]=i,e(i)})}function eK(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function CO(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),o=0,i=s.length;o<i;++o){var a=s[o];n[a]!==void 0&&(t[a]=n[a])}}return t}var Ad;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ad=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)}:Ad=function(){};PA.debug=Ad});var EE=b((tLt,rK)=>{rK.exports=tK()});var Er=b((rLt,nK)=>{nK.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var $t=b((nLt,NK)=>{"use strict";var sK=Symbol.for("undici.error.UND_ERR"),Cr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[sK]===!0}[sK]=!0},oK=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),IO=class extends Cr{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[oK]===!0}[oK]=!0},iK=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),xO=class extends Cr{constructor(e){super(e),this.name="HeadersTimeoutError",this.m
`)||t.includes("\r")||t.includes("\0"))===!1}function EFe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let i=n[o-1].trim();if(nFe.has(i)){s=i;break}}s!==""&&(t.referrerPolicy=s)}function CFe(){return"allowed"}function IFe(){return"success"}function xFe(){return"success"}function wFe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function bFe(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&&hM(t.origin)&&!hM(NE(t))&&(e=null);break;case"same-origin":CS(t,NE(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function UA(t,e){return t}function SFe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:UA(t.domainLookupStartTime,r),domainLookupEndTime:UA(t.domainLookupEndTime,r),connectionStartTime:UA(t.connectionStartTime,r),connectionEndTime:UA(t.connectionEndTime,r),secureConnectionStartTime:UA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function BFe(t){return UA(cFe.now(),t)}function RFe(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 $X(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function NFe(t){return{referrerPolicy:t.referrerPolicy}}function TFe(t){let e=t.referrerPolicy;cm(e);let r=null;if(t.referrer==="client"){let a=LX();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=AM(r),s=AM(r,!0);n.toString().length>4096&&(n=s);let o=CS(t,n),i=RE(n)&&!RE(t.url);switch(e){case"origin":return s??AM(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let a=NE(t);return CS(n,a)?n:RE(n)&&!RE(a)?"no-referrer":s}default:return i?"no-referrer":s}}function AM(t,e){return cm(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 RE(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}function PFe(t,e){if(ES===void 0)return!0;let r=GX(e);if(r==="no metadata"||r.length===0)return!0;let n=_Fe(r),s=QFe(r,n);for(let o of s){let i=o.algo,a=o.hash,c=ES.createHash(i).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),DFe(c,a))return!0}return!1}var vFe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function GX(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=vFe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();MX.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}function _Fe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}function QFe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length
`);function gUe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function yUe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}function EUe(t,e){xS(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.position+=2;let i=t.length;for(;t[i-1]===10&&t[i-2]===13;)i-=2;for(i!==t.length&&(t=t.subarray(0,i));;){if(t.subarray(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&wS(t,AUe,o)||o.position===t.length-4&&wS(t,hUe,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let a=CUe(t,o);if(a==="failure")return"failure";let{name:c,filename:l,contentType:d,encoding:u}=a;o.position+=2;let p;{let g=t.indexOf(n.subarray(2),o.position);if(g===-1)return"failure";p=t.subarray(o.position,g-4),o.position+=p.length,u==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let m;l!==null?(d??="text/plain",gUe(d)||(d=""),m=new mUe([p],l,{type:d})):m=cUe(Buffer.from(p)),xS(r7(c)),xS(typeof m=="string"&&r7(m)||uUe(m)),s.push(dUe(c,m,l))}}function CUe(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let i=$A(a=>a!==10&&a!==13&&a!==58,t,e);if(i=wM(i,!0,!0,a=>a===9||a===32),!lUe.test(i.toString())||t[e.position]!==58)return"failure";switch(e.position++,$A(a=>a===32||a===9,t,e),aUe(i)){case"content-disposition":{if(r=n=null,!wS(t,fUe,e)||(e.position+=17,r=o7(t,e),r===null))return"failure";if(wS(t,s7,e)){let a=e.position+s7.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=o7(t,e),n===null))return"failure"}break}case"content-type":{let a=$A(c=>c!==10&&c!==13,t,e);a=wM(a,!1,!0,c=>c===9||c===32),s=n7(a);break}case"content-transfer-encoding":{let a=$A(c=>c!==10&&c!==13,t,e);a=wM(a,!1,!0,c=>c===9||c===32),o=n7(a);break}default:$A(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function o7(t,e){xS(t[e.position-1]===34);let r=$A(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function $A(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wM(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;o>0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}function wS(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i7.exports={multipartFormDataParser:EUe,validateBoundary:yUe}});var zA=b((NLt,g7)=>{"use strict";var vE=Nt(),{ReadableStreamFrom:IUe,isBlobLike:c7,isReadableStreamLike:xUe,readableStreamClose:wUe,createDeferredPromise:bUe,fullyReadBody:SUe,extractMimeType:BUe,utf8DecodeBytes:d7}=Oo(),{FormData:l7}=PE(),{kState:HA}=hd(),{webidl:RUe}=jn(),{Blob:NUe}=require("node:buffer"),bM=require("node:assert"),{isErrored:p7,isDisturbed:TUe}=require("node:stream"),{isArrayBuffer:PUe}=require("node:util/types"),{serializeAMimeType:vUe}=so(),{multipartFormDataParser:_Ue}=a7(),SM;try{let t=require("node:crypto");SM=e=>t.randomInt(0,e)}catch{SM=t=>Math.floor(Math.random(t))}var bS=new TextEncoder;function QUe(){}var m7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,f7;m7&&(f7=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!TUe(e)&&!p7(e)&&e.cancel("Response object has been garbage collected").catch(QUe)}));function A7(t,e=!1){let r=null;t instanceof ReadableStream?r=t:c7(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof s=="string"?bS.encode(s):s;l.byteLength&&c.enqueue(l),queueMicrotask(()=>wUe(c))},start(){},type:"bytes"}),bM(xUe(r));let n=null,s=null,o=null,i=null;if(typeof t=="string")s=t,i="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(PUe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(vE.isFormDataLike(t)){let c=`----formdata-undici-0${`${SM(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let d=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),u=w=>w.replace(/\r?\n|\r/g,`\r
`),p=[],m=new Uint8Array([13,10]);o=0;let g=!1;for(let[w,x]of t)if(typeof x=="string"){let S=bS.encode(l+`; name="${d(u(w))}"\r
\r
2026-06-03 22:35:08 +00:00
${u(x)}\r
`);p.push(S),o+=S.byteLength}else{let S=bS.encode(`${l}; name="${d(u(w))}"`+(x.name?`; filename="${d(x.name)}"`:"")+`\r
2026-05-22 09:49:50 +00:00
Content-Type: ${x.type||"application/octet-stream"}\r
\r
2026-06-03 22:35:08 +00:00
`);p.push(S,x,m),typeof x.size=="number"?o+=S.byteLength+x.size+m.byteLength:g=!0}let E=bS.encode(`--${c}--\r
`);p.push(E),o+=E.byteLength,g&&(o=null),s=t,n=async function*(){for(let w of p)w.stream?yield*w.stream():yield w},i=`multipart/form-data; boundary=${c}`}else if(c7(t))s=t,o=t.size,t.type&&(i=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(vE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:IUe(t)}if((typeof s=="string"||vE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(l){let{value:d,done:u}=await c.next();if(u)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!p7(r)){let p=new Uint8Array(d);p.byteLength&&l.enqueue(p)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:o},i]}function DUe(t,e=!1){return t instanceof ReadableStream&&(bM(!vE.isDisturbed(t),"The body has already been consumed."),bM(!t.locked,"The stream is locked.")),A7(t,e)}function kUe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function LUe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function OUe(t){return{blob(){return GA(this,r=>{let n=u7(this);return n===null?n="":n&&(n=vUe(n)),new NUe([r],{type:n})},t)},arrayBuffer(){return GA(this,r=>new Uint8Array(r).buffer,t)},text(){return GA(this,d7,t)},json(){return GA(this,FUe,t)},formData(){return GA(this,r=>{let n=u7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=_Ue(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new l7;return o[HA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new l7;for(let[i,a]of s)o.append(i,a);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return GA(this,r=>new Uint8Array(r),t)}}}function MUe(t){Object.assign(t.prototype,OUe(t))}async function GA(t,e,r){if(RUe.brandCheck(t,r),h7(t))throw new TypeError("Body is unusable: Body has already been read");LUe(t[HA]);let n=bUe(),s=i=>n.reject(i),o=i=>{try{n.resolve(e(i))}catch(a){s(a)}};return t[HA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await SUe(t[HA].body,o,s),n.promise)}function h7(t){let e=t[HA].body;return e!=null&&(e.stream.locked||vE.isDisturbed(e.stream))}function FUe(t){return JSON.parse(d7(t))}function u7(t){let e=t[HA].headersList,r=BUe(e);return r==="failure"?null:r}g7.exports={extractBody:A7,safelyExtractBody:DUe,cloneBody:kUe,mixinBody:MUe,streamRegistry:f7,hasFinalizationRegistry:m7,bodyUnusable:h7}});var N7=b((TLt,R7)=>{"use strict";var Ze=require("node:assert"),pt=Nt(),{channels:y7}=_A(),BM=aM(),{RequestContentLengthMismatchError:lm,ResponseContentLengthMismatchError:UUe,RequestAbortedError:b7,HeadersTimeoutError:qUe,HeadersOverflowError:$Ue,SocketError:PS,InformationalError:VA,BodyTimeoutError:GUe,HTTPParserError:HUe,ResponseExceededMaxSizeError:zUe}=$t(),{kUrl:S7,kReset:oo,kClient:PM,kParser:$r,kBlocking:DE,kRunning:ds,kPending:VUe,kSize:E7,kWriting:yd,kQueue:Ea,kNoRef:_E,kKeepAliveDefaultTimeout:YUe,kHostHeader:WUe,kPendingIdx:jUe,kRunningIdx:Ii,kError:xi,kPipelining:NS,kSocket:YA,kKeepAliveTimeoutValue:vS,kMaxHeadersSize:RM,kKeepAliveMaxTimeout:JUe,kKeepAliveTimeoutThreshold:KUe,kHeadersTimeout:XUe,kBodyTimeout:ZUe,kStrictContentLength:vM,kMaxRequests:C7,kCounter:e2e,kMaxResponseSize:t2e,kOnError:r2e,kResume:gd,kHTTPContext:B7}=Er(),mc=fX(),n2e=Buffer.alloc(0),SS=Buffer[Symbol.species],BS=pt.addListener,s2e=pt.removeAllListeners,NM;async function o2e(){let t=process.env.JEST_WORKER_ID?uM():void 0,e;try{e=await WebAssembly.compile(gX())}catch{e=await WebAssembly.compile(t||uM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ze(bn.ptr===r);let o=n-Ac+fc.byteOffset;return bn.onStatus(new SS(fc.buffer,o,s))||0},wasm_on_message_begin:r=>(Ze(bn.ptr===r),bn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ze(bn.
`;if(typeof s=="string"?E+=`host: ${s}\r
`:E+=t[WUe],o?E+=`connection: upgrade\r
upgrade: ${o}\r
2026-06-03 22:35:08 +00:00
`:t[NS]&&!m[oo]?E+=`connection: keep-alive\r
`:E+=`connection: close\r
`,Array.isArray(l))for(let w=0;w<l.length;w+=2){let x=l[w+0],S=l[w+1];if(Array.isArray(S))for(let v=0;v<S.length;v++)E+=`${x}: ${S[v]}\r
`;else E+=`${x}: ${S}\r
`}return y7.sendHeaders.hasSubscribers&&y7.sendHeaders.publish({request:e,headers:E,socket:m}),!c||p===0?x7(g,null,t,e,m,d,E,u):pt.isBuffer(c)?x7(g,c,t,e,m,d,E,u):pt.isBlobLike(c)?typeof c.stream=="function"?w7(g,c.stream(),t,e,m,d,E,u):p2e(g,c,t,e,m,d,E,u):pt.isStream(c)?d2e(g,c,t,e,m,d,E,u):pt.isIterable(c)?w7(g,c,t,e,m,d,E,u):Ze(!1),!0}function d2e(t,e,r,n,s,o,i,a){Ze(o!==0||r[ds]===0,"stream body cannot be pipelined");let c=!1,l=new _S({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:a,header:i}),d=function(g){if(!c)try{!l.write(g)&&this.pause&&this.pause()}catch(E){pt.destroy(this,E)}},u=function(){c||e.resume&&e.resume()},p=function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!c){let g=new b7;queueMicrotask(()=>m(g))}},m=function(g){if(!c){if(c=!0,Ze(s.destroyed||s[yd]&&r[ds]<=1),s.off("drain",u).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",p),!g)try{l.end()}catch(E){g=E}l.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?pt.destroy(e,g):pt.destroy(e)}};e.on("data",d).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),s.on("drain",u).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}function x7(t,e,r,n,s,o,i,a){try{e?pt.isBuffer(e)&&(Ze(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${o}\r
\r
2026-06-03 22:35:08 +00:00
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[oo]=!0)):o===0?s.write(`${i}content-length: 0\r
\r
2026-06-03 22:35:08 +00:00
`,"latin1"):(Ze(o===null,"no body must not have content length"),s.write(`${i}\r
`,"latin1")),n.onRequestSent(),r[gd]()}catch(c){t(c)}}async function p2e(t,e,r,n,s,o,i,a){Ze(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new lm;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${i}content-length: ${o}\r
\r
2026-06-03 22:35:08 +00:00
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[oo]=!0),r[gd]()}catch(c){t(c)}}async function w7(t,e,r,n,s,o,i,a){Ze(o!==0||r[ds]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let p=c;c=null,p()}}let d=()=>new Promise((p,m)=>{Ze(c===null),s[xi]?m(s[xi]):c=p});s.on("close",l).on("drain",l);let u=new _S({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:a,header:i});try{for await(let p of e){if(s[xi])throw s[xi];u.write(p)||await d()}u.end()}catch(p){u.destroy(p)}finally{s.off("close",l).off("drain",l)}}var _S=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:i,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=i,this.header=a,this.abort=e,r[yd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:i,expectsPayload:a,header:c}=this;if(r[xi])throw r[xi];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(s!==null&&i+l>s){if(o[vM])throw new lm;process.emitWarning(new lm)}r.cork(),i===0&&(!a&&n.reset!==!1&&(r[oo]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${l.toString(16)}\r
2026-06-03 22:35:08 +00:00
`,"latin1"),this.bytesWritten+=l;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[$r].timeout&&r[$r].timeoutType===WA&&r[$r].timeout.refresh&&r[$r].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:i,request:a}=this;if(a.onRequestSent(),e[yd]=!1,e[xi])throw e[xi];if(!e.destroyed){if(s===0?o?e.write(`${i}content-length: 0\r
\r
`,"latin1"):e.write(`${i}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
2026-06-03 22:35:08 +00:00
`,"latin1"),r!==null&&s!==r){if(n[vM])throw new lm;process.emitWarning(new lm)}e[$r].timeout&&e[$r].timeoutType===WA&&e[$r].timeout.refresh&&e[$r].timeout.refresh(),n[gd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[yd]=!1,e&&(Ze(n[ds]<=1,"pipeline should only contain this request"),s(e))}};R7.exports=a2e});var L7=b((PLt,k7)=>{"use strict";var wi=require("node:assert"),{pipeline:m2e}=require("node:stream"),_t=Nt(),{RequestContentLengthMismatchError:kM,RequestAbortedError:T7,SocketError:kE,InformationalError:LM}=$t(),{kUrl:QS,kReset:kS,kClient:jA,kRunning:LS,kPending:f2e,kQueue:Ed,kPendingIdx:OM,kRunningIdx:Ca,kError:xa,kSocket:Ln,kStrictContentLength:A2e,kOnError:MM,kMaxConcurrentStreams:D7,kHTTP2Session:Ia,kResume:Cd,kSize:h2e,kHTTPContext:g2e}=Er(),ou=Symbol("open streams"),P7,v7=!1,DS;try{DS=require("node:http2")}catch{DS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:y2e,HTTP2_HEADER_METHOD:E2e,HTTP2_HEADER_PATH:C2e,HTTP2_HEADER_SCHEME:I2e,HTTP2_HEADER_CONTENT_LENGTH:x2e,HTTP2_HEADER_EXPECT:w2e,HTTP2_HEADER_STATUS:b2e}}=DS;function S2e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function B2e(t,e){t[Ln]=e,v7||(v7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=DS.connect(t[QS],{createConnection:()=>e,peerMaxConcurrentStreams:t[D7]});r[ou]=0,r[jA]=t,r[Ln]=e,_t.addListener(r,"error",N2e),_t.addListener(r,"frameError",T2e),_t.addListener(r,"end",P2e),_t.addListener(r,"goaway",v2e),_t.addListener(r,"close",function(){let{[jA]:s}=this,{[Ln]:o}=s,i=this[Ln][xa]||this[xa]||new kE("closed",_t.getSocketInfo(o));if(s[Ia]=null,s.destroyed){wi(s[f2e]===0);let a=s[Ed].splice(s[Ca]);for(let c=0;c<a.length;c++){let l=a[c];_t.errorRequest(s,l,i)}}}),r.unref(),t[Ia]=r,e[Ia]=r,_t.addListener(e,"error",function(s){wi(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xa]=s,this[jA][MM](s)}),_t.addListener(e,"end",function(){_t.destroy(this,new kE("other side closed",_t.getSocketInfo(this)))}),_t.addListener(e,"close",function(){let s=this[xa]||new kE("closed",_t.getSocketInfo(this));t[Ln]=null,this[Ia]!=null&&this[Ia].destroy(s),t[OM]=t[Ca],wi(t[LS]===0),t.emit("disconnect",t[QS],[t],s),t[Cd]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Q2e(t,...s)},resume(){R2e(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}function R2e(t){let e=t[Ln];e?.destroyed===!1&&(t[h2e]===0&&t[D7]===0?(e.unref(),t[Ia].unref()):(e.ref(),t[Ia].ref()))}function N2e(t){wi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ln][xa]=t,this[jA][MM](t)}function T2e(t,e,r){if(r===0){let n=new LM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Ln][xa]=n,this[jA][MM](n)}}function P2e(){let t=new kE("other side closed",_t.getSocketInfo(this[Ln]));this.destroy(t),_t.destroy(this[Ln],t)}function v2e(t){let e=this[xa]||new kE(`HTTP/2: "GOAWAY" frame received with code ${t}`,_t.getSocketInfo(this)),r=this[jA];if(r[Ln]=null,r[g2e]=null,this[Ia]!=null&&(this[Ia].destroy(e),this[Ia]=null),_t.destroy(this[Ln],e),r[Ca]<r[Ed].length){let n=r[Ed][r[Ca]];r[Ed][r[Ca]++]=null,_t.errorRequest(r,n,e),r[OM]=r[Ca]}wi(r[LS]===0),r.emit("disconnect",r[QS],[r],e),r[Cd]()}function _2e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Q2e(t,e){let r=t[Ia],{method:n,path:s,host:o,upgrade:i,expectContinue:a,signal:c,headers:l}=e,{body:d}=e;if(i)return _t.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let u={};for(let Q=0;Q<l.length;Q+=2){let $=l[Q+0],F=l[Q+1];if(Array.isArray(F))for(let ee=0;ee<F.length;ee++)u[$]?u[$]+=`,${F[ee]}`:u[$]=F[ee];else u[$]=F}let p,{hostname:m,port:g}=t[QS];u[y2e]=o||`${m}${g?`:${g}`:""}`,u[E2e]=n;let E=Q=>{e.aborted||e.completed||(Q=Q||new T7,_t.errorRequest(t,e,Q),p!=null&&_t.destroy(p,Q),_t.destroy(d,Q),t[Ed][t[Ca]++]=null,t[Cd]())};try{e.onConnect(E)}catch(Q){_t.errorRequest(t,e,Q)
`,this[oqe]=c??3e5,this[sqe]=s??3e5,this[iqe]=S??!0,this[aqe]=Q,this[$M]=F,this[xd]=null,this[pqe]=Ce>-1?Ce:-1,this[fqe]=le??100,this[en]=null,this[wa]=[],this[au]=0,this[ba]=0,this[FE]=J=>HM(this,J),this[mqe]=J=>W7(this,J)}get pipelining(){return this[US]}set pipelining(e){this[US]=e,this[FE](!0)}get[$E](){return this[wa].length-this[ba]}get[qE](){return this[ba]-this[au]}get[UE](){return this[wa].length-this[au]}get[K2e](){return!!this[en]&&!this[KA]&&!this[en].destroyed}get[qM](){return!!(this[en]?.busy(null)||this[UE]>=(Y7(this)||1)||this[$E]>0)}[J2e](e){j7(this),this.once("connect",e)}[dqe](e,r){let n=e.origin||this[gc].origin,s=new H2e(n,e,r);return this[wa].push(s),this[dm]||(um.bodyLength(s.body)==null&&um.isIterable(s.body)?(this[dm]=1,queueMicrotask(()=>HM(this))):this[FE](!0)),this[dm]&&this[wd]!==2&&this[qM]&&(this[wd]=2),this[wd]<2}async[lqe](){return new Promise(e=>{this[UE]?this[xd]=e:e(null)})}async[uqe](e){return new Promise(r=>{let n=this[wa].splice(this[ba]);for(let o=0;o<n.length;o++){let i=n[o];um.errorRequest(this,i,e)}let s=()=>{this[xd]&&(this[xd](),this[xd]=null),r(null)};this[en]?(this[en].destroy(e,s),this[en]=null):queueMicrotask(s),this[FE]()})}},gqe=FS();function W7(t,e){if(t[qE]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[ba]===t[au]);let r=t[wa].splice(t[au]);for(let n=0;n<r.length;n++){let s=r[n];um.errorRequest(t,s,e)}iu(t[UE]===0)}}async function j7(t){iu(!t[KA]),iu(!t[en]);let{host:e,hostname:r,protocol:n,port:s}=t[gc];if(r[0]==="["){let o=r.indexOf("]");iu(o!==-1);let i=r.substring(1,o);iu(V7.isIP(i)),r=i}t[KA]=!0,JA.beforeConnect.hasSubscribers&&JA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[en]?.version,servername:t[Id],localAddress:t[ME]},connector:t[OE]});try{let o=await new Promise((i,a)=>{t[OE]({host:e,hostname:r,protocol:n,port:s,servername:t[Id],localAddress:t[ME]},(c,l)=>{c?a(c):i(l)})});if(t.destroyed){um.destroy(o.on("error",H7),new Y2e);return}iu(o);try{t[en]=o.alpnProtocol==="h2"?await hqe(t,o):await Aqe(t,o)}catch(i){throw o.destroy().on("error",H7),i}t[KA]=!1,o[cqe]=0,o[$M]=t[$M],o[j2e]=t,o[Z2e]=null,JA.connected.hasSubscribers&&JA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[en]?.version,servername:t[Id],localAddress:t[ME]},connector:t[OE],socket:o}),t.emit("connect",t[gc],[t])}catch(o){if(t.destroyed)return;if(t[KA]=!1,JA.connectError.hasSubscribers&&JA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[en]?.version,servername:t[Id],localAddress:t[ME]},connector:t[OE],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[qE]===0);t[$E]>0&&t[wa][t[ba]].servername===t[Id];){let i=t[wa][t[ba]++];um.errorRequest(t,i,o)}else W7(t,o);t.emit("connectionError",t[gc],[t],o)}t[FE]()}function z7(t){t[wd]=0,t.emit("drain",t[gc],[t])}function HM(t,e){t[dm]!==2&&(t[dm]=2,yqe(t,e),t[dm]=0,t[au]>256&&(t[wa].splice(0,t[au]),t[ba]-=t[au],t[au]=0))}function yqe(t,e){for(;;){if(t.destroyed){iu(t[$E]===0);return}if(t[xd]&&!t[UE]){t[xd](),t[xd]=null;return}if(t[en]&&t[en].resume(),t[qM])t[wd]=2;else if(t[wd]===2){e?(t[wd]=1,queueMicrotask(()=>z7(t))):z7(t);continue}if(t[$E]===0||t[qE]>=(Y7(t)||1))return;let r=t[wa][t[ba]];if(t[gc].protocol==="https:"&&t[Id]!==r.servername){if(t[qE]>0)return;t[Id]=r.servername,t[en]?.destroy(new V2e("servername changed"),()=>{t[en]=null,HM(t)})}if(t[KA])return;if(!t[en]){j7(t);return}if(t[en].destroyed||t[en].busy(r))return;!r.aborted&&t[en].write(r)?t[ba]++:t[wa].splice(t[ba],1)}}J7.exports=GM});var zM=b((kLt,K7)=>{"use strict";var qS=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)}};K7.exports=class{constructor(){this.head=this.tail=new qS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.nex
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
2026-06-03 22:35:08 +00:00
`.trim())}};Ate.exports=X1});var o0=b((dOt,Cte)=>{"use strict";var gte=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:oHe}=$t(),iHe=eh();Ete()===void 0&&yte(new iHe);function yte(t){if(!t||typeof t.dispatch!="function")throw new oHe("Argument agent must implement Agent");Object.defineProperty(globalThis,gte,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Ete(){return globalThis[gte]}Cte.exports={setGlobalDispatcher:yte,getGlobalDispatcher:Ete}});var i0=b((mOt,Ite)=>{"use strict";Ite.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 wte=b((fOt,xte)=>{"use strict";var aHe=MS();xte.exports=t=>{let e=t?.maxRedirections;return r=>function(s,o){let{maxRedirections:i=e,...a}=s;if(!i)return r(s,o);let c=new aHe(r,i,s,o);return r(a,c)}}});var Ste=b((AOt,bte)=>{"use strict";var cHe=jS();bte.exports=t=>e=>function(n,s){return e(n,new cHe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Rte=b((hOt,Bte)=>{"use strict";var lHe=Nt(),{InvalidArgumentError:uHe,RequestAbortedError:dHe}=$t(),pHe=i0(),Z1=class extends pHe{#e=1024*1024;#t=null;#s=!1;#n=!1;#r=0;#o=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new uHe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#n=!0,this.#o=e}onHeaders(e,r,n,s){let i=lHe.parseHeaders(r)["content-length"];if(i!=null&&i>this.#e)throw new dHe(`Response size (${i}) larger than maxSize (${this.#e})`);return this.#n?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#s||(e=this.#o??e,this.#i.onError(e))}onData(e){return this.#r=this.#r+e.length,this.#r>=this.#e&&(this.#s=!0,this.#n?this.#i.onError(this.#o):this.#i.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#n){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function mHe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:o=t}=n,i=new Z1({maxSize:o},s);return e(n,i)}}Bte.exports=mHe});var Pte=b((gOt,Tte)=>{"use strict";var{isIP:fHe}=require("node:net"),{lookup:AHe}=require("node:dns"),hHe=i0(),{InvalidArgumentError:uh,InformationalError:gHe}=$t(),Nte=Math.pow(2,31)-1,eF=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.#n,this.pick=e.pick??this.#r}get full(){return this.#s.size===this.#t}runLookup(e,r,n){let s=this.#s.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(i,a)=>{if(i||a==null||a.length===0){n(i??new gHe("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),l=this.pick(e,c,o.affinity),d;typeof l.port=="number"?d=`:${l.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${d}`)});else{let i=this.pick(e,s,o.affinity);if(i==null){this.#s.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof i.port=="number"?a=`:${i.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${i.family===6?`[${i.address}]`:i.address}${a}`)}}#n(e,r,n){AHe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let i=new Map;for(let a of o)i.set(`${a.address}:${a.family}`,a);n(null,i.values())})}#r(e,r,n){let s=null,{records:o,offset:i}=r,a;if(this.dualStack?(n==null&&(i==null||i===Nte?(r.offset=0,n=4):(r
${o}`;break;case"retry":lse(o)&&(r[s]=o);break;case"id":use(o)&&(r[s]=o);break;case"event":o.length>0&&(r[s]=o);break}}processEvent(e){e.retry&&lse(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&use(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}}};dse.exports={EventSourceStream:UF}});var Cse=b((WOt,Ese)=>{"use strict";var{pipeline:R4e}=require("node:stream"),{fetching:N4e}=nC(),{makeRequest:T4e}=mh(),{webidl:pu}=jn(),{EventSourceStream:P4e}=pse(),{parseMIMEType:v4e}=so(),{createFastMessageEvent:_4e}=Eh(),{isNetworkError:mse}=tC(),{delay:Q4e}=MF(),{kEnumerableProperty:Rm}=Nt(),{environmentSettingsObject:fse}=Oo(),Ase=!1,hse=3e3,hC=0,gse=1,gC=2,D4e="anonymous",k4e="use-credentials",bh=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#n=hC;#r=null;#o=null;#i;#a;constructor(e,r={}){super(),pu.util.markAsUncloneable(this);let n="EventSource constructor";pu.argumentLengthCheck(arguments,1,n),Ase||(Ase=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=pu.converters.USVString(e,n,"url"),r=pu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:hse};let s=fse,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=o.href;let i=D4e;r.withCredentials&&(i=k4e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=fse.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#r=T4e(a),this.#c()}get readyState(){return this.#n}get url(){return this.#t}get withCredentials(){return this.#s}#c(){if(this.#n===gC)return;this.#n=hC;let e={request:this.#r,dispatcher:this.#i},r=n=>{mse(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(mse(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let s=n.headersList.get("content-type",!0),o=s!==null?v4e(s):"failure",i=o!=="failure"&&o.essence==="text/event-stream";if(n.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=gse,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let a=new P4e({eventSourceSettings:this.#a,push:c=>{this.dispatchEvent(_4e(c.type,c.options))}});R4e(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=N4e(e)}async#l(){this.#n!==gC&&(this.#n=hC,this.dispatchEvent(new Event("error")),await Q4e(this.#a.reconnectionTime),this.#n===hC&&(this.#a.lastEventId.length&&this.#r.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#c()))}close(){pu.brandCheck(this,t),this.#n!==gC&&(this.#n=gC,this.#o.abort(),this.#r=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}},yse={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:hC,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:gse,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:gC,writable:!1}};Object.defineProperties(bh,yse);Object.definePropert
%s`,$,$,S,n);var F=S.type==="*"?OU:S.type==="?"?LU:"\\"+S.type;s=!0,n=n.slice(0,S.reStart)+F+"\\("+$}g(),o&&(n+="\\\\");var ee=!1;switch(n.charAt(0)){case"[":case".":case"(":ee=!0}for(var Ce=a.length-1;Ce>-1;Ce--){var He=a[Ce],De=n.slice(0,He.reStart),le=n.slice(He.reStart,He.reEnd-8),Ne=n.slice(He.reEnd-8,He.reEnd),J=n.slice(He.reEnd);Ne+=J;var me=De.split("(").length-1,St=J;for(E=0;E<me;E++)St=St.replace(/\)[+*?]?/,"");J=St;var Le="";J===""&&e!==fB&&(Le="$");var Dt=De+le+J+Le+Ne;n=Dt}if(n!==""&&s&&(n="(?=.)"+n),ee&&(n=p+n),e===fB)return[n,s];if(!s)return lJe(t);var ue=r.nocase?"i":"";try{var Ur=new RegExp("^"+n+"$",ue)}catch{return new RegExp("$.")}return Ur._glob=t,Ur._src=n,Ur}Wo.makeRe=function(t,e){return new gn(t,e||{}).makeRe()};gn.prototype.makeRe=cJe;function cJe(){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?OU:e.dot?eJe:tJe,n=e.nocase?"i":"",s=t.map(function(o){return o.map(function(i){return i===Dm?r:typeof i=="string"?uJe(i):i._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Wo.match=function(t,e,r){r=r||{};var n=new gn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};gn.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;MC.sep!=="/"&&(e=e.split(MC.sep).join("/")),e=e.split(Iae),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var o,i;for(i=e.length-1;i>=0&&(o=e[i],!o);i--);for(i=0;i<s.length;i++){var a=s[i],c=e;n.matchBase&&a.length===1&&(c=[o]);var l=this.matchOne(c,a,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};gn.prototype.matchOne=function(t,e,r){return e.indexOf(Dm)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};gn.prototype._matchGlobstar=function(t,e,r,n,s){var o,i=-1;for(o=s;o<e.length;o++)if(e[o]===Dm){i=o;break}var a=-1;for(o=e.length-1;o>=0;o--)if(e[o]===Dm){a=o;break}var c=e.slice(s,i),l=r?e.slice(i+1):e.slice(i+1,a),d=r?[]:e.slice(a+1);if(c.length){var u=t.slice(n,n+c.length);if(!this._matchOne(u,c,r,0,0))return!1;n+=c.length}var p=0;if(d.length){if(d.length+n>t.length)return!1;var m=t.length-d.length;if(this._matchOne(t,d,r,m,0))p=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(m--,!this._matchOne(t,d,r,m,0)))return!1;p=d.length+1}}if(!l.length){var g=!!p;for(o=n;o<t.length-p;o++){var E=String(t[o]);if(g=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return r||g}for(var w=[[[],0]],x=w[0],S=0,v=[0],Q=0;Q<l.length;Q++){var $=l[Q];$===Dm?(v.push(S),x=[[],0],w.push(x)):(x[0].push($),S++)}for(var F=w.length-1,ee=t.length-p,Ce=0;Ce<w.length;Ce++)w[Ce][1]=ee-(v[F--]+w[Ce][0].length);return!!this._matchGlobStarBodySections(t,w,n,0,r,0,!!p)};gn.prototype._matchGlobStarBodySections=function(t,e,r,n,s,o,i){var a=e[n];if(!a){for(var c=r;c<t.length;c++){i=!0;var l=t[c];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return i}for(var d=a[0],u=a[1];r<=u;){var p=this._matchOne(t.slice(0,r+d.length),d,s,r,0);if(p&&o<this.maxGlobstarRecursion){var m=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,o+1,i);if(m!==!1)return m}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return s||null};gn.prototype._matchOne=function(t,e,r,n,s){var o,i,a,c;for(o=n,i=s,a=t.length,c=e.length;o<a&&i<c;o++,i++){this.debug("matchOne loop");var l=e[i],d=t[o];if(this.debug(e,l,d),l===!1||l===Dm)return!1;var u;if(typeof l=="string"?(u=d===l,this.debug("string match",l,d,u)):(u=d.match(l),this.debug("pattern match",l,d,u)),!u)return!1}if(o===a&&i===c)return!0;if(o===a)return r;if(i===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function lJe(t){return t.replace(/\\(.)/g,"$1")}function uJe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Lh=b((rUt,Nae)
`).join(`
2026-06-03 22:35:08 +00:00
`+o),t.push(s+"m+"+nR.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=IKe()+e+" "+t[0]}function IKe(){return Xn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function xKe(...t){return process.stderr.write(rR.format(...t)+`
`)}function wKe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function bKe(){return process.env.DEBUG}function SKe(t){t.inspectOpts={};let e=Object.keys(Xn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Xn.inspectOpts[e[r]]}nR.exports=T2()(Xn);var{formatters:fue}=nR.exports;fue.o=function(t){return this.inspectOpts.colors=this.useColors,rR.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};fue.O=function(t){return this.inspectOpts.colors=this.useColors,rR.inspect(t,this.inspectOpts)}});var Hm=b((xqt,_2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_2.exports=cue():_2.exports=Aue()});var yue=b(fo=>{"use strict";var BKe=fo&&fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RKe=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hue=fo&&fo.__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)&&BKe(e,t,r);return RKe(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var NKe=hue(require("http")),TKe=hue(require("https"));async function gue(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=gue;async function PKe(t){let r=(await gue(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=PKe;function vKe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?TKe:NKe).request(t,e),s=new Promise((o,i)=>{n.once("response",o).once("error",i).end()});return n.then=s.then.bind(s),n}fo.req=vKe});var xue=b(Xo=>{"use strict";var Cue=Xo&&Xo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_Ke=Xo&&Xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Iue=Xo&&Xo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Cue(e,t,r);return _Ke(e,t),e},QKe=Xo&&Xo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Cue(e,t,r)};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.Agent=void 0;var DKe=Iue(require("net")),Eue=Iue(require("http")),kKe=require("https");QKe(yue(),Xo);var Nc=Symbol("AgentBaseInternalState"),Q2=class extends Eue.Agent{constructor(e){super(e),this[Nc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new DKe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?kKe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),i=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(o,i),a instanceof Eue.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Nc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(o,i),n(a)})}createConnection(){let e=this[Nc].currentSocket;if(this[Nc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Nc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Nc]&&(this[Nc].defaultPort=e)}get protocol(){return this[Nc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Nc]&&(this[Nc].protocol=e)}};Xo.Agent=Q2});var wue=b(Yh=>{"use strict";var LKe=Yh&&Yh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yh,"__esModule",{value:!0});Yh.parseProxyResponse=void 0;var OKe=LKe(Hm()),sR=(0,OKe.default)("https-proxy-agent:parse-proxy-response");function MKe(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?l(d):t.once("readable",o)}function i(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",o)}function a(){i(),sR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(d){i(),sR("onerror %o",d),r(d)}function l(d){s.push(d),n+=d.length;let u=Buffer.concat(s,n),p=u.indexOf(`\r
\r
2026-06-03 22:35:08 +00:00
`);if(p===-1){sR("have not received end of HTTP headers yet..."),o();return}let m=u.slice(0,p).toString("ascii").split(`\r
`),g=m.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),w=+E[1],x=E.slice(2).join(" "),S={};for(let v of m){if(!v)continue;let Q=v.indexOf(":");if(Q===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${v}"`));let $=v.slice(0,Q).toLowerCase(),F=v.slice(Q+1).trimStart(),ee=S[$];typeof ee=="string"?S[$]=[ee,F]:Array.isArray(ee)?ee.push(F):S[$]=F}sR("got proxy server response: %o %o",g,S),i(),e({connect:{statusCode:w,statusText:x,headers:S},buffered:u})}t.on("error",c),t.on("end",a),o()})}Yh.parseProxyResponse=MKe});var Tue=b(ki=>{"use strict";var FKe=ki&&ki.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UKe=ki&&ki.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rue=ki&&ki.__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)&&FKe(e,t,r);return UKe(e,t),e},Nue=ki&&ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ki,"__esModule",{value:!0});ki.HttpsProxyAgent=void 0;var oR=Rue(require("net")),bue=Rue(require("tls")),qKe=Nue(require("assert")),$Ke=Nue(Hm()),GKe=xue(),HKe=require("url"),zKe=wue(),rI=(0,$Ke.default)("https-proxy-agent"),Sue=t=>t.servername===void 0&&t.host&&!oR.isIP(t.host)?{...t,servername:t.host}:t,iR=class extends GKe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new HKe.URL(e):e,this.proxyHeaders=r?.headers??{},rI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Bue(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(rI("Creating `tls.Socket`: %o",this.connectOpts),s=bue.connect(Sue(this.connectOpts))):(rI("Creating `net.Socket`: %o",this.connectOpts),s=oR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=oR.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}o.Host=`${i}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(o))a+=`${p}: ${o[p]}\r
2026-06-03 22:35:08 +00:00
`;let c=(0,zKe.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:l,buffered:d}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",VKe),r.secureEndpoint?(rI("Upgrading socket connection to TLS"),bue.connect({...Bue(Sue(r),"host","path","port"),socket:s})):s;s.destroy();let u=new oR.Socket({writable:!1});return u.readable=!0,e.once("socket",p=>{rI("Replaying proxy buffer for failed request"),(0,qKe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),u}};iR.protocols=["http","https"];ki.HttpsProxyAgent=iR;function VKe(t){t.resume()}function Bue(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var _ue=b(Ao=>{"use strict";var YKe=Ao&&Ao.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WKe=Ao&&Ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pue=Ao&&Ao.__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)&&YKe(e,t,r);return WKe(e,t),e};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.req=Ao.json=Ao.toBuffer=void 0;var jKe=Pue(require("http")),JKe=Pue(require("https"));async function vue(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}Ao.toBuffer=vue;async function KKe(t){let r=(await vue(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}Ao.json=KKe;function XKe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?JKe:jKe).request(t,e),s=new Promise((o,i)=>{n.once("response",o).once("error",i).end()});return n.then=s.then.bind(s),n}Ao.req=XKe});var kue=b(Zo=>{"use strict";var Due=Zo&&Zo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZKe=Zo&&Zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eXe=Zo&&Zo.__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)&&Due(e,t,r);return ZKe(e,t),e},tXe=Zo&&Zo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Due(e,t,r)};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.Agent=void 0;var Que=eXe(require("http"));tXe(_ue(),Zo);var Tc=Symbol("AgentBaseInternalState"),D2=class extends Que.Agent{constructor(e){super(e),this[Tc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof Que.Agent)return o.addRequest(e,s);this[Tc].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[Tc].currentSocket;if(this[Tc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Tc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Tc]&&(this[Tc].defaultPort=e)}get protocol(){return this[Tc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Tc]&&(this[Tc].protocol=e)}};Zo.Agent=D2});var Mue=b(Li=>{"use strict";var rXe=Li&&Li.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nXe=Li&&Li.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oue=Li&&Li.__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)&&rXe(e,t,r);return nXe(e,t),e},sXe=Li&&Li.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Li,"__esModule",{value:!0});Li.HttpProxyAgent=void 0;var oXe=Oue(require("net")),iXe=Oue(require("tls")),aXe=sXe(Hm()),cXe=require("events"),lXe=kue(),Lue=require("url"),Wh=(0,aXe.default)("http-proxy-agent"),aR=class extends lXe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Lue.URL(e):e,this.proxyHeaders=r?.headers??{},Wh("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?uXe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",i=`${s}//${o}`,a=new Lue.URL(e.path,i);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let l=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let d=c[l];d&&e.setHeader(l,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Wh("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wh("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
2026-06-03 22:35:08 +00:00
`)+4,e.outputData[0].data=e._header+n.substring(s),Wh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Wh("Creating `tls.Socket`: %o",this.connectOpts),o=iXe.connect(this.connectOpts)):(Wh("Creating `net.Socket`: %o",this.connectOpts),o=oXe.connect(this.connectOpts)),await(0,cXe.once)(o,"connect"),o}};aR.protocols=["http","https"];Li.HttpProxyAgent=aR;function uXe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ide=b(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.state=void 0;IR.state={instrumenterImplementation:void 0}});var wde=b(BR=>{"use strict";Object.defineProperty(BR,"__esModule",{value:!0});BR.state=void 0;BR.state={operationRequestMap:new WeakMap}});var tfe=b(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var _rt=require("os"),Qrt=require("util");function Drt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var krt=Drt(Qrt);function Lrt(t,...e){process.stderr.write(`${krt.default.format(t,...e)}${_rt.EOL}`)}var zme=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Yme,pz=[],mz=[],zN=[];zme&&fz(zme);var Wme=Object.assign(t=>jme(t),{enable:fz,enabled:Az,disable:Ort,log:Lrt});function fz(t){Yme=t,pz=[],mz=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?mz.push(new RegExp(`^${n.substr(1)}$`)):pz.push(new RegExp(`^${n}$`));for(let n of zN)n.enabled=Az(n.namespace)}function Az(t){if(t.endsWith("*"))return!0;for(let e of mz)if(e.test(t))return!1;for(let e of pz)if(e.test(t))return!0;return!1}function Ort(){let t=Yme||"";return fz(""),t}function jme(t){let e=Object.assign(r,{enabled:Az(t),destroy:Mrt,log:Wme.log,namespace:t,extend:Frt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return zN.push(e),e}function Mrt(){let t=zN.indexOf(this);return t>=0?(zN.splice(t,1),!0):!1}function Frt(t){let e=jme(`${this.namespace}:${t}`);return e.log=this.log,e}var GI=Wme,Jme=new Set,GN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,VN,YN=GI("azure");YN.log=(...t)=>{GI.log(...t)};var hz=["verbose","info","warning","error"];GN&&(efe(GN)?Kme(GN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${GN}'; logging is not enabled. Acceptable values: ${hz.join(", ")}.`));function Kme(t){if(t&&!efe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${hz.join(",")}`);VN=t;let e=[];for(let r of Jme)Zme(r)&&e.push(r.namespace);GI.enable(e.join(","))}function Urt(){return VN}var Vme={verbose:400,info:300,warning:200,error:100};function qrt(t){let e=YN.extend(t);return Xme(YN,e),{error:HN(e,"error"),warning:HN(e,"warning"),info:HN(e,"info"),verbose:HN(e,"verbose")}}function Xme(t,e){e.log=(...r)=>{t.log(...r)}}function HN(t,e){let r=Object.assign(t.extend(e),{level:e});if(Xme(t,r),Zme(r)){let n=GI.disable();GI.enable(n+","+r.namespace)}return Jme.add(r),r}function Zme(t){return!!(VN&&Vme[t.level]<=Vme[VN])}function efe(t){return hz.includes(t)}pg.AzureLogger=YN;pg.createClientLogger=qrt;pg.getLogLevel=Urt;pg.setLogLevel=Kme});var Ez=b(zI=>{"use strict";Object.defineProperty(zI,"__esModule",{value:!0});var mg=new WeakMap,WN=new WeakMap,HI=class t{constructor(){this.onabort=null,mg.set(this,[]),WN.set(this,!1)}get aborted(){if(!WN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return WN.get(this)}static get none(){return new t}addEventListener(e,r){if(!mg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");mg.get(this).push(r)}removeEventListener(e,r){if(!mg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=mg.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function rfe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=mg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),WN.set(t,!0)}var gz=class extends Error{constructor(e){super(e),t
Polling from: ${r.config.operationLocation}
2026-06-03 22:35:08 +00:00
Operation status: ${d}
Polling status: ${dfe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let u=i(l,r);if(u!==void 0)return{response:await e(u).catch(lfe({state:r,stateProxy:n,isOperationError:a})),status:d}}return{response:l,status:d}}async function Afe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:i,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:d,processResult:u,getError:p,updateState:m,setDelay:g,isDone:E,setErrorAsResult:w}=t,{operationLocation:x}=r.config;if(x!==void 0){let{response:S,status:v}=await snt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:x,getResourceLocation:i,isOperationError:c,options:s});if(mfe({status:v,response:S,state:r,stateProxy:n,isDone:E,processResult:u,getError:p,setErrorAsResult:w}),!dfe.includes(v)){let Q=d?.(S);Q&&g(Q);let $=a?.(S,r);if($!==void 0){let F=x!==$;r.config.operationLocation=$,l?.($,F)}else l?.(x,!1)}m?.(r,S)}}function hfe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function gfe(t){return t.headers.location}function yfe(t){return t.headers["operation-location"]}function Efe(t){return t.headers["azure-asyncoperation"]}function ont(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}function Cfe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=yfe(e),i=Efe(e),a=hfe({operationLocation:o,azureAsyncOperation:i}),c=gfe(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:ont({requestMethod:l,location:c,requestPath:n,resourceLocationConfig:s})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}function Ife(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 Rz(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 lf.verbose(`LRO: unrecognized operation status: ${e}`),e}}function int(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Ife({status:r,statusCode:t.statusCode})}function ant(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Ife({status:o,statusCode:t.statusCode})}function Rz(t){return t===202?"running":t<300?"succeeded":"failed"}function xfe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?cnt(new Date(e)):r*1e3}}function wfe(t){let e=t.flatResponse.error;if(!e){lf.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){lf.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 cnt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function bfe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var i;switch((i=r.config.metadata)===null||i===void 0?void 0:i.mode){case void 0:return Rz(e.rawResponse.statusCode);case"Body":return Nz(e,r);default:return"running"}}let o=s();return o==="running"&&n===void 0?"succeeded":o}async function lnt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:o}=t;return ffe({init:async()=>{let i=await s.sendInitialRequest(),a=Cfe({rawResponse:i.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:i,operat
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:i=o,s=1;break;case 1:r[n++]=i<<2|(o&48)>>4,i=o,s=2;break;case 2:r[n++]=(i&15)<<4|(o&60)>>2,i=o,s=3;break;case 3:r[n++]=(i&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Eg.base64decode=Vnt;function Ynt(t){let e="",r=0,n,s=0;for(let o=0;o<t.length;o++)switch(n=t[o],r){case 0:e+=vu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=vu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=vu[s|n>>6],e+=vu[n&63],r=0;break}return r&&(e+=vu[s],e+="=",r==1&&(e+="=")),e}Eg.base64encode=Ynt});var tAe=b(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT.utf8read=void 0;var Mz=t=>String.fromCharCode.apply(String,t);function Wnt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,i=t.length;for(;e<i;)o=t[e++],o<128?n[s++]=o:o>191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(Mz(n)),s=0);return r.length?(s&&r.push(Mz(n.slice(0,s))),r.join("")):Mz(n.slice(0,s))}mT.utf8read=Wnt});var ZI=b(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.WireType=tl.mergeBinaryOptions=tl.UnknownFieldHandler=void 0;var jnt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,i)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:i})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:i,data:a}of t.list(n))s.tag(o,i).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(jnt=tl.UnknownFieldHandler||(tl.UnknownFieldHandler={}));function Jnt(t,e){return Object.assign(Object.assign({},t),e)}tl.mergeBinaryOptions=Jnt;var Knt;(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"})(Knt=tl.WireType||(tl.WireType={}))});var AT=b(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.varint32read=xo.varint32write=xo.int64toString=xo.int64fromString=xo.varint64write=xo.varint64read=void 0;function Xnt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}xo.varint64read=Xnt;function Znt(t,e,r){for(let o=0;o<28;o=o+7){let i=t>>>o,a=!(!(i>>>7)&&e==0),c=(a?i|128:i)&255;if(r.push(c),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let i=e>>>o,a=!!(i>>>7),c=(a?i|128:i)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}xo.varint64write=Znt;var fT=65536*65536;function est(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(i,a){let c=Number(t.slice(i,a));s*=r,n=n*r+c,n>=fT&&(s=s+(n/fT|0),n=n%fT)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}xo.int64fromString=est;function tst(t,e){if(e>>>0<=2097151)return""+(fT*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,i=n+s*8147497,a=s*2,c=1e7;o>=c&&(i+=Math.floor(o/c),o%=c),i>=c&&(a+=Math.floor(i/c),i%=c);function l(d,u){let p=d?String(d):"";return u?"0000000".slice(p.length)+p:p}return l(a,0)+l(i,a)+l(o,1)}xo.int64toString=tst;function rst(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)}}xo.varint32write=rst;function nst(){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
`)}};$T.RpcError=d3});var m3=b(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeRpcOptions=void 0;var DAe=an();function Sot(t,e){if(!e)return t;let r={};GT(t,r),GT(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=DAe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=DAe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},GT(t.meta,r.meta),GT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}HT.mergeRpcOptions=Sot;function GT(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var A3=b(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.Deferred=ff.DeferredState=void 0;var sl;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(sl=ff.DeferredState||(ff.DeferredState={}));var f3=class{constructor(e=!0){this._state=sl.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==sl.PENDING)throw new Error(`cannot resolve ${sl[this.state].toLowerCase()}`);this._resolve(e),this._state=sl.RESOLVED}reject(e){if(this.state!==sl.PENDING)throw new Error(`cannot reject ${sl[this.state].toLowerCase()}`);this._reject(e),this._state=sl.REJECTED}resolvePending(e){this._state===sl.PENDING&&this.resolve(e)}rejectPending(e){this._state===sl.PENDING&&this.reject(e)}};ff.Deferred=f3});var g3=b(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});zT.RpcOutputStreamController=void 0;var kAe=A3(),Af=an(),h3=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Af.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Af.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){Af.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(){Af.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;Af.assert(e,"bad state"),Af.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 kAe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Af.assert(n.state==kAe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};zT.RpcOutputStreamController=h3});var E3=b(Bg=>{"use strict";var Bot=Bg&&Bg.__awaiter||function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(Bg,"__esModule",{value:!0});Bg.UnaryCall=void 0;var y3=class{constructor(e,r,n,s,o,i,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,
2026-05-22 09:41:22 +00:00
You can add a runtime option to disable the check or this warning:
2026-06-03 22:35:08 +00:00
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Fut(){Object.keys(RP).forEach(function(t){delete RP[t]})}});var TP=b(cl=>{"use strict";cl.__esModule=!0;cl.HandlebarsEnvironment=qV;function iEe(t){return t&&t.__esModule?t:{default:t}}var Cf=Ws(),Uut=li(),FV=iEe(Uut),qut=kV(),$ut=rEe(),Gut=OV(),NP=iEe(Gut),Hut=MV(),zut="4.7.9";cl.VERSION=zut;var Vut=8;cl.COMPILER_REVISION=Vut;var Yut=7;cl.LAST_COMPATIBLE_COMPILER_REVISION=Yut;var Wut={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"};cl.REVISION_CHANGES=Wut;var UV="[object Object]";function qV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},qut.registerDefaultHelpers(this),$ut.registerDefaultDecorators(this)}qV.prototype={constructor:qV,logger:NP.default,log:NP.default.log,registerHelper:function(e,r){if(Cf.toString.call(e)===UV){if(r)throw new FV.default("Arg not supported with multiple helpers");Cf.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Cf.toString.call(e)===UV)Cf.extend(this.partials,e);else{if(typeof r>"u")throw new FV.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(Cf.toString.call(e)===UV){if(r)throw new FV.default("Arg not supported with multiple decorators");Cf.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Hut.resetLoggedProperties()}};var jut=NP.default.log;cl.log=jut;cl.createFrame=Cf.createFrame;cl.logger=NP.default});var cEe=b((PP,aEe)=>{"use strict";PP.__esModule=!0;function $V(t){this.string=t}$V.prototype.toString=$V.prototype.toHTML=function(){return""+this.string};PP.default=$V;aEe.exports=PP.default});var lEe=b(GV=>{"use strict";GV.__esModule=!0;GV.wrapHelper=Jut;function Jut(t,e){if(typeof t!="function")return t;var r=function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)};return r}});var AEe=b(cp=>{"use strict";cp.__esModule=!0;cp.checkRevision=rdt;cp.template=ndt;cp.wrapProgram=vP;cp.resolvePartial=sdt;cp.invokePartial=odt;cp.noop=mEe;function Kut(t){return t&&t.__esModule?t:{default:t}}function Xut(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 Zut=Ws(),qg=Xut(Zut),edt=li(),ku=Kut(edt),Lu=TP(),uEe=kV(),tdt=lEe(),dEe=MV();function rdt(t){var e=t&&t[0]||1,r=Lu.COMPILER_REVISION;if(!(e>=Lu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Lu.COMPILER_REVISION))if(e<Lu.LAST_COMPATIBLE_COMPILER_REVISION){var n=Lu.REVISION_CHANGES[r],s=Lu.REVISION_CHANGES[e];throw new ku.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new ku.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 ndt(t,e){if(!e)throw new ku.default("No environment passed to template");if(!t||!t.main)throw new ku.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(i,a,c){c.hash&&(a=qg.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),i=e.VM.resolvePartial.call(this,i,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,i,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(i,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var d=l.split(`
`),u=0,p=d.length;u<p&&!(!d[u]&&u+1===p);u++)d[u]=c.indent+d[u];l=d.join(`
`)}return l}else throw new ku.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var s={strict:function(a,c,l){if(!a||!(c in a))throw new ku.default('"'+c+'" not defined in '+a,{loc:l});return s.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||dEe.resultIsAllowed(l,s.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,d=0;d<l;d++){var u=a[d]&&s.lookupProperty(a[d],c);if(u!=null)return u}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:qg.escapeExpression,invokePartial:n,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,d,u){var p=this.programs[a],m=this.fn(a);return c||u||d||l?p=vP(this,a,m,c,l,d,u):p||(p=this.programs[a]=vP(this,a,m)),p},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=qg.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(i){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;o._setup(a),!a.partial&&t.useData&&(c=idt(i,c));var l=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=i!=a.depths[0]?[i].concat(a.depths):a.depths:l=[i]);function u(p){return""+t.main(s,p,s.helpers,s.partials,c,d,l)}return u=fEe(t.main,u,s,a.depths||[],c,d),u(i,a)}return o.isTop=!0,o._setup=function(i){if(i.partial)s.protoAccessControl=i.protoAccessControl,s.helpers=i.helpers,s.partials=i.partials,s.decorators=i.decorators,s.hooks=i.hooks;else{var a={};pEe(a,e.helpers,s),pEe(a,i.helpers,s),s.helpers=a,t.usePartial&&(s.partials=s.mergeIfNeeded(i.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=qg.extend({},e.decorators,i.decorators)),s.hooks={},s.protoAccessControl=dEe.createProtoAccessControl(i);var c=i.allowCallsToHelperMissing||r;uEe.moveHelperToHooks(s,"helperMissing",c),uEe.moveHelperToHooks(s,"blockHelperMissing",c)}},o._child=function(i,a,c,l){if(t.useBlockParams&&!c)throw new ku.default("must pass block params");if(t.useDepths&&!l)throw new ku.default("must pass parent depths");return vP(s,i,t[i],a,0,c,l)},o}function vP(t,e,r,n,s,o,i){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=i;return i&&c!=i[0]&&!(c===t.nullContext&&i[0]===null)&&(d=[c].concat(i)),r(t,c,t.helpers,t.partials,l.data||n,o&&[l.blockParams].concat(o),d)}return a=fEe(r,a,t,i,n,o),a.program=e,a.depth=i?i.length:0,a.blockParams=s||0,a}function sdt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=_P(r.partials,t)):r.name==="@partial-block"?t=_P(r.data,"partial-block"):t=_P(r.partials,r.name),t}function odt(t,e,r){var n=_P(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==mEe&&(function(){r.data=Lu.createFrame(r.data);var o=r.fn;s=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Lu.createFrame(c.data),c.data["partial-block"]=n,o(a,c)},o.partials&&(r.partials=qg.extend({},r.partials,o.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new ku.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function mEe(){return""}function _P(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function idt(t,e){return(!e||!("root"in e))&&(e=e?Lu.createFrame(e):{},e.root=t),e}function fEe(t,e,r,n,s,o){if(t.decorator){var i={};e=t.decorator(e,i,r,n&&n[0],s,o,n),qg.extend(e,i)}return e}function pEe(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=adt(s,r)})}function adt(t,e){var r=e.lookupProperty;return tdt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}});var HV=b((QP,hEe)=>{"use strict";QP.__esModule=!0;QP.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
2026-05-22 09:41:22 +00:00
`+this.lexer.showPosition()+`
2026-06-03 22:35:08 +00:00
Expecting `+me.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":St="Parse error on line "+(u+1)+": Unexpected "+(Q==1?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(St,{text:this.lexer.match,token:this.terminals_[Q]||Q,line:this.lexer.yylineno,loc:w,expected:me})}}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+Q);switch(ee[0]){case 1:i.push(Q),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),i.push(ee[1]),Q=null,$?(Q=$,$=null):(p=this.lexer.yyleng,d=this.lexer.yytext,u=this.lexer.yylineno,w=this.lexer.yylloc,m>0&&m--);break;case 2:if(Ne=this.productions_[ee[1]][1],De.$=a[a.length-Ne],De._$={first_line:c[c.length-(Ne||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Ne||1)].first_column,last_column:c[c.length-1].last_column},x&&(De._$.range=[c[c.length-(Ne||1)].range[0],c[c.length-1].range[1]]),He=this.performAction.call(De,d,p,u,this.yy,ee[1],a,c),typeof He<"u")return He;Ne&&(i=i.slice(0,-1*Ne*2),a=a.slice(0,-1*Ne),c=c.slice(0,-1*Ne)),i.push(this.productions_[ee[1]][0]),a.push(De.$),c.push(De._$),J=l[i[i.length-2]][i[i.length-1]],i.push(J);break;case 3:return!0}}return!0}},e=(function(){var n={EOF:1,parseError:function(o,i){if(this.yy.parser)this.yy.parser.parseError(o,i);else throw new Error(o)},setInput:function(o){return this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var i=o.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var i=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i;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 l=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-i},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),i=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+i+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,i,a,c,l,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),p=0;p<u.length&&(a=this._input.match(this.rules[u[p]]),!(a&&(!i||a[0].length>i[0].length)&&(i=a,c=p,!this.options.flex)));p++);return i?(d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],o=this.performAction.call(this,this.yy,this,u[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||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 o=this.next();return typeof o<"u"?o:this.lex()},begin:function(o){this.conditionStack.push(o)},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(o){this.begin(o)}};return n.options={},n.performAction=function(o,i,a,c){function l(u,p){return i.yytext=i.yytext.substring(u,i.yyleng-p+u)}var d=c;switch(a){case 0:if(i.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):i.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),i.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:(l(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(i.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 i.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return i.yytext=l(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 i.yytext=i.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();LP.default=gdt;bEe.exports=LP.default});var UP=b((FP,NEe)=>{"use strict";FP.__esModule=!0;function ydt(t){return t&&t.__esModule?t:{default:t}}var Edt=li(),jV=ydt(Edt);function OP(){this.parents=[]}OP.prototype={constructor:OP,mutating:!1,acceptKey:function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!OP.prototype[n.type])throw new jV.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new jV.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},accept:function(e){if(
`])}),e},each:function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new bf(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 bf?e:(e=g4(e,this,r),new bf(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},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,n=[];Object.keys(e).forEach(function(o){var i=g4(e[o],r);i!=="undefined"&&n.push([r.quotedString(o),":",i])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},generateList:function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(g4(e[n],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};WP.default=lCe;uCe.exports=WP.default});var hCe=b((jP,ACe)=>{"use strict";jP.__esModule=!0;function fCe(t){return t&&t.__esModule?t:{default:t}}var pCe=TP(),hpt=li(),E4=fCe(hpt),gpt=Ws(),ypt=dCe(),mCe=fCe(ypt);function Yg(t){this.value=t}function Wg(){}Wg.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=pCe.COMPILER_REVISION,r=pCe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,n){return gpt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["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,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,i=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)i=o[c],this.source.currentLocation=i.loc,a=a||i.loc,this[i.opcode].apply(this,i.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new E4.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(),`;
2026-05-22 09:41:22 +00:00
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
2026-06-03 22:35:08 +00:00
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var u={compiler:this.compilerInfo(),main:d};this.decorators&&(u.main_d=this.decorators,u.useDecorators=!0);var p=this.context,m=p.programs,g=p.decorators;for(c=0,l=m.length;c<l;c++)u[c]=m[c],g[c]&&(u[c+"_d"]=g[c],u.useDecorators=!0);return this.environment.usePartial&&(u.usePartial=!0),this.options.data&&(u.useData=!0),this.useDepths&&(u.useDepths=!0),this.useBlockParams&&(u.useBlockParams=!0),this.options.compat&&(u.compat=!0),s?u.compilerOptions=this.options:(u.compiler=JSON.stringify(u.compiler),this.source.currentLocation={start:{line:1,column:0}},u=this.objectLiteral(u),r.srcName?(u=u.toStringWithSourceMap({file:r.destName}),u.map=u.map&&u.map.toString()):u=u.toString()),u},preamble:function(){this.lastContext=0,this.source=new mCe.default(this.options.srcName),this.decorators=new mCe.default(this.options.srcName)},createFunctionContext:function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(n+=", alias"+ ++o+"="+c,l.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var i=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths");var a=this.mergeSource(n);return e?(i.push(a),Function.apply(this,i)):this.source.wrap(["function(",i.join(","),`) {
2026-05-22 09:41:22 +00:00
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,o=void 0,i=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(i?c.prepend(" + "):i=c,a=c):(i&&(o?i.prepend("buffer += "):s=!0,a.add(";"),i=a=void 0),o=!0,r||(n=!1))}),n?i?(i.prepend("return "),a.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
2026-06-03 22:35:08 +00:00
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},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,n,s){var o=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[o++])):this.pushContext(),this.resolvePath("context",e,o,r,n)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},resolvePath:function(e,r,n,s,o){var i=this;if(this.options.strict||this.options.assumeObjects){this.push(Ept(this.options.strict&&o,this,r,n,e));return}for(var a=r.length,c=function(d){i.replaceStack(function(u){var p=i.nameLookup(u,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",u]})},l=n;l<a;l++)c(l)},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 n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},invokeHelper:function(e,r,n){var s=this.popStack(),o=this.setupHelper(e,r),i=[];n&&i.push(o.name),i.push(s),this.options.strict||i.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(i,"||"),")"],c=this.source.functionCall(a,"call",o.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},invokeKnownHelper:function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper")
`,e};Jr.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var o="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)o+=" "+t.blockParams[n];o+=" ]",e+=this.pad(o)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};Jr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Jr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Jr.prototype.BlockStatement=Jr.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};Jr.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+" }}")};Jr.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+" }}")};Jr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Jr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Jr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s<o;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Jr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Jr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Jr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Jr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Jr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Jr.prototype.NullLiteral=function(){return"NULL"};Jr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Jr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var bCe=b((rZt,wCe)=>{var XP=ECe().default,xCe=CCe();XP.PrintVisitor=xCe.PrintVisitor;XP.print=xCe.print;wCe.exports=XP;function ICe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=XP.compile(n)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ICe,require.extensions[".hbs"]=ICe)});var OCe=b(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});rv.getProxyUrl=$pt;rv.checkBypass=LCe;function $pt(t){let e=t.protocol==="https:";if(LCe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new tv(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new tv(`http://${r}`)}else return}function LCe(t){if(!t.hostname)return!1;let e=t.hostname;if(Gpt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(i=>i.trim().toUpperCase()).filter(i=>i))if(o==="*"||s.some(i=>i===o||i.endsWith(`.${o}`)||o.startsWith(".")&&i.endsWith(`${o}`)))return!0;return!1}function Gpt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var tv=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var FCe=b(Sr=>{"use strict";var Hpt=Sr&&Sr.__createBinding||(Object.create?(fun
2026-05-22 09:49:50 +00:00
versions published after the first week of January 2027
will require node >=${r}. You are running node ${t}.
To continue receiving updates to AWS services, bug fixes,
and security updates please upgrade to node >=${r}.
2026-06-03 22:35:08 +00:00
More information can be found at: https://a.co/c895JFp`))}}});var dft,pft,OIe,MIe=I(()=>{dft=()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),pft={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},OIe=t=>({applyToStack:e=>{e.add(dft(),pft)}})});function fp(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var FIe=I(()=>{});var UIe,K4,qIe=I(()=>{UIe=require("node:stream"),K4=t=>t?.body instanceof UIe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream});var Tf,Ap,hp,$Ie,GIe,hv=I(()=>{Tf=(t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},Ap=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,hp=()=>{let t=[],e=[],r=!1,n=new Set,s=u=>u.sort((p,m)=>$Ie[m.step]-$Ie[p.step]||GIe[m.priority||"normal"]-GIe[p.priority||"normal"]),o=u=>{let p=!1,m=g=>{let E=Tf(g.name,g.aliases);if(E.includes(u)){p=!0;for(let w of E)n.delete(w);return!1}return!0};return t=t.filter(m),e=e.filter(m),p},i=u=>{let p=!1,m=g=>{if(g.middleware===u){p=!0;for(let E of Tf(g.name,g.aliases))n.delete(E);return!1}return!0};return t=t.filter(m),e=e.filter(m),p},a=u=>(t.forEach(p=>{u.add(p.middleware,{...p})}),e.forEach(p=>{u.addRelativeTo(p.middleware,{...p})}),u.identifyOnResolve?.(d.identifyOnResolve()),u),c=u=>{let p=[];return u.before.forEach(m=>{m.before.length===0&&m.after.length===0?p.push(m):p.push(...c(m))}),p.push(u),u.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?p.push(m):p.push(...c(m))}),p},l=(u=!1)=>{let p=[],m=[],g={};return t.forEach(w=>{let x={...w,before:[],after:[]};for(let S of Tf(x.name,x.aliases))g[S]=x;p.push(x)}),e.forEach(w=>{let x={...w,before:[],after:[]};for(let S of Tf(x.name,x.aliases))g[S]=x;m.push(x)}),m.forEach(w=>{if(w.toMiddleware){let x=g[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Ap(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),s(p).map(c).reduce((w,x)=>(w.push(...x),w),[])},d={add:(u,p={})=>{let{name:m,override:g,aliases:E}=p,w={step:"initialize",priority:"normal",middleware:u,...p},x=Tf(m,E);if(x.length>0){if(x.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Ap(m,E)}'`);for(let S of x){let v=t.findIndex($=>$.name===S||$.aliases?.some(F=>F===S));if(v===-1)continue;let Q=t[v];if(Q.step!==w.step||w.priority!==Q.priority)throw new Error(`"${Ap(Q.name,Q.aliases)}" middleware with ${Q.priority} priority in ${Q.step} step cannot be overridden by "${Ap(m,E)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(v,1)}}for(let S of x)n.add(S)}t.push(w)},addRelativeTo:(u,p)=>{let{name:m,override:g,aliases:E}=p,w={middleware:u,...p},x=Tf(m,E);if(x.length>0){if(x.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Ap(m,E)}'`);for(let S of x){let v=e.findIndex($=>$.name===S||$.aliases?.some(F=>F===S));if(v===-1)continue;let Q=e[v];if(Q.toMiddleware!==w.toMiddleware||Q.relation!==w.relation)throw new Error(`"${Ap(Q.name,Q.aliases)}" middleware ${Q.relation} "${Q.toMiddleware}" middleware cannot be overridden by "${Ap(m,E)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(v,1)}}for(let S of x)n.add(S)}e.push(w)},clone:()=>a(hp()),use:u=>{u.applyToStack(d)},remove:u=>typeof u=="string"?o(u):i(u),removeByTag:u=>{let p=!1,m=g=>{let{tags:E,name:w,aliases:x}=g;if(E&&E.includes(u)){let S=Tf(w,x);for(let v of S)n.delete(v);return p=!0,!1}return!0};return t=t.filter(m),e=e.filter(m),p},concat:u=>{let p=a(hp());return p.use(u),p.identifyOnResolve(r||p.identifyOnResolve()||(u.identifyOnResolve?.()??!1)),p},applyToStack:a,identify:()=>l(!0).map(u=>{let p=u.step??u.relation+" "+u.toMiddleware;return Ap(u.name,u.aliases)+" - "+p}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,p)=>{for(let m of l().map(g=>g.middleware).reverse())u=m(u,p);return r&&console.log(d.identify()),u}};return d},$Ie={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},GIe={high:3,normal:2,low:1}});v
2026-05-22 09:49:50 +00:00
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
2026-06-03 22:35:08 +00:00
`),oy={warn:console.warn}});function Va(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),i=t.getUTCMinutes(),a=t.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,l=o<10?`0${o}`:`${o}`,d=i<10?`0${i}`:`${i}`,u=a<10?`0${a}`:`${a}`;return`${Bft[n]}, ${c} ${cY[r]} ${e} ${l}:${d}:${u} GMT`}var Bft,cY,Rft,Rxe,Nft,Pv,Tft,Pft,vft,cy,vv,Yx,_ft,Qft,Dft,aY,kft,Lft,Oft,dl,Mft,Fft,ay,Nxe=I(()=>{iY();Bft=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],cY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Rft=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Rxe=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Rft.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,i,a,c,l]=e,d=Ep(ay(n)),u=dl(s,"month",1,12),p=dl(o,"day",1,31);return Yx(d,u,p,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})},Nft=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Pv=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Nft.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,i,a,c,l,d]=e,u=Ep(ay(n)),p=dl(s,"month",1,12),m=dl(o,"day",1,31),g=Yx(u,p,m,{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l});return d.toUpperCase()!="Z"&&g.setTime(g.getTime()-Fft(d)),g},Tft=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Pft=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),vft=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),cy=t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Tft.exec(t);if(e){let[r,n,s,o,i,a,c,l]=e;return Yx(Ep(ay(o)),aY(s),dl(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l})}if(e=Pft.exec(t),e){let[r,n,s,o,i,a,c,l]=e;return Dft(Yx(_ft(o),aY(s),dl(n,"day",1,31),{hours:i,minutes:a,seconds:c,fractionalMilliseconds:l}))}if(e=vft.exec(t),e){let[r,n,s,o,i,a,c,l]=e;return Yx(Ep(ay(l)),aY(n),dl(s.trimLeft(),"day",1,31),{hours:o,minutes:i,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},vv=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Vx(t);else if(typeof t=="object"&&t.tag===1)e=t.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))},Yx=(t,e,r,n)=>{let s=e-1;return Lft(t,s,r),new Date(Date.UTC(t,s,r,dl(n.hours,"hour",0,23),dl(n.minutes,"minute",0,59),dl(n.seconds,"seconds",0,60),Mft(n.fractionalMilliseconds)))},_ft=t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Ep(ay(t));return r<e?r+100:r},Qft=50*365*24*60*60*1e3,Dft=t=>t.getTime()-new Date().getTime()>Qft?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,aY=t=>{let e=cY.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},kft=[31,28,31,30,31,30,31,31,30,31,30,31],Lft=(t,e,r)=>{let n=kft[e];if(e===1&&Oft(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${cY[e]} in ${t}: ${r}`)},Oft=t=>t%4===0&&(t%100!==0||t%400===0),dl=(t,e,r,n)=>{let s=Tv(ay(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},Mft=t=>t==null?0:Rv("0."+t)*1e3,Fft=t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e
`+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(Is.isInstance(o)){let{headers:c={}}=o,l=Object.entries(c);i.$metadata={httpStatusCode:o.statusCode,requestId:AY(/^x-[\w-]+-request-?id$/,l),extendedRequestId:AY(/^x-[\w-]+-id-2$/,l),cfId:AY(/^x-[\w-]+-cf-id$/,l)}}}catch{}}throw i}},AY=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var pi,Wx=I(()=>{pi=class t extends Error{name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider ${s?"->":"(!)"} ${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Cp,Uv=I(()=>{Wx();Cp=class t extends pi{name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var qv,Uxe=I(()=>{Wx();qv=class t extends pi{name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var $v,gY=I(()=>{Wx();$v=(...t)=>async()=>{if(t.length===0)throw new pi("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e}});var Gv,yY=I(()=>{Gv=t=>()=>Promise.resolve(t)});var dy,Hv=I(()=>{dy=(t,e,r)=>{let n,s,o,i=!1,a=async()=>{s||(s=t());try{n=await s,o=!0,i=!1}finally{s=void 0}return n};return e===void 0?async c=>((!o||c?.forceRefresh)&&(n=await a()),n):async c=>((!o||c?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(e(n)&&await a(),n))}});var Bo,zv=I(()=>{Bo=(t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}}});var qxe,$xe=I(()=>{qxe=(t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n}});var xs,Vv=I(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(xs||(xs={}))});var Gxe,Hxe,EY,zft,ml,py=I(()=>{Gxe=require("node:os"),Hxe=require("node:path"),EY={},zft=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",ml=()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${Hxe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=zft();return EY[s]||(EY[s]=(0,Gxe.homedir)()),EY[s]}});var CY,IY,Yv,xY=I(()=>{CY="AWS_PROFILE",IY="default",Yv=t=>t.profile||process.env[CY]||IY});var zxe,Vxe,Wv,wY=I(()=>{zxe=require("node:crypto"),Vxe=require("node:path");py();Wv=t=>{let r=(0,zxe.createHash)("sha1").update(t).digest("hex");return(0,Vxe.join)(ml(),".aws","sso","cache",`${r}.json`)}});var Yxe,jx,Wxe,bY=I(()=>{Yxe=require("node:fs/promises");wY();jx={},Wxe=async t=>{if(jx[t])return jx[t];let e=Wv(t),r=await(0,Yxe.readFile)(e,"utf8");return JSON.parse(r)}});var fl,jxe=I(()=>{fl="."});var SY,Jxe,Kxe=I(()=>{SY=L(Ga()),Jxe=t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(SY.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===SY.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}})});var Xxe,Vft,jv,BY=I(()=>{Xxe=require("node:path");py();Vft="AWS_CONFIG_FILE",jv=()=>process.env[Vft]||(0,Xxe.join)(ml(),".aws","config")});var Zxe,Yft,ewe,twe=I(()=>{Zxe=require("node:path");py();Yft="AWS_SHARED_CREDENTIALS_FILE",ewe=()=>process.env[Yft]||(0,Zxe.join)(ml(),".aws","credentials")});var rwe,Wft,jft,Jx,RY=I(()=>{rwe=L(Ga()),Wft=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,jft=["__proto__","profile __proto__"],Jx=t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let a=o.substring(1,o.length-1),c=Wft.exec(a);if(c){let[,l,,d]=c;Object.values(rwe.IniSectionType).includes(l)&&(r=[l,d].join("."))}else r=a;if(jft.includes(a))throw new Error(`F
`),a){let m=r(await c);d.enqueue(`${o}:${m}\r
`),d.enqueue(`\r
`)}d.close()}else d.enqueue(`${(n(u)||0).toString(16)}\r
${u}\r
`)}})}});function LSe(t,e){let r=t,n=t;if(ss(n))return QSe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:c}=e,l=s!==void 0&&i!==void 0&&a!==void 0&&c!==void 0,d=l?c(i,r):void 0,u=new kSe.Readable({read:()=>{}});return r.on("data",p=>{let m=o(p)||0;m!==0&&(u.push(`${m.toString(16)}\r
`),u.push(p),u.push(`\r
`))}),r.on("end",async()=>{if(u.push(`0\r
`),l){let p=s(await d);u.push(`${a}:${p}\r
`),u.push(`\r
`)}u.push(null)}),u}var kSe,OSe=I(()=>{kSe=require("node:stream");DSe();Vu()});async function MSe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:c,value:l}=await s.read();if(l&&(n.push(l),r+=l?.byteLength??0),r>=e)break;o=c}s.releaseLock();let i=new Uint8Array(Math.min(e,r)),a=0;for(let c of n){if(c.byteLength>i.byteLength-a){i.set(c.subarray(0,i.byteLength-a),a);break}else i.set(c,a);a+=c.length}return i}var FSe=I(()=>{});var USe,qSe,lW,$Se=I(()=>{USe=require("node:stream");FSe();Vu();qSe=(t,e)=>ss(t)?MSe(t,e):new Promise((r,n)=>{let s=new lW;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.buffers));r(o)})}),lW=class extends USe.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(e,r,n){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){let s=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-s),this.emit("finish")}n()}}});var GSe,HSe=I(()=>{GSe=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)}});var zSe,VSe=I(()=>{sW();zSe=t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;let r=new ArrayBuffer(e),n=new DataView(r);for(let s=0;s<t.length;s+=4){let o=0,i=0;for(let l=s,d=s+3;l<=d;l++)if(t[l]!=="="){if(!(t[l]in nW))throw new TypeError(`Invalid character ${t[l]} in base64 string.`);o|=nW[t[l]]<<(d-l)*Ip,i+=Ip}else o>>=Ip;let a=s/4*3;o>>=i%Qf;let c=Math.floor(i/Qf);for(let l=0;l<c;l++){let d=(c-l-1)*Qf;n.setUint8(a+l,(o&255<<d)>>d)}}return new Uint8Array(r)}});async function gAt(t){let e=await EAt(t),r=zSe(e);return new Uint8Array(r)}async function yAt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:a,value:c}=await r.read();c&&(e.push(c),s+=c.length),n=a}let o=new Uint8Array(s),i=0;for(let a of e)o.set(a,i),i+=a.length;return o}function EAt(t){return new Promise((e,r)=>{let n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));let s=n.result??"",o=s.indexOf(","),i=o>-1?o+1:s.length;e(s.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}var YSe,WSe=I(()=>{VSe();YSe=async t=>typeof Blob=="function"&&t instanceof Blob||t.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await t.arrayBuffer()):gAt(t):yAt(t)});var jSe,KSe,JSe,XSe=I(()=>{oW();mY();HSe();WSe();Vu();jSe="The stream has already been transformed.",KSe=t=>{if(!JSe(t)&&!ss(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=async()=>{if(e)throw new Error(jSe);return e=!0,await YSe(t)},n=s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async s=>{let o=await r();if(s==="base64")return C_(o);if(s==="hex")return Zi(o);if(s===void 0||s==="utf8"||s==="utf-8")return GSe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(jSe);if(e=!0,JSe(t))return n(t);if(ss(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},JSe=t=>typeof Blob=="function"&&t instanceof Blob});async function IAt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:a,value:c}=await r.read();c&&(e.push(c),s+=c.length),n=a}let o=new Uint8Array(s),i=0;for(let a of e)o.set(a,i),i+=a.length;return o}var ZSe,uW,CAt,e0e,t0e=I(()=>{ZSe=require("node:stream"),uW=class extends ZSe.Writable{bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}},CAt=t=>typeof ReadableStream=="function"&&t instanceof ReadableStream;e0e=t=>CAt(t)?IAt(t):new Promise((e,r)=>{let n=new uW;t.pipe(n),t.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));e(s)})})});var x_,r0e,w_,n0e=I(()=>{x_=require("node:stream");yp();XSe();t0e();r0e="The stream has already been transformed.",w_=t=>{if(!(t instanceof x_.Readable))try{return KSe(t)}catch{let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${s}`)}let e=!1,r=async()=>{if(e)throw new Error(r0e);return e=!0,await e0e(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?za(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},transformToWebStream:()=>{if(e)throw new Error(r0e);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof x_.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,x_.Readable.toWeb(t)}})}});async function s0e(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var o0e=I(()=>{});async function i0e(t){if(ss(t)||E_(t))return s0e(t);let e=new dW.PassThrough,r=new dW.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var dW,a0e=I(()=>{dW=require("node:stream");o0e();Vu()});var xp={};wn(xp,{ChecksumStream:()=>yy,Hash:()=>na,LazyJsonString:()=>Cs,NumericValue:()=>or,Uint8ArrayBlobAdapter:()=>Lf,_parseEpochTimestamp:()=>Pf,_parseRfc3339DateTimeWithOffset:()=>Qv,_parseRfc7231DateTime:()=>Dv,calculateBodyLength:()=>pl,copyDocumentWithTransform:()=>mxe,createBufferedReadable:()=>vSe,createChecksumStream:()=>BSe,dateToUtcString:()=>Va,deserializerMiddleware:()=>Fv,deserializerMiddlewareOption:()=>eW,expectBoolean:()=>hxe,expectByte:()=>bv,expectFloat32:()=>zx,expectInt:()=>gxe,expectInt32:()=>xv,expectLong:()=>sy,expectNonNull:()=>yxe,expectNumber:()=>ny,expectObject:()=>sY,expectShort:()=>wv,expectString:()=>Exe,expectUnion:()=>Bv,fromArrayBuffer:()=>za,fromBase64:()=>dn,fromHex:()=>Ov,fromString:()=>gp,fromUtf8:()=>pn,generateIdempotencyToken:()=>ja,getAwsChunkedEncodingStream:()=>LSe,getSerdePlugin:()=>mSe,handleFloat:()=>Ixe,headStream:()=>qSe,isArrayBuffer:()=>Ev,isBlob:()=>E_,isReadableStream:()=>ss,limitedParseDouble:()=>Nv,limitedParseFloat:()=>xxe,limitedParseFloat32:()=>wxe,logger:()=>oy,nv:()=>Lv,parseBoolean:()=>Axe,parseEpochTimestamp:()=>vv,parseRfc3339DateTime:()=>Rxe,parseRfc3339DateTimeWithOffset:()=>Pv,parseRfc7231DateTime:()=>cy,quoteHeader:()=>_v,sdkStreamMixin:()=>w_,serializerMiddleware:()=>g_,serializerMiddlewareOption:()=>tW,splitEvery:()=>kv,splitHeader:()=>ly,splitStream:()=>i0e,strictParseByte:()=>Tv,strictParseDouble:()=>Vx,strictParseFloat:()=>Cxe,strictParseFloat32:()=>Rv,strictParseInt:()=>Sxe,strictParseInt32:()=>Bxe,strictParseLong:()=>oY,
`+p}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(p):r.logger?.warn?.(p)}typeof u.$responseBodyText<"u"&&u.$response&&(u.$response.body=u.$responseBodyText);try{if(Is.isInstance(s)){let{headers:m={}}=s,g=Object.entries(m);u.$metadata={httpStatusCode:s.statusCode,requestId:OW(/^x-[\w-]+-request-?id$/,g),extendedRequestId:OW(/^x-[\w-]+-id-2$/,g),cfId:OW(/^x-[\w-]+-cf-id$/,g)}}}catch{}}throw u}},OW=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1]});var MBe,FBe=I(()=>{Me();Ut();Y_();MBe=t=>(e,r)=>async n=>{let{operationSchema:s}=Dr(r),[,o,i,a,c,l]=s??[],d=r.endpointV2?async()=>Ya(r.endpointV2):t.endpoint,u=await t.protocol.serializeRequest(aw(o,i,a,c,l),n.input,{...t,...r,endpoint:d});return e({...n,request:u})}});function ju(t){return{applyToStack:e=>{e.add(MBe(t),qBe),e.add(LBe(t),UBe),t.protocol.setSerdeContext(t)}}}var UBe,qBe,$Be=I(()=>{OBe();FBe();UBe={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},qBe={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var mn,Rp=I(()=>{mn=class{name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var W_,vht,GBe=I(()=>{Rp();W_=class t extends mn{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t.symbol},vht=(t,e,r,n)=>mn.assign(new W_,{name:e,namespace:t,traits:r,valueSchema:n})});var j_,_ht,HBe=I(()=>{Rp();j_=class t extends mn{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=t.symbol},_ht=(t,e,r,n,s)=>mn.assign(new j_,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s})});var J_,Qht,zBe=I(()=>{Rp();J_=class t extends mn{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=t.symbol},Qht=(t,e,r,n,s)=>mn.assign(new J_,{name:e,namespace:t,traits:r,input:n,output:s})});var Py,Dht,MW=I(()=>{Rp();Py=class t extends mn{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=t.symbol},Dht=(t,e,r,n,s)=>mn.assign(new Py,{name:e,namespace:t,traits:r,memberNames:n,memberList:s})});var K_,kht,VBe=I(()=>{Rp();MW();K_=class t extends Py{static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},kht=(t,e,r,n,s,o)=>mn.assign(new K_,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null})});function Il(t){if(typeof t=="object")return t;if(t=t|0,X_[t])return X_[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return X_[t]=e}var X_,FW=I(()=>{X_=[]});function lw(t,e){if(t instanceof ke)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=ke;return new r(t,e)}var cw,Z_,eQ,ke,UW,YBe,WBe=I(()=>{eY();FW();cw={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Z_=[],eQ={},ke=class t{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;UW(s);)n.push(s[1]),s=s[0],o=Ha(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Il(a))}}else this.memberTraits=0;if(o instanceof t){let i=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},i,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=Ha(o),YBe(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeo
`));return r(s)}});var ZRe,Ku,eNe=I(()=>{SQ();ZRe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Ku=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Cw(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),ZRe)}})});var tNe,Xht,rNe=I(()=>{SQ();tNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},Xht=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Cw(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),tNe)}})});var nNe=I(()=>{SQ();eNe();rNe()});var Zht,egt,B8,R8=I(()=>{Me();Ke();Zht=t=>e=>{throw e},egt=(t,e)=>{},B8=t=>(e,r)=>async n=>{if(!vt.isInstance(n.request))return e(n);let o=Dr(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:a,signer:c}=o,l=await e({...n,request:await c.sign(n.request,a,i)}).catch((c.errorHandler||Zht)(i));return(c.successHandler||egt)(l.response,i),l}});var sNe,Xu,oNe=I(()=>{R8();sNe={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Xu=t=>({applyToStack:e=>{e.addRelativeTo(B8(t),sNe)}})});var iNe=I(()=>{R8();oNe()});var Ol,aNe=I(()=>{Ol=t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e}});function cNe(t,e,r,n,s){return async function*(i,a,...c){let l=a,d=i.startingToken??l[r],u=!0,p;for(;u;){if(l[r]=d,s&&(l[s]=l[s]??i.pageSize),i.client instanceof t)p=await tgt(e,i.client,a,i.withCommand,...c);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield p;let m=d;d=rgt(p,n),u=!!(d&&(!i.stopOnSameToken||d!==m))}return void 0}}var tgt,rgt,lNe=I(()=>{tgt=async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)};rgt=(t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r}});var uNe=I(()=>{Ke()});function ngt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var dNe=I(()=>{});var Za,pNe=I(()=>{Za=class{authSchemes=new Map;constructor(e){for(let r in e){let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var N8,T8,mNe=I(()=>{Ke();N8=L(Ga()),T8=class{async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=vt.clone(e);if(n.in===N8.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===N8.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var P8,fNe=I(()=>{Ke();P8=class{async sign(e,r,n){let s=vt.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var hi,ANe=I(()=>{hi=class{async sign(e,r,n){return e}}});var hNe=I(()=>{mNe();fNe();ANe()});var gNe,sgt,v8,BQ,_8,yNe=I(()=>{gNe=t=>function(r){return BQ(r)&&r.expiration.getTime()-Date.now()<t},sgt=3e5,v8=gNe(3e5),BQ=t=>t.expiration!==void 0,_8=(t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,i,a=!1,c=async l=>{o||(o=n(l));try{s=await o,i=
${this.getCanonicalPath(e)}
2026-06-03 22:35:08 +00:00
${LTe(e)}
${s.map(o=>`${o}:${r[o]}`).join(`
`)}
${s.join(";")}
2026-06-03 22:35:08 +00:00
${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(bs.toUint8Array(n));let i=await o.digest();return`${s}
${e}
${r}
2026-06-03 22:35:08 +00:00
${bs.toHex(i)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return Uy.escapeUri(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=ggt(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},Fy={},FQ=[],UQ=(t,e,r)=>`${t}/${e}/${r}/${Ej}`,OTe=async(t,e,r,n,s)=>{let o=await CTe(t,e.secretAccessKey,e.accessKeyId),i=`${r}:${n}:${s}:${bs.toHex(o)}:${e.sessionToken}`;if(i in Fy)return Fy[i];for(FQ.push(i);FQ.length>DTe;)delete Fy[FQ.shift()];let a=`AWS4${e.secretAccessKey}`;for(let c of[r,n,s,Ej])a=await CTe(t,a,c);return Fy[i]=a},Egt=()=>{FQ.length=0,Object.keys(Fy).forEach(t=>{delete Fy[t]})},CTe=(t,e,r)=>{let n=new t(e);return n.update(bs.toUint8Array(r)),n.digest()},dj=({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in TTe||e?.has(o)||PTe.test(o)||vTe.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}return n},qQ=async({headers:t,body:e},r)=>{for(let n of Object.keys(t))if(n.toLowerCase()===$Q)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||bs.isArrayBuffer(e)){let n=new r;return n.update(bs.toUint8Array(e)),bs.toHex(await n.digest())}return QTe},MTe=(t,e)=>{t=t.toLowerCase();for(let r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},FTe=(t,e={})=>{let{headers:r,query:n={}}=Uy.HttpRequest.clone(t);for(let s of Object.keys(r)){let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},pj=t=>{t=Uy.HttpRequest.clone(t);for(let e of Object.keys(t.headers))BTe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},mj=class extends GQ{headerFormatter=new lj;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:i})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:c,signingRegion:l,signingService:d}=r,u=await this.credentialProvider();this.validateResolvedCredentials(u);let p=l??await this.regionProvider(),{longDate:m,shortDate:g}=this.formatDate(n);if(s>kTe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let E=UQ(g,p,d??this.service),w=FTe(pj(e),{unhoistableHeaders:i,hoistableHeaders:c});u.sessionToken&&(w.query[hj]=u.sessionToken),w.query[ITe]=MQ,w.query[xTe]=`${u.accessKeyId}/${E}`,w.query[fj]=m,w.query[bTe]=s.toString(10);let x=dj(w,o,a);return w.query[wTe]=this.getCanonicalHeaderList(x),w.query[Aj]=await this.getSignature(m,E,this.getSigningKey(u,p,g,d),this.createCanonicalRequest(w,x,await qQ(e,this.sha256))),w}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:i,eventStreamCredentials:a}){let c=o??await this.regionProvider(),{shortDate:l,longDate:d}=this.formatDate(n),u=UQ(l,c,i??this.service),p=await qQ({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let g=bs.toHex(await m.digest()),E=[_Te,d,u,s,g,p].join(`
`);return this.signString(E,{signingDate:n,signingRegion:c,signingService:i,eventStreamCredentials:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let i=o??await this.credentialProvider();this.validateResolvedCredentials(i);let a=n??await this.regionProvider(),{shortDate:c}=this.formatDate(r),l=new this.sha256(await this.getSigningKey(i,a,c,s));return l.update(bs.toUint8Array(e)),bs.toHex(await l.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:i}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let c=o??await this.regionProvider(),l=pj(e),{longDate:d,shortDate:u}=this.formatDate(r),p=UQ(u,c,i??this.service);l.headers[yj]=d,a.sessionToken&&(l.headers[NTe]=a.sessionToken);let m=await qQ(l,this.sha256);!MTe($Q,l.headers)&&this.applyChecksum&&(l.headers[$Q]=m);let g=dj(l,s,n),E=await this.getSignature(d,p,this.getSigningKey(a,c,u,i),this.createCanonicalRequest(l,g,m));return l.headers[gj]=`${MQ} Credential=${a.accessKeyId}/${p}, SignedHeaders=${this.getCanonicalHeaderList(g)}, Signature=${E}`,l}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,MQ),i=new this.sha256(await n);return i.update(bs.toUint8Array(o)),bs.toHex(await i.digest())}getSigningKey(e,r,n,s){return OTe(this.sha256,e,n,r,s||this.service)}},Cgt={SignatureV4a:null};bt.ALGORITHM_IDENTIFIER=MQ;bt.ALGORITHM_IDENTIFIER_V4A=hgt;bt.ALGORITHM_QUERY_PARAM=ITe;bt.ALWAYS_UNSIGNABLE_HEADERS=TTe;bt.AMZ_DATE_HEADER=yj;bt.AMZ_DATE_QUERY_PARAM=fj;bt.AUTH_HEADER=gj;bt.CREDENTIAL_QUERY_PARAM=xTe;bt.DATE_HEADER=STe;bt.EVENT_ALGORITHM_IDENTIFIER=_Te;bt.EXPIRES_QUERY_PARAM=bTe;bt.GENERATED_HEADERS=BTe;bt.HOST_HEADER=fgt;bt.KEY_TYPE_IDENTIFIER=Ej;bt.MAX_CACHE_SIZE=DTe;bt.MAX_PRESIGNED_TTL=kTe;bt.PROXY_HEADER_PATTERN=PTe;bt.REGION_SET_PARAM=mgt;bt.SEC_HEADER_PATTERN=vTe;bt.SHA256_HEADER=$Q;bt.SIGNATURE_HEADER=RTe;bt.SIGNATURE_QUERY_PARAM=Aj;bt.SIGNED_HEADERS_QUERY_PARAM=wTe;bt.SignatureV4=mj;bt.SignatureV4Base=GQ;bt.TOKEN_HEADER=NTe;bt.TOKEN_QUERY_PARAM=hj;bt.UNSIGNABLE_PATTERNS=Agt;bt.UNSIGNED_PAYLOAD=QTe;bt.clearCredentialCache=Egt;bt.createScope=UQ;bt.getCanonicalHeaders=dj;bt.getCanonicalQuery=LTe;bt.getPayloadHash=qQ;bt.getSigningKey=OTe;bt.hasHeader=MTe;bt.moveHeadersToQuery=FTe;bt.prepareRequest=pj;bt.signatureV4aContainer=Cgt});function xgt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=_8(e,v8,BQ):r?n=Ol(r(Object.assign({},t,{parentClientConfig:t}))):n=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},n.memoized=!0,n}function wgt(t,e){if(e.configBound)return e;let r=async n=>e({...n,callerClientConfig:t});return r.memoized=e.memoized,r.configBound=!0,r}var Ij,Hl,Igt,UTe=I(()=>{qt();eo();Ij=L(Cj()),Hl=t=>{let e=t.credentials,r=!!t.credentials,n;Object.defineProperty(t,"credentials",{set(l){l&&l!==e&&l!==n&&(r=!0),e=l;let d=xgt(t,{credentials:e,credentialDefaultProvider:t.credentialDefaultProvider}),u=wgt(t,d);if(r&&!u.attributed){let p=typeof e=="object"&&e!==null;n=async m=>{let E=await u(m);return p&&(!E.$source||Object.keys(E.$source).length===0)?fp(E,"CREDENTIALS_CODE","e"):E},n.memoized=u.memoized,n.configBound=u.configBound,n.attributed=!0}else n=u},get(){return n},enumerable:!0,configurable:!0}),t.credentials=e;let{signingEscapePath:s=!0,systemClockOffset:o=t.systemClockOffset||0,sha256:i}=t,a;return t.signer?a=Ol(t.signer):t.regionInfoProvider?a=()=>Ol(t.region)().then(async l=>[await t.regionInfoProvider(l,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{}
For more information, please visit: `+Xgt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},Zgt=(t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()<Date.now()&&(s=jTe(s,r))}catch(o){if(n)r.warn("Credential renew failed: ",o),s=jTe(n,r);else throw o}return n=s,s}},nPe="/latest/meta-data/iam/security-credentials/",eyt="/latest/api/token",Sj="AWS_EC2_METADATA_V1_DISABLED",JTe="ec2_metadata_v1_disabled",KTe="x-aws-ec2-metadata-token",tyt=(t={})=>Zgt(ryt(t),{logger:t.logger}),ryt=(t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=Tj(t),i=async(a,c)=>{if(e||c.headers?.[KTe]==null){let u=!1,p=!1,m=await gi.loadConfig({environmentVariableSelector:g=>{let E=g[Sj];if(p=!!E&&E!=="false",E===void 0)throw new gi.CredentialsProviderError(`${Sj} not set in env, checking config file next.`,{logger:t.logger});return p},configFileSelector:g=>{let E=g[JTe];return u=!!E&&E!=="false",u},default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||m){let g=[];throw t.ec2MetadataV1Disabled&&g.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),u&&g.push(`config file profile (${JTe})`),p&&g.push(`process environment variable (${Sj})`),new Nj(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${g.join(", ")}].`)}}let d=(await Bj(async()=>{let u;try{u=await syt(c)}catch(p){throw p.statusCode===401&&(e=!1),p}return u},a)).trim();return Bj(async()=>{let u;try{u=await oyt(d,c,t)}catch(p){throw p.statusCode===401&&(e=!1),p}return u},a)};return async()=>{let a=await rPe();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),i(o,{...a,timeout:s});{let c;try{c=(await nyt({...a,timeout:s})).toString()}catch(l){if(l?.statusCode===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),i(o,{...a,timeout:s})}return i(o,{...a,headers:{[KTe]:c},timeout:s})}}},nyt=async t=>Nw({...t,path:eyt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),syt=async t=>(await Nw({...t,path:nPe})).toString(),oyt=async(t,e,r)=>{let n=JSON.parse((await Nw({...e,path:nPe+t})).toString());if(!XTe(n))throw new gi.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger});return ZTe(n)};Ss.DEFAULT_MAX_RETRIES=tPe;Ss.DEFAULT_TIMEOUT=ePe;Ss.ENV_CMDS_AUTH_TOKEN=Rj;Ss.ENV_CMDS_FULL_URI=HQ;Ss.ENV_CMDS_RELATIVE_URI=zQ;Ss.fromContainerMetadata=Lgt;Ss.fromInstanceMetadata=tyt;Ss.getInstanceMetadataEndpoint=rPe;Ss.httpRequest=Nw;Ss.providerConfigFromInit=Tj});var ed=b(Pw=>{"use strict";var YQ=require("node:https"),jQ=(Ke(),ie(Sl)),cPe=require("node:stream"),JQ=require("node:http2");function KQ(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}var iyt=["ECONNRESET","EPIPE","ETIMEDOUT"],lPe=t=>{let e={};for(let r in t){let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},is={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},sPe=1e3,ayt=(t,e,r=0)=>{if(!r)return-1;let n=s=>{let o=is.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),i=a=>{a?.connecting?a.on("connect",()=>{is.clearTimeout(o)}):is.clearTimeout(o)};t.socket?i(t.socket):t.on("socket",i)};return r<2e3?(n(0),0):is.setTimeout(n.bind(null,sPe),sPe)},cyt=(t,e,r=0,n,s)=>r?is.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let i=Object.assign(new Error(o),{name:"TimeoutEr
2026-05-22 09:49:50 +00:00
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
2026-06-03 22:35:08 +00:00
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=e.protocol==="https:";return!o&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((i,a)=>{let c,l=-1,d=-1,u=-1,p=-1,m=-1,g=()=>{is.clearTimeout(l),is.clearTimeout(d),is.clearTimeout(u),is.clearTimeout(p),is.clearTimeout(m)},E=async J=>{await c,g(),i(J)},w=async J=>{await c,g(),a(J)};if(r?.aborted){let J=KQ(r);w(J);return}let x=e.headers,S=x?(x.Expect??x.expect)==="100-continue":!1,v=o?s.httpsAgent:s.httpAgent;S&&!this.externalAgent&&(v=new(o?YQ.Agent:WQ)({keepAlive:!1,maxSockets:1/0})),l=is.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(v,this.socketWarningTimestamp,s.logger)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let Q=e.query?jQ.buildQueryString(e.query):"",$;if(e.username!=null||e.password!=null){let J=e.username??"",me=e.password??"";$=`${J}:${me}`}let F=e.path;Q&&(F+=`?${Q}`),e.fragment&&(F+=`#${e.fragment}`);let ee=e.hostname??"";ee[0]==="["&&ee.endsWith("]")?ee=e.hostname.slice(1,-1):ee=e.hostname;let Ce={headers:e.headers,host:ee,method:e.method,path:F,port:e.port,agent:v,auth:$},De=(o?YQ.request:aPe)(Ce,J=>{let me=new jQ.HttpResponse({statusCode:J.statusCode||-1,reason:J.statusMessage,headers:lPe(J.headers),body:J});E({response:me})});if(De.on("error",J=>{iyt.includes(J.code)?w(Object.assign(J,{name:"TimeoutError"})):w(J)}),r){let J=()=>{De.destroy();let me=KQ(r);w(me)};if(typeof r.addEventListener=="function"){let me=r;me.addEventListener("abort",J,{once:!0}),De.once("close",()=>me.removeEventListener("abort",J))}else r.onabort=J}let le=n??s.requestTimeout;d=ayt(De,w,s.connectionTimeout),u=cyt(De,w,le,s.throwOnRequestTimeout,s.logger??console),p=dyt(De,w,s.socketTimeout);let Ne=Ce.agent;typeof Ne=="object"&&"keepAlive"in Ne&&(m=uyt(De,{keepAlive:Ne.keepAlive,keepAliveMsecs:Ne.keepAliveMsecs})),c=uPe(De,e,le,this.externalAgent).catch(J=>(g(),a(J)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:c,logger:l}=e||{},d=!0,u=50;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:c,httpAgentProvider:async()=>{let{Agent:p,request:m}=await import("node:http");return aPe=m,WQ=p,i instanceof WQ||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new WQ({keepAlive:d,maxSockets:u,...i})},httpsAgent:a instanceof YQ.Agent||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new YQ.Agent({keepAlive:d,maxSockets:u,...a}),logger:l}}},fyt=new Uint16Array(1),Tw=class{id=fyt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},vj=class{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Tw(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcur
- loopback CIDR 127.0.0.0/8 or [::1/128]
- ECS container host 169.254.170.2
2026-06-03 22:35:08 +00:00
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}};XQ.checkUrl=xyt});var pPe=b(ZQ=>{"use strict";Object.defineProperty(ZQ,"__esModule",{value:!0});ZQ.createGetRequest=Byt;ZQ.getCredentials=Ryt;var kj=(Yt(),ie(ns)),wyt=(Ke(),ie(Sl)),byt=(It(),ie(xp)),Syt=(It(),ie(xp));function Byt(t){return new wyt.HttpRequest({protocol:t.protocol,hostname:t.hostname,port:Number(t.port),path:t.pathname,query:Array.from(t.searchParams.entries()).reduce((e,[r,n])=>(e[r]=n,e),{}),fragment:t.hash})}async function Ryt(t,e){let n=await(0,Syt.sdkStreamMixin)(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new kj.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:e});return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.Token,expiration:(0,byt.parseRfc3339DateTime)(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new kj.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new kj.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e})}});var mPe=b(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});eD.retryWrapper=void 0;var Nyt=(t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(o=>setTimeout(o,r))}return await t()};eD.retryWrapper=Nyt});var hPe=b(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.fromHttp=void 0;var Tyt=(wy(),ie(xy)),Pyt=(qt(),ie(to)),fPe=(Yt(),ie(ns)),vyt=ed(),_yt=Tyt.__importDefault(require("node:fs/promises")),Qyt=dPe(),APe=pPe(),Dyt=mPe(),kyt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",Lyt="http://169.254.170.2",Oyt="AWS_CONTAINER_CREDENTIALS_FULL_URI",Myt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",Fyt="AWS_CONTAINER_AUTHORIZATION_TOKEN",Uyt=(t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[kyt],n=t.awsContainerCredentialsFullUri??process.env[Oyt],s=t.awsContainerAuthorizationToken??process.env[Fyt],o=t.awsContainerAuthorizationTokenFile??process.env[Myt],i=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),i("awsContainerCredentialsFullUri will take precedence.")),s&&o&&(i("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),i("awsContainerAuthorizationToken will take precedence.")),n)e=n;else if(r)e=`${Lyt}${r}`;else throw new fPe.CredentialsProviderError(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let a=new URL(e);(0,Qyt.checkUrl)(a,t.logger);let c=vyt.NodeHttpHandler.create({requestTimeout:t.timeout??1e3,connectionTimeout:t.timeout??1e3});return(0,Dyt.retryWrapper)(async()=>{let l=(0,APe.createGetRequest)(a);s?l.headers.Authorization=s:o&&(l.headers.Authorization=(await _yt.default.readFile(o)).toString());try{let d=await c.handle(l);return(0,APe.getCredentials)(d.response).then(u=>(0,Pyt.setCredentialFeature)(u,"CREDENTIALS_HTTP","z"))}catch(d){throw new fPe.CredentialsProviderError(String(d),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3)};tD.fromHttp=Uyt});var Lj=b(gPe=>{"use strict";var qyt=hPe();gPe.fromHttp=qyt.fromHttp});function $yt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function Gyt(t){return{schemeId:"smithy.api#noAuth"}}var yPe,EPe,CPe,Oj=I(()=>{Cn();Me();yPe=async(t,e,r)=>({operation:Dr(e).operation,region:await sr(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});EPe=t=>{let e=[];return t.operation==="CreateToken"?e.push(Gyt(t)):e.push($yt(t)),e},CPe=t=>{let e=Hl(t);return Object.assign(e,{authSchemePreference:sr(t.authSchemePreference??[])})}});var IPe,xPe,Mj=I(()=>{IPe=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),xPe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Lp,vw=I(()=>{Lp={name:"@aws-sdk/nested-clients",version:"3.997.11",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.13","@aws-sdk/signature-v4-multi-region":"^3.996.28","@aws-sdk/types":"^3.973.9","@smithy/core":"^3.24.3","@smithy/fetch-http-handler":"^5.4.3","@smithy/node-http-handler":"^4.7.3","@smithy/types":"^4.14.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",director
`&&C[_]!=="\r";_++)H+=C[_];if(H=H.trim(),H[H.length-1]==="/"&&(H=H.substring(0,H.length-1),_--),!$(H)){let ce;return ce=H.trim().length===0?"Invalid space after '<'.":"Tag '"+H+"' is an invalid name.",v("InvalidTag",ce,F(C,_))}let M=E(C,_);if(M===!1)return v("InvalidAttr","Attributes for '"+H+"' have open quote.",F(C,_));let Y=M.value;if(_=M.index,Y[Y.length-1]==="/"){let ce=_-Y.length;Y=Y.substring(0,Y.length-1);let ve=x(Y,h);if(ve!==!0)return v(ve.err.code,ve.err.msg,F(C,ce+ve.err.line));T=!0}else if(D){if(!M.tagClosed)return v("InvalidTag","Closing tag '"+H+"' doesn't have proper closing.",F(C,_));if(Y.trim().length>0)return v("InvalidTag","Closing tag '"+H+"' can't have attributes or invalid starting.",F(C,U));if(y.length===0)return v("InvalidTag","Closing tag '"+H+"' has not been opened.",F(C,U));{let ce=y.pop();if(H!==ce.tagName){let ve=F(C,ce.tagStartPos);return v("InvalidTag","Expected closing tag '"+ce.tagName+"' (opened in line "+ve.line+", col "+ve.col+") instead of closing tag '"+H+"'.",F(C,U))}y.length==0&&(R=!0)}}else{let ce=x(Y,h);if(ce!==!0)return v(ce.err.code,ce.err.msg,F(C,_-Y.length+ce.err.line));if(R===!0)return v("InvalidXml","Multiple possible root nodes found.",F(C,_));h.unpairedTags.indexOf(H)!==-1||y.push({tagName:H,tagStartPos:U}),T=!0}for(_++;_<C.length;_++)if(C[_]==="<"){if(C[_+1]==="!"){_++,_=p(C,_);continue}if(C[_+1]!=="?")break;if(_=u(C,++_),_.err)return _}else if(C[_]==="&"){let ce=S(C,_);if(ce==-1)return v("InvalidChar","char '&' is not expected.",F(C,_));_=ce}else if(R===!0&&!d(C[_]))return v("InvalidXml","Extra text at the end",F(C,_));C[_]==="<"&&_--}}}return T?y.length==1?v("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",F(C,y[0].tagStartPos)):!(y.length>0)||v("InvalidXml","Invalid '"+JSON.stringify(y.map(_=>_.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):v("InvalidXml","Start tag expected.",1)}function d(C){return C===" "||C===" "||C===`
`||C==="\r"}function u(C,h){let y=h;for(;h<C.length;h++)if(C[h]=="?"||C[h]==" "){let T=C.substr(y,h-y);if(h>5&&T==="xml")return v("InvalidXml","XML declaration allowed only at the start of the document.",F(C,h));if(C[h]=="?"&&C[h+1]==">"){h++;break}continue}return h}function p(C,h){if(C.length>h+5&&C[h+1]==="-"&&C[h+2]==="-"){for(h+=3;h<C.length;h++)if(C[h]==="-"&&C[h+1]==="-"&&C[h+2]===">"){h+=2;break}}else if(C.length>h+8&&C[h+1]==="D"&&C[h+2]==="O"&&C[h+3]==="C"&&C[h+4]==="T"&&C[h+5]==="Y"&&C[h+6]==="P"&&C[h+7]==="E"){let y=1;for(h+=8;h<C.length;h++)if(C[h]==="<")y++;else if(C[h]===">"&&(y--,y===0))break}else if(C.length>h+9&&C[h+1]==="["&&C[h+2]==="C"&&C[h+3]==="D"&&C[h+4]==="A"&&C[h+5]==="T"&&C[h+6]==="A"&&C[h+7]==="["){for(h+=8;h<C.length;h++)if(C[h]==="]"&&C[h+1]==="]"&&C[h+2]===">"){h+=2;break}}return h}let m='"',g="'";function E(C,h){let y="",T="",R=!1;for(;h<C.length;h++){if(C[h]===m||C[h]===g)T===""?T=C[h]:T!==C[h]||(T="");else if(C[h]===">"&&T===""){R=!0;break}y+=C[h]}return T===""&&{value:y,index:h,tagClosed:R}}let w=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function x(C,h){let y=s(C,w),T={};for(let R=0;R<y.length;R++){if(y[R][1].length===0)return v("InvalidAttr","Attribute '"+y[R][2]+"' has no space in starting.",ee(y[R]));if(y[R][3]!==void 0&&y[R][4]===void 0)return v("InvalidAttr","Attribute '"+y[R][2]+"' is without value.",ee(y[R]));if(y[R][3]===void 0&&!h.allowBooleanAttributes)return v("InvalidAttr","boolean attribute '"+y[R][2]+"' is not allowed.",ee(y[R]));let _=y[R][2];if(!Q(_))return v("InvalidAttr","Attribute '"+_+"' is an invalid name.",ee(y[R]));if(Object.prototype.hasOwnProperty.call(T,_))return v("InvalidAttr","Attribute '"+_+"' is repeated.",ee(y[R]));T[_]=1}return!0}function S(C,h){if(C[++h]===";")return-1;if(C[h]==="#")return(function(T,R){let _=/\d/;for(T[R]==="x"&&(R++,_=/[\da-fA-F]/);R<T.length;R++){if(T[R]===";")return R;if(!T[R].match(_))break}return-1})(C,++h);let y=0;for(;h<C.length;h++,y++)if(!(C[h].match(/\w/)&&y<20)){if(C[h]===";")break;return-1}return h}function v(C,h,y){return{err:{code:C,msg:h,line:y.line||y,col:y.col}}}function Q(C){return o(C)}function $(C){return o(C)}function F(C,h){let y=C.substring(0,h).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function ee(C){return C.startIndex+C[1].length}let Ce=C=>i.includes(C)?"__"+C:C,He={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(C,h){return h},attributeValueProcessor:function(C,h){return h},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(C,h,y){return C},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Ce};function De(C,h){if(typeof C!="string")return;let y=C.toLowerCase();if(i.some(T=>y===T.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);if(a.some(T=>y===T.toLowerCase()))throw new Error(`[SECURITY] Invalid ${h}: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`)}function le(C,h){return typeof C=="boolean"?{enabled:C,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof C=="object"&&C!==null?{enabled:C.enabled!==!1,maxEntitySize:Math.max(1,C.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,C.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,C.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,C.maxExpandedLength??1e5),maxEntityCount:Math.max(1,C.maxEntityCount??1e3),allowedTags:C.allowedTags??null,tagFilter:C.tagFilter??null,appliesTo:C.appliesTo??"all"}:le(!0)}let N
`);let h=new me("!xml"),y=h,T="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let R=this.options,_=new St(R.processEntities),U=C.length;for(let D=0;D<U;D++)if(C[D]==="<"){let H=C.charCodeAt(D+1);if(H===47){let M=k(C,">",D,"Closing Tag is not closed."),Y=C.substring(D+2,M).trim();if(R.removeNSPrefix){let ve=Y.indexOf(":");ve!==-1&&(Y=Y.substr(ve+1))}Y=B(R.transformTagName,Y,"",R).tagName,y&&(T=this.saveTextToParentTag(T,y,this.readonlyMatcher));let ce=this.matcher.getCurrentTag();if(Y&&R.unpairedTagsSet.has(Y))throw new Error(`Unpaired tag can not be used as closing tag: </${Y}>`);ce&&R.unpairedTagsSet.has(ce)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,y=this.tagsNodeStack.pop(),T="",D=M}else if(H===63){let M=W(C,D,!1,"?>");if(!M)throw new Error("Pi Tag is not closed.");T=this.saveTextToParentTag(T,y,this.readonlyMatcher);let Y=this.buildAttributesMap(M.tagExp,this.matcher,M.tagName,!0);if(Y){let ce=Y[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(ce)||1)}if(!(R.ignoreDeclaration&&M.tagName==="?xml"||R.ignorePiTags)){let ce=new me(M.tagName);ce.add(R.textNodeName,""),M.tagName!==M.tagExp&&M.attrExpPresent&&R.ignoreAttributes!==!0&&(ce[":@"]=Y),this.addChild(y,ce,this.readonlyMatcher,D)}D=M.closeIndex+1}else if(H===33&&C.charCodeAt(D+2)===45&&C.charCodeAt(D+3)===45){let M=k(C,"-->",D+4,"Comment is not closed.");if(R.commentPropName){let Y=C.substring(D+4,M-2);T=this.saveTextToParentTag(T,y,this.readonlyMatcher),y.add(R.commentPropName,[{[R.textNodeName]:Y}])}D=M}else if(H===33&&C.charCodeAt(D+2)===68){let M=_.readDocType(C,D);this.entityDecoder.addInputEntities(M.entities),D=M.i}else if(H===33&&C.charCodeAt(D+2)===91){let M=k(C,"]]>",D,"CDATA is not closed.")-2,Y=C.substring(D+9,M);T=this.saveTextToParentTag(T,y,this.readonlyMatcher);let ce=this.parseTextData(Y,y.tagname,this.readonlyMatcher,!0,!1,!0,!0);ce==null&&(ce=""),R.cdataPropName?y.add(R.cdataPropName,[{[R.textNodeName]:Y}]):y.add(R.textNodeName,ce),D=M+2}else{let M=W(C,D,R.removeNSPrefix);if(!M){let Xr=C.substring(Math.max(0,D-50),Math.min(U,D+50));throw new Error(`readTagExp returned undefined at position ${D}. Context: "${Xr}"`)}let Y=M.tagName,ce=M.rawTagName,ve=M.tagExp,qe=M.attrExpPresent,je=M.closeIndex;if({tagName:Y,tagExp:ve}=B(R.transformTagName,Y,ve,R),R.strictReservedNames&&(Y===R.commentPropName||Y===R.cdataPropName||Y===R.textNodeName||Y===R.attributesGroupName))throw new Error(`Invalid tag name: ${Y}`);y&&T&&y.tagname!=="!xml"&&(T=this.saveTextToParentTag(T,y,this.readonlyMatcher,!1));let Bt=y;Bt&&R.unpairedTagsSet.has(Bt.tagname)&&(y=this.tagsNodeStack.pop(),this.matcher.pop());let fn=!1;ve.length>0&&ve.lastIndexOf("/")===ve.length-1&&(fn=!0,Y[Y.length-1]==="/"?(Y=Y.substr(0,Y.length-1),ve=Y):ve=ve.substr(0,ve.length-1),qe=Y!==ve);let Ts,Wn=null,TA={};Ts=bA(ce),Y!==h.tagname&&this.matcher.push(Y,{},Ts),Y!==ve&&qe&&(Wn=this.buildAttributesMap(ve,this.matcher,Y),Wn&&(TA=ga(Wn,R))),Y!==h.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Ps=D;if(this.isCurrentNodeStopNode){let Xr="";if(fn)D=M.closeIndex;else if(R.unpairedTagsSet.has(Y))D=M.closeIndex;else{let AO=this.readStopNodeData(C,ce,je+1);if(!AO)throw new Error(`Unexpected end of ${ce}`);D=AO.i,Xr=AO.tagContent}let fO=new me(Y);Wn&&(fO[":@"]=Wn),fO.add(R.textNodeName,Xr),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(y,fO,this.readonlyMatcher,Ps)}else{if(fn){({tagName:Y,tagExp:ve}=B(R.transformTagName,Y,ve,R));let Xr=new me(Y);Wn&&(Xr[":@"]=Wn),this.addChild(y,Xr,this.readonlyMatcher,Ps),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(R.unpairedTagsSet.has(Y)){let Xr=new me(Y);Wn&&(Xr[":@"]=Wn),this.addChild(y,Xr,this.readonlyMatcher,Ps),this.matcher.pop(),this.isCurrentNodeStopNode=!1,D=M.closeIndex;continue}{let Xr=new me(Y);if(this.tagsNodeStack.length>R.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(y),Wn&&(Xr[":@"]=Wn),this.addChild(y,Xr,this.readonlyMatcher,Ps),y=Xr}}T
`);let T=[];if(h.stopNodes&&Array.isArray(h.stopNodes))for(let R=0;R<h.stopNodes.length;R++){let _=h.stopNodes[R];typeof _=="string"?T.push(new Lo(_)):_ instanceof Lo&&T.push(_)}return md(C,h,y,new Kl,T)}function md(C,h,y,T,R){let _="",U=!1;if(h.maxNestedTags&&T.getDepth()>h.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(C)){if(C!=null){let D=C.toString();return D=mO(D,h),D}return""}for(let D=0;D<C.length;D++){let H=C[D],M=H9(H);if(M===void 0)continue;let Y=nm(H[":@"],h);T.push(M,Y);let ce=LOe(T,R);if(M===h.textNodeName){let Bt=H[M];ce||(Bt=h.tagValueProcessor(M,Bt),Bt=mO(Bt,h)),U&&(_+=y),_+=Bt,U=!1,T.pop();continue}if(M===h.cdataPropName){U&&(_+=y),_+=`<![CDATA[${Rt(H[M][0][h.textNodeName])}]]>`,U=!1,T.pop();continue}if(M===h.commentPropName){_+=y+`<!--${ze(H[M][0][h.textNodeName])}-->`,U=!0,T.pop();continue}if(M[0]==="?"){let Bt=z9(H[":@"],h,ce),fn=M==="?xml"?"":y,Ts=H[M][0][h.textNodeName];Ts=Ts.length!==0?" "+Ts:"",_+=fn+`<${M}${Ts}${Bt}?>`,U=!0,T.pop();continue}let ve=y;ve!==""&&(ve+=h.indentBy);let qe=y+`<${M}${z9(H[":@"],h,ce)}`,je;je=ce?G9(H[M],h):md(H[M],h,ve,T,R),h.unpairedTags.indexOf(M)!==-1?h.suppressUnpairedNode?_+=qe+">":_+=qe+"/>":je&&je.length!==0||!h.suppressEmptyNode?je&&je.endsWith(">")?_+=qe+`>${je}${y}</${M}>`:(_+=qe+">",je&&y!==""&&(je.includes("/>")||je.includes("</"))?_+=y+h.indentBy+je+y:_+=je,_+=`</${M}>`):_+=qe+"/>",U=!0,T.pop()}return _}function nm(C,h){if(!C||h.ignoreAttributes)return null;let y={},T=!1;for(let R in C)Object.prototype.hasOwnProperty.call(C,R)&&(y[R.startsWith(h.attributeNamePrefix)?R.substr(h.attributeNamePrefix.length):R]=jt(C[R]),T=!0);return T?y:null}function G9(C,h){if(!Array.isArray(C))return C!=null?C.toString():"";let y="";for(let T=0;T<C.length;T++){let R=C[T],_=H9(R);if(_===h.textNodeName)y+=R[_];else if(_===h.cdataPropName)y+=R[_][0][h.textNodeName];else if(_===h.commentPropName)y+=R[_][0][h.textNodeName];else{if(_&&_[0]==="?")continue;if(_){let U=kOe(R[":@"],h),D=G9(R[_],h);D&&D.length!==0?y+=`<${_}${U}>${D}</${_}>`:y+=`<${_}${U}/>`}}}return y}function kOe(C,h){let y="";if(C&&!h.ignoreAttributes)for(let T in C){if(!Object.prototype.hasOwnProperty.call(C,T))continue;let R=C[T];R===!0&&h.suppressBooleanAttributes?y+=` ${T.substr(h.attributeNamePrefix.length)}`:y+=` ${T.substr(h.attributeNamePrefix.length)}="${jt(R)}"`}return y}function H9(C){let h=Object.keys(C);for(let y=0;y<h.length;y++){let T=h[y];if(Object.prototype.hasOwnProperty.call(C,T)&&T!==":@")return T}}function z9(C,h,y){let T="";if(C&&!h.ignoreAttributes)for(let R in C){if(!Object.prototype.hasOwnProperty.call(C,R))continue;let _;y?_=C[R]:(_=h.attributeValueProcessor(R,C[R]),_=mO(_,h)),_===!0&&h.suppressBooleanAttributes?T+=` ${R.substr(h.attributeNamePrefix.length)}`:T+=` ${R.substr(h.attributeNamePrefix.length)}="${jt(_)}"`}return T}function LOe(C,h){if(!h||h.length===0)return!1;for(let y=0;y<h.length;y++)if(C.matches(h[y]))return!0;return!1}function mO(C,h){if(C&&C.length>0&&h.processEntities)for(let y=0;y<h.entities.length;y++){let T=h.entities[y];C=C.replace(T.regex,T.val)}return C}let OOe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(C,h){return h},attributeValueProcessor:function(C,h){return h},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Ei(C){if(this.options=Object.assign({},OOe,C),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(y=>typeof y=="string"&&y.startsWith("*.")?".."+y.substring(2):y)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let y=0;y<this.options.stopNode
`,this.newLine=`
2026-06-03 22:35:08 +00:00
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function MOe(C,h,y,T){let R=this.extractAttributes(C);if(T.push(h,R),this.checkStopNode(T)){let U=this.buildRawContent(C),D=this.buildAttributesForStopNode(C);return T.pop(),this.buildObjectNode(U,h,D,y)}let _=this.j2x(C,y+1,T);return T.pop(),C[this.options.textNodeName]!==void 0&&Object.keys(C).length===1?this.buildTextValNode(C[this.options.textNodeName],h,_.attrStr,y,T):this.buildObjectNode(_.val,h,_.attrStr,y)}function FOe(C){return this.options.indentBy.repeat(C)}function UOe(C){return!(!C.startsWith(this.options.attributeNamePrefix)||C===this.options.textNodeName)&&C.substr(this.attrPrefixLen)}Ei.prototype.build=function(C){if(this.options.preserveOrder)return Jb(C,this.options);{Array.isArray(C)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(C={[this.options.arrayNodeName]:C});let h=new Kl;return this.j2x(C,0,h).val}},Ei.prototype.j2x=function(C,h,y){let T="",R="";if(this.options.maxNestedTags&&y.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let _=this.options.jPath?y.toString():y,U=this.checkStopNode(y);for(let D in C)if(Object.prototype.hasOwnProperty.call(C,D))if(C[D]===void 0)this.isAttribute(D)&&(R+="");else if(C[D]===null)this.isAttribute(D)||D===this.options.cdataPropName||D===this.options.commentPropName?R+="":D[0]==="?"?R+=this.indentate(h)+"<"+D+"?"+this.tagEndChar:R+=this.indentate(h)+"<"+D+"/"+this.tagEndChar;else if(C[D]instanceof Date)R+=this.buildTextValNode(C[D],D,"",h,y);else if(typeof C[D]!="object"){let H=this.isAttribute(D);if(H&&!this.ignoreAttributesFn(H,_))T+=this.buildAttrPairStr(H,""+C[D],U);else if(!H)if(D===this.options.textNodeName){let M=this.options.tagValueProcessor(D,""+C[D]);R+=this.replaceEntitiesValue(M)}else{y.push(D);let M=this.checkStopNode(y);if(y.pop(),M){let Y=""+C[D];R+=Y===""?this.indentate(h)+"<"+D+this.closeTag(D)+this.tagEndChar:this.indentate(h)+"<"+D+">"+Y+"</"+D+this.tagEndChar}else R+=this.buildTextValNode(C[D],D,"",h,y)}}else if(Array.isArray(C[D])){let H=C[D].length,M="",Y="";for(let ce=0;ce<H;ce++){let ve=C[D][ce];if(ve!==void 0)if(ve===null)D[0]==="?"?R+=this.indentate(h)+"<"+D+"?"+this.tagEndChar:R+=this.indentate(h)+"<"+D+"/"+this.tagEndChar;else if(typeof ve=="object")if(this.options.oneListGroup){y.push(D);let qe=this.j2x(ve,h+1,y);y.pop(),M+=qe.val,this.options.attributesGroupName&&ve.hasOwnProperty(this.options.attributesGroupName)&&(Y+=qe.attrStr)}else M+=this.processTextOrObjNode(ve,D,h,y);else if(this.options.oneListGroup){let qe=this.options.tagValueProcessor(D,ve);qe=this.replaceEntitiesValue(qe),M+=qe}else{y.push(D);let qe=this.checkStopNode(y);if(y.pop(),qe){let je=""+ve;M+=je===""?this.indentate(h)+"<"+D+this.closeTag(D)+this.tagEndChar:this.indentate(h)+"<"+D+">"+je+"</"+D+this.tagEndChar}else M+=this.buildTextValNode(ve,D,"",h,y)}}this.options.oneListGroup&&(M=this.buildObjectNode(M,D,Y,h)),R+=M}else if(this.options.attributesGroupName&&D===this.options.attributesGroupName){let H=Object.keys(C[D]),M=H.length;for(let Y=0;Y<M;Y++)T+=this.buildAttrPairStr(H[Y],""+C[D][H[Y]],U)}else R+=this.processTextOrObjNode(C[D],D,h,y);return{attrStr:T,val:R}},Ei.prototype.buildAttrPairStr=function(C,h,y){return y||(h=this.options.attributeValueProcessor(C,""+h),h=this.replaceEntitiesValue(h)),this.options.suppressBooleanAttributes&&h==="true"?" "+C:" "+C+'="'+jt(h)+'"'},Ei.prototype.extractAttributes=function(C){if(!C||typeof C!="object")return null;let h={},y=!1;if(this.options.attributesGroupName&&C[this.options.attributesGroupName]){let T=C[this.options.attributesGroupName];for(let R in T)Object.prototype.hasOwnProperty.call(T,R)&&(h[R.startsWith(this.options.attributeNamePrefix)?R.substring(this.options.attributeNamePrefix.length):R]=jt(T[R]),y=!0)}else for(let T in C){if(!Object.prototype.hasOwnProperty.call(C,T))continue;let R=this.isAttribute(T);R&&(h[R]=jt(C[T]),y=!0)}return y?h:null},Ei.prototype.buildRawContent=function(C){if(typeof C=="string")return C;if(typeof C!="object"||C===null)return String(C);if(C[this.opt
`)?"":void 0,maxNestedTags:1/0});function gEt(t){return hEt.parse(t,!0)}});var ID=b(CD=>{"use strict";var yEt=JPe(),EEt=/[&<>"]/g,CEt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function IEt(t){return t.replace(EEt,e=>CEt[e])}var xEt=/[&"'<>\r\n\u0085\u2028]/g,wEt={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","\x85":"&#x85;","\u2028":"&#x2028;"};function bEt(t){return t.replace(xEt,e=>wEt[e])}var ED=class{value;constructor(e){this.value=e}toString(){return bEt(""+this.value)}},mJ=class t{name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new ED(r)),n!==void 0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let s=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(i=>{i.withName(n),this.c(i)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),i=new t(n);o.map(a=>{i.c(a)}),this.c(i)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];o!=null&&(r+=` ${s}="${IEt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}};CD.parseXML=yEt.parseXML;CD.XmlNode=mJ;CD.XmlText=ED});var KPe,Kf,xD=I(()=>{KPe=L(ID());Me();Ke();Ft();It();qp();tJ();Kf=class extends Bs{settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new $f(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=ke.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(l=>!!l.getMemberTraits().eventPayload)){let l={},d=Object.keys(o)[0];return o[d].isBlobSchema()?l[d]=r:l[d]=this.read(o[d],r),l}let a=(this.serdeContext?.utf8Encoder??Lr)(r),c=this.parseXml(a);return this.readSchema(e,n?c[n]:c)}readSchema(e,r){let n=ke.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let a=n.getValueSchema(),c=[],l=a.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[l];if(d==null)return c;let u=Array.isArray(d)?d:[d];for(let p of u)c.push(this.readSchema(a,p));return c}let i={};if(n.isMapSchema()){let a=n.getKeySchema(),c=n.getValueSchema(),l;o?l=Array.isArray(r)?r:[r]:l=Array.isArray(r.entry)?r.entry:[r.entry];let d=a.getMergedTraits().xmlName??"key",u=c.getMergedTraits().xmlName??"value";for(let p of l){let m=p[d],g=p[u];i[m]=this.readSchema(c,g)}return i}if(n.isStructSchema()){let a=n.isUnionSchema(),c;a&&(c=new Hy(r,i));for(let[l,d]of n.structIterator()){let u=d.getMergedTraits(),p=u.httpPayload?u.xmlName??d.getName():d.getMemberTraits().xmlName??l;a&&c.mark(p),r[p]!=null&&(i[l]=this.readSchema(d,r[p]))}return a&&c.writeUnknown(),i}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,KPe.parseXML)(e)}catch(i){throw i&&typeof i=="object"&&Object.defineProperty(i,"$responseBodyText",{value:e}),i}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Vf(o)}return{}}}});var Fw,fJ=I(()=>{Ke();Ft();It();It();qp();Fw=class extends Bs{settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=ke.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??kr)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},iIt=(t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:i}=t,{ssoClient:a}=t,c=no.getProfileName({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!i){let d=(await no.parseKnownFiles(t))[c];if(!d)throw new no.CredentialsProviderError(`Profile ${c} was not found.`,{logger:t.logger});if(!O_e(d))throw new no.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let x=(await no.loadSsoSessionData(t))[d.sso_session],S=` configurations in profile ${c} and sso-session ${d.sso_session}`;if(s&&s!==x.sso_region)throw new no.CredentialsProviderError("Conflicting SSO region"+S,{tryNextLink:!1,logger:t.logger});if(r&&r!==x.sso_start_url)throw new no.CredentialsProviderError("Conflicting SSO start_url"+S,{tryNextLink:!1,logger:t.logger});d.sso_region=x.sso_region,d.sso_start_url=x.sso_start_url}let{sso_start_url:u,sso_account_id:p,sso_region:m,sso_role_name:g,sso_session:E}=M_e(d,t.logger);return L_e({ssoStartUrl:u,ssoSession:E,ssoAccountId:p,ssoRegion:m,ssoRoleName:g,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new no.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return L_e({ssoStartUrl:r,ssoSession:i,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:a,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:c,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}};FD.fromSSO=iIt;FD.isSsoProfile=O_e;FD.validateSsoProfile=M_e});function aIt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function cIt(t){return{schemeId:"smithy.api#noAuth"}}var F_e,U_e,q_e,HJ=I(()=>{Cn();Me();F_e=async(t,e,r)=>({operation:Dr(e).operation,region:await sr(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});U_e=t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(cIt(t)):e.push(aIt(t)),e},q_e=t=>{let e=Hl(t);return Object.assign(e,{authSchemePreference:sr(t.authSchemePreference??[])})}});var $_e,G_e,zJ=I(()=>{$_e=t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),G_e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var pb,nA,UD,H_e,W_e,qD,WJ,VJ,z_e,jJ,YJ,$p,V_e,Y_e,lIt,Rs,uIt,j_e,J_e=I(()=>{Ut();pb="ref",nA=-1,UD=!0,H_e="isSet",W_e="PartitionResult",qD="booleanEquals",WJ="getAttr",VJ="stringEquals",z_e={[pb]:"Endpoint"},jJ={[pb]:W_e},YJ={fn:WJ,argv:[jJ,"name"]},$p={},V_e=[{[pb]:"Region"}],Y_e={conditions:[[H_e,[z_e]],[H_e,V_e],["aws.partition",V_e,W_e],[qD,[{[pb]:"UseFIPS"},UD]],[qD,[{[pb]:"UseDualStack"},UD]],[qD,[{fn:WJ,argv:[jJ,"supportsDualStack"]},UD]],[qD,[{fn:WJ,argv:[jJ,"supportsFIPS"]},UD]],[VJ,[YJ,"aws"]],[VJ,[YJ,"aws-cn"]],[VJ,[YJ,"aws-us-gov"]]],results:[[nA],[nA,"Invalid Configuration: FIPS and custom endpoint are not supported"],[nA,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[z_e,$p],["https://{Region}.signin.aws.amazon.com",$p],["https://{Region}.signin.amazonaws.cn",$p],["https://{Region}.signin.amazonaws-us-gov.com",$p],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",$p],[nA,"FIPS and DualStack are enabled, but this partition does n
Multiple credential sources detected:
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
This SDK will proceed with the AWS_PROFILE value.
However, a future version may change this behavior to prefer the ENV static credentials.
Please ensure that your environment only sets either the AWS_PROFILE or the
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
2026-06-03 22:35:08 +00:00
`),dke=!0)),new Jy.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),P5.fromEnv(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:i}=t;if(!r&&!n&&!s&&!o&&!i)throw new Jy.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:a}=await Promise.resolve().then(()=>L(GJ()));return a(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>L(lke()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>L(B5()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>L(N5()));return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await uwt(t))()),async()=>{throw new Jy.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],pke),fwt=t=>t?.expiration!==void 0,pke=t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5;uk.credentialsTreatedAsExpired=pke;uk.credentialsWillNeedRefresh=fwt;uk.defaultProvider=mwt});var yke=b(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});mk.bdd=void 0;var Awt=(Ut(),ie(_f)),Ky="ref",pA=-1,dk=!0,mke="isSet",Q5="PartitionResult",Yp="stringEquals",pk="booleanEquals",_5="getAttr",fke={[Ky]:"Endpoint"},Wp={fn:_5,argv:[{[Ky]:Q5},"name"]},Ake={[Ky]:Q5},mA={},hke=[{[Ky]:"Region"}],gke={conditions:[[mke,[fke]],[mke,hke],["aws.partition",hke,Q5],[Yp,[Wp,"aws-eusc"]],[Yp,[Wp,"aws-iso-f"]],[Yp,[Wp,"aws-iso-e"]],[Yp,[Wp,"aws-iso-b"]],[Yp,[Wp,"aws-iso"]],[Yp,[Wp,"aws-cn"]],[Yp,[Wp,"aws-us-gov"]],[Yp,[Wp,"aws"]],[pk,[{[Ky]:"UseFIPS"},dk]],[pk,[{fn:_5,argv:[Ake,"supportsFIPS"]},dk]],[pk,[{[Ky]:"UseDualStack"},dk]],[pk,[{fn:_5,argv:[Ake,"supportsDualStack"]},dk]]],results:[[pA],[pA,"Invalid Configuration: FIPS and custom endpoint are not supported"],[pA,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[fke,mA],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",mA],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",mA],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",mA],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",mA],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",mA],[pA,"FIPS and DualStack are enabled, but this partition does not support one or both"],[pA,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",mA],[pA,"DualStack is enabled but this partition does not support DualStack"],[pA,"Invalid Configuration: Missing Region"]]},hwt=2,ls=1e8,gwt=new Int32Array([-1,1,-1,0,23,3,1,4,ls+13,2,5,ls+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,ls+4,14,ls+11,ls+12,12,18,17,13,ls+9,ls+10,13,19,ls+6,14,ls+8,ls+9,11,22,21,13,ls+5,ls+4,13,ls+7,ls+6,11,ls+1,24,13,ls+2,ls+3]);mk.bdd=Awt.BinaryDecisionDiagram.from(gwt,hwt,gke.conditions,gke.results)});var Eke=b(fk=>{"use strict";Object.defineProperty(fk,"__esModule",{value:!0});fk.defaultEndpointResolver=void 0;var ywt=(qt(),ie(to)),D5=(Ut(),ie(_f)),Ewt=yke(),Cwt=new D5.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Iwt=(t,e={})=>Cwt.get(t,()=>(0,D5.decideEndpoint)(Ewt.bdd,{endpointParams:t,logger:e.logger}));fk.defaultEndpointResolver=Iwt;D5.customEndpointFunctions.aws=ywt.awsEndpointFunctions});var Ak=b(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});Xy.ECRServiceException=Xy.__ServiceException=void 0;var Cke=(Me(),ie(oa));Object.defineProperty(Xy,"__Servi
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Wse(t){process.exitCode=eU.Failure,Th(t)}function vm(){return process.env.RUNNER_DEBUG==="1"}function X(t){sm("debug",{},t)}function Th(t,e={}){sm("error",hO(e),t instanceof Error?t.toString():t)}function tn(t,e={}){sm("warning",hO(e),t instanceof Error?t.toString():t)}function ft(t){process.stdout.write(t+Vse.EOL)}function BYe(t){yO("group",t)}function RYe(){yO("endgroup")}function bC(t,e){return SYe(this,void 0,void 0,function*(){BYe(t);let r;try{r=yield e()}finally{RYe()}return r})}function _m(t,e){if(process.env.GITHUB_STATE||"")return J9("STATE",K9(t,e));sm("save-state",{name:t},fd(e))}function jse(t){return process.env[`STATE_${t}`]||""}var ZT=L(require("fs"),1),tV=L(require("os"),1),rV=L(require("path"),1);var Kse=L(require("os"),1);function SC(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function Xse(t,e,r){let n=new tU(t,e,r);process.stdout.write(n.toString()+Kse.EOL)}var Jse="::",tU=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Jse+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${TYe(s)}`)}}return e+=`${Jse}${NYe(this.message)}`,e}};function NYe(t){return SC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function TYe(t){return SC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var eoe=require("os"),BC=require("fs"),rU=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},{access:PYe,appendFile:vYe,writeFile:_Ye}=BC.promises,Zse="GITHUB_STEP_SUMMARY";var nU=class{constructor(){this._buffer=""}filePath(){return rU(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Zse];if(!e)throw new Error(`Unable to find environment variable for $${Zse}. Check if your runtime environment supports job summaries.`);try{yield PYe(e,BC.constants.R_OK|BC.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,i])=>` ${o}="${i}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return rU(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?_Ye:vYe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return rU(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(eoe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(i=>{if(typeof i=="string")return this.wrap("td",i);let{header:a,data:c,colspan:l,rowspan:d}=i,u=a?"th":"td",p=Object.assign(Object.assign({},l&&{colspan:l}),d&&{rowspan:d});return this.wrap(u,c,p)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},i=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),a=this.wrap("img",null,Object.assign({src:e,alt:r},i));return this.addRaw(a).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3",
`),e=e.replace(/\r/g,`
`));let s=e.split(`
2026-06-03 22:35:08 +00:00
`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new FC(o));return n.searchPaths.push(...QU(n.patterns)),n})}static stat(e,r,n){return MU(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield kh.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Pi(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield kh.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield kh.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(i=>i===o)){Pi(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var hJe=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function Rae(t,e){return hJe(this,void 0,void 0,function*(){return yield hB.create(t,e)})}var _B=L(require("crypto"),1),Fh=L(require("fs"),1),Om=L(require("path"),1),Cle=L(yle(),1),Ile=L(require("util"),1);var VC;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(VC||(VC={}));var Ms;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ms||(Ms={}));var jo;(function(t){t.GNU="gnu",t.BSD="bsd"})(jo||(jo={}));var PB=2,vB=5e3,o2=5e3,i2=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Ele=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,YC="cache.tar",a2="manifest.txt",YUt=10*Math.pow(1024,3);var Mh=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},w9e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(i){return new Promise(function(a,c){i=t[o](i),s(a,c,i.done,i.value)})}}function s(o,i,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},i)}},b9e="1.0";function WC(){return Mh(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Om.join(n,"actions","temp")}let r=Om.join(e,_B.randomUUID());return yield Pm(r),r})}function Sc(t){return Fh.statSync(t).size}function c2(t){return Mh(this,void 0,void 0,function*(){var e,r,n,s,o;let i=[],a=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),c=yield Rae(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,d=w9e(c.globGenerator()),u;u=yield d.next(),e=u.done,!e;l=!0){s=u.value,l=!1;let m=Om.relative(a,s).replace(new RegExp(`\\${Om.sep}`,"g"),"/");X(`Matched: ${m}`),m===""?i.push("."):i.push(`${m}`)}}catch(p){r={error:p}}finally{try{!l&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return i})}function jC(t){return Mh(this,void 0,void 0,function*(){return Ile.promisify(Fh.unlink)(t)})}function xle(t){return Mh(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),X(`Checking ${e} ${r.join(" ")}`);try{yield kd(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){X(s.message)}return n=n.trim(),X(n),n})}function JC(){return Mh(this,void 0,void 0,function*(){let t=yield xle("zstd",["--quiet"]),e=Cle.clean(t);return X(`zstd version: ${e}`),t===""?Ms.Gzip:Ms.ZstdWithoutLong})}function Gd(t){return t===Ms.Gzip?VC.Gzip:VC.Zstd}function wle(){return Mh(this,void 0,void 0,function*(){return Fh.existsSync(i2)?i2:(yield xle("tar")).toLowerCase().includes("gnu tar")?uo("tar"):""})}function l2(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Uh(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(b9e),_B.createHash("sha256").update(n.join("|")).digest("hex")}function ble(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var XC=L(require("http"),1),p2=L(require("https"),1);function u2(t){let e=t.protocol==="https:";if(S9e(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new DB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DB(`http://${r}`)}else return}function S9e(t){if(!t.hostname)return!1;let e=t.hostname;if(B9e(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(i=>i.trim().toUpperCase()).filter(i=>i))if(o==="*"||s.some(i=>i===o||i.endsWith(`.${o}`)||o.startsWith(".")&&i.endsWith(`${o}`)))return!0;return!1}function B9e(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var DB=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Hd=L(EE(),1),Sle=L(Bh(),1),rn=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},Gr;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="
${q9e.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function UB(t){return t instanceof Us?!0:Fm(t)&&t.name==="RestError"}function mo(t,e){return Buffer.from(t,e)}var qB=L(require("node:http"),1),$B=L(require("node:https"),1),x2=L(require("node:zlib"),1),Gle=require("node:stream");var Qi=ZC("ts-http-runtime");var $9e={};function eI(t){return t&&typeof t.pipe=="function"}function $le(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 Hle(t){return t&&typeof t.byteLength=="number"}var GB=class extends Gle.Transform{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},w2=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Rc("The operation was aborted. Request has already been canceled.");n=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let l=new _a;Qi.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),i=o?.includes("gzip")||o?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=V9e(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let g=e.onUploadProgress,E=new GB(g);E.on("error",w=>{Qi.error("Error in upload progress",w)}),eI(a)?a.pipe(E):E.end(a),a=E}let l=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let d=G9e(l),p={status:l.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return l.resume(),p;c=i?H9e(l,d):l;let m=e.onDownloadProgress;if(m){let g=new GB(m);g.on("error",E=>{Qi.error("Error in download progress",E)}),c.pipe(g),c=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=c:p.bodyAsText=await z9e(c),p}finally{if(e.abortSignal&&n){let l=Promise.resolve();eI(a)&&(l=$le(a));let d=Promise.resolve();eI(c)&&(d=$le(c)),Promise.all([l,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(u=>{Qi.warning("Error when cleaning up abortListener on httpRequest",u)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let d=o?qB.default.request(a,c):$B.default.request(a,c);d.once("error",u=>{l(new Us(u.message,{code:u.code??Us.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let u=new Rc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(u),l(u)}),n&&eI(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Hle(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Qi.error("Unrecognized body type",n),l(new Us("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?qB.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new qB.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return $B.default.globalAgent;let s=e.tlsSettings??$9e,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Qi.info("No cached TLS Agent exist, creating a new Agent"),o=new $B.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function G9e(t){let e=Jo();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(
`;return e}function wXe(t){return t instanceof Uint8Array?t.byteLength:pR(t)?t.size===-1?void 0:t.size:void 0}function bXe(t){let e=0;for(let r of t){let n=wXe(r);if(n===void 0)return;e+=n}return e}async function SXe(t,e,r){let n=[mo(`--${r}`,"utf-8"),...e.flatMap(o=>[mo(`\r
`,"utf-8"),mo(xXe(o.headers),"utf-8"),mo(`\r
`,"utf-8"),o.body,mo(`\r
--${r}`,"utf-8")]),mo(`--\r
\r
2026-06-03 22:35:08 +00:00
`,"utf-8")],s=bXe(n);s&&t.headers.set("Content-Length",s),t.body=await Wue(n)}var nI="multipartPolicy",BXe=70,RXe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function NXe(t){if(t.length>BXe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!RXe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function fR(){return{name:nI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,i]=s;if(i&&r&&i!==r)throw new Error(`Multipart boundary was specified as ${i} in the header, but got ${r} in the request body`);return r??=i,r?NXe(r):r=IXe(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await SXe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function AR(){return FB()}var jue=LB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),_Gt=jue.logger;function Pc(t){return jue.createClientLogger(t)}var vc=Pc("core-rest-pipeline");function q2(t={}){return zB({logger:vc.info,...t})}var $2=VB;function G2(t={}){return YB(t)}var hR=L(require("node:os"),1),gR=L(require("node:process"),1);function Jue(){return"User-Agent"}async function Kue(t){if(gR.default&&gR.default.versions){let e=`${hR.default.type()} ${hR.default.release()}; ${hR.default.arch()}`,r=gR.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 yR="1.22.2";function LXe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Xue(){return Jue()}async function ER(t){let e=new Map;e.set("core-rest-pipeline",yR),await Kue(e);let r=LXe(e);return t?`${t} ${r}`:r}var Zue=Xue(),ede="userAgentPolicy";function H2(t={}){let e=ER(t.userAgentPrefix);return{name:ede,async sendRequest(r,n){return r.headers.has(Zue)||r.headers.set(Zue,await e),n(r)}}}var ei=class extends Error{constructor(e){super(e),this.name="AbortError"}};function z2(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,i)=>{function a(){i(new ei(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(n?.aborted)return a();try{t(d=>{c(),o(d)},d=>{c(),i(d)})}catch(d){i(d)}n?.addEventListener("abort",l)})}var qXe="The delay was aborted.";function sI(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return z2(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??qXe})}function Vd(t){if(Fm(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 tde(t){return Fm(t)}function jh(){return Mm()}var zt=$m;var rde=Symbol("rawContent");function Y2(t){return typeof t[rde]=="function"}function nde(t){return Y2(t)?t[rde]():t}var CR=nI;function W2(){let t=fR();return{name:CR,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)Y2(n.body)&&(n.body=nde(n.body));return t.sendRequest(e,r)}}}var j2=WB;function J2(){return jB()}function K2(t={}){return XB(t)}function X2(){return ZB()}function Yd(t){return L2(t)}function Z2(t,e){return lR(t,e)}var sde="setClientRequestIdPolicy";function eq(t="x-ms-client-request-id"){return{name:sde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function tq(t){return uR(t)}function rq(t){return dR(t)}var Jh={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function ode(t={}){let e=new nq(t.parentContext);return t.span&&(e=e.setValue(Jh.span,t.span)),t.namespace&&(e=e.setValue(Jh.namespace,t.namespace)),e}var nq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t
`&&t[o]!=="\r";o++)c+=t[o];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),o--),!dZe(c)){let u;return c.trim().length===0?u="Invalid space after '<'.":u="Tag '"+c+"' is an invalid name.",nn("InvalidTag",u,qs(t,o))}let l=iZe(t,o);if(l===!1)return nn("InvalidAttr","Attributes for '"+c+"' have open quote.",qs(t,o));let d=l.value;if(o=l.index,d[d.length-1]==="/"){let u=o-d.length;d=d.substring(0,d.length-1);let p=$de(d,e);if(p===!0)n=!0;else return nn(p.err.code,p.err.msg,qs(t,u+p.err.line))}else if(a)if(l.tagClosed){if(d.trim().length>0)return nn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",qs(t,i));if(r.length===0)return nn("InvalidTag","Closing tag '"+c+"' has not been opened.",qs(t,i));{let u=r.pop();if(c!==u.tagName){let p=qs(t,u.tagStartPos);return nn("InvalidTag","Expected closing tag '"+u.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+c+"'.",qs(t,i))}r.length==0&&(s=!0)}}else return nn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",qs(t,o));else{let u=$de(d,e);if(u!==!0)return nn(u.err.code,u.err.msg,qs(t,o-d.length+u.err.line));if(s===!0)return nn("InvalidXml","Multiple possible root nodes found.",qs(t,o));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:i}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=qde(t,o);continue}else if(t[o+1]==="?"){if(o=Ude(t,++o),o.err)return o}else break;else if(t[o]==="&"){let u=lZe(t,o);if(u==-1)return nn("InvalidChar","char '&' is not expected.",qs(t,o));o=u}else if(s===!0&&!Fde(t[o]))return nn("InvalidXml","Extra text at the end",qs(t,o));t[o]==="<"&&o--}}else{if(Fde(t[o]))continue;return nn("InvalidChar","char '"+t[o]+"' is not expected.",qs(t,o))}if(n){if(r.length==1)return nn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",qs(t,r[0].tagStartPos));if(r.length>0)return nn("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return nn("InvalidXml","Start tag expected.",1);return!0}function Fde(t){return t===" "||t===" "||t===`
`||t==="\r"}function Ude(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return nn("InvalidXml","XML declaration allowed only at the start of the document.",qs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function qde(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 sZe='"',oZe="'";function iZe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===sZe||t[e]===oZe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var aZe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $de(t,e){let r=vR(t,aZe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return nn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",hI(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return nn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",hI(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return nn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",hI(r[s]));let o=r[s][2];if(!uZe(o))return nn("InvalidAttr","Attribute '"+o+"' is an invalid name.",hI(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return nn("InvalidAttr","Attribute '"+o+"' is repeated.",hI(r[s]))}return!0}function cZe(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 lZe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,cZe(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 nn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function uZe(t){return Iq(t)}function dZe(t){return Iq(t)}function qs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function hI(t){return t.startIndex+t[1].length}var Gde={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"},Hde={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 go("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new EI(s.processEntities),i=t.length;for(let a=0;a<i;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let d=tg(t,">",a,"Closing Tag is not closed."),u=t.substring(a+2,d).trim();if(s.removeNSPrefix){let m=u.indexOf(":");m!==-1&&(u=u.substr(m+1))}u=Tq(s.transformTagName,u,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(u&&s.unpairedTagsSet.has(u))throw new Error(`Unpaired tag can not be used as closing tag: </${u}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=d}else if(l===63){let d=Pq(t,a,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let u=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(u){let p=u[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),o.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new go(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=u),this.addChild(r,p,this.readonlyMatcher,a)}a=d.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let d=tg(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let u=t.substring(a+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:u}])}a=d}else if(l===33&&t.charCodeAt(a+2)===68){let d=o.readDocType(t,a);this.entityDecoder.addInputEntities(d.entities),a=d.i}else if(l===33&&t.charCodeAt(a+2)===91){let d=tg(t,"]]>",a,"CDATA is not closed.")-2,u=t.substring(a+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(u,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:u}]):r.add(s.textNodeName,p),a=d+2}else{let d=Pq(t,a,s.removeNSPrefix);if(!d){let F=t.substring(Math.max(0,a-50),Math.min(i,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${F}"`)}let u=d.tagName,p=d.rawTagName,m=d.tagExp,g=d.attrExpPresent,E=d.closeIndex;if({tagName:u,tagExp:m}=Tq(s.transformTagName,u,m,s),s.strictReservedNames&&(u===s.commentPropName||u===s.cdataPropName||u===s.textNodeName||u===s.attributesGroupName))throw new Error(`Invalid tag name: ${u}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let w=r;w&&s.unpairedTagsSet.has(w.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let x=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(x=!0,u[u.length-1]==="/"?(u=u.substr(0,u.length-1),m=u):m=m.substr(0,m.length-1),g=u!==m);let S=null,v={},Q;Q=DZe(p),u!==e.tagname&&this.matcher.push(u,{},Q),u!==m&&g&&(S=this.buildAttributesMap(m,this.matcher,u),S&&(v=QZe(S,s))),u!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let $=a;if(this.isCurrentNodeStopNode){let F="";if(x)a=d.closeIndex;else if(s.unpairedTagsSet.has(u))a=d.closeIndex;else{let Ce=this.readStopNodeData(t,p,E+1);if(!Ce)throw new Error(`Unexpected end of ${p}`);a=Ce.i,F=Ce.tagContent}let ee=new go(u);S&&(ee[":@"]=S),ee.add(s.textNodeName,F),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,ee,this.readonlyMatcher,$)}else{if(x){({tagName:u,tagExp:m}=Tq(s.transformTagName,u,m,s));let F=new go(u);S&&(F[":@"]=S),this.addChild(r,F,this.readonlyMatcher,$),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(u)){let F=new go(u);S&&(F[":@"]=S),this.addChild(r,F,this.readonlyMatcher,$),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=d.closeIndex;continue}else{let F=new go(u);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),S&&(F[":@"]=S),this.addChild(r,F,this.readonlyMatcher,$),r=F}n="",a=E}}}else n+=t[a];return e.child};fu
`;function XZe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Lq(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}function dpe(t,e,r,n,s){return!r.sanitizeName||Wm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function kq(t,e){let r="";e.format&&(r=KZe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let a=e.stopNodes[i];typeof a=="string"?n.push(new ni(a)):a instanceof ni&&n.push(a)}let s=XZe(t,e),o=new Dc;return ppe(t,e,r,o,n,s)}function ppe(t,e,r,n,s,o){let i="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=Dq(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],d=Lq(l);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:dpe(d,!1,e,n,o),m=ZZe(l[":@"],e);n.push(p,m);let g=tet(n,s);if(p===e.textNodeName){let v=l[d];g||(v=e.tagValueProcessor(p,v),v=Dq(v,e)),a&&(i+=r),i+=v,a=!1,n.pop();continue}else if(p===e.cdataPropName){a&&(i+=r);let v=l[d][0][e.textNodeName],Q=MR(v);i+=`<![CDATA[${Q}]]>`,a=!1,n.pop();continue}else if(p===e.commentPropName){let v=l[d][0][e.textNodeName],Q=OR(v);i+=r+`<!--${Q}-->`,a=!0,n.pop();continue}else if(p[0]==="?"){let v=upe(l[":@"],e,g,n,o);i+=(p==="?xml"?"":r)+`<${p}${v}?>`,a=!0,n.pop();continue}let E=r;E!==""&&(E+=e.indentBy);let w=upe(l[":@"],e,g,n,o),x=r+`<${p}${w}`,S;g?S=mpe(l[d],e):S=ppe(l[d],e,E,n,s,o),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?i+=x+">":i+=x+"/>":(!S||S.length===0)&&e.suppressEmptyNode?i+=x+"/>":S&&S.endsWith(">")?i+=x+`>${S}${r}</${p}>`:(i+=x+">",S&&r!==""&&(S.includes("/>")||S.includes("</"))?i+=r+e.indentBy+S+r:i+=S,i+=`</${p}>`),a=!0,n.pop()}return i}function ZZe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=Jd(t[s]),n=!0}return n?r:null}function mpe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],o=Lq(s);if(o===e.textNodeName)r+=s[o];else if(o===e.cdataPropName)r+=s[o][0][e.textNodeName];else if(o===e.commentPropName)r+=s[o][0][e.textNodeName];else{if(o&&o[0]==="?")continue;if(o){let i=eet(s[":@"],e),a=mpe(s[o],e);!a||a.length===0?r+=`<${o}${i}/>`:r+=`<${o}${i}>${a}</${o}>`}}}return r}function eet(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Jd(s)}"`}return r}function Lq(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}function upe(t,e,r,n,s){let o="";if(t&&!e.ignoreAttributes)for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=i.substr(e.attributeNamePrefix.length),c=r?a:dpe(a,!0,e,n,s),l;r?l=t[i]:(l=e.attributeValueProcessor(i,t[i]),l=Dq(l,e)),l===!0&&e.suppressBooleanAttributes?o+=` ${c}`:o+=` ${c}="${Jd(l)}"`}return o}function tet(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 Dq(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}function Oq(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 ret={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-06-03 22:35:08 +00:00
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function net(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function Mq(t,e,r,n,s){return!r.sanitizeName||Wm(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}Eo.prototype.build=function(t){if(this.options.preserveOrder)return kq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Dc,r=net(t,this.options);return this.j2x(t,0,e,r).val}};Eo.prototype.j2x=function(t,e,r,n){let s="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let d=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:Mq(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(o+="");else if(t[c]===null)this.isAttribute(c)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[c]instanceof Date)o+=this.buildTextValNode(t[c],d,"",e,r);else if(typeof t[c]!="object"){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,i)){let p=Mq(u,!0,this.options,r,n);s+=this.buildAttrPairStr(p,""+t[c],a)}else if(!u)if(c===this.options.textNodeName){let p=this.options.tagValueProcessor(c,""+t[c]);o+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[c];m===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+m+"</"+d+this.tagEndChar}else o+=this.buildTextValNode(t[c],d,"",e,r)}}else if(Array.isArray(t[c])){let u=t[c].length,p="",m="";for(let g=0;g<u;g++){let E=t[c][g];if(!(typeof E>"u"))if(E===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){r.push(d);let w=this.j2x(E,e+1,r,n);r.pop(),p+=w.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(m+=w.attrStr)}else p+=this.processTextOrObjNode(E,d,e,r,n);else if(this.options.oneListGroup){let w=this.options.tagValueProcessor(d,E);w=this.replaceEntitiesValue(w),p+=w}else{r.push(d);let w=this.checkStopNode(r);if(r.pop(),w){let x=""+E;x===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+x+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(E,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,m,e)),o+=p}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let u=Object.keys(t[c]),p=u.length;for(let m=0;m<p;m++){let g=Mq(u[m],!0,this.options,r,n);s+=this.buildAttrPairStr(g,""+t[c][u[m]],a)}}else o+=this.processTextOrObjNode(t[c],d,e,r,n)}return{attrStr:s,val:o}};Eo.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+'="'+Jd(e)+'"'};function set(t,e,r,n,s){let o=this.extractAttributes(t);if(n.push(e,o),this.checkStopNode(n)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}Eo.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e
`)+`
2026-06-03 22:35:08 +00:00
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ot.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ot.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ot.PREFIX_FOR_STORAGE));r.sort((s,o)=>jR(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,i)=>!(o>0&&s.name.toLowerCase()===i[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=VR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=YR(e.url),o={};if(s){let i=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();o[c]=s[a],i.push(c)}i.sort();for(let a of i)n+=`
${a}:${decodeURIComponent(o[a])}`}return n}};var Hr=class extends Km{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new bI(e,r,this)}computeHMACSHA256(e){return(0,Ipe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Rn=Pc("storage-common");var Oi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Oi||(Oi={}));var Xd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Oi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},fet=new ei("The operation was aborted."),SI=class extends kc{retryOptions;constructor(e,r,n=Xd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Xd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Xd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Xd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Xd.maxRetryDelayInMs):Xd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Xd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Xd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=zR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Kd(s.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let i;try{if(Rn.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`),i=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,i))return i;r=r||!o&&i.status===404}catch(a){if(Rn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(o,n,i,a))throw a}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Rn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let i of o)if(s.name.toUpperCase().includes(i)||s.message.toUpperCase().includes(i)||s.code&&s.code.toString().toUpperCase()===i)return Rn.info(`RetryPolicy: Network error ${i} found, will retry.`),!0}if(n||s){let i=n?n.status:s?s.statusCode:0;if(!e&&i===404)return Rn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(i===503||i===500)return Rn.info(`RetryPolicy: Will retry for status code ${i}.`),!0}if(n&&n?.status>=400){let i=n.headers.get(ot.X_MS_CopySourceErrorCode);if(i!==void 0)switch(i){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Rn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Oi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Oi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Rn.info(`RetryPolicy: Delay for ${s}ms`),WR(s,n,fet)}};var BI=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new SI(e,r,this.retryOptions)}};var Aet="storageBrowserPolicy";function xpe(){return{name:Aet,async sendRequest(t,e){return zt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Kd(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ot.COOKIE),t.headers.delete(ot.CONTENT_LENGTH)),e(t)}}}var het="StorageCorrectContentLengthPolicy";function wpe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ot.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:het,async send
`)+`
2026-06-03 22:35:08 +00:00
`+n(o)+s(o),a=(0,Spe.createHmac)("sha256",t.accountKey).update(i,"utf8").digest("base64");o.headers.set(ot.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(o,i){let a=o.headers.get(i);return!a||i===ot.CONTENT_LENGTH&&a==="0"?"":a}function n(o){let i=[];for(let[c,l]of o.headers)c.toLowerCase().startsWith(ot.PREFIX_FOR_STORAGE)&&i.push({name:c,value:l});i.sort((c,l)=>jR(c.name.toLowerCase(),l.name.toLowerCase())),i=i.filter((c,l,d)=>!(l>0&&c.name.toLowerCase()===d[l-1].name.toLowerCase()));let a="";return i.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(o){let i=VR(o.url)||"/",a="";a+=`/${t.accountName}${i}`;let c=YR(o.url),l={};if(c){let d=[];for(let u in c)if(Object.prototype.hasOwnProperty.call(c,u)){let p=u.toLowerCase();l[p]=c[u],d.push(p)}d.sort();for(let u of d)a+=`
${u}:${decodeURIComponent(l[u])}`}return a}return{name:Cet,async sendRequest(o,i){return e(o),i(o)}}}var Iet="storageRequestFailureDetailsParserPolicy";function Bpe(){return{name:Iet,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 Rpe=require("node:crypto"),JR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Rpe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var KR="12.31.0",XR="2026-02-06";var ZR="https://storage.azure.com/.default",xu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Qa="",Hq="*",xet=1*1024*1024;var wet=4*xet;var Npe="AES256",Tpe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ppe=["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"],vpe=["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"],_pe="BlobUsesCustomerSpecifiedEncryption",Qpe="BlobDoesNotUseCustomerSpecifiedEncryption",Dpe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wu(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 RI=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function sn(t,e={}){t||(t=new xr);let r=new RI([],e);return r._credential=t,r}function bet(t){let e=[Bet,kpe,Ret,Net,Tet,Pet,_et];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>vet(s));return{wrappedPolicies:Eq(r),afterRetry:n}}}}function zq(t)
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Ma(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function Brt(t,e){if(t=af(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Vt(t.startsOn,!1):"",t.expiresOn?Vt(t.expiresOn,!1):"",of(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Ma(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:o}}function Rrt(t,e){if(t=af(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Vt(t.startsOn,!1):"",t.expiresOn?Vt(t.expiresOn,!1):"",of(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Ma(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,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}function Nrt(t,e){if(t=af(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Vt(t.startsOn,!1):"",t.expiresOn?Vt(t.expiresOn,!1):"",of(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Ma(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,e.userDelegationKey),stringToSign:o}}function Trt(t,e){if(t=af(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Vt(t.startsOn,!1):"",t.expiresOn?Vt(t.expiresOn,!1):"",of(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Ma(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}function Prt(t,e){if(t=af(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Vt(t.startsOn,!1):"",t.expiresOn?Vt(t.expiresOn,!1):"",of(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Ma(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}function vrt(t,e){if(t=af(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Xc.parse(t.permissions.toString()).toString():s=Zc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?Vt(t.startsOn,!1):"",t.expiresOn?Vt(t.expiresOn,!1):"",of(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Vt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Vt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Oa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),i=e.computeHMACSHA256(o);return{sasQueryParameters:new Ma(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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}function of(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function af(t){let e=t.version?t.version:XR;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 FI=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=jh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Qa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Qa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ye(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Qa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Qa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return _e.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ye(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Qa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Qa||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"}};Ag.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var df=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};df.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var jI=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Nnt=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},_z=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ft(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Mfe(t,e,r){return Nnt(this,void 0,void 0,function*(){var n;let s=new Pu(t),o=s.getBlockBlobClient(),i=new _z((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:i.onProgress()};try{i.startDisplayTimer(),X(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield o.uploadFile(e,a);if(c._response.status>=400)throw new nT(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw tn(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{i.stopDisplayTimer()}})}var Ufe=L(require("buffer"),1),el=L(require("fs"),1),qfe=L(require("stream"),1),$fe=L(require("util"),1);var sT=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function oT(t){return t?t>=200&&t<300:!1}function Tnt(t){return t?t>=500:!0}function Pnt(t){return t?[Gr.BadGateway,Gr.ServiceUnavailable,Gr.GatewayTimeout].includes(t):!1}function vnt(t){return sT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Ffe(t,e,r){return sT(this,arguments,void 0,function*(n,s,o,i=PB,a=vB,c=void 0){let l="",d=1;for(;d<=i;){let u,p,m=!1;try{u=yield s()}catch(g){c&&(u=c(g)),m=!0,l=g.message}if(u&&(p=o(u),!Tnt(p)))return u;if(p&&(m=Pnt(p),l=`Cache service responded with ${p}`),X(`${n} - Attempt ${d} of ${i} failed with error: ${l}`),!m){X(`${n} - Error is not retryable`);break}yield vnt(a),d++}throw Error(`${n} failed: ${l}`)})}function JI(t,e){return sT(this,arguments,void 0,function*(r,n,s=PB,o=vB){return yield Ffe(r,n,i=>i.statusCode,s,o,i=>{if(i instanceof Bc)return{statusCode:i.statusCode,result:null,headers:{},error:i}})})}function hg(t,e){return sT(this,arguments,void 0,function*(r,n,s=PB,o=vB){return yield Ffe(r,n,i=>i.message.statusCode,s,o)})}var $i=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})};function _nt(t,e){return $i(this,void 0,void 0,function*(){yield $fe.promisify(qfe.pipeline)(t.message,e)})}var iT=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.
Other caches with similar key:`);for(let a of o?.artifactCaches||[])X(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function Lz(t,e,r){return Io(this,void 0,void 0,function*(){let n=new Xfe.URL(t),s=Vfe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Hfe(t,e,s):s.concurrentBlobDownloads?yield Gfe(t,e,s):yield aT(t,e):yield aT(t,e)})}function eAe(t,e,r){return Io(this,void 0,void 0,function*(){let n=kz(),s=Uh(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield JI("reserveCache",()=>Io(this,void 0,void 0,function*(){return n.postJson(XI("caches"),o)}))})}function Kfe(t,e){return`bytes ${t}-${e}/*`}function Unt(t,e,r,n,s){return Io(this,void 0,void 0,function*(){X(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Kfe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":Kfe(n,s)},i=yield hg(`uploadChunk (start: ${n}, end: ${s})`,()=>Io(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!oT(i.message.statusCode))throw new Error(`Cache service responded with ${i.message.statusCode} during upload chunk.`)})}function qnt(t,e,r,n){return Io(this,void 0,void 0,function*(){let s=Sc(r),o=XI(`caches/${e.toString()}`),i=gg.openSync(r,"r"),a=Qz(n),c=l2("uploadConcurrency",a.uploadConcurrency),l=l2("uploadChunkSize",a.uploadChunkSize),d=[...new Array(c).keys()];X("Awaiting all uploads");let u=0;try{yield Promise.all(d.map(()=>Io(this,void 0,void 0,function*(){for(;u<s;){let p=Math.min(s-u,l),m=u,g=u+p-1;u+=l,yield Unt(t,o,()=>gg.createReadStream(r,{fd:i,start:m,end:g,autoClose:!1}).on("error",E=>{throw new Error(`Cache upload failed because file read failed with ${E.message}`)}),m,g)}})))}finally{gg.closeSync(i)}})}function $nt(t,e,r){return Io(this,void 0,void 0,function*(){let n={size:r};return yield JI("commitCache",()=>Io(this,void 0,void 0,function*(){return t.postJson(XI(`caches/${e.toString()}`),n)}))})}function Oz(t,e,r,n){return Io(this,void 0,void 0,function*(){if(Qz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Mfe(r,e,n)}else{let o=kz();X("Upload cache"),yield qnt(o,t,e,n),X("Commiting cache");let i=Sc(e);ft(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield $nt(o,t,i);if(!oT(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ft("Cache saved successfully")}})}var WAe=L(qAe(),1),cn=L(an(),1),ii=L(an(),1),hf=L(an(),1),gf=L(an(),1),yf=L(an(),1);var v3=L(an(),1),_3=L(an(),1),zAe=L(an(),1),VAe=L(an(),1),YAe=L(an(),1);var N3=L(an(),1),T3=L(an(),1),$Ae=L(an(),1),GAe=L(an(),1),HAe=L(an(),1),P3=class extends HAe.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,GAe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$Ae.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),i=e.pos+r;for(;e.pos<i;){let[a,c]=e.tag();switch(a){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let l=n.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let d=e.skip(c);l!==!1&&(l===!0?T3.UnknownFieldHandler.onRead:l)(this.typeName,o,a,c,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,N3.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,N3.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?T3.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},WT=new P3;var Q3=class extends YAe.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:()=>WT}])}create(e){let r={repositoryId:"0",scope:[]
`));let n=yield W3(r,"create");yield j3(n,t)})}var Dg=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function a(d){try{l(n.next(d))}catch(u){i(u)}}function c(d){try{l(n.throw(d))}catch(u){i(u)}}function l(d){d.done?o(d.value):s(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})},qa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Qg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},XT=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function XAe(t){if(!t||t.length===0)throw new qa("Path Validation Error: At least one directory or file path is required")}function X3(t){if(t.length>512)throw new qa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qa(`Key Validation Error: ${t} cannot contain commas.`)}function Z3(){return KI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function ZAe(t,e,r,n){return Dg(this,arguments,void 0,function*(s,o,i,a,c=!1){let l=KI();return X(`Cache service version: ${l}`),XAe(s),l==="v2"?yield nit(s,o,i,a,c):yield rit(s,o,i,a,c)})}function rit(t,e,r,n){return Dg(this,arguments,void 0,function*(s,o,i,a,c=!1){i=i||[];let l=[o,...i];if(X("Resolved Keys:"),X(JSON.stringify(l)),l.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of l)X3(p);let d=yield JC(),u="";try{let p=yield Zfe(l,s,{compressionMethod:d,enableCrossOsArchive:c});if(!p?.archiveLocation)return;if(a?.lookupOnly)return ft("Lookup only - skipping download"),p.cacheKey;u=fx.join(yield WC(),Gd(d)),X(`Archive Path: ${u}`),yield Lz(p.archiveLocation,u,a),vm()&&(yield mx(u,d));let m=Sc(u);return ft(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield J3(u,d),ft("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===qa.name)throw p;m instanceof Bc&&typeof m.statusCode=="number"&&m.statusCode>=500?Th(`Failed to restore: ${p.message}`):tn(`Failed to restore: ${p.message}`)}finally{try{yield jC(u)}catch(p){X(`Failed to delete archive: ${p}`)}}})}function nit(t,e,r,n){return Dg(this,arguments,void 0,function*(s,o,i,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),i=i||[];let l=[o,...i];if(X("Resolved Keys:"),X(JSON.stringify(l)),l.length>10)throw new qa("Key Validation Error: Keys are limited to a maximum of 10.");for(let u of l)X3(u);let d="";try{let u=Y3(),p=yield JC(),m={key:o,restoreKeys:i,version:Uh(s,p,c)},g=yield u.GetCacheEntryDownloadURL(m);if(!g.ok){X(`Cache not found for version ${m.version} of keys: ${l.join(", ")}`);return}if(m.key!==g.matchedKey?ft(`Cache hit for restore-key: ${g.matchedKey}`):ft(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return ft("Lookup only - skipping download"),g.matchedKey;d=fx.join(yield WC(),Gd(p)),X(`Archive path: ${d}`),X(`Starting download of archive to: ${d}`),yield Lz(g.signedDownloadUrl,d,a);let w=Sc(d);return ft(`Cache Size: ~${Math.round(w/(1024*1024))} MB (${w} B)`),vm()&&(yield mx(d,p)),yield J3(d,p),ft("Cache restored successfully"),g.matchedKey}catch(u){let p=u;if(p.name===qa.name)throw u;p instanceof Bc&&typeof p.statusCode=="number"&&p.statusCode>=500?Th(`Failed to restore: ${u.message}`):tn(`Failed to restore: ${u.message}`)}finally{try{d&&(yield jC(d))}catch(u){X(`Failed to delete archive: ${u}`)}}})}function eV(t,e,r){return Dg(this,arguments,void 0,function*(n,s,o,i=!1){let a=KI();return X(`Cache service version: ${a}`),XAe(n),X3(s),a==="v2"?yield oit(n,s,o,i):yield sit(n,s,o,i)})}function sit(t,e,r){return Dg(this,arguments,void 0,function*(n,s,o,i=!1){var a,c,l,d,u;let p=yield JC(),m=-1,g=yield c2(n);if(X("Cache Paths:"),X(`${JSON.stringify(g)}`),g.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 E=yield WC(),w=fx.join(E,Gd(p));X(`Archive Path: ${w}`)
2026-06-03 22:35:08 +00:00
`+s.mark.snippet),a+" "+i):a}function n(s,o){Error.call(this),this.name="YAMLException",this.reason=s,this.mark=o,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(o){return this.name+": "+r(this,o)},e.exports=n})),Ait=fr(((t,e)=>{var r=Ax();function n(i,a,c,l,d){let u="",p="",m=Math.floor(d/2)-1;return l-a>m&&(u=" ... ",a=l-m+u.length),c-l>m&&(p=" ...",c=l+m-p.length),{str:u+i.slice(a,c).replace(/\t/g,"\u2192")+p,pos:l-a+u.length}}function s(i,a){return r.repeat(" ",a-i.length)+i}function o(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);let c=/\r?\n|\r|\0/g,l=[0],d=[],u,p=-1;for(;u=c.exec(i.buffer);)d.push(u.index),l.push(u.index+u[0].length),i.position<=u.index&&p<0&&(p=l.length-2);p<0&&(p=l.length-1);let m="",g=Math.min(i.line+a.linesAfter,d.length).toString().length,E=a.maxLength-(a.indent+g+3);for(let x=1;x<=a.linesBefore&&!(p-x<0);x++){let S=n(i.buffer,l[p-x],d[p-x],i.position-(l[p]-l[p-x]),E);m=r.repeat(" ",a.indent)+s((i.line-x+1).toString(),g)+" | "+S.str+`
`+m}let w=n(i.buffer,l[p],d[p],i.position,E);m+=r.repeat(" ",a.indent)+s((i.line+1).toString(),g)+" | "+w.str+`
`,m+=r.repeat("-",a.indent+g+3+w.pos)+`^
`;for(let x=1;x<=a.linesAfter&&!(p+x>=d.length);x++){let S=n(i.buffer,l[p+x],d[p+x],i.position-(l[p]-l[p+x]),E);m+=r.repeat(" ",a.indent)+s((i.line+x+1).toString(),g)+" | "+S.str+`
`}return m.replace(/\n$/,"")}e.exports=o})),zs=fr(((t,e)=>{var r=hx(),n=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];function o(a){let c={};return a!==null&&Object.keys(a).forEach(function(l){a[l].forEach(function(d){c[String(d)]=l})}),c}function i(a,c){if(c=c||{},Object.keys(c).forEach(function(l){if(n.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+a+'" YAML type.')}),this.options=c,this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=o(c.styleAliases||null),s.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}e.exports=i})),she=fr(((t,e)=>{var r=hx(),n=zs();function s(a,c){let l=[];return a[c].forEach(function(d){let u=l.length;l.forEach(function(p,m){p.tag===d.tag&&p.kind===d.kind&&p.multi===d.multi&&(u=m)}),l[u]=d}),l}function o(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){l.multi?(a.multi[l.kind].push(l),a.multi.fallback.push(l)):a[l.kind][l.tag]=a.fallback[l.tag]=l}for(let l=0,d=arguments.length;l<d;l+=1)arguments[l].forEach(c);return a}function i(a){return this.extend(a)}i.prototype.extend=function(c){let l=[],d=[];if(c instanceof n)d.push(c);else if(Array.isArray(c))d=d.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit)))c.implicit&&(l=l.concat(c.implicit)),c.explicit&&(d=d.concat(c.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(p){if(!(p instanceof n))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(p.loadKind&&p.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(p.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(p){if(!(p instanceof n))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let u=Object.create(i.prototype);return u.implicit=(this.implicit||[]).concat(l),u.explicit=(this.explicit||[]).concat(d),u.compiledImplicit=s(u,"implicit"),u.compiledExplicit=s(u,"explicit"),u.compiledTypeMap=o(u.compiledImplicit,u.compiledExplicit),u},e.exports=i})),ohe=fr(((t,e)=>{e.exports=new(zs())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})})),ihe=fr(((t,e)=>{e.exports=new(zs())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})})),ahe=fr(((t,e)=>{e.exports=new(zs())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})})),che=fr(((t,e)=>{e.exports=new(she())({explicit:[ohe(),ihe(),ahe()]})})),lhe=fr(((t,e)=>{var r=zs();function n(i){if(i===null)return!0;let a=i.length;return a===1&&i==="~"||a===4&&(i==="null"||i==="Null"||i==="NULL")}function s(){return null}function o(i){return i===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:n,construct:s,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})})),uhe=fr(((t,e)=>{var r=zs();function n(i){if(i===null)return!1;let a=i.length;return a===4&&(i==="true"||i==="True"||i==="TRUE")||a===5&&(i==="false"||i==="False"||i==="FALSE")}function s(i){return i==="true"||i==="True"||i==="TRUE"}function o(i){return Object.prototype.toString.call(i)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scal
\r`;function s(c){if(c===null)return!1;let l=0,d=c.length,u=n;for(let p=0;p<d;p++){let m=u.indexOf(c.charAt(p));if(!(m>64)){if(m<0)return!1;l+=6}}return l%8===0}function o(c){let l=c.replace(/[\r\n=]/g,""),d=l.length,u=n,p=0,m=[];for(let E=0;E<d;E++)E%4===0&&E&&(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)),p=p<<6|u.indexOf(l.charAt(E));let g=d%4*6;return g===0?(m.push(p>>16&255),m.push(p>>8&255),m.push(p&255)):g===18?(m.push(p>>10&255),m.push(p>>2&255)):g===12&&m.push(p>>4&255),new Uint8Array(m)}function i(c){let l="",d=0,u=c.length,p=n;for(let g=0;g<u;g++)g%3===0&&g&&(l+=p[d>>18&63],l+=p[d>>12&63],l+=p[d>>6&63],l+=p[d&63]),d=(d<<8)+c[g];let m=u%3;return m===0?(l+=p[d>>18&63],l+=p[d>>12&63],l+=p[d>>6&63],l+=p[d&63]):m===2?(l+=p[d>>10&63],l+=p[d>>4&63],l+=p[d<<2&63],l+=p[64]):m===1&&(l+=p[d>>2&63],l+=p[d<<4&63],l+=p[64],l+=p[64]),l}function a(c){return Object.prototype.toString.call(c)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s,construct:o,predicate:a,represent:i})})),yhe=fr(((t,e)=>{var r=zs(),n=Object.prototype.hasOwnProperty,s=Object.prototype.toString;function o(a){if(a===null)return!0;let c=[],l=a;for(let d=0,u=l.length;d<u;d+=1){let p=l[d],m=!1;if(s.call(p)!=="[object Object]")return!1;let g;for(g in p)if(n.call(p,g))if(!m)m=!0;else return!1;if(!m)return!1;if(c.indexOf(g)===-1)c.push(g);else return!1}return!0}function i(a){return a!==null?a:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:o,construct:i})})),Ehe=fr(((t,e)=>{var r=zs(),n=Object.prototype.toString;function s(i){if(i===null)return!0;let a=i,c=new Array(a.length);for(let l=0,d=a.length;l<d;l+=1){let u=a[l];if(n.call(u)!=="[object Object]")return!1;let p=Object.keys(u);if(p.length!==1)return!1;c[l]=[p[0],u[p[0]]]}return!0}function o(i){if(i===null)return[];let a=i,c=new Array(a.length);for(let l=0,d=a.length;l<d;l+=1){let u=a[l],p=Object.keys(u);c[l]=[p[0],u[p[0]]]}return c}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:s,construct:o})})),Che=fr(((t,e)=>{var r=zs(),n=Object.prototype.hasOwnProperty;function s(i){if(i===null)return!0;let a=i;for(let c in a)if(n.call(a,c)&&a[c]!==null)return!1;return!0}function o(i){return i!==null?i:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:s,construct:o})})),nV=fr(((t,e)=>{e.exports=fhe().extend({implicit:[Ahe(),hhe()],explicit:[ghe(),yhe(),Ehe(),Che()]})})),hit=fr(((t,e)=>{var r=Ax(),n=hx(),s=Ait(),o=nV(),i=Object.prototype.hasOwnProperty,a=1,c=2,l=3,d=4,u=1,p=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=/[\x85\u2028\u2029]/,w=/[,\[\]{}]/,x=/^(?:!|!!|![0-9A-Za-z-]+!)$/,S=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function v(A){return Object.prototype.toString.call(A)}function Q(A){return A===10||A===13}function $(A){return A===9||A===32}function F(A){return A===9||A===32||A===10||A===13}function ee(A){return A===44||A===91||A===93||A===123||A===125}function Ce(A){if(A>=48&&A<=57)return A-48;let k=A|32;return k>=97&&k<=102?k-97+10:-1}function He(A){return A===120?2:A===117?4:A===85?8:0}function De(A){return A>=48&&A<=57?A-48:-1}function le(A){switch(A){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function Ne(A){return A<=65535?String.fromCharCode(A):String.fromCharCode((A-65536>>10)+55296,(A-65536&1023)+56320)}function J(A,k,G){k==="__proto__"?Object.defineProperty(A,k,{configurable:!0,enumerable:!0,writable:!0,value:G}):A[k]=G}var me=new Array(256),St=new Array(256);for(let A=0;A<256;A++)me[A]=le(A)?1:0,St[A]=le(A);function Le(A,k){this.input=A,this.filename=k.filename||null,this.schema=k.schema||o,this.onWarning=k.onWarning||null,this.legacy=k.legacy||!1,this.json=k.json||!1,this.listener=k.listener||null,this.maxDepth=typeof k.maxDepth=="number"?k.maxDepth:100,this.maxMergeSeqLength=typeof k.maxMergeSeqLength=="number"?k.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=A.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function Dt(A,k){let G={name:A.filename,buffer:A.input.slice(0,-1),position:A.position,line:A.line,column:A.position-A.lineStart};return G.snippet=s(G),new n(k,G)}function ue(A,k){throw Dt(A,k)}function Ur(A,k){A.onWarning&&A.onWarning.call(null,Dt(A,k))}function qr(A,k,G){let W=A.anchorMapTransactions;if(W.length!==0){let q=W[W.length-1];i.call(q,k)||(q[k]={existed:i.call(A.anchorMap,k),value:A.anchorMap[k]})}A.anchorMap[k]=G}function ko(A){A.anchorMapTransactions.push(Object.create(null))}function us(A){let k=A.anchorMapTransactions.pop(),G=A.anchorMapTransactions;if(G.length===0)return;let W=G[G.length-1],q=Object.keys(k);for(let ne=0,B=q.length;ne<B;ne+=1){let O=q[ne];i.call(W,O)||(W[O]=k[O])}}function fE(A){let k=A.anchorMapTransactions.pop(),G=Object.keys(k);for(let W=G.length-1;W>=0;W-=1){let q=k[G[W]];q.existed?A.anchorMap[G[W]]=q.value:delete A.anchorMap[G[W]]}}function Kl(A){return{position:A.position,line:A.line,lineStart:A.lineStart,lineIndent:A.lineIndent,firstTabInLine:A.firstTabInLine,tag:A.tag,anchor:A.anchor,kind:A.kind,result:A.result}}function Lo(A,k){A.position=k.position,A.line=k.line,A.lineStart=k.lineStart,A.lineIndent=k.lineIndent,A.firstTabInLine=k.firstTabInLine,A.tag=k.tag,A.anchor=k.anchor,A.kind=k.kind,A.result=k.result}var IA={YAML:function(k,G,W){k.version!==null&&ue(k,"duplication of %YAML directive"),W.length!==1&&ue(k,"YAML directive accepts exactly one argument");let q=/^([0-9]+)\.([0-9]+)$/.exec(W[0]);q===null&&ue(k,"ill-formed argument of the YAML directive");let ne=parseInt(q[1],10),B=parseInt(q[2],10);ne!==1&&ue(k,"unacceptable YAML version of the document"),k.version=W[0],k.checkLineBreaks=B<2,B!==1&&B!==2&&Ur(k,"unsupported YAML version of the document")},TAG:function(k,G,W){let q;W.length!==2&&ue(k,"TAG directive accepts exactly two arguments");let ne=W[0];q=W[1],x.test(ne)||ue(k,"ill-formed tag handle (first argument) of the TAG directive"),i.call(k.tagMap,ne)&&ue(k,'there is a previously declared suffix for "'+ne+'" tag handle'),S.test(q)||ue(k,"ill-formed tag prefix (second argument) of the TAG directive");try{q=decodeURIComponent(q)}catch{ue(k,"tag prefix is malformed: "+q)}k.tagMap[ne]=q}};function Ns(A,k,G,W){if(k<G){let q=A.input.slice(k,G);if(W)for(let ne=0,B=q.length;ne<B;ne+=1){let O=q.charCodeAt(ne);O===9||O>=32&&O<=1114111||ue(A,"expected valid JSON character")}else g.test(q)&&ue(A,"the stream contains non-printable characters");A.result+=q}}function Aa(A,k,G,W){r.isObject(G)||ue(A,"cannot merge mappings; the provided source object is unacceptable");let q=Object.keys(G);for(let ne=0,B=q.length;ne<B;ne+=1){let O=q[ne];i.call(k,O)||(J(k,O,G[O]),W[O]=!0)}}function ha(A,k,G,W,q,ne,B,O,te){if(Array.isArray(q)){q=Array.prototype.slice.call(q);for(let V=0,j=q.length;V<j;V+=1)Array.isArray(q[V])&&ue(A,"nested arrays are not supported inside keys"),typeof q=="object"&&v(q[V])==="[object Object]"&&(q[V]="[object Object
`,k-1))}function Xl(A,k,G){let W,q,ne,B,O,te,V=A.kind,j=A.result,re=A.input.charCodeAt(A.position);if(F(re)||ee(re)||re===35||re===38||re===42||re===33||re===124||re===62||re===39||re===34||re===37||re===64||re===96)return!1;if(re===63||re===45){let Z=A.input.charCodeAt(A.position+1);if(F(Z)||G&&ee(Z))return!1}for(A.kind="scalar",A.result="",W=q=A.position,ne=!1;re!==0;){if(re===58){let Z=A.input.charCodeAt(A.position+1);if(F(Z)||G&&ee(Z))break}else if(re===35){if(F(A.input.charCodeAt(A.position-1)))break}else{if(A.position===A.lineStart&&lc(A)||G&&ee(re))break;if(Q(re))if(B=A.line,O=A.lineStart,te=A.lineIndent,ur(A,!1,-1),A.lineIndent>=k){ne=!0,re=A.input.charCodeAt(A.position);continue}else{A.position=q,A.line=B,A.lineStart=O,A.lineIndent=te;break}}ne&&(Ns(A,W,q,!1),Yn(A,A.line-B),W=q=A.position,ne=!1),$(re)||(q=A.position+1),re=A.input.charCodeAt(++A.position)}return Ns(A,W,q,!1),A.result?!0:(A.kind=V,A.result=j,!1)}function pd(A,k){let G,W,q=A.input.charCodeAt(A.position);if(q!==39)return!1;for(A.kind="scalar",A.result="",A.position++,G=W=A.position;(q=A.input.charCodeAt(A.position))!==0;)if(q===39)if(Ns(A,G,A.position,!0),q=A.input.charCodeAt(++A.position),q===39)G=A.position,A.position++,W=A.position;else return!0;else Q(q)?(Ns(A,G,W,!0),Yn(A,ur(A,!1,k)),G=W=A.position):A.position===A.lineStart&&lc(A)?ue(A,"unexpected end of the document within a single quoted scalar"):(A.position++,$(q)||(W=A.position));ue(A,"unexpected end of the stream within a single quoted scalar")}function xn(A,k){let G,W,q,ne=A.input.charCodeAt(A.position);if(ne!==34)return!1;for(A.kind="scalar",A.result="",A.position++,G=W=A.position;(ne=A.input.charCodeAt(A.position))!==0;){if(ne===34)return Ns(A,G,A.position,!0),A.position++,!0;if(ne===92){if(Ns(A,G,A.position,!0),ne=A.input.charCodeAt(++A.position),Q(ne))ur(A,!1,k);else if(ne<256&&me[ne])A.result+=St[ne],A.position++;else if((q=He(ne))>0){let B=q,O=0;for(;B>0;B--)ne=A.input.charCodeAt(++A.position),(q=Ce(ne))>=0?O=(O<<4)+q:ue(A,"expected hexadecimal character");A.result+=Ne(O),A.position++}else ue(A,"unknown escape sequence");G=W=A.position}else Q(ne)?(Ns(A,G,W,!0),Yn(A,ur(A,!1,k)),G=W=A.position):A.position===A.lineStart&&lc(A)?ue(A,"unexpected end of the document within a double quoted scalar"):(A.position++,$(ne)||(W=A.position))}ue(A,"unexpected end of the stream within a double quoted scalar")}function xA(A,k){let G=!0,W,q,ne,B=A.tag,O,te=A.anchor,V,j,re,Z,Ie=Object.create(null),ye,Oe,ze,Rt=A.input.charCodeAt(A.position);if(Rt===91)V=93,Z=!1,O=[];else if(Rt===123)V=125,Z=!0,O={};else return!1;for(A.anchor!==null&&qr(A,A.anchor,O),Rt=A.input.charCodeAt(++A.position);Rt!==0;){if(ur(A,!0,k),Rt=A.input.charCodeAt(A.position),Rt===V)return A.position++,A.tag=B,A.anchor=te,A.kind=Z?"mapping":"sequence",A.result=O,!0;G?Rt===44&&ue(A,"expected the node content, but found ','"):ue(A,"missed comma between flow collection entries"),Oe=ye=ze=null,j=re=!1,Rt===63&&F(A.input.charCodeAt(A.position+1))&&(j=re=!0,A.position++,ur(A,!0,k)),W=A.line,q=A.lineStart,ne=A.position,ya(A,k,a,!1,!0),Oe=A.tag,ye=A.result,ur(A,!0,k),Rt=A.input.charCodeAt(A.position),(re||A.line===W)&&Rt===58&&(j=!0,Rt=A.input.charCodeAt(++A.position),ur(A,!0,k),ya(A,k,a,!1,!0),ze=A.result),Z?ha(A,O,Ie,Oe,ye,ze,W,q,ne):j?O.push(ha(A,null,Ie,Oe,ye,ze,W,q,ne)):O.push(ye),ur(A,!0,k),Rt=A.input.charCodeAt(A.position),Rt===44?(G=!0,Rt=A.input.charCodeAt(++A.position)):G=!1}ue(A,"unexpected end of the stream within a flow collection")}function wA(A,k){let G,W=u,q=!1,ne=!1,B=k,O=0,te=!1,V,j=A.input.charCodeAt(A.position);if(j===124)G=!1;else if(j===62)G=!0;else return!1;for(A.kind="scalar",A.result="";j!==0;)if(j=A.input.charCodeAt(++A.position),j===43||j===45)u===W?W=j===43?m:p:ue(A,"repeat of a chomping mode identifier");else if((V=De(j))>=0)V===0?ue(A,"bad explicit indentation width of a block scalar; it cannot be less than one"):ne?ue(A,"repeat of an indentation width identifier"):(B=k+V-1,ne=!0);else break;if($(j)){do j=A.input.charCodeAt(++A.position);while($(j));if(j===35)do j=A.input.charCodeAt(++A.position);while(!Q(j)&&j!==0
`,q?1+O:O):W===u&&q&&(A.result+=`
`);break}G?$(j)?(te=!0,A.result+=r.repeat(`
`,q?1+O:O)):te?(te=!1,A.result+=r.repeat(`
`,O+1)):O===0?q&&(A.result+=" "):A.result+=r.repeat(`
`,O):A.result+=r.repeat(`
`,q?1+O:O),q=!0,ne=!0,O=0;let re=A.position;for(;!Q(j)&&j!==0;)j=A.input.charCodeAt(++A.position);Ns(A,re,A.position,!1)}return!0}function ga(A,k){let G=A.tag,W=A.anchor,q=[],ne=!1;if(A.firstTabInLine!==-1)return!1;A.anchor!==null&&qr(A,A.anchor,q);let B=A.input.charCodeAt(A.position);for(;B!==0&&(A.firstTabInLine!==-1&&(A.position=A.firstTabInLine,ue(A,"tab characters must not be used in indentation")),!(B!==45||!F(A.input.charCodeAt(A.position+1))));){if(ne=!0,A.position++,ur(A,!0,-1)&&A.lineIndent<=k){q.push(null),B=A.input.charCodeAt(A.position);continue}let O=A.line;if(ya(A,k,l,!1,!0),q.push(A.result),ur(A,!0,-1),B=A.input.charCodeAt(A.position),(A.line===O||A.lineIndent>k)&&B!==0)ue(A,"bad indentation of a sequence entry");else if(A.lineIndent<k)break}return ne?(A.tag=G,A.anchor=W,A.kind="sequence",A.result=q,!0):!1}function bA(A,k,G){let W,q,ne,B,O=A.tag,te=A.anchor,V={},j=Object.create(null),re=null,Z=null,Ie=null,ye=!1,Oe=!1;if(A.firstTabInLine!==-1)return!1;A.anchor!==null&&qr(A,A.anchor,V);let ze=A.input.charCodeAt(A.position);for(;ze!==0;){!ye&&A.firstTabInLine!==-1&&(A.position=A.firstTabInLine,ue(A,"tab characters must not be used in indentation"));let Rt=A.input.charCodeAt(A.position+1),jt=A.line;if((ze===63||ze===58)&&F(Rt))ze===63?(ye&&(ha(A,V,j,re,Z,null,q,ne,B),re=Z=Ie=null),Oe=!0,ye=!0,W=!0):ye?(ye=!1,W=!0):ue(A,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),A.position+=1,ze=Rt;else{if(q=A.line,ne=A.lineStart,B=A.position,!ya(A,G,c,!1,!0))break;if(A.line===jt){for(ze=A.input.charCodeAt(A.position);$(ze);)ze=A.input.charCodeAt(++A.position);if(ze===58)ze=A.input.charCodeAt(++A.position),F(ze)||ue(A,"a whitespace character is expected after the key-value separator within a block mapping"),ye&&(ha(A,V,j,re,Z,null,q,ne,B),re=Z=Ie=null),Oe=!0,ye=!1,W=!1,re=A.tag,Z=A.result;else if(Oe)ue(A,"can not read an implicit mapping pair; a colon is missed");else return A.tag=O,A.anchor=te,!0}else if(Oe)ue(A,"can not read a block mapping entry; a multiline key may not be an implicit key");else return A.tag=O,A.anchor=te,!0}if((A.line===jt||A.lineIndent>k)&&(ye&&(q=A.line,ne=A.lineStart,B=A.position),ya(A,k,d,!0,W)&&(ye?Z=A.result:Ie=A.result),ye||(ha(A,V,j,re,Z,Ie,q,ne,B),re=Z=Ie=null),ur(A,!0,-1),ze=A.input.charCodeAt(A.position)),(A.line===jt||A.lineIndent>k)&&ze!==0)ue(A,"bad indentation of a mapping entry");else if(A.lineIndent<k)break}return ye&&ha(A,V,j,re,Z,null,q,ne,B),Oe&&(A.tag=O,A.anchor=te,A.kind="mapping",A.result=V),Oe}function AE(A){let k=!1,G=!1,W,q,ne=A.input.charCodeAt(A.position);if(ne!==33)return!1;A.tag!==null&&ue(A,"duplication of a tag property"),ne=A.input.charCodeAt(++A.position),ne===60?(k=!0,ne=A.input.charCodeAt(++A.position)):ne===33?(G=!0,W="!!",ne=A.input.charCodeAt(++A.position)):W="!";let B=A.position;if(k){do ne=A.input.charCodeAt(++A.position);while(ne!==0&&ne!==62);A.position<A.length?(q=A.input.slice(B,A.position),ne=A.input.charCodeAt(++A.position)):ue(A,"unexpected end of the stream within a verbatim tag")}else{for(;ne!==0&&!F(ne);)ne===33&&(G?ue(A,"tag suffix cannot contain exclamation marks"):(W=A.input.slice(B-1,A.position+1),x.test(W)||ue(A,"named tag handle cannot contain such characters"),G=!0,B=A.position+1)),ne=A.input.charCodeAt(++A.position);q=A.input.slice(B,A.position),w.test(q)&&ue(A,"tag suffix cannot contain flow indicator characters")}q&&!S.test(q)&&ue(A,"tag name cannot contain such characters: "+q);try{q=decodeURIComponent(q)}catch{ue(A,"tag name is malformed: "+q)}return k?A.tag=q:i.call(A.tagMap,W)?A.tag=A.tagMap[W]+q:W==="!"?A.tag="!"+q:W==="!!"?A.tag="tag:yaml.org,2002:"+q:ue(A,'undeclared tag handle "'+W+'"'),!0}function SA(A){let k=A.input.charCodeAt(A.position);if(k!==38)return!1;A.anchor!==null&&ue(A,"duplication of an anchor property"),k=A.input.charCodeAt(++A.position);let G=A.position;for(;k!==0&&!F(k)&&!ee(k);)k=A.input.charCodeAt(++A.position);return A.position===G&&ue(A,"name of an anchor node must contain at least one character"),A.anchor=A.input.slice(G,A.position),!0}function BA(A){let k=A.
`),A.charCodeAt(0)===65279&&(A=A.slice(1)));let G=new Le(A,k),W=A.indexOf("\0");for(W!==-1&&(G.position=W,ue(G,"null byte is not allowed in input")),G.input+="\0";G.input.charCodeAt(G.position)===32;)G.lineIndent+=1,G.position+=1;for(;G.position<G.length-1;)gE(G);return G.documents}function NA(A,k,G){k!==null&&typeof k=="object"&&typeof G>"u"&&(G=k,k=null);let W=RA(A,G);if(typeof k!="function")return W;for(let q=0,ne=W.length;q<ne;q+=1)k(W[q])}function yE(A,k){let G=RA(A,k);if(G.length!==0){if(G.length===1)return G[0];throw new n("expected a single document in the stream, but found more")}}e.exports.loadAll=NA,e.exports.load=yE})),git=fr(((t,e)=>{var r=Ax(),n=hx(),s=nV(),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=65279,c=9,l=10,d=13,u=32,p=33,m=34,g=35,E=37,w=38,x=39,S=42,v=44,Q=45,$=58,F=61,ee=62,Ce=63,He=64,De=91,le=93,Ne=96,J=123,me=124,St=125,Le={};Le[0]="\\0",Le[7]="\\a",Le[8]="\\b",Le[9]="\\t",Le[10]="\\n",Le[11]="\\v",Le[12]="\\f",Le[13]="\\r",Le[27]="\\e",Le[34]='\\"',Le[92]="\\\\",Le[133]="\\N",Le[160]="\\_",Le[8232]="\\L",Le[8233]="\\P";var Dt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ue=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ur(B,O){if(O===null)return{};let te={},V=Object.keys(O);for(let j=0,re=V.length;j<re;j+=1){let Z=V[j],Ie=String(O[Z]);Z.slice(0,2)==="!!"&&(Z="tag:yaml.org,2002:"+Z.slice(2));let ye=B.compiledTypeMap.fallback[Z];ye&&i.call(ye.styleAliases,Ie)&&(Ie=ye.styleAliases[Ie]),te[Z]=Ie}return te}function qr(B){let O,te,V=B.toString(16).toUpperCase();if(B<=255)O="x",te=2;else if(B<=65535)O="u",te=4;else if(B<=4294967295)O="U",te=8;else throw new n("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+O+r.repeat("0",te-V.length)+V}var ko=1,us=2;function fE(B){this.schema=B.schema||s,this.indent=Math.max(1,B.indent||2),this.noArrayIndent=B.noArrayIndent||!1,this.skipInvalid=B.skipInvalid||!1,this.flowLevel=r.isNothing(B.flowLevel)?-1:B.flowLevel,this.styleMap=Ur(this.schema,B.styles||null),this.sortKeys=B.sortKeys||!1,this.lineWidth=B.lineWidth||80,this.noRefs=B.noRefs||!1,this.noCompatMode=B.noCompatMode||!1,this.condenseFlow=B.condenseFlow||!1,this.quotingType=B.quotingType==='"'?us:ko,this.forceQuotes=B.forceQuotes||!1,this.replacer=typeof B.replacer=="function"?B.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Kl(B,O){let te=r.repeat(" ",O),V=0,j="",re=B.length;for(;V<re;){let Z,Ie=B.indexOf(`
`,V);Ie===-1?(Z=B.slice(V),V=re):(Z=B.slice(V,Ie+1),V=Ie+1),Z.length&&Z!==`
`&&(j+=te),j+=Z}return j}function Lo(B,O){return`
`+r.repeat(" ",B.indent*O)}function IA(B,O){for(let te=0,V=B.implicitTypes.length;te<V;te+=1)if(B.implicitTypes[te].resolve(O))return!0;return!1}function Ns(B){return B===u||B===c}function Aa(B){return B>=32&&B<=126||B>=161&&B<=55295&&B!==8232&&B!==8233||B>=57344&&B<=65533&&B!==a||B>=65536&&B<=1114111}function ha(B){return Aa(B)&&B!==a&&B!==d&&B!==l}function dd(B,O,te){let V=ha(B),j=V&&!Ns(B);return(te?V:V&&B!==v&&B!==De&&B!==le&&B!==J&&B!==St)&&B!==g&&!(O===$&&!j)||ha(O)&&!Ns(O)&&B===g||O===$&&j}function ur(B){return Aa(B)&&B!==a&&!Ns(B)&&B!==Q&&B!==Ce&&B!==$&&B!==v&&B!==De&&B!==le&&B!==J&&B!==St&&B!==g&&B!==w&&B!==S&&B!==p&&B!==me&&B!==F&&B!==ee&&B!==x&&B!==m&&B!==E&&B!==He&&B!==Ne}function lc(B){return!Ns(B)&&B!==$}function Yn(B,O){let te=B.charCodeAt(O),V;return te>=55296&&te<=56319&&O+1<B.length&&(V=B.charCodeAt(O+1),V>=56320&&V<=57343)?(te-55296)*1024+V-56320+65536:te}function Xl(B){return/^\n* /.test(B)}var pd=1,xn=2,xA=3,wA=4,ga=5;function bA(B,O,te,V,j,re,Z,Ie){let ye,Oe=0,ze=null,Rt=!1,jt=!1,Jb=V!==-1,md=-1,nm=ur(Yn(B,0))&&lc(Yn(B,B.length-1));if(O||Z)for(ye=0;ye<B.length;Oe>=65536?ye+=2:ye++){if(Oe=Yn(B,ye),!Aa(Oe))return ga;nm=nm&&dd(Oe,ze,Ie),ze=Oe}else{for(ye=0;ye<B.length;Oe>=65536?ye+=2:ye++){if(Oe=Yn(B,ye),Oe===l)Rt=!0,Jb&&(jt=jt||ye-md-1>V&&B[md+1]!==" ",md=ye);else if(!Aa(Oe))return ga;nm=nm&&dd(Oe,ze,Ie),ze=Oe}jt=jt||Jb&&ye-md-1>V&&B[md+1]!==" "}return!Rt&&!jt?nm&&!Z&&!j(B)?pd:re===us?ga:xn:te>9&&Xl(B)?ga:Z?re===us?ga:xn:jt?wA:xA}function AE(B,O,te,V,j){B.dump=(function(){if(O.length===0)return B.quotingType===us?'""':"''";if(!B.noCompatMode&&(Dt.indexOf(O)!==-1||ue.test(O)))return B.quotingType===us?'"'+O+'"':"'"+O+"'";let re=B.indent*Math.max(1,te),Z=B.lineWidth===-1?-1:Math.max(Math.min(B.lineWidth,40),B.lineWidth-re),Ie=V||B.flowLevel>-1&&te>=B.flowLevel;function ye(Oe){return IA(B,Oe)}switch(bA(O,Ie,B.indent,Z,ye,B.quotingType,B.forceQuotes&&!V,j)){case pd:return O;case xn:return"'"+O.replace(/'/g,"''")+"'";case xA:return"|"+SA(O,B.indent)+BA(Kl(O,re));case wA:return">"+SA(O,B.indent)+BA(Kl(hE(O,Z),re));case ga:return'"'+gE(O,Z)+'"';default:throw new n("impossible error: invalid scalar style")}})()}function SA(B,O){let te=Xl(B)?String(O):"",V=B[B.length-1]===`
`;return te+(V&&(B[B.length-2]===`
`||B===`
`)?"+":V?"":"-")+`
`}function BA(B){return B[B.length-1]===`
`?B.slice(0,-1):B}function hE(B,O){let te=/(\n+)([^\n]*)/g,V=(function(){let Ie=B.indexOf(`
`);return Ie=Ie!==-1?Ie:B.length,te.lastIndex=Ie,ya(B.slice(0,Ie),O)})(),j=B[0]===`
`||B[0]===" ",re,Z;for(;Z=te.exec(B);){let Ie=Z[1],ye=Z[2];re=ye[0]===" ",V+=Ie+(!j&&!re&&ye!==""?`
`:"")+ya(ye,O),j=re}return V}function ya(B,O){if(B===""||B[0]===" ")return B;let te=/ [^ ]/g,V,j=0,re,Z=0,Ie=0,ye="";for(;V=te.exec(B);)Ie=V.index,Ie-j>O&&(re=Z>j?Z:Ie,ye+=`
`+B.slice(j,re),j=re+1),Z=Ie;return ye+=`
`,B.length-j>O&&Z>j?ye+=B.slice(j,Z)+`
`+B.slice(Z+1):ye+=B.slice(j),ye.slice(1)}function gE(B){let O="",te=0;for(let V=0;V<B.length;te>=65536?V+=2:V++){te=Yn(B,V);let j=Le[te];!j&&Aa(te)?(O+=B[V],te>=65536&&(O+=B[V+1])):O+=j||qr(te)}return O}function RA(B,O,te){let V="",j=B.tag;for(let re=0,Z=te.length;re<Z;re+=1){let Ie=te[re];B.replacer&&(Ie=B.replacer.call(te,String(re),Ie)),(G(B,O,Ie,!1,!1)||typeof Ie>"u"&&G(B,O,null,!1,!1))&&(V!==""&&(V+=","+(B.condenseFlow?"":" ")),V+=B.dump)}B.tag=j,B.dump="["+V+"]"}function NA(B,O,te,V){let j="",re=B.tag;for(let Z=0,Ie=te.length;Z<Ie;Z+=1){let ye=te[Z];B.replacer&&(ye=B.replacer.call(te,String(Z),ye)),(G(B,O+1,ye,!0,!0,!1,!0)||typeof ye>"u"&&G(B,O+1,null,!0,!0,!1,!0))&&((!V||j!=="")&&(j+=Lo(B,O)),B.dump&&l===B.dump.charCodeAt(0)?j+="-":j+="- ",j+=B.dump)}B.tag=re,B.dump=j||"[]"}function yE(B,O,te){let V="",j=B.tag,re=Object.keys(te);for(let Z=0,Ie=re.length;Z<Ie;Z+=1){let ye="";V!==""&&(ye+=", "),B.condenseFlow&&(ye+='"');let Oe=re[Z],ze=te[Oe];B.replacer&&(ze=B.replacer.call(te,Oe,ze)),G(B,O,Oe,!1,!1)&&(B.dump.length>1024&&(ye+="? "),ye+=B.dump+(B.condenseFlow?'"':"")+":"+(B.condenseFlow?"":" "),G(B,O,ze,!1,!1)&&(ye+=B.dump,V+=ye))}B.tag=j,B.dump="{"+V+"}"}function A(B,O,te,V){let j="",re=B.tag,Z=Object.keys(te);if(B.sortKeys===!0)Z.sort();else if(typeof B.sortKeys=="function")Z.sort(B.sortKeys);else if(B.sortKeys)throw new n("sortKeys must be a boolean or a function");for(let Ie=0,ye=Z.length;Ie<ye;Ie+=1){let Oe="";(!V||j!=="")&&(Oe+=Lo(B,O));let ze=Z[Ie],Rt=te[ze];if(B.replacer&&(Rt=B.replacer.call(te,ze,Rt)),!G(B,O+1,ze,!0,!0,!0))continue;let jt=B.tag!==null&&B.tag!=="?"||B.dump&&B.dump.length>1024;jt&&(B.dump&&l===B.dump.charCodeAt(0)?Oe+="?":Oe+="? "),Oe+=B.dump,jt&&(Oe+=Lo(B,O)),G(B,O+1,Rt,!0,jt)&&(B.dump&&l===B.dump.charCodeAt(0)?Oe+=":":Oe+=": ",Oe+=B.dump,j+=Oe)}B.tag=re,B.dump=j||"{}"}function k(B,O,te){let V=te?B.explicitTypes:B.implicitTypes;for(let j=0,re=V.length;j<re;j+=1){let Z=V[j];if((Z.instanceOf||Z.predicate)&&(!Z.instanceOf||typeof O=="object"&&O instanceof Z.instanceOf)&&(!Z.predicate||Z.predicate(O))){if(te?Z.multi&&Z.representName?B.tag=Z.representName(O):B.tag=Z.tag:B.tag="?",Z.represent){let Ie=B.styleMap[Z.tag]||Z.defaultStyle,ye;if(o.call(Z.represent)==="[object Function]")ye=Z.represent(O,Ie);else if(i.call(Z.represent,Ie))ye=Z.represent[Ie](O,Ie);else throw new n("!<"+Z.tag+'> tag resolver accepts not "'+Ie+'" style');B.dump=ye}return!0}}return!1}function G(B,O,te,V,j,re,Z){B.tag=null,B.dump=te,k(B,te,!1)||k(B,te,!0);let Ie=o.call(B.dump),ye=V;V&&(V=B.flowLevel<0||B.flowLevel>O);let Oe=Ie==="[object Object]"||Ie==="[object Array]",ze,Rt;if(Oe&&(ze=B.duplicates.indexOf(te),Rt=ze!==-1),(B.tag!==null&&B.tag!=="?"||Rt||B.indent!==2&&O>0)&&(j=!1),Rt&&B.usedDuplicates[ze])B.dump="*ref_"+ze;else{if(Oe&&Rt&&!B.usedDuplicates[ze]&&(B.usedDuplicates[ze]=!0),Ie==="[object Object]")V&&Object.keys(B.dump).length!==0?(A(B,O,B.dump,j),Rt&&(B.dump="&ref_"+ze+B.dump)):(yE(B,O,B.dump),Rt&&(B.dump="&ref_"+ze+" "+B.dump));else if(Ie==="[object Array]")V&&B.dump.length!==0?(B.noArrayIndent&&!Z&&O>0?NA(B,O-1,B.dump,j):NA(B,O,B.dump,j),Rt&&(B.dump="&ref_"+ze+B.dump)):(RA(B,O,B.dump),Rt&&(B.dump="&ref_"+ze+" "+B.dump));else if(Ie==="[object String]")B.tag!=="?"&&AE(B,B.dump,O,re,ye);else{if(Ie==="[object Undefined]")return!1;if(B.skipInvalid)return!1;throw new n("unacceptable kind of an object to dump "+Ie)}if(B.tag!==null&&B.tag!=="?"){let jt=encodeURI(B.tag[0]==="!"?B.tag.slice(1):B.tag).replace(/!/g,"%21");B.tag[0]==="!"?jt="!"+jt:jt.slice(0,18)==="tag:yaml.org,2002:"?jt="!!"+jt.slice(18):jt="!<"+jt+">",B.dump=jt+" "+B.dump}}return!0}function W(B,O){let te=[],V=[];q(B,te,V);let j=V.length;for(let re=0;re<j;re+=1)O.duplicates.push(te[V[re]]);O.usedDuplicates=new Array(j)}function q(B,O,te){if(B!==null&&typeof B=="object"){let V=O.indexOf(B);if(V!==-1)te.indexOf(V)===-1&&te.push(V);else if(O.push(B),Array.isArray(B))for(let j=0,re=B.length;j<re;j+=1)q(B[j],O,te);else{let j=Object.keys(B);for(let re=0,Z=j.length;re<Z;re+=1)q(B[j[re]],O,te)}}}function ne(B,O){O=O||{};let te=new fE(O);te.noRefs||W(B,te);let V=B
`:""}e.exports.dump=ne})),Ihe=fit(fr(((t,e)=>{var r=hit(),n=git();function s(o,i){return function(){throw new Error("Function yaml."+o+" is removed in js-yaml 4. Use yaml."+i+" instead, which is now safe by default.")}}e.exports.Type=zs(),e.exports.Schema=she(),e.exports.FAILSAFE_SCHEMA=che(),e.exports.JSON_SCHEMA=mhe(),e.exports.CORE_SCHEMA=fhe(),e.exports.DEFAULT_SCHEMA=nV(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=hx(),e.exports.types={binary:ghe(),float:phe(),map:ahe(),null:lhe(),pairs:Ehe(),set:Che(),timestamp:Ahe(),bool:uhe(),int:dhe(),merge:hhe(),omap:yhe(),seq:ihe(),str:ohe()},e.exports.safeLoad=s("safeLoad","load"),e.exports.safeLoadAll=s("safeLoadAll","loadAll"),e.exports.safeDump=s("safeDump","dump")}))(),1),{Type:SXt,Schema:BXt,FAILSAFE_SCHEMA:RXt,JSON_SCHEMA:NXt,CORE_SCHEMA:TXt,DEFAULT_SCHEMA:PXt,load:xhe,loadAll:vXt,dump:_Xt,YAMLException:QXt,types:DXt,safeLoad:kXt,safeLoadAll:LXt,safeDump:OXt}=Ihe.default,MXt=Ihe.default;var Xi=L(require("fs"),1),So=L(require("path"),1);var _Ie=L(mye(),1);var pP=class t{static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var B4=L(require("fs"),1),QCe=L(require("os"),1),Ox=L(require("path"),1);var TV=L(require("fs"),1),_ye=L(require("os"),1),Qye=L(require("path"),1),Dye=L(vye(),1),AP=class t{static _tmpDir=TV.default.mkdtempSync(Qye.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||_ye.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return TV.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return Dye.tmpNameSync(e)}};var Du=class{static async exec(e,r,n){return X(`Exec.exec: ${e} ${r?.join(" ")}`),kd(e,r,n)}static async getExecOutput(e,r,n){return X(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),xC(e,r,n)}};var S4=L(require("crypto"),1),vCe=L(require("fs"),1),Lx=L(require("path"),1),_Ce=L(bCe(),1);var Mt=class t extends Error{constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let i in o){let a=o[i];this[i]=Buffer.isBuffer(a)?a.toString(n.encoding):a==null?a:JSON.parse(JSON.stringify(a))}}};var SCe=function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)};var ZP=function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(SCe(s)){if(typeof s.name!="string")throw new Mt("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=s}else throw new Mt("CSV_INVALID_COLUMN_DEFINITION",["Invalid colu
`,i).length:u,l?(a===null?0:a.length)+c.length:0,l?c.length+u:0);return p<m},parse:function(n,s,o,i){let{bom:a,comment_no_infix:c,encoding:l,from_line:d,ltrim:u,max_record_size:p,raw:m,relax_quotes:g,rtrim:E,skip_empty_lines:w,to:x,to_line:S}=this.options,{comment:v,escape:Q,quote:$,record_delimiter:F}=this.options,{bomSkipped:ee,previousBuf:Ce,rawBuffer:He,escapeIsQuote:De}=this.state,le;if(Ce===void 0)if(n===void 0){i();return}else le=n;else Ce!==void 0&&n===void 0?le=Ce:le=Buffer.concat([Ce,n]);if(ee===!1)if(a===!1)this.state.bomSkipped=!0;else if(le.length<3){if(s===!1){this.state.previousBuf=le;return}}else{for(let me in Jg)if(Jg[me].compare(le,0,Jg[me].length)===0){let St=Jg[me].length;this.state.bufBytesStart+=St,le=le.slice(St);let Le=b4({...this.original_options,encoding:me});for(let Dt in Le)this.options[Dt]=Le[Dt];({comment:v,escape:Q,quote:$}=this.options);break}this.state.bomSkipped=!0}let Ne=le.length,J;for(J=0;J<Ne&&!this.__needMoreData(J,Ne,s);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),S!==-1&&this.info.lines>S){this.state.stop=!0,i();return}this.state.quoting===!1&&F.length===0&&this.__autoDiscoverRecordDelimiter(le,J)&&(F=this.options.record_delimiter);let me=le[J];if(m===!0&&He.append(me),(me===Upt||me===qpt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(le,J,me)&&J+Q.length<Ne)if(De){if(this.__isQuote(le,J+Q.length)){this.state.escaping=!0,J+=Q.length-1;continue}}else{this.state.escaping=!0,J+=Q.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(le,J))if(this.state.quoting===!0){let Dt=le[J+$.length],ue=E&&this.__isCharTrimable(le,J+$.length),Ur=v!==null&&this.__compareBytes(v,le,J+$.length,Dt),qr=this.__isDelimiter(le,J+$.length,Dt),ko=F.length===0?this.__autoDiscoverRecordDelimiter(le,J+$.length):this.__isRecordDelimiter(Dt,le,J+$.length);if(Q!==null&&this.__isEscape(le,J,me)&&this.__isQuote(le,J+Q.length))J+=Q.length-1;else if(!Dt||qr||ko||Ur||ue){this.state.quoting=!1,this.state.wasQuoting=!0,J+=$.length-1;continue}else if(g===!1){let us=this.__error(new Mt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Dt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(us!==void 0)return us}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend($),J+=$.length-1}else if(this.state.field.length!==0){if(g===!1){let Dt=this.__infoField(),ue=Object.keys(Jg).map(qr=>Jg[qr].equals(this.state.field.toString())?qr:!1).filter(Boolean)[0],Ur=this.__error(new Mt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Dt.column)} at line ${Dt.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,ue?`(${ue} bom)`:void 0],this.options,Dt,{field:this.state.field}));if(Ur!==void 0)return Ur}}else{this.state.quoting=!0,J+=$.length-1;continue}if(this.state.quoting===!1){let Dt=this.__isRecordDelimiter(me,le,J);if(Dt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=Dt-1;continue}if(w===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=Dt-1;continue}this.info.bytes=this.state.bufBytesStart+J;let qr=this.__onField();if(qr!==void 0)return qr;this.info.bytes=this.state.bufBytesStart+J+Dt;let ko=this.__onRecord(o);if(ko!==void 0)return ko;if(x!==-1&&this.info.records>=x){this.state.stop=!0,i();return}}this.state.commenting=!1,J+=Dt-1;continue}if(this.state.commenting)continue;if(v!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(v,le,J,me)!==0){this.state.commenting=!0;continue
`,o),Buffer.from(`
2026-06-03 22:35:08 +00:00
`,o),Buffer.from("\r",o)];e:for(let a=0;a<i.length;a++){let c=i[a].length;for(let l=0;l<c;l++)if(i[a][l]!==n[s+l])continue e;return this.options.record_delimiter.push(i[a]),this.state.recordDelimiterMaxLength=i[a].length,i[a].length}return 0},__error:function(n){let{encoding:s,raw:o,skip_records_with_error:i}=this.options,a=typeof n=="string"?new Error(n):n;if(i){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,o?this.state.rawBuffer.toString(s):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:n,raw:s,encoding:o}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(o):void 0}},__infoField:function(){let{columns:n}=this.options,s=Array.isArray(n),o=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:o,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var PCe=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],n=TCe(e),s=a=>{n.options.objname===void 0?r.push(a):r[a[0]]=a[1]},o=()=>{},i=n.parse(t,!0,s,o);if(i!==void 0)throw i;return r};var up=class t{static getInputList(e,r){return this.getList(Ta(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=PCe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=Ta(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await uo("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=[];if(r)for(let i in r)o.push(`-${i} '${r[i].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${o.join(" ")}`]}}static isDirectory(e){try{return vCe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return S4.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return S4.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return _Ce.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Lx.default.resolve(e);return Lx.default.resolve(r).startsWith(n.endsWith(Lx.default.sep)?n:`${n}${Lx.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=
`+t.errors.map(e=>` - ${e.message}`).join(`
2026-06-03 22:35:08 +00:00
`)}var Dmt=class extends Error{constructor(t,e,r){super(Qmt(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},kmt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Lmt=["query","method","url"],gIe=/\/api\/v3\/?$/;function Omt(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 i in r)if(Lmt.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((i,a)=>kmt.includes(a)?(i[a]=n[a],i):(i.variables||(i.variables={}),i.variables[a]=n[a],i),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return gIe.test(o)&&(s.url=o.replace(gIe,"/api/graphql")),t(s).then(i=>{if(i.data.errors){let a={};for(let c of Object.keys(i.headers))a[c]=i.headers[c];throw new Dmt(s,a,i.data)}return i.data.data})}function O4(t,e){let r=t.defaults(e);return Object.assign((s,o)=>Omt(r,s,o),{defaults:O4.bind(null,r),endpoint:r.endpoint})}var XZt=O4(qx,{headers:{"user-agent":`octokit-graphql.js/${_mt} ${pp()}`},method:"POST",url:"/graphql"});function yIe(t){return O4(t,{method:"POST",url:"/graphql"})}var M4="(?:[a-zA-Z0-9_-]+)",EIe="\\.",CIe=new RegExp(`^${M4}${EIe}${M4}${EIe}${M4}$`),Mmt=CIe.test.bind(CIe);async function Fmt(t){let e=Mmt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function Umt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function qmt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Umt(t),e(s)}var IIe=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(Fmt.bind(null,e),{hook:qmt.bind(null,e)})};var F4="7.0.6";var xIe=()=>{},$mt=console.warn.bind(console),Gmt=console.error.bind(console);function Hmt(t={}){return typeof t.debug!="function"&&(t.debug=xIe),typeof t.info!="function"&&(t.info=xIe),typeof t.warn!="function"&&(t.warn=$mt),typeof t.error!="function"&&(t.error=Gmt),t}var wIe=`octokit-core.js/${F4} ${pp()}`,dv=class{static VERSION=F4;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new JCe.Collection,n={baseUrl:qx.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${wIe}`:wIe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=qx.defaults(n),this.graphql=yIe(this.request).defaults(n),this.log=Hmt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...i}=e,a=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=IIe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)Object.assign(this,s.plugins[o](this,e))}request;graphql;log;hook;auth};var U4="17.0.0";var zmt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /or
More info: ${c.url}`);let m=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,g=!1;for(let E of i)if(E.remote||E.path.endsWith(l)&&E.content===d){a.push({title:u,message:p,file:E.path,startLine:m}),g=!0;break}g||X(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${u}`)}return a}};function QIe(){return{registry:Ta("registry"),username:Ta("username"),password:Ta("password"),scope:Ta("scope"),ecr:Ta("ecr"),logout:Yse("logout"),registryAuth:Ta("registry-auth")}}function DIe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=xhe(t.registryAuth).map(r=>{Vo(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:Av(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:Av(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}function Av(t,e){if(uft()||!e||e==="")return"";let r=J4.default.join(fv.configDir,"config",t==="docker.io"?"registry-1.docker.io":t);return e.startsWith("@")?r+=e:r=J4.default.join(r,e),r}function uft(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?up.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}var bOe=L(gLe(),1),SOe=L(iOe(),1),U9=L(ed(),1);var uOe=L(require("net"),1),dOe=L(require("tls"),1),pOe=L(Hm(),1),mOe=require("events");var aOe=L(require("net"),1),cOe=L(require("http"),1),lOe=require("https"),jl=Symbol("AgentBaseInternalState"),lO=class extends cOe.Agent{constructor(e){super(e),this[jl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new aOe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?lOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),i=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(o,i),typeof a.addRequest=="function")try{return a.addRequest(e,s)}catch(c){return n(c)}this[jl].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(o,i),n(a)})}createConnection(){let e=this[jl].currentSocket;if(this[jl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[jl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[jl]&&(this[jl].defaultPort=e)}get protocol(){return this[jl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[jl]&&(this[jl].protocol=e)}};var M9=require("url"),mE=(0,pOe.default)("http-proxy-agent"),Yb=class extends lO{constructor(e,r){super(r),this.proxy=typeof e=="string"?new M9.URL(e):e,this.proxyHeaders=r?.headers??{},mE("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Dkt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",i=`${s}//${o}`,a=new M9.URL(e.path,i);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let l=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let d=c[l];d&&e.setHeader(l,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;mE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(mE("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
2026-06-03 22:35:08 +00:00
`)+4,e.outputData[0].data=e._header+n.substring(s),mE("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(mE("Creating `tls.Socket`: %o",this.connectOpts),o=dOe.connect(this.connectOpts)):(mE("Creating `net.Socket`: %o",this.connectOpts),o=uOe.connect(this.connectOpts)),await(0,mOe.once)(o,"connect"),o}};Yb.protocols=["http","https"];function Dkt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}var rm=L(require("net"),1),F9=L(require("tls"),1),IOe=L(require("assert"),1),xOe=L(Hm(),1);var fOe=L(require("net"),1),AOe=L(require("http"),1),hOe=require("https"),Jl=Symbol("AgentBaseInternalState"),uO=class extends AOe.Agent{constructor(e){super(e),this[Jl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new fOe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?hOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),i=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(o,i),typeof a.addRequest=="function")try{return a.addRequest(e,s)}catch(c){return n(c)}this[Jl].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(o,i),n(a)})}createConnection(){let e=this[Jl].currentSocket;if(this[Jl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Jl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Jl]&&(this[Jl].defaultPort=e)}get protocol(){return this[Jl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Jl]&&(this[Jl].protocol=e)}};var wOe=require("url");var gOe=L(Hm(),1),dO=(0,gOe.default)("https-proxy-agent:parse-proxy-response");function yOe(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?l(d):t.once("readable",o)}function i(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",o)}function a(){i(),dO("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(d){i(),dO("onerror %o",d),r(d)}function l(d){s.push(d),n+=d.length;let u=Buffer.concat(s,n),p=u.indexOf(`\r
\r
2026-06-03 22:35:08 +00:00
`);if(p===-1){dO("have not received end of HTTP headers yet..."),o();return}let m=u.slice(0,p).toString("ascii").split(`\r
`),g=m.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),w=+E[1],x=E.slice(2).join(" "),S={};for(let v of m){if(!v)continue;let Q=v.indexOf(":");if(Q===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${v}"`));let $=v.slice(0,Q).toLowerCase(),F=v.slice(Q+1).trimStart(),ee=S[$];typeof ee=="string"?S[$]=[ee,F]:Array.isArray(ee)?ee.push(F):S[$]=F}dO("got proxy server response: %o %o",g,S),i(),e({connect:{statusCode:w,statusText:x,headers:S},buffered:u})}t.on("error",c),t.on("end",a),o()})}var Wb=(0,xOe.default)("https-proxy-agent"),EOe=t=>t.servername===void 0&&t.host&&!rm.isIP(t.host)?{...t,servername:t.host}:t,jb=class extends uO{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wOe.URL(e):e,this.proxyHeaders=r?.headers??{},Wb("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?COe(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Wb("Creating `tls.Socket`: %o",this.connectOpts),s=F9.connect(EOe(this.connectOpts))):(Wb("Creating `net.Socket`: %o",this.connectOpts),s=rm.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},i=rm.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${i}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}o.Host=`${i}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(o))a+=`${p}: ${o[p]}\r
2026-06-03 22:35:08 +00:00
`;let c=yOe(s);s.write(`${a}\r
`);let{connect:l,buffered:d}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",kkt),r.secureEndpoint?(Wb("Upgrading socket connection to TLS"),F9.connect({...COe(EOe(r),"host","path","port"),socket:s})):s;s.destroy();let u=new rm.Socket({writable:!1});return u.readable=!0,e.once("socket",p=>{Wb("Replaying proxy buffer for failed request"),(0,IOe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),u}};jb.protocols=["http","https"];function kkt(t){t.resume()}function COe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}var q9=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,Lkt=/public\.ecr\.aws|ecr-public\.aws\.com/,BOe=t=>q9.test(t)||pO(t),pO=t=>Lkt.test(t),Okt=t=>{if(pO(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(q9);return e?e[4]:""},Mkt=t=>{if(pO(t))return[];let e=t.match(q9);if(!e)return[];let r=[e[2]];return process.env.AWS_ACCOUNT_IDS&&r.push(...process.env.AWS_ACCOUNT_IDS.split(",")),r.filter((n,s)=>r.indexOf(n)===s)},ROe=async(t,e,r)=>{let n=Okt(t),s=Mkt(t),o={};s.length>0&&(X(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let i,a=process.env.http_proxy||process.env.HTTP_PROXY||"";a&&(X(`Using http proxy ${a}`),i=new Yb(a));let c,l=process.env.https_proxy||process.env.HTTPS_PROXY||"";l&&(X(`Using https proxy ${l}`),c=new jb(l));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(pO(t)){ft(`AWS Public ECR detected with ${n} region`);let p=await new SOe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new U9.NodeHttpHandler({httpAgent:i,httpsAgent:c})}).getAuthorizationToken(o);if(!p.authorizationData||!p.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let g=Buffer.from(p.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return Vo(g[0]),Vo(g[1]),[{registry:"public.ecr.aws",username:g[0],password:g[1]}]}else{ft(`AWS ECR detected with ${n} region`);let p=await new bOe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new U9.NodeHttpHandler({httpAgent:i,httpsAgent:c})}).getAuthorizationToken(o);if(!Array.isArray(p.authorizationData)||!p.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let m=[];for(let g of p.authorizationData){let w=Buffer.from(g.authorizationToken||"","base64").toString("utf-8").split(":",2);Vo(w[0]),Vo(w[1]),m.push({registry:g.proxyEndpoint||"",username:w[0],password:w[1]})}return m}};async function $9(t){/true/i.test(t.ecr)||t.ecr=="auto"&&BOe(t.registry)?await qkt(t.registry,t.username,t.password,t.scope):await Ukt(t.registry,t.username,t.password,t.scope)}async function NOe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),ft(`Alternative config dir: ${e}`)),await dp.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&tn(n.stderr.trim())})}async function Ukt(t,e,r,n){if(!e&&!r)throw new Error("Username and password required");if(!e)throw new Error("Username required");if(!r)throw new Error("Password required");await TOe(t,e,r,n)}async function qkt(t,e,r,n){ft("Retrieving registries data through AWS SDK...");let s=await ROe(t,e,r);for(let o of s)await TOe(o.registry,o.username,o.password,n)}async function TOe(t,e,r,n){let s,o=Av(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),ft(`Logging into ${t} (scope ${n})...`)):ft(`Logging into ${t}...`),await dp.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());ft("Login Succeeded!")})}var POe=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],vOe=/true/i.test(process.env.STATE_logout||"");function _Oe(t){_m("registries",JSON.stringify(t))}function QOe(t){_m("logout",t)}async function DOe(){le
/*! 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
*)
js-yaml/dist/js-yaml.mjs:
2026-06-03 22:35:08 +00:00
(*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT *)
@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