varGOe=Object.create;varKb=Object.defineProperty;varHOe=Object.getOwnPropertyDescriptor;varzOe=Object.getOwnPropertyNames;varVOe=Object.getPrototypeOf,YOe=Object.prototype.hasOwnProperty;varI=(t,e)=>()=>(t&&(e=t(t=0)),e);varb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wn=(t,e)=>{for(varrine)Kb(t,r,{get:e[r],enumerable:!0})},V9=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsofzOe(e))!YOe.call(t,s)&&s!==r&&Kb(t,s,{get:()=>e[s],enumerable:!(n=HOe(e,s))||n.enumerable});returnt};varL=(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);vartK=b(PA=>{"use strict";varXkt=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;functioneMe(t){vare=newZl(t);returne.request=EO.request,e}functiontMe(t){vare=newZl(t);returne.request=EO.request,e.createSocket=Z9,e.defaultPort=443,e}functionrMe(t){vare=newZl(t);returne.request=X9.request,e}functionnMe(t){vare=newZl(t);returne.request=X9.request,e.createSocket=Z9,e.defaultPort=443,e}functionZl(t){vare=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(vara=eK(s,o,i),c=0,l=e.requests.length;c<l;++c){vard=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){varo=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);functionc(){o.emit("free",a,i)}functionl(d){o.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Zl.prototype.createSocket=function(e,r){varn=this,s={};n.sockets.push(s);varo=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 "+newBuffer(o.proxyAuth).toString("base64")),Ad("making CONNECT request");vari=n.request(o);i.useChunkedEncodingByDefault=!1,i.once("response",a),i.once("upgrade",c),i.once("connect",l),i.once("error",d),i.end();functiona(u){u.upgrade=!0}functionc(u,p,m){process.nextTick(function(){l(u,p,m)})}functionl(u,p,m){if(i.removeAllListeners(),p.removeAllListeners(),u.statusCode!==200){Ad("tunneling socket could not be established, statusCode=%d",u.statusCode),p.destroy();varg=newError("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();varg=newError("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}returnAd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}functiond(u){i.removeAllListeners(),Ad(`tunneling socket could not be established, cause=%s
`);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.
`}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
`,"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
`,"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!==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"framereceivedwithcode${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)
`;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
`)+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_LEVELsettounknownloglevel'${GN}';loggingisnotenabled.Acceptablevalues:${hz.join(", ")}.`));function Kme(t){if(t&&!efe(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${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
Seehttps://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(`
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)+`.Unrecognizedtext.
Moreinformationcanbefoundat: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
`),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(`Invalidmonth:${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(`Invaliddayfor${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}mustbebetween${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(`Offsetdirection,${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(`Cannotload${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(`Cannotload${r}'${e}'.Expectednumber,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
`)}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(`Invalidcharacter${t[l]}inbase64string.`);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(`Unexpectedstreamimplementation,expectBloborReadableStream,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(`CannottransformpayloadBlobtowebstream.PleasemakesuretheBlob.stream()ispolyfilled.
IfyouareusingReactNative,thisAPIisnotyetsupported,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-NormalizedSchemamemberinit${this.getName(!0)}missingmembername.`)}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(`Invalidclient,expectedinstanceof${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=
${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(`
-EKScontainerhost169.254.170.23or[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(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new kj.CredentialsProviderError(`Serverrespondedwithstatus:${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(`NoHTTPcredentialproviderhostprovided.
SetAWS_CONTAINER_CREDENTIALS_FULL_URIorAWS_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 '"+_+"'isrepeated.",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)}letN
`);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(`Unpairedtagcannotbeusedasclosingtag:</${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("Maximumnestedtagsexceeded");this.tagsNodeStack.push(y),Wn&&(Xr[":@"]=Wn),this.addChild(y,Xr,this.readonlyMatcher,Ps),y=Xr}}T
`)?"":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={"&":"&","<":"<",">":">",'"':"""};function IEt(t){return t.replace(EEt,e=>CEt[e])}var xEt=/[&"'<>\r\n\u0085\u2028]/g,wEt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};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"||rinstanceofUint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??kr)(r)));elseif(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
`),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
Supportbooleaninputlist:\`true | True | TRUE | false | False | FALSE\``)}functionWse(t){process.exitCode=eU.Failure,Th(t)}functionvm(){returnprocess.env.RUNNER_DEBUG==="1"}functionX(t){sm("debug",{},t)}functionTh(t,e={}){sm("error",hO(e),tinstanceofError?t.toString():t)}functiontn(t,e={}){sm("warning",hO(e),tinstanceofError?t.toString():t)}functionft(t){process.stdout.write(t+Vse.EOL)}functionBYe(t){yO("group",t)}functionRYe(){yO("endgroup")}functionbC(t,e){returnSYe(this,void0,void0,function*(){BYe(t);letr;try{r=yielde()}finally{RYe()}returnr})}function_m(t,e){if(process.env.GITHUB_STATE||"")returnJ9("STATE",K9(t,e));sm("save-state",{name:t},fd(e))}functionjse(t){returnprocess.env[`STATE_${t}`]||""}varZT=L(require("fs"),1),tV=L(require("os"),1),rV=L(require("path"),1);varKse=L(require("os"),1);functionSC(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}functionXse(t,e,r){letn=newtU(t,e,r);process.stdout.write(n.toString()+Kse.EOL)}varJse="::",tU=class{constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=Jse+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";letr=!0;for(letninthis.properties)if(this.properties.hasOwnProperty(n)){lets=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${TYe(s)}`)}}returne+=`${Jse}${NYe(this.message)}`,e}};functionNYe(t){returnSC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionTYe(t){returnSC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}vareoe=require("os"),BC=require("fs"),rU=function(t,e,r,n){functions(o){returnoinstanceofr?o:newr(function(i){i(o)})}returnnew(r||(r=Promise))(function(o,i){functiona(d){try{l(n.next(d))}catch(u){i(u)}}functionc(d){try{l(n.throw(d))}catch(u){i(u)}}functionl(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";varnU=class{constructor(){this._buffer=""}filePath(){returnrU(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[Zse];if(!e)thrownewError(`Unable to find environment variable for $${Zse}. Check if your runtime environment supports job summaries.`);try{yieldPYe(e,BC.constants.R_OK|BC.constants.W_OK)}catch{thrownewError(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}returnthis._filePath=e,this._filePath})}wrap(e,r,n={}){lets=Object.entries(n).map(([o,i])=>`${o}="${i}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnrU(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?_Ye:vYe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnrU(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){returnthis._buffer.length===0}emptyBuffer(){returnthis._buffer="",this}addRaw(e,r=!1){returnthis._buffer+=e,r?this.addEOL():this}addEOL(){returnthis.addRaw(eoe.EOL)}addCodeBlock(e,r){letn=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);returnthis.addRaw(s).addEOL()}addList(e,r=!1){letn=r?"ol":"ul",s=e.map(i=>this.wrap("li",i)).join(""),o=this.wrap(n,s);returnthis.addRaw(o).addEOL()}addTable(e){letr=e.map(s=>{leto=s.map(i=>{if(typeofi=="string")returnthis.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});returnthis.wrap(u,c,p)}).join("");returnthis.wrap("tr",o)}).join(""),n=this.wrap("table",r);returnthis.addRaw(n).addEOL()}addDetails(e,r){letn=this.wrap("details",this.wrap("summary",e)+r);returnthis.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));returnthis.addRaw(a).addEOL()}addHeading(e,r){letn=`h${r}`,s=["h1","h2","h3",
${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(`requestto'${l.sanitizeUrl(e.url)}'timedout.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(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);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")],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(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!RXe.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}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(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,o,i]=s;if(i&&r&&i!==r)throw new Error(`Multipartboundarywasspecifiedas${i}intheheader,butgot${r}intherequestbody`);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`Unknownerror${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(`Unpairedtagcannotbeusedasclosingtag:</${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("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),S&&(F[":@"]=S),this.addChild(r,F,this.readonlyMatcher,$),r=F}n="",a=E}}}elsen+=t[a];returne.child};fu
`}),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:Caughterror,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},nofurthertry.`),!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:Networkerror${i}found,willretry.`),!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:Willretryforstatuscode${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:Delayfor${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
`}),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+=`
`),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,
Ifyouareusingself-hostedrunners,pleasemakesureyourrunnerhasaccesstoallGitHubendpoints: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.
Moreinfoonstoragelimits: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.
Othercacheswithsimilarkey:`);for(let a of o?.artifactCaches||[])X(`CacheKey:${a?.cacheKey},CacheVersion:${a?.cacheVersion},CacheScope:${a?.scope},CacheCreated:${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(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${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(`Cacheservicerespondedwith${i.message.statusCode}duringuploadchunk.`)})}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(`Cacheuploadfailedbecausefilereadfailedwith${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(`CacheSize:~${Math.round(i/(1024*1024))}MB(${i}B)`);let a=yield $nt(o,t,i);if(!oT(a.statusCode))throw new Error(`Cacheservicerespondedwith${a.statusCode}duringcommitcache.`);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(`Unknownfield${a}(wiretype${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(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new qa(`KeyValidationError:${t}cannotcontaincommas.`)}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(`Cacheserviceversion:${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(`ArchivePath:${u}`),yield Lz(p.archiveLocation,u,a),vm()&&(yield mx(u,d));let m=Sc(u);return ft(`CacheSize:~${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(`Failedtorestore:${p.message}`):tn(`Failedtorestore:${p.message}`)}finally{try{yield jC(u)}catch(p){X(`Failedtodeletearchive:${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(`Cachenotfoundforversion${m.version}ofkeys:${l.join(", ")}`);return}if(m.key!==g.matchedKey?ft(`Cachehitforrestore-key:${g.matchedKey}`):ft(`Cachehitfor:${g.matchedKey}`),a?.lookupOnly)return ft("Lookup only - skipping download"),g.matchedKey;d=fx.join(yield WC(),Gd(p)),X(`Archivepath:${d}`),X(`Startingdownloadofarchiveto:${d}`),yield Lz(g.signedDownloadUrl,d,a);let w=Sc(d);return ft(`CacheSize:~${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(`Failedtorestore:${u.message}`):tn(`Failedtorestore:${u.message}`)}finally{try{d&&(yield jC(d))}catch(u){X(`Failedtodeletearchive:${u}`)}}})}function eV(t,e,r){return Dg(this,arguments,void 0,function*(n,s,o,i=!1){let a=KI();return X(`Cacheserviceversion:${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(`ArchivePath:${w}`)
`}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
`;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),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(`
`;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
`);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(`RequestingAWSECRauthtokenfor${s.join(", ")}`),o.registryIds=s);let i,a=process.env.http_proxy||process.env.HTTP_PROXY||"";a&&(X(`Usinghttpproxy${a}`),i=new Yb(a));let c,l=process.env.https_proxy||process.env.HTTPS_PROXY||"";l&&(X(`Usinghttpsproxy${l}`),c=new jb(l));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(pO(t)){ft(`AWSPublicECRdetectedwith${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(`AWSECRdetectedwith${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(`Alternativeconfigdir:${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(`Logginginto${t}(scope${n})...`)):ft(`Logginginto${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