varaFe=Object.create;varjy=Object.defineProperty;varcFe=Object.getOwnPropertyDescriptor;varlFe=Object.getOwnPropertyNames;varuFe=Object.getPrototypeOf,dFe=Object.prototype.hasOwnProperty;vari=(t,e)=>jy(t,"name",{value:e,configurable:!0});varI=(t,e)=>()=>(t&&(e=t(t=0)),e);varb=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rn=(t,e)=>{for(varrine)jy(t,r,{get:e[r],enumerable:!0})},aK=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsoflFe(e))!dFe.call(t,s)&&s!==r&&jy(t,s,{get:()=>e[s],enumerable:!(n=cFe(e,s))||n.enumerable});returnt};varD=(t,e,r)=>(r=t!=null?aFe(uFe(t)):{},aK(e||!t||!t.__esModule?jy(r,"default",{value:t,enumerable:!0}):r,t)),W=t=>aK(jy({},"__esModule",{value:!0}),t);varhK=b(aA=>{"use strict";varBFt=require("net"),AFe=require("tls"),dO=require("http"),mK=require("https"),hFe=require("events"),RFt=require("assert"),gFe=require("util");aA.httpOverHttp=yFe;aA.httpsOverHttp=EFe;aA.httpOverHttps=CFe;aA.httpsOverHttps=IFe;functionyFe(t){vare=newTl(t);returne.request=dO.request,e}i(yFe,"httpOverHttp");functionEFe(t){vare=newTl(t);returne.request=dO.request,e.createSocket=fK,e.defaultPort=443,e}i(EFe,"httpsOverHttp");functionCFe(t){vare=newTl(t);returne.request=mK.request,e}i(CFe,"httpOverHttps");functionIFe(t){vare=newTl(t);returne.request=mK.request,e.createSocket=fK,e.defaultPort=443,e}i(IFe,"httpsOverHttps");functionTl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||dO.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(varc=AK(s,o,a),l=0,u=e.requests.length;l<u;++l){vard=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(Tl,"TunnelingAgent");gFe.inherits(Tl,hFe.EventEmitter);Tl.prototype.addRequest=i(function(e,r,n,s){varo=this,a=pO({request:e},o.options,AK(r,n,s));if(o.sockets.length>=this.maxSockets){o.requests.push(a);return}o.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);functionl(){o.emit("free",c,a)}i(l,"onFree");functionu(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Tl.prototype.createSocket=i(function(e,r){varn=this,s={};n.sockets.push(s);varo=pO({},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")),zu("making CONNECT request");vara=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();functionc(p){p.upgrade=!0}i(c,"onResponse");functionl(p,m,f){process.nextTick(function(){u(p,m,f)})}i(l,"onUpgrade");functionu(p,m,f){if(a.removeAllListeners(),m.removeAllListeners(),p.statusCode!==200){zu("tunneling socket could not be established, statusCode=%d",p.statusCode),m.destroy();varg=newError("tunneling socket could not be established, statusCode="+p.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}if(f.length>0){zu("got illegal response body from proxy"),m.destroy();varg=newError("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(s);return}returnzu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=m,r(m)}i(u,"onConnect");functiond(p){a.removeAllListeners(),zu(`tunneling socket could not be established, cause=%s
`);m.push(E),o+=E.byteLength,g&&(o=null),s=t,n=i(async function*(){for(let x of m)x.stream?yield*x.stream():yield x},"action"),a=`multipart/form-data; boundary=${l}`}else if(w7(t))s=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(cE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F2e(t)}if((typeof s=="string"||cE.isBuffer(s))&&(o=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:p}=await l.next();if(p)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!R7(r)){let m=new Uint8Array(d);m.byteLength&&u.enqueue(m)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(P7,"extractBody");function X2e(t,e=!1){return t instanceof ReadableStream&&(gM(!cE.isDisturbed(t),"The body has already been consumed."),gM(!t.locked,"The stream is locked.")),P7(t,e)}i(X2e,"safelyExtractBody");function Z2e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Z2e,"cloneBody");function eqe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(eqe,"throwIfAborted");function tqe(t){return{blob(){return CA(this,r=>{let n=S7(this);return n===null?n="":n&&(n=j2e(n)),new V2e([r],{type:n})},t)},arrayBuffer(){return CA(this,r=>new Uint8Array(r).buffer,t)},text(){return CA(this,B7,t)},json(){return CA(this,nqe,t)},formData(){return CA(this,r=>{let n=S7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=J2e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new b7;return o[IA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new b7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Typewasnotoneof"multipart/form-data"or"application/x-www-form-urlencoded".')},t)},bytes(){return CA(this,r=>new Uint8Array(r),t)}}}i(tqe,"bodyMixinMethods");function rqe(t){Object.assign(t.prototype,tqe(t))}i(rqe,"mixinBody");async function CA(t,e,r){if(z2e.brandCheck(t,r),v7(t))throw new TypeError("Body is unusable: Body has already been read");eqe(t[IA]);let n=$2e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[IA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await G2e(t[IA].body,o,s),n.promise)}i(CA,"consumeBody");function v7(t){let e=t[IA].body;return e!=null&&(e.stream.locked||cE.isDisturbed(e.stream))}i(v7,"bodyUnusable");function nqe(t){return JSON.parse(B7(t))}i(nqe,"parseJSONFromBytes");function S7(t){let e=t[IA].headersList,r=H2e(e);return r==="failure"?null:r}i(S7,"bodyMimeType");_7.exports={extractBody:P7,safelyExtractBody:X2e,cloneBody:Z2e,mixinBody:rqe,streamRegistry:T7,hasFinalizationRegistry:N7,bodyUnusable:v7}});var W7=b((C1t,Y7)=>{"use strict";var Pe=require("node:assert"),Oe=ut(),{channels:Q7}=lA(),EM=eM(),{RequestContentLengthMismatchError:Up,ResponseContentLengthMismatchError:D7,RequestAbortedError:$7,HeadersTimeoutError:sqe,HeadersOverflowError:oqe,SocketError:wA,InformationalError:bA,BodyTimeoutError:iqe,HTTPParserError:aqe,ResponseExceededMaxSizeError:cqe}=xt(),{kUrl:G7,kReset:Fs,kClient:cb,kParser:Vt,kBlocking:dE,kRunning:Yr,kPending:H7,kSize:k7,kWriting:Yu,kQueue:Ki,kNoRef:lE,kKeepAliveDefaultTimeout:lqe,kHostHeader:uqe,kPendingIdx:dqe,kRunningIdx:si,kError:ps,kPipelining:lb,kSocket:$p,kKeepAliveTimeoutValue:db,kMaxHeadersSize:CM,kKeepAliveMaxTimeout:pqe,kKeepAliveTimeoutThreshold:mqe,kHeadersTimeout:fqe,kBodyTimeout:Aqe,kStrictContentLength:wM,kMaxRequests:L7,kCounter:hqe,kMaxResponseSize:gqe,kOnError:O7,kResume:kl,kHTTPContext:z7}=er(),Eo=TX(),M7=Buffer.alloc(0),ob=Buffer[Symbol.species],ib=Oe.addListener,yqe=Oe.removeAllListeners,Gp=Symbol("kIdleSocketValidation"),qp=Symbol("kIdleSocketValidationTimeout"),RM=Symbol("kSocketUsed"),IM;async function Eqe(){let t=process.env.JEST_WORKER_ID?nM():vo
`}return Q7.sendHeaders.hasSubscribers&&Q7.sendHeaders.publish({request:e,headers:E,socket:f}),!l||m===0?U7(g,null,t,e,f,d,E,p):Oe.isBuffer(l)?U7(g,l,t,e,f,d,E,p):Oe.isBlobLike(l)?typeof l.stream=="function"?q7(g,l.stream(),t,e,f,d,E,p):Rqe(g,l,t,e,f,d,E,p):Oe.isStream(l)?Bqe(g,l,t,e,f,d,E,p):Oe.isIterable(l)?q7(g,l,t,e,f,d,E,p):Pe(!1),!0}i(Sqe,"writeH1");function Bqe(t,e,r,n,s,o,a,c){Pe(o!==0||r[Yr]===0,"stream body cannot be pipelined");let l=!1,u=new pb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(g){if(!l)try{!u.write(g)&&this.pause&&this.pause()}catch(E){Oe.destroy(this,E)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),m=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let g=new $7;queueMicrotask(()=>f(g))}},"onClose"),f=i(function(g){if(!l){if(l=!0,Pe(s.destroyed||s[Yu]&&r[Yr]<=1),s.off("drain",p).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",m),!g)try{u.end()}catch(E){g=E}u.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Oe.destroy(e,g):Oe.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",m),e.resume&&e.resume(),s.on("drain",p).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(m)}i(Bqe,"writeStream");function U7(t,e,r,n,s,o,a,c){try{e?Oe.isBuffer(e)&&(Pe(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r
`,"latin1"):(Pe(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[kl]()}catch(l){t(l)}}i(U7,"writeBuffer");async function Rqe(t,e,r,n,s,o,a,c){Pe(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Up;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Fs]=!0),r[kl]()}catch(l){t(l)}}i(Rqe,"writeBlob");async function q7(t,e,r,n,s,o,a,c){Pe(o!==0||r[Yr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let m=l;l=null,m()}}i(u,"onDrain");let d=i(()=>new Promise((m,f)=>{Pe(l===null),s[ps]?f(s[ps]):l=m}),"waitForDrain");s.on("close",u).on("drain",u);let p=new pb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let m of e){if(s[ps])throw s[ps];p.write(m)||await d()}p.end()}catch(m){p.destroy(m)}finally{s.off("close",u).off("drain",u)}}i(q7,"writeIterable");var pb=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:o,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=o,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Yu]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[ps])throw r[ps];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[wM])throw new Up;process.emitWarning(new Up)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Fs]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),r!==null&&s!==r){if(n[wM])throw new Up;process.emitWarning(new Up)}e[Vt].timeout&&e[Vt].timeoutType===SA&&e[Vt].timeout.refresh&&e[Vt].timeout.refresh(),n[kl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Yu]=!1,e&&(Pe(n[Yr]<=1,"pipeline should only contain this request"),s(e))}};Y7.exports=Iqe});var rZ=b((x1t,tZ)=>{"use strict";var oi=require("node:assert"),{pipeline:Nqe}=require("node:stream"),ft=ut(),{RequestContentLengthMismatchError:NM,RequestAbortedError:j7,SocketError:pE,InformationalError:TM}=xt(),{kUrl:mb,kReset:Ab,kClient:BA,kRunning:hb,kPending:Tqe,kQueue:Wu,kPendingIdx:PM,kRunningIdx:Xi,kError:ea,kSocket:hn,kStrictContentLength:Pqe,kOnError:vM,kMaxConcurrentStreams:eZ,kHTTP2Session:Zi,kResume:ju,kSize:vqe,kHTTPContext:_qe}=er(),Ll=Symbol("open streams"),J7,K7=!1,fb;try{fb=require("node:http2")}catch{fb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Qqe,HTTP2_HEADER_METHOD:Dqe,HTTP2_HEADER_PATH:kqe,HTTP2_HEADER_SCHEME:Lqe,HTTP2_HEADER_CONTENT_LENGTH:Oqe,HTTP2_HEADER_EXPECT:Mqe,HTTP2_HEADER_STATUS:Fqe}}=fb;function Uqe(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}i(Uqe,"parseH2Headers");async function qqe(t,e){t[hn]=e,K7||(K7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=fb.connect(t[mb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[eZ]});r[Ll]=0,r[BA]=t,r[hn]=e,ft.addListener(r,"error",Gqe),ft.addListener(r,"frameError",Hqe),ft.addListener(r,"end",zqe),ft.addListener(r,"goaway",Vqe),ft.addListener(r,"close",function(){let{[BA]:s}=this,{[hn]:o}=s,a=this[hn][ea]||this[ea]||new pE("closed",ft.getSocketInfo(o));if(s[Zi]=null,s.destroyed){oi(s[Tqe]===0);let c=s[Wu].splice(s[Xi]);for(let l=0;l<c.length;l++){let u=c[l];ft.errorRequest(s,u,a)}}}),r.unref(),t[Zi]=r,e[Zi]=r,ft.addListener(e,"error",function(s){oi(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ea]=s,this[BA][vM](s)}),ft.addListener(e,"end",function(){ft.destroy(this,new pE("other side closed",ft.getSocketInfo(this)))}),ft.addListener(e,"close",function(){let s=this[ea]||new pE("closed",ft.getSocketInfo(this));t[hn]=null,this[Zi]!=null&&this[Zi].destroy(s),t[PM]=t[Xi],oi(t[hb]===0),t.emit("disconnect",t[mb],[t],s),t[ju]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return Wqe(t,...s)},resume(){$qe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(qqe,"connectH2");function $qe(t){let e=t[hn];e?.destroyed===!1&&(t[vqe]===0&&t[eZ]===0?(e.unref(),t[Zi].unref()):(e.ref(),t[Zi].ref()))}i($qe,"resumeH2");function Gqe(t){oi(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[hn][ea]=t,this[BA][vM](t)}i(Gqe,"onHttp2SessionError");function Hqe(t,e,r){if(r===0){let n=new TM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[hn][ea]=n,this[BA][vM](n)}}i(Hqe,"onHttp2FrameError");function zqe(){let t=new pE("other side closed",ft.getSocketInfo(this[hn]));this.destroy(t),ft.destroy(this[hn],t)}i(zqe,"onHttp2SessionEnd");function Vqe(t){let e=this[ea]||new pE(`HTTP/2: "GOAWAY" frame received with code ${t}`,ft.getSocketInfo(this)),r=this[BA];if(r[hn]=null,r[_qe]=null,this[Zi]!=null&&(this[Zi].destroy(e),this[Zi]=null),ft.destroy(this[hn],e),r[Xi]<r[Wu].length){let n=r[Wu][r[Xi]];r[Wu][r[Xi]++]=null,ft.errorRequest(r,n,e),r[PM]=r[Xi]}oi(r[hb]===0),r.emit("disconnect",r[mb],[r],e),r[ju]()}i(Vqe,"onHTTP2GoAway");function Yqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(Yqe,"shouldSendContentLength");function Wqe(t,e){let r=t[Zi],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return ft.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let p={};for(let Q=0;Q<u.length;Q+=2){let q=u[Q+0],M=u[Q+1];if(Array.isArray(M))for(let V=0;V<M.length;V++)p[q]?p[q]+=`,${M[V]}`:p[q]=M[V];else p[q]=M}let m,{hostname:f,port:g}=t[mb];p[Qqe]=o||`${f}
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Sh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Sh("Creating `tls.Socket`: %o",this.connectOpts),o=E7e.connect(this.connectOpts)):(Sh("Creating `net.Socket`: %o",this.connectOpts),o=y7e.connect(this.connectOpts)),await(0,I7e.once)(o,"connect"),o}};qB.protocols=["http","https"];yi.HttpProxyAgent=qB;function w7e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(w7e,"omit")});var Bde=b(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.state=void 0;tR.state={instrumenterImplementation:void 0}});var Gde=b(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR.state=void 0;iR.state={operationRequestMap:new WeakMap}});var Ife=b(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var znt=require("os"),Vnt=require("util");function Ynt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(Ynt,"_interopDefaultLegacy");var Wnt=Ynt(Vnt);function jnt(t,...e){process.stderr.write(`${Wnt.default.format(t,...e)}${znt.EOL}`)}i(jnt,"log");var dfe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,mfe,az=[],cz=[],SN=[];dfe&&lz(dfe);var ffe=Object.assign(t=>Afe(t),{enable:lz,enabled:uz,disable:Jnt,log:jnt});function lz(t){mfe=t,az=[],cz=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?cz.push(new RegExp(`^${n.substr(1)}$`)):az.push(new RegExp(`^${n}$`));for(let n of SN)n.enabled=uz(n.namespace)}i(lz,"enable");function uz(t){if(t.endsWith("*"))return!0;for(let e of cz)if(e.test(t))return!1;for(let e of az)if(e.test(t))return!0;return!1}i(uz,"enabled");function Jnt(){let t=mfe||"";return lz(""),t}i(Jnt,"disable");function Afe(t){let e=Object.assign(r,{enabled:uz(t),destroy:Knt,log:ffe.log,namespace:t,extend:Xnt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),SN.push(e),e}i(Afe,"createDebugger");function Knt(){let t=SN.indexOf(this);return t>=0?(SN.splice(t,1),!0):!1}i(Knt,"destroy");function Xnt(t){let e=Afe(`${this.namespace}:${t}`);return e.log=this.log,e}i(Xnt,"extend");var II=ffe,hfe=new Set,wN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,BN,RN=II("azure");RN.log=(...t)=>{II.log(...t)};var dz=["verbose","info","warning","error"];wN&&(Cfe(wN)?gfe(wN):console.error(`AZURE_LOG_LEVEL set to unknown log level '${wN}'; logging is not enabled. Acceptable values: ${dz.join(", ")}.`));function gfe(t){if(t&&!Cfe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${dz.join(",")}`);BN=t;let e=[];for(let r of hfe)Efe(r)&&e.push(r.namespace);II.enable(e.join(","))}i(gfe,"setLogLevel");function Znt(){return BN}i(Znt,"getLogLevel");var pfe={verbose:400,info:300,warning:200,error:100};function est(t){let e=RN.extend(t);return yfe(RN,e),{error:bN(e,"error"),warning:bN(e,"warning"),info:bN(e,"info"),verbose:bN(e,"verbose")}}i(est,"createClientLogger");function yfe(t,e){e.log=(...r)=>{t.log(...r)}}i(yfe,"patchLogMethod");function bN(t,e){let r=Object.assign(t.extend(e),{level:e});if(yfe(t,r),Efe(r)){let n=II.disable();II.enable(n+","+r.namespace)}return hfe.add(r),r}i(bN,"createLogger");function Efe(t){return!!(BN&&pfe[t.level]<=pfe[BN])}i(Efe,"shouldEnable");function Cfe(t){return dz.includes(t)}i(Cfe,"isAzureLogLevel");Gh.AzureLogger=RN;Gh.createClientLogger=est;Gh.getLogLevel=Znt;Gh.setLogLevel=gfe});var fz=b(wI=>{"use strict";Object.defineProperty(wI,"__esModule",{value:!0});var Hh=new WeakMap,NN=new WeakMap,xI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Hh.set(this,[]),NN.set(this,!1)}get aborted(){if(!NN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return NN.get(this)}static get none(){return new t}addEventListener(e,r){if(!Hh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Hh.get(this).push(r)}removeEventListener(e,r){if(!Hh.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Hh.get(this),s=n.indexOf(r);s>-
Polling status: ${vfe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(Tfe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(gst,"pollOperationHelper");async function kfe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:m,updateState:f,setDelay:g,isDone:E,setErrorAsResult:x}=t,{operationLocation:w}=r.config;if(w!==void 0){let{response:S,status:P}=await gst({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:w,getResourceLocation:a,isOperationError:l,options:s});if(Qfe({status:P,response:S,state:r,stateProxy:n,isDone:E,processResult:p,getError:m,setErrorAsResult:x}),!vfe.includes(P)){let Q=d?.(S);Q&&g(Q);let q=c?.(S,r);if(q!==void 0){let M=w!==q;r.config.operationLocation=q,u?.(q,M)}else u?.(w,!1)}f?.(r,S)}}i(kfe,"pollOperation");function Lfe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(Lfe,"getOperationLocationPollingUrl");function Ofe(t){return t.headers.location}i(Ofe,"getLocationHeader");function Mfe(t){return t.headers["operation-location"]}i(Mfe,"getOperationLocationHeader");function Ffe(t){return t.headers["azure-asyncoperation"]}i(Ffe,"getAzureAsyncOperationHeader");function yst(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(yst,"findResourceLocation");function Ufe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=Mfe(e),a=Ffe(e),c=Lfe({operationLocation:o,azureAsyncOperation:a}),l=Ofe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:yst({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Ufe,"inferLroMode");function qfe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn'tnecessarilyindicatetheoperationhasfailed.CheckyourAzuresubscriptionorresourcestatusformoreinformation.`);switch(e?.toLocaleLowerCase()){case void 0:return xz(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return $m.verbose(`LRO:unrecognizedoperationstatus:${e}`),e}}i(qfe,"transformStatus");function Est(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return qfe({status:r,statusCode:t.statusCode})}i(Est,"getStatus");function Cst(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return qfe({status:o,statusCode:t.statusCode})}i(Cst,"getProvisioningState");function xz(t){return t===202?"running":t<300?"succeeded":"failed"}i(xz,"toOperationStatus");function $fe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Ist(new Date(e)):r*1e3}}i($fe,"parseRetryAfter");function Gfe(t){let e=t.flatResponse.error;if(!e){$m.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){$m.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(Gfe,"getErrorFromResponse");function Ist(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(Ist,"calculatePollingIntervalFromDate");function Hfe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return xz(e.rawResponse.sta
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(lft,"logUnexpecedPropertyAccessOnce");functionuft(){Object.keys(mP).forEach(function(t){deletemP[t]})}i(uft,"resetLoggedProperties")});varAP=b(Fc=>{"use strict";Fc.__esModule=!0;Fc.HandlebarsEnvironment=WV;functionWEe(t){returnt&&t.__esModule?t:{default:t}}i(WEe,"_interopRequireDefault");vartf=Ns(),dft=zo(),VV=WEe(dft),pft=$V(),mft=HEe(),fft=HV(),fP=WEe(fft),Aft=zV(),hft="4.7.9";Fc.VERSION=hft;vargft=8;Fc.COMPILER_REVISION=gft;varyft=7;Fc.LAST_COMPATIBLE_COMPILER_REVISION=yft;varEft={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"};Fc.REVISION_CHANGES=Eft;varYV="[object Object]";functionWV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},pft.registerDefaultHelpers(this),mft.registerDefaultDecorators(this)}i(WV,"HandlebarsEnvironment");WV.prototype={constructor:WV,logger:fP.default,log:fP.default.log,registerHelper:i(function(e,r){if(tf.toString.call(e)===YV){if(r)thrownewVV.default("Arg not supported with multiple helpers");tf.extend(this.helpers,e)}elsethis.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){deletethis.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(tf.toString.call(e)===YV)tf.extend(this.partials,e);else{if(typeofr>"u")thrownewVV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){deletethis.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(tf.toString.call(e)===YV){if(r)thrownewVV.default("Arg not supported with multiple decorators");tf.extend(this.decorators,e)}elsethis.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){deletethis.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){Aft.resetLoggedProperties()},"resetLoggedPropertyAccesses")};varCft=fP.default.log;Fc.log=Cft;Fc.createFrame=tf.createFrame;Fc.logger=fP.default});varJEe=b((hP,jEe)=>{"use strict";hP.__esModule=!0;functionjV(t){this.string=t}i(jV,"SafeString");jV.prototype.toString=jV.prototype.toHTML=function(){return""+this.string};hP.default=jV;jEe.exports=hP.default});varKEe=b(JV=>{"use strict";JV.__esModule=!0;JV.wrapHelper=Ift;functionIft(t,e){if(typeoft!="function")returnt;varr=i(function(){vars=arguments[arguments.length-1];returnarguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");returnr}i(Ift,"wrapHelper")});varnCe=b(Fd=>{"use strict";Fd.__esModule=!0;Fd.checkRevision=Rft;Fd.template=Nft;Fd.wrapProgram=gP;Fd.resolvePartial=Tft;Fd.invokePartial=Pft;Fd.noop=tCe;functionxft(t){returnt&&t.__esModule?t:{default:t}}i(xft,"_interopRequireDefault");functionwft(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varrint)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);returne.default=t,e}i(wft,"_interopRequireWildcard");varbft=Ns(),xg=wft(bft),Sft=zo(),mu=xft(Sft),fu=AP(),XEe=$V(),Bft=KEe(),ZEe=zV();functionRft(t){vare=t&&t[0]||1,r=fu.COMPILER_REVISION;if(!(e>=fu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=fu.COMPILER_REVISION))if(e<fu.LAST_COMPATIBLE_COMPILER_REVISION){varn=fu.REVISION_CHANGES[r],s=fu.REVISION_CHANGES[e];thrownewmu.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+").")}elsethrownewmu.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(Rft,"checkRevision");functionNft(t,e){if(!e)thrownewmu.default("No environment passed to template");if(!t||!t.main)thrownewmu.default("Unknown template object: "+typeoft);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);varr=t.compiler&&t.compiler[0]===7;functionn(a,c,l){l.hash&&(c=xg.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
Expecting `+ne.join(", ")+", got '"+(this.terminals_[Q]||Q)+"'":It="Parse error on line "+(p+1)+": Unexpected "+(Q==1?"end of input":"'"+(this.terminals_[Q]||Q)+"'"),this.parseError(It,{text:this.lexer.match,token:this.terminals_[Q]||Q,line:this.lexer.yylineno,loc:x,expected:ne})}}if(V[0]instanceofArray&&V.length>1)thrownewError("Parse Error: multiple actions possible at state: "+M+", token: "+Q);switch(V[0]){case1:a.push(Q),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(V[1]),Q=null,q?(Q=q,q=null):(m=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc,f>0&&f--);break;case2:if(ye=this.productions_[V[1]][1],Re.$=c[c.length-ye],Re._$={first_line:l[l.length-(ye||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ye||1)].first_column,last_column:l[l.length-1].last_column},w&&(Re._$.range=[l[l.length-(ye||1)].range[0],l[l.length-1].range[1]]),Le=this.performAction.call(Re,d,m,p,this.yy,V[1],c,l),typeofLe<"u")returnLe;ye&&(a=a.slice(0,-1*ye*2),c=c.slice(0,-1*ye),l=l.slice(0,-1*ye)),a.push(this.productions_[V[1]][0]),c.push(Re.$),l.push(Re._$),H=u[a[a.length-2]][a[a.length-1]],a.push(H);break;case3:return!0}}return!0},"parse")},e=(function(){varn={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);elsethrownewError(o)},"parseError"),setInput:i(function(o){returnthis._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},"setInput"),input:i(function(){varo=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;vara=o.match(/(?:\r\n?|\n).*/g);returna?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i(function(o){vara=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;varl=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),c.length-1&&(this.yylineno-=c.length-1);varu=this.yylloc.range;returnthis.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:i(function(){returnthis._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){varo=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){varo=this.match;returno.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){varo=this.pastInput(),a=newArray(o.length+1).join("-");returno+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)returnthis.EOF;this._input||(this.done=!0);varo,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(varp=this._currentRules(),m=0;m<p.length&&(c=this._input.match(this.rules[p[m]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=m,!this.options.flex)));m++);returna?(d=a[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+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,p[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){varo=this.next();returntypeofo<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){returnthis.conditionStack.pop()},"popState"),_currentRules:i(function(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){returnthis.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};returnn.options={},n.performAction=i(function(o,a,c,l){functionu(p,m){returna.yytext=a.yytext.substring(p,a.yyleng-m+p)}i(u,"strip");vard=l;switch(c){case0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return15;break;case1:return15;case2:returnthis.popState(),15;break;case3:returnthis.begin("raw"),15;break;case4:returnthis.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case5:return15;case6:returnthis.popState(),14;break;case7:return65;case8:return68;case9:return19;case10:returnthis.popState(),this.begin("raw"),23;break;case11:return55;case12:return60;case13:return29;case14:return47;case15:returnthis.popState(),44;break;case16:returnthis.popState(),44;break;case17:return34;case18:return39;case19:return51;case20:return48;case21:this.unput(a.yytext),this.popState(),this.begin("com");break;case22:returnthis.popState(),14;break;case23:return48;case24:return73;case25:return72;case26:return72;case27:return87;case28:break;case29:returnthis.popState(),54;break;case30:returnthis.popState(),33;break;case31:returna.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case32:returna.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case33:return85;case34:return82;case35:return82;case36:return83;case37:return84;case38:return81;case39:return75;case40:return77;case41:return72;case42:returna.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case43:return"INVALID";case44:return5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;functionr(){this.yy={}}returni(r,"Parser"),r.prototype=t,t.Parser=r,newr})();xP.default=$ft;pCe.exports=xP.default});varBP=b((SP,hCe)=>{"use strict";SP.__esModule=!0;functionGft(t){returnt&&t.__esModule?t:{default:t}}i(Gft,"_interopRequireDefault");varHft=zo(),r4=Gft(Hft);functionwP(){this.parents=[]}i(wP,"Visitor");wP.prototype={constructor:wP,mutating:!1,acceptKey:i(function(e,r){varn=this.accept(e[r]);if(this.mutating){if(n&&!wP.prototype[n.type])thrownewr4.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.a
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new of(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof of?e:(e=b4(e,this,r),new of(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var a=b4(e[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(b4(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};DP.default=KCe;XCe.exports=DP.default});var sIe=b((kP,nIe)=>{"use strict";kP.__esModule=!0;function rIe(t){return t&&t.__esModule?t:{default:t}}i(rIe,"_interopRequireDefault");var eIe=AP(),qAt=zo(),B4=rIe(qAt),$At=Ns(),GAt=ZCe(),tIe=rIe(GAt);function Ng(t){this.value=t}i(Ng,"Literal");function Tg(){}i(Tg,"JavaScriptCompiler");Tg.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=eIe.COMPILER_REVISION,r=eIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return $At.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l<u;l++)a=o[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new B4.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
Moreinformationcanbefoundat:https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var Lgt,Ogt,Sxe,Bxe=I(()=>{Lgt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),Ogt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Sxe=i(t=>({applyToStack:i(e=>{e.add(Lgt(),Ogt)},"applyToStack")}),"getLongPollPlugin")});function zd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var Rxe=I(()=>{i(zd,"setCredentialFeature")});var Nxe,sY,Txe=I(()=>{Nxe=require("node:stream"),sY=i(t=>t?.body instanceof Nxe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var df,Vd,Yd,Pxe,vxe,rv=I(()=>{df=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Vd=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),Yd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((m,f)=>Pxe[f.step]-Pxe[m.step]||vxe[f.priority||"normal"]-vxe[m.priority||"normal"]),"sort"),o=i(p=>{let m=!1,f=i(g=>{let E=df(g.name,g.aliases);if(E.includes(p)){m=!0;for(let x of E)n.delete(x);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByName"),a=i(p=>{let m=!1,f=i(g=>{if(g.middleware===p){m=!0;for(let E of df(g.name,g.aliases))n.delete(E);return!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByReference"),c=i(p=>(t.forEach(m=>{p.add(m.middleware,{...m})}),e.forEach(m=>{p.addRelativeTo(m.middleware,{...m})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let m=[];return p.before.forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m.push(p),p.after.reverse().forEach(f=>{f.before.length===0&&f.after.length===0?m.push(f):m.push(...l(f))}),m},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let m=[],f=[],g={};return t.forEach(x=>{let w={...x,before:[],after:[]};for(let S of df(w.name,w.aliases))g[S]=w;m.push(w)}),e.forEach(x=>{let w={...x,before:[],after:[]};for(let S of df(w.name,w.aliases))g[S]=w;f.push(w)}),f.forEach(x=>{if(x.toMiddleware){let w=g[x.toMiddleware];if(w===void 0){if(p)return;throw new Error(`${x.toMiddleware} is not found when adding ${Vd(x.name,x.aliases)} middleware ${x.relation} ${x.toMiddleware}`)}x.relation==="after"&&w.after.push(x),x.relation==="before"&&w.before.push(x)}}),s(m).map(l).reduce((x,w)=>(x.push(...w),x),[])},"getMiddlewareList"),d={add:i((p,m={})=>{let{name:f,override:g,aliases:E}=m,x={step:"initialize",priority:"normal",middleware:p,...m},w=df(f,E);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Vd(f,E)}'`);for(let S of w){let P=t.findIndex(q=>q.name===S||q.aliases?.some(M=>M===S));if(P===-1)continue;let Q=t[P];if(Q.step!==x.step||x.priority!==Q.priority)throw new Error(`"${Vd(Q.name,Q.aliases)}" middleware with ${Q.priority} priority in ${Q.step} step cannot be overridden by "${Vd(f,E)}" middleware with ${x.priority} priority in ${x.step} step.`);t.splice(P,1)}}for(let S of w)n.add(S)}t.push(x)},"add"),addRelativeTo:i((p,m)=>{let{name:f,override:g,aliases:E}=m,x={middleware:p,...m},w=df(f,E);if(w.length>0){if(w.some(S=>n.has(S))){if(!g)throw new Error(`Duplicate middleware name '${Vd(f,E)}'`);for(let S of w){let P=e.findIndex(q=>q.name===S||q.aliases?.some(M=>M===S));if(P===-1)continue;let Q=e[P];if(Q.toMiddleware!==x.toMiddleware||Q.relation!==x.relation)throw new Error(`"${Vd(Q.name,Q.aliases)}" middleware ${Q.relation} "${Q.toMiddleware}" middleware cannot be overridden by "${Vd(f,E)}" middleware ${x.relation} "${x.toMiddleware}" middleware.`);e.splice(P,1)}}for(let S of w)n.add(S)}e.push(x)},"addRelativeTo"),clone:i(()=>c(Yd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let m=!1,f=i(g=>{let{tags:E,name:x,aliases:w}=g;if(E&&E.includes(p)){let S=df(x,w);for(let P of S)n.delete(P);return m=!0,!1}return!0},"filterCb");return t=t.filter(f),e=e.filter(f),m},"removeByTag"),concat:i(p=>{let m=c(Yd());return m.use(p),m.identifyOnResolve(r||m.identifyOnRes
`),"stackTraceWarning"),Ug={warn:console.warn}});function ba(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),s=t.getUTCDate(),o=t.getUTCHours(),a=t.getUTCMinutes(),c=t.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,d=a<10?`0${a}`:`${a}`,p=c<10?`0${c}`:`${c}`;return`${Kgt[n]},${l}${AY[r]}${e}${u}:${d}:${p}GMT`}var Kgt,AY,Xgt,Awe,Zgt,hv,eyt,tyt,ryt,Gg,gv,Nx,nyt,syt,oyt,fY,iyt,ayt,cyt,$c,lyt,uyt,$g,hwe=I(()=>{mY();Kgt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],AY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(ba,"dateToUtcString");Xgt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Awe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Xgt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Jd($g(n)),p=$c(s,"month",1,12),m=$c(o,"day",1,31);return Nx(d,p,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),Zgt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),hv=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Zgt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u,d]=e,p=Jd($g(n)),m=$c(s,"month",1,12),f=$c(o,"day",1,31),g=Nx(p,m,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&g.setTime(g.getTime()-uyt(d)),g},"parseRfc3339DateTimeWithOffset"),eyt=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$/),tyt=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$/),ryt=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})$/),Gg=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=eyt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Nx(Jd($g(o)),fY(s),$c(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=tyt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return oyt(Nx(nyt(o),fY(s),$c(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=ryt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Nx(Jd($g(u)),fY(n),$c(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),gv=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Rx(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))},"parseEpochTimestamp"),Nx=i((t,e,r,n)=>{let s=e-1;return ayt(t,s,r),new Date(Date.UTC(t,s,r,$c(n.hours,"hour",0,23),$c(n.minutes,"minute",0,59),$c(n.seconds,"seconds",0,60),lyt(n.fractionalMilliseconds)))},"buildDate"),nyt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Jd($g(t));return r<e?r+100:r},"parseTwoDigitYear"),syt=50*365*24*60*60*1e3,oyt=i(t=>t.getTime()-new Date().getTime()>syt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),fY=i(t=>{let e=AY.indexOf(t);if(e<0)throw new TypeError(`Invalidmonth:${t}`);return e+1},"parseMonthByShortName"),iyt=[31,28,31,30,31,30,31,31,30,31,30,31],ayt=i((t,e,r)=>{let n=iyt[e];if(e===1&&cyt(t)&&(n=29),r>n)throw new TypeError(`Invaliddayfor${AY[e]}in${t}:${r}`)},"validateDayOfMonth"),cyt=i(t=>t%4===0&&(t%100!==0
`)}p.push(null)}),p}var wSe,SSe=I(()=>{wSe=require("node:stream");xSe();bu();i(bSe,"getAwsChunkedEncodingStream")});async function BSe(t,e){let r=0,n=[],s=t.getReader(),o=!1;for(;!o;){let{done:l,value:u}=await s.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=e)break;o=l}s.releaseLock();let a=new Uint8Array(Math.min(e,r)),c=0;for(let l of n){if(l.byteLength>a.byteLength-c){a.set(l.subarray(0,a.byteLength-c),c);break}else a.set(l,c);c+=l.length}return a}var RSe=I(()=>{i(BSe,"headStream")});var NSe,TSe,hW,PSe=I(()=>{NSe=require("node:stream");RSe();bu();TSe=i((t,e)=>On(t)?BSe(t,e):new Promise((r,n)=>{let s=new hW;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)})}),"headStream"),hW=class extends NSe.Writable{static{i(this,"Collector")}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 vSe,_Se=I(()=>{vSe=i(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)},"toUtf8")});var QSe,DSe=I(()=>{dW();QSe=i(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,a=0;for(let u=s,d=s+3;u<=d;u++)if(t[u]!=="="){if(!(t[u]in uW))throw new TypeError(`Invalidcharacter${t[u]}inbase64string.`);o|=uW[t[u]]<<(d-u)*Xd,a+=Xd}else o>>=Xd;let c=s/4*3;o>>=a%Af;let l=Math.floor(a/Af);for(let u=0;u<l;u++){let d=(l-u-1)*Af;n.setUint8(c+u,(o&255<<d)>>d)}}return new Uint8Array(r)},"fromBase64")});async function $yt(t){let e=await Hyt(t),r=QSe(e);return new Uint8Array(r)}async function Gyt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}function Hyt(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(","),a=o>-1?o+1:s.length;e(s.substring(a))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}var kSe,LSe=I(()=>{DSe();kSe=i(async t=>typeof Blob=="function"&&t instanceof Blob||t.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await t.arrayBuffer()):$yt(t):Gyt(t),"streamCollector");i($yt,"collectBlob");i(Gyt,"collectStream");i(Hyt,"readToBase64")});var OSe,FSe,MSe,USe=I(()=>{pW();CY();_Se();LSe();bu();OSe="The stream has already been transformed.",FSe=i(t=>{if(!MSe(t)&&!On(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpectedstreamimplementation,expectBloborReadableStream,got${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(OSe);return e=!0,await kSe(t)},"transformToByteArray"),n=i(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()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return i_(o);if(s==="hex")return ki(o);if(s===void 0||s==="utf8"||s==="utf-8")return vSe(o);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(o);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(OSe);if(e=!0,MSe(t))return n(t);if(On(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),MSe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});async function Vyt(t){let e=[],r=t.getReader(),n=!1,s=0;for(;!n;){let{done:c,value:l}=await r.read();l&&(e.push(l),s+=l.length),n=c}let o=new Uint8Array(s),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}var qSe,gW,zyt,$Se,GSe=I(()=>{qSe=require("node:stream"),gW=class extends qSe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}},zyt=i(t=>typeof ReadableStream=="function"&&t instanceof ReadableStream,"isReadableStreamInstance");i(Vyt,"collectReadableStream");$Se=i(t=>zyt(t)?Vyt(t):new Promise((e,r)=>{let n=new gW;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)})}),"streamCollector")});var c_,HSe,l_,zSe=I(()=>{c_=require("node:stream");jd();USe();GSe();HSe="The stream has already been transformed.",l_=i(t=>{if(!(t instanceof c_.Readable))try{return FSe(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=i(async()=>{if(e)throw new Error(HSe);return e=!0,await $Se(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?wa(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(HSe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof c_.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,c_.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function VSe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var YSe=I(()=>{i(VSe,"splitStream")});async function WSe(t){if(On(t)||o_(t))return VSe(t);let e=new yW.PassThrough,r=new yW.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var yW,jSe=I(()=>{yW=require("node:stream");YSe();bu();i(WSe,"splitStream")});var Zd={};rn(Zd,{ChecksumStream:()=>Zg,Hash:()=>Fi,LazyJsonString:()=>Zn,NumericValue:()=>qt,Uint8ArrayBlobAdapter:()=>yf,_parseEpochTimestamp:()=>pf,_parseRfc3339DateTimeWithOffset:()=>Ev,_parseRfc7231DateTime:()=>Cv,calculateBodyLength:()=>Gc,copyDocumentWithTransform:()=>twe,createBufferedReadable:()=>ESe,createChecksumStream:()=>fSe,dateToUtcString:()=>ba,deserializerMiddleware:()=>Sv,deserializerMiddlewareOption:()=>aW,expectBoolean:()=>swe,expectByte:()=>uv,expectFloat32:()=>Bx,expectInt:()=>owe,expectInt32:()=>cv,expectLong:()=>Fg,expectNonNull:()=>iwe,expectNumber:()=>Mg,expectObject:()=>dY,expectShort:()=>lv,expectString:()=>awe,expectUnion:()=>pv,fromArrayBuffer:()=>wa,fromBase64:()=>Gr,fromHex:()=>wv,fromString:()=>Wd,fromUtf8:()=>Hr,generateIdempotencyToken:()=>Ra,getAwsChunkedEncodingStream:()=>bSe,getSerdePlugin:()=>tSe,handleFloat:()=>lwe,headStream:()=>TSe,isArrayBuffer:()=>ov,isBlob:()=>o_,isReadableStream:()=>On,limitedParseDouble:()=>fv,limitedParseFloat:()=>uwe,limitedParseFloat32:()=>dwe,logger:()=>Ug,nv:()=>xv,parseBoolean:()=>nwe,parseEpochTimestamp:()=>gv,parseRfc3339DateTime:()=>Awe,parseRfc3339DateTimeWithOffset:()=>hv,parseRf
`));returnr(s)},"httpAuthSchemeMiddleware")});varqNe,Tu,$Ne=I(()=>{dQ();qNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Tu=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(tw(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),qNe)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});varGNe,wCt,HNe=I(()=>{dQ();GNe={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},wCt=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(tw(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),GNe)},"applyToStack")}),"getHttpAuthSchemePlugin")});varzNe=I(()=>{dQ();$Ne();HNe()});varbCt,SCt,Q8,D8=I(()=>{Ce();De();bCt=i(t=>e=>{throwe},"defaultErrorHandler"),SCt=i((t,e)=>{},"defaultSuccessHandler"),Q8=i(t=>(e,r)=>asyncn=>{if(!mt.isInstance(n.request))returne(n);leto=Ar(r).selectedHttpAuthScheme;if(!o)thrownewError("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=awaite({...n,request:awaitl.sign(n.request,c,a)}).catch((l.errorHandler||bCt)(a));return(l.successHandler||SCt)(u.response,a),u},"httpSigningMiddleware")});varVNe,Pu,YNe=I(()=>{D8();VNe={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Pu=i(t=>({applyToStack:i(e=>{e.addRelativeTo(Q8(t),VNe)},"applyToStack")}),"getHttpSigningPlugin")});varWNe=I(()=>{D8();YNe()});varfl,jNe=I(()=>{fl=i(t=>{if(typeoft=="function")returnt;lete=Promise.resolve(t);return()=>e},"normalizeProvider")});functionJNe(t,e,r,n,s){returni(asyncfunction*(a,c,...l){letu=c,d=a.startingToken??u[r],p=!0,m;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.clientinstanceoft)m=awaitBCt(e,a.client,c,a.withCommand,...l);elsethrownewError(`Invalid client, expected instance of ${t.name}`);yieldm;letf=d;d=RCt(m,n),p=!!(d&&(!a.stopOnSameToken||d!==f))}returnvoid0},"paginateOperation")}varBCt,RCt,KNe=I(()=>{BCt=i(async(t,e,r,n=o=>o,...s)=>{leto=newt(r);returno=n(o)??o,awaite.send(o,...s)},"makePagedClientRequest");i(JNe,"createPaginator");RCt=i((t,e)=>{letr=t,n=e.split(".");for(letsofn){if(!r||typeofr!="object")return;r=r[s]}returnr},"get")});varXNe=I(()=>{De()});functionNCt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}varZNe=I(()=>{i(NCt,"setFeature")});varva,eTe=I(()=>{va=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=newMap;constructor(e){for(letrine){letn=e[r];n!==void0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){returnthis.authSchemes.get(e)}}});vark8,L8,tTe=I(()=>{De();k8=D(Ia()),L8=class{static{i(this,"HttpApiKeyAuthSigner")}asyncsign(e,r,n){if(!n)thrownewError("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)thrownewError("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)thrownewError("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)thrownewError("request could not be signed with `apiKey` since the `apiKey` is not defined");lets=mt.clone(e);if(n.in===k8.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;elseif(n.in===k8.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme}${r.apiKey}`:r.apiKey;elsethrownewError("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");returns}}});varO8,rTe=I(()=>{De();O8=class{static{i(this,"HttpBearerAuthSigner")}asyncsign(e,r,n){lets=mt.clone(e);if(!r.token)thrownewError("request
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");MQ.checkUrl=VIt});vartve=b(FQ=>{"use strict";Object.defineProperty(FQ,"__esModule",{value:!0});FQ.createGetRequest=JIt;FQ.getCredentials=KIt;var$j=(Tt(),W(Ln)),YIt=(De(),W(rl)),WIt=(st(),W(Zd)),jIt=(st(),W(Zd));functionJIt(t){returnnewYIt.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})}i(JIt,"createGetRequest");asyncfunctionKIt(t,e){letn=await(0,jIt.sdkStreamMixin)(t.body).transformToString();if(t.statusCode===200){lets=JSON.parse(n);if(typeofs.AccessKeyId!="string"||typeofs.SecretAccessKey!="string"||typeofs.Token!="string"||typeofs.Expiration!="string")thrownew$j.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,WIt.parseRfc3339DateTime)(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){lets={};try{s=JSON.parse(n)}catch{}throwObject.assign(new$j.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}thrownew$j.CredentialsProviderError(`Server responded with status: ${t.statusCode}`,{logger:e})}i(KIt,"getCredentials")});varrve=b(UQ=>{"use strict";Object.defineProperty(UQ,"__esModule",{value:!0});UQ.retryWrapper=void0;varXIt=i((t,e,r)=>async()=>{for(letn=0;n<e;++n)try{returnawaitt()}catch{awaitnewPromise(o=>setTimeout(o,r))}returnawaitt()},"retryWrapper");UQ.retryWrapper=XIt});varove=b(qQ=>{"use strict";Object.defineProperty(qQ,"__esModule",{value:!0});qQ.fromHttp=void0;varZIt=(sy(),W(ny)),ext=(bt(),W(ks)),nve=(Tt(),W(Ln)),txt=_u(),rxt=ZIt.__importDefault(require("node:fs/promises")),nxt=eve(),sve=tve(),sxt=rve(),oxt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",ixt="http://169.254.170.2",axt="AWS_CONTAINER_CREDENTIALS_FULL_URI",cxt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",lxt="AWS_CONTAINER_AUTHORIZATION_TOKEN",uxt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");lete,r=t.awsContainerCredentialsRelativeUri??process.env[oxt],n=t.awsContainerCredentialsFullUri??process.env[axt],s=t.awsContainerAuthorizationToken??process.env[lxt],o=t.awsContainerAuthorizationTokenFile??process.env[cxt],a=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?.warn?console.warn:t.logger.warn.bind(t.logger);if(r&&n&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsFullUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationToken will take precedence.")),n)e=n;elseif(r)e=`${ixt}${r}`;elsethrownewnve.CredentialsProviderError(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});letc=newURL(e);(0,nxt.checkUrl)(c,t.logger);letl=txt.NodeHttpHandler.create({requestTimeout:t.timeout??1e3,connectionTimeout:t.timeout??1e3});return(0,sxt.retryWrapper)(async()=>{letu=(0,sve.createGetRequest)(c);s?u.headers.Authorization=s:o&&(u.headers.Authorization=(awaitrxt.default.readFile(o)).toString());try{letd=awaitl.handle(u);return(0,sve.getCredentials)(d.response).then(p=>(0,ext.setCredentialFeature)(p,"CREDENTIALS_HTTP","z"))}catch(d){thrownewnve.CredentialsProviderError(String(d),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3)},"fromHttp");qQ.fromHttp=uxt});varGj=b(ive=>{"use strict";vardxt=ove();ive.fromHttp=dxt.fromHttp});functionpxt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}functionmxt(t){return{schemeId:"smithy.api#noAuth"}}varave,cve,lve,Hj=I(()=>{en();Ce();ave=i(async(t,e,r)=>({operation:Ar(e).operation,region:awaitUt(t.region)()||(()=>{thrownewError("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(pxt,"createAwsAuthSigv4HttpAuthOption");i(mxt,"createSmithyApiNoAuthHttpAuthOption");cve=i(t=>{lete=[];returnt.operation==="CreateToken"?e.push(mxt(t)):e.push(pxt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),lve=i(t=>{lete=Il(t);returnObject.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});varuve,dve,zj=I(()=>{uve=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),dve={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});varmp,pw=I(()=>{mp={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/runt
`||C==="\r"}i(d,"u");function p(C,h){let y=h;for(;h<C.length;h++)if(C[h]=="?"||C[h]==""){let N=C.substr(y,h-y);if(h>5&&N==="xml")return P("InvalidXml","XMLdeclarationallowedonlyatthestartofthedocument.",M(C,h));if(C[h]=="?"&&C[h+1]==">"){h++;break}continue}return h}i(p,"p");function m(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}i(m,"c");let f='"',g="'";function E(C,h){let y="",N="",B=!1;for(;h<C.length;h++){if(C[h]===f||C[h]===g)N===""?N=C[h]:N!==C[h]||(N="");else if(C[h]===">"&&N===""){B=!0;break}y+=C[h]}return N===""&&{value:y,index:h,tagClosed:B}}i(E,"g");let x=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function w(C,h){let y=s(C,x),N={};for(let B=0;B<y.length;B++){if(y[B][1].length===0)return P("InvalidAttr","Attribute '"+y[B][2]+"' has no space in starting.",V(y[B]));if(y[B][3]!==void 0&&y[B][4]===void 0)return P("InvalidAttr","Attribute '"+y[B][2]+"' is without value.",V(y[B]));if(y[B][3]===void 0&&!h.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+y[B][2]+"' is not allowed.",V(y[B]));let v=y[B][2];if(!Q(v))return P("InvalidAttr","Attribute '"+v+"' is an invalid name.",V(y[B]));if(Object.prototype.hasOwnProperty.call(N,v))return P("InvalidAttr","Attribute '"+v+"' is repeated.",V(y[B]));N[v]=1}return!0}i(w,"x");function S(C,h){if(C[++h]===";")return-1;if(C[h]==="#")return(function(N,B){let v=/\d/;for(N[B]==="x"&&(B++,v=/[\da-fA-F]/);B<N.length;B++){if(N[B]===";")return B;if(!N[B].match(v))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}i(S,"N");function P(C,h,y){return{err:{code:C,msg:h,line:y.line||y,col:y.col}}}i(P,"b");function Q(C){return o(C)}i(Q,"y");function q(C){return o(C)}i(q,"E");function M(C,h){let y=C.substring(0,h).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}i(M,"w");function V(C){return C.startIndex+C[1].length}i(V,"v");let pe=i(C=>a.includes(C)?"__"+C:C,"S"),Le={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:i(function(C,h){return h},"tagValueProcessor"),attributeValueProcessor:i(function(C,h){return h},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(C,h,y){return C},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:pe};function Re(C,h){if(typeof C!="string")return;let y=C.toLowerCase();if(a.some(N=>y===N.toLowerCase()))throw new Error(`[SECURITY]Invalid${h}:"${C}"isareservedJavaScriptkeywordthatcouldcauseprototypepollution`);if(c.some(N=>y===N.toLowerCase()))throw new Error(`[SECURITY]Invalid${h}:"${C}"isareservedJavaScriptkeywordthatcouldcauseprototypepollution`)}i(Re,"A");function oe(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),maxExpandedLengt
`);leth=newne("!xml"),y=h,N="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;letB=this.options,v=newIt(B.processEntities),L=C.length;for(let_=0;_<L;_++)if(C[_]==="<"){letO=C.charCodeAt(_+1);if(O===47){letk=sA(C,">",_,"Closing Tag is not closed."),U=C.substring(_+2,k).trim();if(B.removeNSPrefix){letAe=U.indexOf(":");Ae!==-1&&(U=U.substr(Ae+1))}U=nO(B.transformTagName,U,"",B).tagName,y&&(N=this.saveTextToParentTag(N,y,this.readonlyMatcher));letJ=this.matcher.getCurrentTag();if(U&&B.unpairedTagsSet.has(U))thrownewError(`Unpaired tag can not be used as closing tag: </${U}>`);J&&B.unpairedTagsSet.has(J)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,y=this.tagsNodeStack.pop(),N="",_=k}elseif(O===63){letk=rO(C,_,!1,"?>");if(!k)thrownewError("Pi Tag is not closed.");N=this.saveTextToParentTag(N,y,this.readonlyMatcher);letU=this.buildAttributesMap(k.tagExp,this.matcher,k.tagName,!0);if(U){letJ=U[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(J)||1)}if(!(B.ignoreDeclaration&&k.tagName==="?xml"||B.ignorePiTags)){letJ=newne(k.tagName);J.add(B.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&B.ignoreAttributes!==!0&&(J[":@"]=U),this.addChild(y,J,this.readonlyMatcher,_)}_=k.closeIndex+1}elseif(O===33&&C.charCodeAt(_+2)===45&&C.charCodeAt(_+3)===45){letk=sA(C,"-->",_+4,"Comment is not closed.");if(B.commentPropName){letU=C.substring(_+4,k-2);N=this.saveTextToParentTag(N,y,this.readonlyMatcher),y.add(B.commentPropName,[{[B.textNodeName]:U}])}_=k}elseif(O===33&&C.charCodeAt(_+2)===68){letk=v.readDocType(C,_);this.entityDecoder.addInputEntities(k.entities),_=k.i}elseif(O===33&&C.charCodeAt(_+2)===91){letk=sA(C,"]]>",_,"CDATA is not closed.")-2,U=C.substring(_+9,k);N=this.saveTextToParentTag(N,y,this.readonlyMatcher);letJ=this.parseTextData(U,y.tagname,this.readonlyMatcher,!0,!1,!0,!0);J==null&&(J=""),B.cdataPropName?y.add(B.cdataPropName,[{[B.textNodeName]:U}]):y.add(B.textNodeName,J),_=k+2}else{letk=rO(C,_,B.removeNSPrefix);if(!k){letvr=C.substring(Math.max(0,_-50),Math.min(L,_+50));thrownewError(`readTagExp returned undefined at position ${_}. Context: "${vr}"`)}letU=k.tagName,J=k.rawTagName,Ae=k.tagExp,we=k.attrExpPresent,_e=k.closeIndex;if({tagName:U,tagExp:Ae}=nO(B.transformTagName,U,Ae,B),B.strictReservedNames&&(U===B.commentPropName||U===B.cdataPropName||U===B.textNodeName||U===B.attributesGroupName))thrownewError(`Invalid tag name: ${U}`);y&&N&&y.tagname!=="!xml"&&(N=this.saveTextToParentTag(N,y,this.readonlyMatcher,!1));letlt=y;lt&&B.unpairedTagsSet.has(lt.tagname)&&(y=this.tagsNodeStack.pop(),this.matcher.pop());letVr=!1;Ae.length>0&&Ae.lastIndexOf("/")===Ae.length-1&&(Vr=!0,U[U.length-1]==="/"?(U=U.substr(0,U.length-1),Ae=U):Ae=Ae.substr(0,Ae.length-1),we=U!==Ae);letls,Rn=null,iA={};ls=_Me(J),U!==h.tagname&&this.matcher.push(U,{},ls),U!==Ae&&we&&(Rn=this.buildAttributesMap(Ae,this.matcher,U),Rn&&(iA=vMe(Rn,B))),U!==h.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());letus=_;if(this.isCurrentNodeStopNode){letvr="";if(Vr)_=k.closeIndex;elseif(B.unpairedTagsSet.has(U))_=k.closeIndex;else{letaO=this.readStopNodeData(C,J,_e+1);if(!aO)thrownewError(`Unexpected end of ${J}`);_=aO.i,vr=aO.tagContent}letiO=newne(U);Rn&&(iO[":@"]=Rn),iO.add(B.textNodeName,vr),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(y,iO,this.readonlyMatcher,us)}else{if(Vr){({tagName:U,tagExp:Ae}=nO(B.transformTagName,U,Ae,B));letvr=newne(U);Rn&&(vr[":@"]=Rn),this.addChild(y,vr,this.readonlyMatcher,us),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(B.unpairedTagsSet.has(U)){letvr=newne(U);Rn&&(vr[":@"]=Rn),this.addChild(y,vr,this.readonlyMatcher,us),this.matcher.pop(),this.isCurrentNodeStopNode=!1,_=k.closeIndex;continue}{letvr=newne(U);if(this.tagsNodeStack.length>B.maxNestedTags)thrownewError("Maximum nested tags exceeded");this.tagsNodeStack.push(y),Rn&&(vr[":@"]=Rn),this.addChild(y,vr,this.readonlyMatcher,us),y=vr}}N="",_=_
`)?"":void 0,"tagValueProcessor"),maxNestedTags:1/0});function qxt(t){return Uxt.parse(t,!0)}i(qxt,"parseXML")});var aD=b(iD=>{"usestrict";var $xt=Fve(),Gxt=/[&<>"]/g,Hxt={"&":"&","<":"<",">":">",'"':"""};functionzxt(t){returnt.replace(Gxt,e=>Hxt[e])}i(zxt,"escapeAttribute");varVxt=/[&"'<>\r\n\u0085\u2028]/g,Yxt={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};functionWxt(t){returnt.replace(Vxt,e=>Yxt[e])}i(Wxt,"escapeElement");varoD=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){returnWxt(""+this.value)}},CJ=classt{static{i(this,"XmlNode")}name;children;attributes={};staticof(e,r,n){lets=newt(e);returnr!==void0&&s.addChildNode(newoD(r)),n!==void0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){returnthis.name=e,this}addAttribute(e,r){returnthis.attributes[e]=r,this}addChildNode(e){returnthis.children.push(e),this}removeAttribute(e){returndeletethis.attributes[e],this}n(e){returnthis.name=e,this}c(e){returnthis.children.push(e),this}a(e,r){returnr!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){lets=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(a=>{a.withName(n),this.c(a)})}lc(e,r,n,s){if(e[r]!=null){leto=s(),a=newt(n);o.map(c=>{a.c(c)}),this.c(a)}}toString(){lete=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(letsofObject.keys(n)){leto=n[s];o!=null&&(r+=`${s}="${zxt(""+o)}"`)}returnr+=e?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}};iD.parseXML=$xt.parseXML;iD.XmlNode=CJ;iD.XmlText=oD});varUve,Qf,cD=I(()=>{Uve=D(aD());Ce();De();Ct();st();yp();cJ();Qf=classextendsos{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=newbf(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){lets=Ee.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){letu={},d=Object.keys(o)[0];returno[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}letc=(this.serdeContext?.utf8Encoder??gr)(r),l=this.parseXml(c);returnthis.readSchema(e,n?l[n]:l)}readSchema(e,r){letn=Ee.of(e);if(n.isUnitSchema())return;lets=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))returnthis.readSchema(n,[r]);if(r==null)returnr;if(typeofr=="object"){leto=!!s.xmlFlattened;if(n.isListSchema()){letc=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)returnl;letp=Array.isArray(d)?d:[d];for(letmofp)l.push(this.readSchema(c,m));returnl}leta={};if(n.isMapSchema()){letc=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];letd=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(letmofu){letf=m[d],g=m[p];a[f]=this.readSchema(l,g)}returna}if(n.isStructSchema()){letc=n.isUnionSchema(),l;c&&(l=newSy(r,a));for(let[u,d]ofn.structIterator()){letp=d.getMergedTraits(),m=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(m),r[m]!=null&&(a[u]=this.readSchema(d,r[m]))}returnc&&l.writeUnknown(),a}if(n.isDocumentSchema())returnr;thrownewError(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}returnn.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){letr;try{r=(0,Uve.parseXML)(e)}catch(a){throwa&&typeofa=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}letn="#text",s=Object.keys(r)[0],o=r[s];returno[n]&&(o[s]=o[n],deleteo[n]),Nf(o)}return{}}}});varCw,IJ=I(()=>{De();Ct();st();st();yp();Cw=classextendsos{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void0&&(this.buffer="");lets=Ee.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typ
Reference:https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),P0t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t,{ssoClient:c}=t,l=Os.getProfileName({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await Os.parseKnownFiles(t))[l];if(!d)throw new Os.CredentialsProviderError(`Profile ${l} was not found.`,{logger:t.logger});if(!BQe(d))throw new Os.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let w=(await Os.loadSsoSessionData(t))[d.sso_session],S=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==w.sso_region)throw new Os.CredentialsProviderError("Conflicting SSO region"+S,{tryNextLink:!1,logger:t.logger});if(r&&r!==w.sso_start_url)throw new Os.CredentialsProviderError("Conflicting SSO start_url"+S,{tryNextLink:!1,logger:t.logger});d.sso_region=w.sso_region,d.sso_start_url=w.sso_start_url}let{sso_start_url:p,sso_account_id:m,sso_region:f,sso_role_name:g,sso_session:E}=RQe(d,t.logger);return SQe({ssoStartUrl:p,ssoSession:E,ssoAccountId:m,ssoRegion:f,ssoRoleName:g,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}else{if(!r||!n||!s||!o)throw new Os.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return SQe({ssoStartUrl:r,ssoSession:a,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoClient:c,clientConfig:t.clientConfig,parentClientConfig:t.parentClientConfig,callerClientConfig:t.callerClientConfig,profile:l,filepath:t.filepath,configFilepath:t.configFilepath,ignoreCache:t.ignoreCache,logger:t.logger})}},"fromSSO");SD.fromSSO=P0t;SD.isSsoProfile=BQe;SD.validateSsoProfile=RQe});function v0t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function _0t(t){return{schemeId:"smithy.api#noAuth"}}var NQe,TQe,PQe,KJ=I(()=>{en();Ce();NQe=i(async(t,e,r)=>({operation:Ar(e).operation,region:await Ut(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(v0t,"createAwsAuthSigv4HttpAuthOption");i(_0t,"createSmithyApiNoAuthHttpAuthOption");TQe=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(_0t(t)):e.push(v0t(t)),e},"defaultSigninHttpAuthSchemeProvider"),PQe=i(t=>{let e=Il(t);return Object.assign(e,{authSchemePreference:Ut(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var vQe,_Qe,XJ=I(()=>{vQe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),_Qe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Yw,Ff,BD,QQe,OQe,RD,t5,ZJ,DQe,r5,e5,Ep,kQe,LQe,Q0t,is,D0t,MQe,FQe=I(()=>{wt();Yw="ref",Ff=-1,BD=!0,QQe="isSet",OQe="PartitionResult",RD="booleanEquals",t5="getAttr",ZJ="stringEquals",DQe={[Yw]:"Endpoint"},r5={[Yw]:OQe},e5={fn:t5,argv:[r5,"name"]},Ep={},kQe=[{[Yw]:"Region"}],LQe={conditions:[[QQe,[DQe]],[QQe,kQe],["aws.partition",kQe,OQe],[RD,[{[Yw]:"UseFIPS"},BD]],[RD,[{[Yw]:"UseDualStack"},BD]],[RD,[{fn:t5,argv:[r5,"supportsDualStack"]},BD]],[RD,[{fn:t5,argv:[r5,"supportsFIPS"]},BD]],[ZJ,[e5,"aws"]],[ZJ,[e5,"aws-cn"]],[ZJ,[e5,"aws-us-gov"]]],results:[[Ff],[Ff,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ff,"Invalid Configuration: Dualstack and custom endpoi
`),eLe=!0)),new vy.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),O5.fromEnv(t)()},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:n,ssoRegion:s,ssoRoleName:o,ssoSession:a}=t;if(!r&&!n&&!s&&!o&&!a)throw new vy.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=await Promise.resolve().then(()=>D(JJ()));return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>D(Xke()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>D(Q5()));return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>D(k5()));return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await DSt(t))()),async()=>{throw new vy.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],tLe),"defaultProvider"),MSt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),tLe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");JD.credentialsTreatedAsExpired=tLe;JD.credentialsWillNeedRefresh=MSt;JD.defaultProvider=OSt});var aLe=b(ZD=>{"use strict";Object.defineProperty(ZD,"__esModule",{value:!0});ZD.bdd=void 0;var FSt=(wt(),W(ff)),_y="ref",Wf=-1,KD=!0,rLe="isSet",U5="PartitionResult",bp="stringEquals",XD="booleanEquals",F5="getAttr",nLe={[_y]:"Endpoint"},Sp={fn:F5,argv:[{[_y]:U5},"name"]},sLe={[_y]:U5},jf={},oLe=[{[_y]:"Region"}],iLe={conditions:[[rLe,[nLe]],[rLe,oLe],["aws.partition",oLe,U5],[bp,[Sp,"aws-eusc"]],[bp,[Sp,"aws-iso-f"]],[bp,[Sp,"aws-iso-e"]],[bp,[Sp,"aws-iso-b"]],[bp,[Sp,"aws-iso"]],[bp,[Sp,"aws-cn"]],[bp,[Sp,"aws-us-gov"]],[bp,[Sp,"aws"]],[XD,[{[_y]:"UseFIPS"},KD]],[XD,[{fn:F5,argv:[sLe,"supportsFIPS"]},KD]],[XD,[{[_y]:"UseDualStack"},KD]],[XD,[{fn:F5,argv:[sLe,"supportsDualStack"]},KD]]],results:[[Wf],[Wf,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Wf,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[nLe,jf],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",jf],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",jf],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],[Wf,"FIPS and DualStack are enabled, but this partition does not support one or both"],[Wf,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",jf],[Wf,"DualStack is enabled but this partition does not support DualStack"],[Wf,"Invalid Configuration: Missing Region"]]},USt=2,$n=1e8,qSt=new Int32Array([-1,1,-1,0,23,3,1,4,$n+13,2,5,$n+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,$n+4,14,$n+11,$n+12,12,18,17,13,$n+9,$n+10,13,19,$n+6,14,$n+8,$n+9,11,22,21,13,$n+5,$n+4,13,$n+7,$n+6,11,$n+1,24,13,$n+2,$n+3]);ZD.bdd=FSt.BinaryDecisionDiagram.from(qSt,USt,iLe.conditions,iLe.results)});var cLe=b(ek=>{"use strict";Object.defineProperty(ek,"__esModule",{value:!0});ek.defaultEndpointResolver=void 0;var $St=(bt(),W(ks)),q5=(wt(),W(ff)),GSt=aLe(),HSt=new q5.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),zSt=i((t,e={})=>HSt.get(t,()=>(0,q5.decideEndpoint)(GSt.bdd,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");ek.defaultEndpointResolver=zSt;q5.customEndpointFunctions.aws=$St.awsEndpointFunctions});var tk=b(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(moe,"getBooleanInput");functionfoe(t){process.exitCode=j1.Failure,ih(t)}i(foe,"setFailed");functiondm(){returnprocess.env.RUNNER_DEBUG==="1"}i(dm,"isDebug");functionG(t){kp("debug",{},t)}i(G,"debug");functionih(t,e={}){kp("error",cO(e),tinstanceofError?t.toString():t)}i(ih,"error");functionDr(t,e={}){kp("warning",cO(e),tinstanceofError?t.toString():t)}i(Dr,"warning");functionKe(t){process.stdout.write(t+poe.EOL)}i(Ke,"info");functionFWe(t){uO("group",t)}i(FWe,"startGroup");functionUWe(){uO("endgroup")}i(UWe,"endGroup");functionrC(t,e){returnMWe(this,void0,void0,function*(){FWe(t);letr;try{r=yielde()}finally{UWe()}returnr})}i(rC,"group");functionpm(t,e){if(process.env.GITHUB_STATE||"")returndK("STATE",pK(t,e));kp("save-state",{name:t},Hu(e))}i(pm,"saveState");functionAoe(t){returnprocess.env[`STATE_${t}`]||""}i(Aoe,"getState");varQT=D(require("fs"),1),J3=D(require("os"),1),K3=D(require("path"),1);vargoe=D(require("os"),1);functionnC(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}i(nC,"toCommandValue");functionyoe(t,e,r){letn=newJ1(t,e,r);process.stdout.write(n.toString()+goe.EOL)}i(yoe,"issueCommand");varhoe="::",J1=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){lete=hoe+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}=${$We(s)}`)}}returne+=`${hoe}${qWe(this.message)}`,e}};functionqWe(t){returnnC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(qWe,"escapeData");function$We(t){returnnC(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i($We,"escapeProperty");varCoe=require("os"),sC=require("fs");varK1=function(t,e,r,n){functions(o){returnoinstanceofr?o:newr(function(a){a(o)})}returni(s,"adopt"),new(r||(r=Promise))(function(o,a){functionc(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");functionl(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");functionu(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:GWe,appendFile:HWe,writeFile:zWe}=sC.promises,Eoe="GITHUB_STEP_SUMMARY";varX1=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){returnK1(this,void0,void0,function*(){if(this._filePath)returnthis._filePath;lete=process.env[Eoe];if(!e)thrownewError(`Unable to find environment variable for $${Eoe}. Check if your runtime environment supports job summaries.`);try{yieldGWe(e,sC.constants.R_OK|sC.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,a])=>`${o}="${a}"`).join("");returnr?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnK1(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?zWe:HWe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnK1(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(Coe.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(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);returnthis.addRaw(o).addEOL()}addTable(e){letr=e.map(s=>{leto=s.map(a=>{if(typeofa=="string")returnthis.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,p=c?"th":"td",m=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});returnthis.wrap(p,l,m)}).join("");returnthis.wrap("tr",o)
`,"utf-8")],s=O7e(n);s&&t.headers.set("Content-Length",s),t.body=awaitfde(n)}i(M7e,"buildRequestBody");varkC="multipartPolicy",F7e=70,U7e=newSet("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");functionq7e(t){if(t.length>F7e)thrownewError(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!U7e.has(e)))thrownewError(`Multipart boundary "${t}" contains invalid characters`)}i(q7e,"assertValidBoundary");functionWB(){return{name:kC,asyncsendRequest(t,e){if(!t.multipartBody)returne(t);if(t.body)thrownewError("multipartBody and regular body cannot be set at the same time");letr=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)thrownewError(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)thrownewError(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);returnr??=a,r?q7e(r):r=D7e(),t.headers.set("Content-Type",`${o}; boundary=${r}`),awaitM7e(t,t.multipartBody.parts,r),t.multipartBody=void0,e(t)}}}i(WB,"multipartPolicy");functionjB(){returnEB()}i(jB,"createEmptyPipeline");varAde=hB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ljt=Ade.logger;functionic(t){returnAde.createClientLogger(t)}i(ic,"createClientLogger");varac=ic("core-rest-pipeline");functionL2(t={}){returnSB({logger:ac.info,...t})}i(L2,"logPolicy");varO2=BB;functionM2(t={}){returnRB(t)}i(M2,"redirectPolicy");varJB=D(require("node:os"),1),KB=D(require("node:process"),1);functionhde(){return"User-Agent"}i(hde,"getHeaderName");asyncfunctiongde(t){if(KB.default&&KB.default.versions){lete=`${JB.default.type()}${JB.default.release()}; ${JB.default.arch()}`,r=KB.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})`)}}i(gde,"setPlatformSpecificData");varXB="1.22.2";functionj7e(t){lete=[];for(let[r,n]oft){lets=n?`${r}/${n}`:r;e.push(s)}returne.join(" ")}i(j7e,"getUserAgentString");functionyde(){returnhde()}i(yde,"getUserAgentHeaderName");asyncfunctionZB(t){lete=newMap;e.set("core-rest-pipeline",XB),awaitgde(e);letr=j7e(e);returnt?`${t}${r}`:r}i(ZB,"getUserAgentValue");varEde=yde(),Cde="userAgentPolicy";functionF2(t={}){lete=ZB(t.userAgentPrefix);return{name:Cde,asyncsendRequest(r,n){returnr.headers.has(Ede)||r.headers.set(Ede,awaite),n(r)}}}i(F2,"userAgentPolicy");varLo=classextendsError{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};functionU2(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};returnnewPromise((o,a)=>{functionc(){a(newLo(s??"The operation was aborted."))}i(c,"rejectOnAbort");functionl(){n?.removeEventListener("abort",u)}i(l,"removeListeners");functionu(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)returnc();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(U2,"createAbortablePromise");vareZe="The delay was aborted.";functionLC(t,e){letr,{abortSignal:n,abortErrorMsg:s}=e??{};returnU2(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??eZe})}i(LC,"delay");functionId(t){if(Em(t))returnt.message;{lete;try{typeoft=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(Id,"getErrorMessage");functionIde(t){returnEm(t)}i(Ide,"isError");functionBh(){returnym()}i(Bh,"randomUUID");varRt=xm;varxde=Symbol("rawContent");function$2(t){returntypeoft[xde]=="function"}i($2,"hasRawContent");functionwde(t){return$2(t)?t[xde]():t}i(wde,"getRawContent");vareR=kC;functionG2(){lett=WB();return{name:eR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(letnofe.multipartBody.parts)$2(n.body)&&(n.body=wde(n.body));returnt.sendRequest(e,r)},"sendRequest")}}i(G2,"multipartPolicy");varH2=NB;functionz2(){returnTB()}i(z2,"decompressResponsePolicy");fun
`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!Bet(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Lr("InvalidTag",p,xs(t,o))}let u=Cet(t,o);if(u===!1)return Lr("InvalidAttr","Attributes for '"+l+"' have open quote.",xs(t,o));let d=u.value;if(o=u.index,d[d.length-1]==="/"){let p=o-d.length;d=d.substring(0,d.length-1);let m=cpe(d,e);if(m===!0)n=!0;else return Lr(m.err.code,m.err.msg,xs(t,p+m.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Lr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",xs(t,a));if(r.length===0)return Lr("InvalidTag","Closing tag '"+l+"' has not been opened.",xs(t,a));{let p=r.pop();if(l!==p.tagName){let m=xs(t,p.tagStartPos);return Lr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+l+"'.",xs(t,a))}r.length==0&&(s=!0)}}else return Lr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",xs(t,o));else{let p=cpe(d,e);if(p!==!0)return Lr(p.err.code,p.err.msg,xs(t,o-d.length+p.err.line));if(s===!0)return Lr("InvalidXml","Multiple possible root nodes found.",xs(t,o));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<t.length;o++)if(t[o]==="<")if(t[o+1]==="!"){o++,o=ape(t,o);continue}else if(t[o+1]==="?"){if(o=ipe(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=wet(t,o);if(p==-1)return Lr("InvalidChar","char '&' is not expected.",xs(t,o));o=p}else if(s===!0&&!ope(t[o]))return Lr("InvalidXml","Extra text at the end",xs(t,o));t[o]==="<"&&o--}}else{if(ope(t[o]))continue;return Lr("InvalidChar","char '"+t[o]+"' is not expected.",xs(t,o))}if(n){if(r.length==1)return Lr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",xs(t,r[0].tagStartPos));if(r.length>0)return Lr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Lr("InvalidXml","Start tag expected.",1);return!0}i(mR,"validate");function ope(t){return t===" "||t===" "||t===`
`||t==="\r"}i(ope,"isWhiteSpace");function ipe(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 Lr("InvalidXml","XML declaration allowed only at the start of the document.",xs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(ipe,"readPI");function ape(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}i(ape,"readCommentAndCDATA");var yet='"',Eet="'";function Cet(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===yet||t[e]===Eet)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}}i(Cet,"readAttributeStr");var Iet=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function cpe(t,e){let r=dR(t,Iet),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Lr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",WC(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Lr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",WC(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Lr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",WC(r[s]));let o=r[s][2];if(!bet(o))return Lr("InvalidAttr","Attribute '"+o+"' is an invalid name.",WC(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Lr("InvalidAttr","Attribute '"+o+"' is repeated.",WC(r[s]))}return!0}i(cpe,"validateAttributeString");function xet(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}i(xet,"validateNumberAmpersand");function wet(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,xet(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}i(wet,"validateAmpersand");function Lr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Lr,"getErrorObject");function bet(t){return hq(t)}i(bet,"validateAttrName");function Bet(t){return hq(t)}i(Bet,"validateTagName");function xs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(xs,"getLineNumberForPosition");function WC(t){return t.startIndex+t[1].length}i(WC,"getPositionFromMatch");var lpe={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"},upe={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",ntil
`);let e=new Js("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new KC(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=_h(t,">",c,"ClosingTagisnotclosed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=p.indexOf(":");f!==-1&&(p=p.substr(f+1))}p=bq(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);m&&s.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=Sq(t,c,!1,"?>");if(!d)throw new Error("PiTagisnotclosed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let m=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),o.setXmlVersion(Number(m)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let m=new Js(d.tagName);m.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(m[":@"]=p),this.addChild(r,m,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=_h(t,"-->",c+4,"Commentisnotclosed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=_h(t,"]]>",c,"CDATAisnotclosed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let m=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,m),c=d+2}else{let d=Sq(t,c,s.removeNSPrefix);if(!d){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let p=d.tagName,m=d.rawTagName,f=d.tagExp,g=d.attrExpPresent,E=d.closeIndex;if({tagName:p,tagExp:f}=bq(s.transformTagName,p,f,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let x=r;x&&s.unpairedTagsSet.has(x.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let w=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(w=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),f=p):f=f.substr(0,f.length-1),g=p!==f);let S=null,P={},Q;Q=jet(m),p!==e.tagname&&this.matcher.push(p,{},Q),p!==f&&g&&(S=this.buildAttributesMap(f,this.matcher,p),S&&(P=Wet(S,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let q=c;if(this.isCurrentNodeStopNode){let M="";if(w)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let pe=this.readStopNodeData(t,m,E+1);if(!pe)throw new Error(`Unexpected end of ${m}`);c=pe.i,M=pe.tagContent}let V=new Js(p);S&&(V[":@"]=S),V.add(s.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,V,this.readonlyMatcher,q)}else{if(w){({tagName:p,tagExp:f}=bq(s.transformTagName,p,f,s));let M=new Js(p);S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let M=new Js(p);S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let M=new Js(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),S&&(M[":@"]=S),this.addChild(r,M,this.readonlyMatcher,q),r=M}n="",c=E}}}else n+=t[c];return e.child},"parse
${c}:${decodeURIComponent(o[c])}`}returnn}};varwr=classextendsvm{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){returnnewrI(e,r,this)}computeHMACSHA256(e){return(0,qpe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};varon=ic("storage-common");varEi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ei||(Ei={}));varRd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ei.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void0},Ntt=newLo("The operation was aborted."),nI=classextendsdc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Rd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Rd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Rd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Rd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Rd.maxRetryDelayInMs):Rd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Rd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Rd.secondaryHost}}asyncsendRequest(e){returnthis.attemptSendRequest(e,!1,1)}asyncattemptSendRequest(e,r,n){lets=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=SR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Bd(s.url,Xl.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));leta;try{if(on.info(`RetryPolicy: =====> Try=${n}${o?"Primary":"Secondary"}`),a=awaitthis._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))returna;r=r||!o&&a.status===404}catch(c){if(on.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(o,n,a,c))throwc}returnawaitthis.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)returnon.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;leto=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(letaofo)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)returnon.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){leta=n?n.status:s?s.statusCode:0;if(!e&&a===404)returnon.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)returnon.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){leta=n.headers.get(Ge.X_MS_CopySourceErrorCode);if(a!==void0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}returns?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(on.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}asyncdelay(e,r,n){lets=0;if(e)switch(this.retryOptions.retryPolicyType){caseEi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;caseEi.FIXED:s=this.retryOptions.retryDelayInMs;break}elses=Math.random()*1e3;returnon.info(`RetryPolicy: Delay for ${s}ms`),NR(s,n,Ntt)}};varsI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){returnnewnI(e,r,this.retryOptions)}};varTtt="storageBrowserPolicy";function$pe(){return{name:Ttt,asyncsendRequest(t,e){returnRt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Bd(t.url,Xl.Parameters.FORCE_BROWSER_NO_CACHE,newDate().getTime().toString())),t.headers.delete(Ge.COOKIE),t.headers.delete(Ge.CONTENT_LENGTH)),e(t)}}}i($pe,"storageBrowserPolicy");varPtt="StorageCorrectContentLengthPolicy";functionGpe(){functiont(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=BR(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=RR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let m=p.toLowerCase();u[m]=l[p],d.push(m)}d.sort();for(let p of d)c+=`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:newha(t.version,o,n,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(Mnt,"generateBlobSASQueryParameters20150405");functionFnt(t,e){if(t=Um(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Aa(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(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newha(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(Fnt,"generateBlobSASQueryParameters20181109");functionUnt(t,e){if(t=Um(t),!t.identifier&&!(t.permissions&&t.expiresOn))thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Aa(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(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newha(t.version,a,s,void0,void0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void0,void0,void0,t.encryptionScope),stringToSign:o}}i(Unt,"generateBlobSASQueryParameters20201206");functionqnt(t,e){if(t=Um(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Aa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newha(t.version,a,s,void0,void0,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}}i(qnt,"generateBlobSASQueryParametersUDK20181109");function$nt(t,e){if(t=Um(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Aa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newha(t.version,a,s,void0,void0,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}}i($nt,"generateBlobSASQueryParametersUDK20200210");functionGnt(t,e){if(t=Um(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,t.ipRange?Aa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newha(t.version,a,s,void0,void0,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}}i(Gnt,"generateBlobSASQueryParametersUDK20201206");functionHnt(t,e){if(t=Um(t),!t.permissions||!t.expiresOn)thrownewRangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");letr="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));lets;t.permissions&&(t.blobName?s=Nc.parse(t.permissions.toString()).toString():s=Tc.parse(t.permissions.toString()).toString());leto=[s||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Fm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void0,t.correlationId,void0,t.delegatedUserObjectId,t.ipRange?Aa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(o);return{sasQueryParameters:newha(t.version,a,s,void0,void0,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}}i(Hnt,"generateBlobSASQueryParametersUDK20250705");functionFm(t,e,r){letn=[`/blob/${t}/${e}`];returnr&&n.push(`/${r}`),n.join("")}i(Fm,"getCanonicalName");functionUm(t){lete=t.version?t.version:_R;if(t.snapshotTime&&e<"2018-11-09")throwRangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void0&&t.snapshotTime)throwRangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void0&&t.versionId)throwRangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throwRangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throwRangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throwRangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throwRangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throwRangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throwRangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throwRangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");returnt.version=e,t}i(Um,"SASSignatureValuesSanityCheckAndAutofill");vargI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;getleaseId(){returnthis._leaseId}geturl(){returnthis._url}constructor(e,r){letn=e.storageClientContext;this._url=e.url,e.name===void0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Bh()),this._leaseId=r}asyncacquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnhe.withSpan("BlobLeaseClient-acquireLease",r,asyncn=>Te(awaitthis._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}asyncchangeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==da||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==da||r.conditions?.tagConditions))thrownewRangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");returnhe.withSpan("BlobLeaseClient-changeLease",r,asyncn=>{lets=Te(awaitthis._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));returnthis._leaseId=e,s})}asyncreleaseLease(e={}){if(this._isContainer&&(e.conditions?.i
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"}};Vh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Hm=class extends Error{static{i(this,"UsageError")}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"}};Hm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var RI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var qst=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Rz=class{static{i(this,"UploadProgress")}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);Ke(`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=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function sAe(t,e,r){return qst(this,void 0,void 0,function*(){var n;let s=new au(t),o=s.getBlockBlobClient(),a=new Rz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new ON(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Dr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(sAe,"uploadCacheArchiveSDK");var iAe=D(require("buffer"),1),Pc=D(require("fs"),1),aAe=D(require("stream"),1),cAe=D(require("util"),1);var MN=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})};function FN(t){return t?t>=200&&t<300:!1}i(FN,"isSuccessStatusCode");function $st(t){return t?t>=500:!0}i($st,"isServerErrorStatusCode");function Gst(t){return t?[xr.BadGateway,xr.ServiceUnavailable,xr.GatewayTimeout].includes(t):!1}i(Gst,"isRetryableStatusCode");function Hst(t){return MN(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(Hst,"sleep");function oAe(t,e,r){return MN(this,arguments,void 0,function*(n,s,o,a=uB,c=dB,l=void 0){let u="",d=1;for(;d<=a;){let p,m,f=!1;try{p=yield s()}catch(g){l&&(p=l(g)),f=!0,u=g.message}if(p&&(m=o(p),!$st(m)))return p;if(m&&(f=Gst(m),u=`Cache service responded with ${m}`),G(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){G(`${n} - Error is not retryable`);break}yield Hst(c),d++}throw Error(`${n} failed: ${u}`)})}i(oAe,"retry");function NI(t,e){return MN(this,arguments,void 0,function*(r,n,s=uB,o=dB){return yield oAe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof rc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(NI,"retryTypedResponse");function Yh(t,e){return MN(this,arguments,void 0,function*(r,n,s=uB,o=dB){return yield oAe(r,n,a=>a.message.statusCode,s,o)})}i(Yh,"retryHttpClientResponse");var bi=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(
Othercacheswithsimilarkey:`);for(let c of o?.artifactCaches||[])G(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(Xst,"printCachesListForDiagnostics");function vz(t,e,r){return eo(this,void 0,void 0,function*(){let n=new yAe.URL(t),s=pAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield uAe(t,e,s):s.concurrentBlobDownloads?yield lAe(t,e,s):yield qN(t,e):yield qN(t,e)})}i(vz,"downloadCache");function CAe(t,e,r){return eo(this,void 0,void 0,function*(){let n=Pz(),s=gh(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield NI("reserveCache",()=>eo(this,void 0,void 0,function*(){return n.postJson(PI("caches"),o)}))})}i(CAe,"reserveCache");function gAe(t,e){return`bytes${t}-${e}/*`}i(gAe,"getContentRange");function Zst(t,e,r,n,s){return eo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":gAe(n,s)},a=yield Yh(`uploadChunk (start: ${n}, end: ${s})`,()=>eo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!FN(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Zst,"uploadChunk");function eot(t,e,r,n){return eo(this,void 0,void 0,function*(){let s=tc(r),o=PI(`caches/${e.toString()}`),a=Wh.openSync(r,"r"),c=Nz(n),l=s2("uploadConcurrency",c.uploadConcurrency),u=s2("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];G("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>eo(this,void 0,void 0,function*(){for(;p<s;){let m=Math.min(s-p,u),f=p,g=p+m-1;p+=u,yield Zst(t,o,()=>Wh.createReadStream(r,{fd:a,start:f,end:g,autoClose:!1}).on("error",E=>{throw new Error(`Cache upload failed because file read failed with ${E.message}`)}),f,g)}})))}finally{Wh.closeSync(a)}})}i(eot,"uploadFile");function tot(t,e,r){return eo(this,void 0,void 0,function*(){let n={size:r};return yield NI("commitCache",()=>eo(this,void 0,void 0,function*(){return t.postJson(PI(`caches/${e.toString()}`),n)}))})}i(tot,"commitCache");function _z(t,e,r,n){return eo(this,void 0,void 0,function*(){if(Nz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield sAe(r,e,n)}else{let o=Pz();G("Upload cache"),yield eot(o,t,e,n),G("Commiting cache");let a=tc(e);Ke(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield tot(o,t,a);if(!FN(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);Ke("Cache saved successfully")}})}i(_z,"saveCache");var fhe=D(ahe(),1),Ur=D(Fr(),1),$o=D(Fr(),1),jm=D(Fr(),1),Jm=D(Fr(),1),Km=D(Fr(),1);var B3=D(Fr(),1),R3=D(Fr(),1),dhe=D(Fr(),1),phe=D(Fr(),1),mhe=D(Fr(),1);var w3=D(Fr(),1),b3=D(Fr(),1),che=D(Fr(),1),lhe=D(Fr(),1),uhe=D(Fr(),1);var S3=class extends uhe.MessageType{static{i(this,"CacheScope$Type")}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,lhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,che.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?b3.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,w3.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,w3.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?b3.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},NT=new S3;var N3=class extends mhe.Me
`));let n=yield G3(r,"create");yield H3(n,t)})}i(V3,"createTar");var dg=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ea=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},ug=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},_T=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function yhe(t){if(!t||t.length===0)throw new Ea("Path Validation Error: At least one directory or file path is required")}i(yhe,"checkPaths");function Y3(t){if(t.length>512)throw new Ea(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ea(`Key Validation Error: ${t} cannot contain commas.`)}i(Y3,"checkKey");function W3(){return TI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(W3,"isFeatureAvailable");function Ehe(t,e,r,n){return dg(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=TI();return G(`Cache service version: ${u}`),yhe(s),u==="v2"?yield hat(s,o,a,c,l):yield Aat(s,o,a,c,l)})}i(Ehe,"restoreCache");function Aat(t,e,r,n){return dg(this,arguments,void 0,function*(s,o,a,c,l=!1){a=a||[];let u=[o,...a];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of u)Y3(m);let d=yield NC(),p="";try{let m=yield EAe(u,s,{compressionMethod:d,enableCrossOsArchive:l});if(!m?.archiveLocation)return;if(c?.lookupOnly)return Ke("Lookup only - skipping download"),m.cacheKey;p=VI.join(yield BC(),yd(d)),G(`Archive Path: ${p}`),yield vz(m.archiveLocation,p,c),dm()&&(yield zI(p,d));let f=tc(p);return Ke(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield z3(p,d),Ke("Cache restored successfully"),m.cacheKey}catch(m){let f=m;if(f.name===Ea.name)throw m;f instanceof rc&&typeof f.statusCode=="number"&&f.statusCode>=500?ih(`Failed to restore: ${m.message}`):Dr(`Failed to restore: ${m.message}`)}finally{try{yield RC(p)}catch(m){G(`Failed to delete archive: ${m}`)}}})}i(Aat,"restoreCacheV1");function hat(t,e,r,n){return dg(this,arguments,void 0,function*(s,o,a,c,l=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let u=[o,...a];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Ea("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of u)Y3(p);let d="";try{let p=$3(),m=yield NC(),f={key:o,restoreKeys:a,version:gh(s,m,l)},g=yield p.GetCacheEntryDownloadURL(f);if(!g.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Ke(`Cache hit for restore-key: ${g.matchedKey}`):Ke(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return Ke("Lookup only - skipping download"),g.matchedKey;d=VI.join(yield BC(),yd(m)),G(`Archive path: ${d}`),G(`Starting download of archive to: ${d}`),yield vz(g.signedDownloadUrl,d,c);let x=tc(d);return Ke(`Cache Size: ~${Math.round(x/(1024*1024))} MB (${x} B)`),dm()&&(yield zI(d,m)),yield z3(d,m),Ke("Cache restored successfully"),g.matchedKey}catch(p){let m=p;if(m.name===Ea.name)throw p;m instanceof rc&&typeof m.statusCode=="number"&&m.statusCode>=500?ih(`Failed to restore: ${p.message}`):Dr(`Failed to restore: ${p.message}`)}finally{try{d&&(yield RC(d))}catch(p){G(`Failed to delete archive: ${p}`)}}})}i(hat,"restoreCacheV2");function j3(t,e,r){return dg(this,arguments,void 0,function*(n,s,o,a=!1){let c=TI();return G(`Cache service version: ${c}`),yhe(n),Y3(s),c==="v2"?yield yat(n,s,o,a):yield gat(n,s,o,a)})}i(j3,"saveCache");function gat(t,e,r){return dg(this,arguments,v
`;return c.replace(/\n$/,"")}i(_at,"makeSnippet");var Qat=_at,Dat=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kat=["scalar","sequence","mapping"];function Lat(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}i(Lat,"compileStyleAliases");function Oat(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Dat.indexOf(r)===-1)throw new no('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Lat(e.styleAliases||null),kat.indexOf(this.kind)===-1)throw new no('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}i(Oat,"Type$1");var Wn=Oat;function whe(t,e){var r=[];return t[e].forEach(function(n){var s=r.length;r.forEach(function(o,a){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(s=a)}),r[s]=n}),r}i(whe,"compileList");function Mat(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(s){s.multi?(t.multi[s.kind].push(s),t.multi.fallback.push(s)):t[s.kind][s.tag]=t.fallback[s.tag]=s}for(i(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}i(Mat,"compileMap");function tV(t){return this.extend(t)}i(tV,"Schema$1");tV.prototype.extend=i(function(e){var r=[],n=[];if(e instanceof Wn)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new no("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof Wn))throw new no("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new no("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new no("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof Wn))throw new no("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(tV.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=whe(s,"implicit"),s.compiledExplicit=whe(s,"explicit"),s.compiledTypeMap=Mat(s.compiledImplicit,s.compiledExplicit),s},"extend");var Fat=tV,Uat=new Wn("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(t){return t!==null?t:""},"construct")}),qat=new Wn("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(t){return t!==null?t:[]},"construct")}),$at=new Wn("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(t){return t!==null?t:{}},"construct")}),Gat=new Fat({explicit:[Uat,qat,$at]});function Hat(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}i(Hat,"resolveYamlNull");function zat(){return null}i(zat,"constructYamlNull");function Vat(t){return t===null}i(Vat,"isNull");var Yat=new Wn("tag:yaml.org,2002:null",{kind:"scalar",resolve:Hat,construct:zat,predicate:Vat,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase"),empty:i(function(){return""},"empty")},defaultStyle:"lowercase"});function Wat(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}i(Wat,"resolveYamlBoolean");function jat(
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}i(Bhe,"simpleEscapeSequence");function zct(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(zct,"charFromCodepoint");function Yhe(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}i(Yhe,"setProperty");var Whe=new Array(256),jhe=new Array(256);for(Xm=0;Xm<256;Xm++)Whe[Xm]=Bhe(Xm)?1:0,jhe[Xm]=Bhe(Xm);var Xm;function Vct(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||$he,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}i(Vct,"State$1");function Jhe(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Qat(r),new no(e,r)}i(Jhe,"generateError");function Se(t,e){throw Jhe(t,e)}i(Se,"throwError");function LT(t,e){t.onWarning&&t.onWarning.call(null,Jhe(t,e))}i(LT,"throwWarning");var Rhe={YAML:i(function(e,r,n){var s,o,a;e.version!==null&&Se(e,"duplication of %YAML directive"),n.length!==1&&Se(e,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&Se(e,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),a=parseInt(s[2],10),o!==1&&Se(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&<(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(e,r,n){var s,o;n.length!==2&&Se(e,"TAG directive accepts exactly two arguments"),s=n[0],o=n[1],zhe.test(s)||Se(e,"ill-formed tag handle (first argument) of the TAG directive"),Od.call(e.tagMap,s)&&Se(e,'there is a previously declared suffix for "'+s+'" tag handle'),Vhe.test(o)||Se(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Se(e,"tag prefix is malformed: "+o)}e.tagMap[s]=o},"handleTagDirective")};function Ld(t,e,r,n){var s,o,a,c;if(e<r){if(c=t.input.slice(e,r),n)for(s=0,o=c.length;s<o;s+=1)a=c.charCodeAt(s),a===9||32<=a&&a<=1114111||Se(t,"expected valid JSON character");else Fct.test(c)&&Se(t,"the stream contains non-printable characters");t.result+=c}}i(Ld,"captureSegment");function Nhe(t,e,r,n){var s,o,a,c;for(dn.isObject(r)||Se(t,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),a=0,c=s.length;a<c;a+=1)o=s[a],Od.call(e,o)||(Yhe(e,o,r[o]),n[o]=!0)}i(Nhe,"mergeMappings");function Ag(t,e,r,n,s,o,a,c,l){var u,d;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),u=0,d=s.length;u<d;u+=1)Array.isArray(s[u])&&Se(t,"nested arrays are not supported inside keys"),typeof s=="object"&&She(s[u])==="[object Object]"&&(s[u]="[object Object]");if(typeof s=="object"&&She(s)==="[object Object]"&&(s="[object Object]"),s=String(s),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,d=o.length;u<d;u+=1)Nhe(t,e,o[u],r);else Nhe(t,e,o,r);else!t.json&&!Od.call(r,s)&&Od.call(e,s)&&(t.line=a||t.line,t.lineStart=c||t.lineStart,t.position=l||t.position,Se(t,"duplicated mapping key")),Yhe(e,s,o),delete r[s];return e}i(Ag,"storeMappingPair");function aV(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Se(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}i(aV,"readLineBreak");function Xr(t,e,r){for(var n=0,s=t.input.charCodeAt(t.position);s!==0;){for(;Zm(s);)s===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),s=t.input.charCodeAt(++t.position);if(e&&s===35)do s=t.input.charCodeAt(++t.position);while(s!==10&&s!==13&&s!==0);if(Lc(s))for(aV(t),s=t.input.charCodeAt(t.position),n++,t.lineIndent=0;s===32;)t.line
`,e-1))}i(cV,"writeFoldedLines");function Yct(t,e,r){var n,s,o,a,c,l,u,d,p=t.kind,m=t.result,f;if(f=t.input.charCodeAt(t.position),so(f)||fg(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(s=t.input.charCodeAt(t.position+1),so(s)||r&&fg(s)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,c=!1;f!==0;){if(f===58){if(s=t.input.charCodeAt(t.position+1),so(s)||r&&fg(s))break}else if(f===35){if(n=t.input.charCodeAt(t.position-1),so(n))break}else{if(t.position===t.lineStart&&FT(t)||r&&fg(f))break;if(Lc(f))if(l=t.line,u=t.lineStart,d=t.lineIndent,Xr(t,!1,-1),t.lineIndent>=e){c=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=u,t.lineIndent=d;break}}c&&(Ld(t,o,a,!1),cV(t,t.line-l),o=a=t.position,c=!1),Zm(f)||(a=t.position+1),f=t.input.charCodeAt(++t.position)}return Ld(t,o,a,!1),t.result?!0:(t.kind=p,t.result=m,!1)}i(Yct,"readPlainScalar");function Wct(t,e){var r,n,s;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=s=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Ld(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,s=t.position;else return!0;else Lc(r)?(Ld(t,n,s,!0),cV(t,Xr(t,!1,e)),n=s=t.position):t.position===t.lineStart&&FT(t)?Se(t,"unexpected end of the document within a single quoted scalar"):(t.position++,s=t.position);Se(t,"unexpected end of the stream within a single quoted scalar")}i(Wct,"readSingleQuotedScalar");function jct(t,e){var r,n,s,o,a,c;if(c=t.input.charCodeAt(t.position),c!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(c=t.input.charCodeAt(t.position))!==0;){if(c===34)return Ld(t,r,t.position,!0),t.position++,!0;if(c===92){if(Ld(t,r,t.position,!0),c=t.input.charCodeAt(++t.position),Lc(c))Xr(t,!1,e);else if(c<256&&Whe[c])t.result+=jhe[c],t.position++;else if((a=Gct(c))>0){for(s=a,o=0;s>0;s--)c=t.input.charCodeAt(++t.position),(a=$ct(c))>=0?o=(o<<4)+a:Se(t,"expected hexadecimal character");t.result+=zct(o),t.position++}else Se(t,"unknown escape sequence");r=n=t.position}else Lc(c)?(Ld(t,r,n,!0),cV(t,Xr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&FT(t)?Se(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Se(t,"unexpected end of the stream within a double quoted scalar")}i(jct,"readDoubleQuotedScalar");function Jct(t,e){var r=!0,n,s,o,a=t.tag,c,l=t.anchor,u,d,p,m,f,g=Object.create(null),E,x,w,S;if(S=t.input.charCodeAt(t.position),S===91)d=93,f=!1,c=[];else if(S===123)d=125,f=!0,c={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),S=t.input.charCodeAt(++t.position);S!==0;){if(Xr(t,!0,e),S=t.input.charCodeAt(t.position),S===d)return t.position++,t.tag=a,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=c,!0;r?S===44&&Se(t,"expected the node content, but found ','"):Se(t,"missed comma between flow collection entries"),x=E=w=null,p=m=!1,S===63&&(u=t.input.charCodeAt(t.position+1),so(u)&&(p=m=!0,t.position++,Xr(t,!0,e))),n=t.line,s=t.lineStart,o=t.position,hg(t,e,DT,!1,!0),x=t.tag,E=t.result,Xr(t,!0,e),S=t.input.charCodeAt(t.position),(m||t.line===n)&&S===58&&(p=!0,S=t.input.charCodeAt(++t.position),Xr(t,!0,e),hg(t,e,DT,!1,!0),w=t.result),f?Ag(t,c,g,x,E,w,n,s,o):p?c.push(Ag(t,null,g,x,E,w,n,s,o)):c.push(E),Xr(t,!0,e),S=t.input.charCodeAt(t.position),S===44?(r=!0,S=t.input.charCodeAt(++t.position)):r=!1}Se(t,"unexpected end of the stream within a flow collection")}i(Jct,"readFlowCollection");function Kct(t,e){var r,n,s=eV,o=!1,a=!1,c=e,l=0,u=!1,d,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)eV===s?s=p===43?bhe:Mct:Se(t,"repeat of a chomping mode identifier");else if((d=Hct(p))>=0)d===0?Se(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Se(t,"repeat of an indentation width identifier"):(c=e+d-1,a=!0);else break;if(Zm(p)){do p=t.input.charCodeAt(++t.position)
`,o?1+l:l),o=!0,a=!0,l=0,r=t.position;!Lc(p)&&p!==0;)p=t.input.charCodeAt(++t.position);Ld(t,r,t.position,!1)}return!0}i(Kct,"readBlockScalar");function The(t,e){var r,n=t.tag,s=t.anchor,o=[],a,c=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Se(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!so(a))));){if(c=!0,t.position++,Xr(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,hg(t,e,Hhe,!1,!0),o.push(t.result),Xr(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)Se(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return c?(t.tag=n,t.anchor=s,t.kind="sequence",t.result=o,!0):!1}i(The,"readBlockSequence");function Xct(t,e,r){var n,s,o,a,c,l,u=t.tag,d=t.anchor,p={},m=Object.create(null),f=null,g=null,E=null,x=!1,w=!1,S;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=p),S=t.input.charCodeAt(t.position);S!==0;){if(!x&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Se(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),o=t.line,(S===63||S===58)&&so(n))S===63?(x&&(Ag(t,p,m,f,g,null,a,c,l),f=g=E=null),w=!0,x=!0,s=!0):x?(x=!1,s=!0):Se(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,S=n;else{if(a=t.line,c=t.lineStart,l=t.position,!hg(t,r,Ghe,!1,!0))break;if(t.line===o){for(S=t.input.charCodeAt(t.position);Zm(S);)S=t.input.charCodeAt(++t.position);if(S===58)S=t.input.charCodeAt(++t.position),so(S)||Se(t,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(Ag(t,p,m,f,g,null,a,c,l),f=g=E=null),w=!0,x=!1,s=!1,f=t.tag,g=t.result;else if(w)Se(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=d,!0}else if(w)Se(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=d,!0}if((t.line===o||t.lineIndent>e)&&(x&&(a=t.line,c=t.lineStart,l=t.position),hg(t,e,kT,!0,s)&&(x?g=t.result:E=t.result),x||(Ag(t,p,m,f,g,E,a,c,l),f=g=E=null),Xr(t,!0,-1),S=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&S!==0)Se(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return x&&Ag(t,p,m,f,g,null,a,c,l),w&&(t.tag=u,t.anchor=d,t.kind="mapping",t.result=p),w}i(Xct,"readBlockMapping");function Zct(t){var e,r=!1,n=!1,s,o,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&Se(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(n=!0,s="!!",a=t.input.charCodeAt(++t.position)):s="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(o=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):Se(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!so(a);)a===33&&(n?Se(t,"tag suffix cannot contain exclamation marks"):(s=t.input.slice(e-1,t.position+1),zhe.test(s)||Se(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),qct.test(o)&&Se(t,"tag suffix cannot contain flow indicator characters")}o&&!Vhe.test(o)&&Se(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Se(t,"tag name is malformed: "+o)}return r?t.tag=o:Od.call(t.tagMap,s)?t.tag=t.tagMap[s]+o:s==="!"?t.tag="!"+o:s==="!!"?t.tag="tag:yaml.org,2002:"+o:Se(t,'undeclared tag handle "'+s+'"'),!0}i(Zct,"readTagProperty");function elt(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Se(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!so(r)&&!fg(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Se(t,"name of an anchor node must contain at least one character"),t.anchor=t.input
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Vct(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,Se(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)rlt(r);return r.documents}i(Khe,"loadDocuments");function nlt(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Khe(t,r);if(typeof e!="function")return n;for(var s=0,o=n.length;s<o;s+=1)e(n[s])}i(nlt,"loadAll$1");function slt(t,e){var r=Khe(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new no("expected a single document in the stream, but found more")}}i(slt,"load$1");var olt=nlt,ilt=slt,Xhe={loadAll:olt,load:ilt},Zhe=Object.prototype.toString,ege=Object.prototype.hasOwnProperty,lV=65279,alt=9,jI=10,clt=13,llt=32,ult=33,dlt=34,rV=35,plt=37,mlt=38,flt=39,Alt=42,tge=44,hlt=45,OT=58,glt=61,ylt=62,Elt=63,Clt=64,rge=91,nge=93,Ilt=96,sge=123,xlt=124,oge=125,jn={};jn[0]="\\0";jn[7]="\\a";jn[8]="\\b";jn[9]="\\t";jn[10]="\\n";jn[11]="\\v";jn[12]="\\f";jn[13]="\\r";jn[27]="\\e";jn[34]='\\"';jn[92]="\\\\";jn[133]="\\N";jn[160]="\\_";jn[8232]="\\L";jn[8233]="\\P";var wlt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],blt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Slt(t,e){var r,n,s,o,a,c,l;if(e===null)return{};for(r={},n=Object.keys(e),s=0,o=n.length;s<o;s+=1)a=n[s],c=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=t.compiledTypeMap.fallback[a],l&&ege.call(l.styleAliases,c)&&(c=l.styleAliases[c]),r[a]=c;return r}i(Slt,"compileStyleMap");function Blt(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new no("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+dn.repeat("0",n-e.length)+e}i(Blt,"encodeHex");var Rlt=1,JI=2;function Nlt(t){this.schema=t.schema||$he,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=dn.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Slt(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?JI:Rlt,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(Nlt,"State");function Phe(t,e){for(var r=dn.repeat(" ",e),n=0,s=-1,o="",a,c=t.length;n<c;)s=t.indexOf(`
`+t.slice(a+1):l+=t.slice(s),l.slice(1)}i(khe,"foldLine");function klt(t){for(var e="",r=0,n,s=0;s<t.length;r>=65536?s+=2:s++)r=YI(t,s),n=jn[r],!n&&KI(r)?(e+=t[s],r>=65536&&(e+=t[s+1])):e+=n||Blt(r);return e}i(klt,"escapeString");function Llt(t,e,r){var n="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(uu(t,e,c,!1,!1)||typeof c>"u"&&uu(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=s,t.dump="["+n+"]"}i(Llt,"writeFlowSequence");function Lhe(t,e,r,n){var s="",o=t.tag,a,c,l;for(a=0,c=r.length;a<c;a+=1)l=r[a],t.replacer&&(l=t.replacer.call(r,String(a),l)),(uu(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&uu(t,e+1,null,!0,!0,!1,!0))&&((!n||s!=="")&&(s+=nV(t,e)),t.dump&&jI===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=o,t.dump=s||"[]"}i(Lhe,"writeBlockSequence");function Olt(t,e,r){var n="",s=t.tag,o=Object.keys(r),a,c,l,u,d;for(a=0,c=o.length;a<c;a+=1)d="",n!==""&&(d+=", "),t.condenseFlow&&(d+='"'),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),uu(t,e,l,!1,!1)&&(t.dump.length>1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),uu(t,e,u,!1,!1)&&(d+=t.dump,n+=d));t.tag=s,t.dump="{"+n+"}"}i(Olt,"writeFlowMapping");function Mlt(t,e,r,n){var s="",o=t.tag,a=Object.keys(r),c,l,u,d,p,m;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new no("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)m="",(!n||s!=="")&&(m+=nV(t,e)),u=a[c],d=r[u],t.replacer&&(d=t.replacer.call(r,u,d)),uu(t,e+1,u,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&jI===t.dump.charCodeAt(0)?m+="?":m+="? "),m+=t.dump,p&&(m+=nV(t,e)),uu(t,e+1,d,!0,p)&&(t.dump&&jI===t.dump.charCodeAt(0)?m+=":":m+=": ",m+=t.dump,s+=m));t.tag=o,t.dump=s||"{}"}i(Mlt,"writeBlockMapping");function Ohe(t,e,r){var n,s,o,a,c,l;for(s=r?t.explicitTypes:t.implicitTypes,o=0,a=s.length;o<a;o+=1)if(c=s[o],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof e=="object"&&e instanceof c.instanceOf)&&(!c.predicate||c.predicate(e))){if(r?c.multi&&c.representName?t.tag=c.representName(e):t.tag=c.tag:t.tag="?",c.represent){if(l=t.styleMap[c.tag]||c.defaultStyle,Zhe.call(c.represent)==="[object Function]")n=c.represent(e,l);else if(ege.call(c.represent,l))n=c.represent[l](e,l);else throw new no("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}i(Ohe,"detectType");function uu(t,e,r,n,s,o,a){t.tag=null,t.dump=r,Ohe(t,r,!1)||Ohe(t,r,!0);var c=Zhe.call(t.dump),l=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var d=c==="[object Object]"||c==="[object Array]",p,m;if(d&&(p=t.duplicates.indexOf(r),m=p!==-1),(t.tag!==null&&t.tag!=="?"||m||t.indent!==2&&e>0)&&(s=!1),m&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(d&&m&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),c==="[object Object]")n&&Object.keys(t.dump).length!==0?(Mlt(t,e,t.dump,s),m&&(t.dump="&ref_"+p+t.dump)):(Olt(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?Lhe(t,e-1,t.dump,s):Lhe(t,e,t.dump,s),m&&(t.dump="&ref_"+p+t.dump)):(Llt(t,e,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(c==="[object String]")t.tag!=="?"&&Qlt(t,t.dump,e,o,l);else{if(c==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new no("unacceptable kind of an object to dump "+c)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}i(uu,"writeNode");function Flt(t,e){var r=[],n=[],s,o;for(oV(t,r,n),s=0,o=n.length;s<o;s+=1)e.duplicates.push(r[n[s]]);e.usedDuplicates=new Array(o)}i(Flt,"getDuplicateReferences");function oV(t,e,r){var n,s,o;if(t!==null&&typeof t=="object")if(s=e.indexOf(t),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(e.push(t),Array.isArray(t))for(s=0,o=t.length;s<o;s+=1)oV(t[s],e,r);else for(n=Object.keys(t),s=0,o=n.length;s<o;s+=1)oV(t[n[s]],e,r)}i(oV,"inspectNode");function Ul
`:""}i(Ult,"dump$1");var qlt=Ult,$lt={dump:qlt};function uV(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}i(uV,"renamed");var uge=Xhe.load,aur=Xhe.loadAll,cur=$lt.dump;var lur=uV("safeLoad","load"),uur=uV("safeLoadAll","loadAll"),dur=uV("safeDump","dump");var Di=D(require("fs"),1),io=D(require("path"),1);var Cxe=D(tEe(),1);var XT=class t{static{i(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var Q4=D(require("fs"),1),IIe=D(require("os"),1),yx=D(require("path"),1);var LV=D(require("fs"),1),CEe=D(require("os"),1),IEe=D(require("path"),1),xEe=D(EEe(),1);var tP=class t{static{i(this,"Context")}static _tmpDir=LV.default.mkdtempSync(IEe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||CEe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return LV.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return xEe.tmpNameSync(e)}};var pu=class{static{i(this,"Exec")}static async exec(e,r,n){return G(`Exec.exec: ${e} ${r?.join(" ")}`),ud(e,r,n)}static async getExecOutput(e,r,n){return G(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),eC(e,r,n)}};var _4=D(require("crypto"),1),EIe=D(require("fs"),1),gx=D(require("path"),1),CIe=D(pIe(),1);var Et=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var mIe=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var FP=i(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(mIe(s)){if(typeof s.name!="string")throw new Et("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=s}else throw new Et("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${r}`])}return e},"normalize_columns_array");var T4=class{static{i(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=th
`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return m<f},"__needMoreData"),parse:i(function(n,s,o,a){let{bom:c,comment_no_infix:l,encoding:u,from_line:d,ltrim:p,max_record_size:m,raw:f,relax_quotes:g,rtrim:E,skip_empty_lines:x,to:w,to_line:S}=this.options,{comment:P,escape:Q,quote:q,record_delimiter:M}=this.options,{bomSkipped:V,previousBuf:pe,rawBuffer:Le,escapeIsQuote:Re}=this.state,oe;if(pe===void 0)if(n===void 0){a();return}else oe=n;else pe!==void 0&&n===void 0?oe=pe:oe=Buffer.concat([pe,n]);if(V===!1)if(c===!1)this.state.bomSkipped=!0;else if(oe.length<3){if(s===!1){this.state.previousBuf=oe;return}}else{for(let ne in vg)if(vg[ne].compare(oe,0,vg[ne].length)===0){let It=vg[ne].length;this.state.bufBytesStart+=It,oe=oe.slice(It);let at=v4({...this.original_options,encoding:ne});for(let _t in at)this.options[_t]=at[_t];({comment:P,escape:Q,quote:q}=this.options);break}this.state.bomSkipped=!0}let ye=oe.length,H;for(H=0;H<ye&&!this.__needMoreData(H,ye,s);H++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),S!==-1&&this.info.lines>S){this.state.stop=!0,a();return}this.state.quoting===!1&&M.length===0&&this.__autoDiscoverRecordDelimiter(oe,H)&&(M=this.options.record_delimiter);let ne=oe[H];if(f===!0&&Le.append(ne),(ne===dht||ne===pht)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(oe,H,ne)&&H+Q.length<ye)if(Re){if(this.__isQuote(oe,H+Q.length)){this.state.escaping=!0,H+=Q.length-1;continue}}else{this.state.escaping=!0,H+=Q.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(oe,H))if(this.state.quoting===!0){let _t=oe[H+q.length],as=E&&this.__isCharTrimable(oe,H+q.length),cs=P!==null&&this.__compareBytes(P,oe,H+q.length,_t),ti=this.__isDelimiter(oe,H+q.length,_t),Nl=M.length===0?this.__autoDiscoverRecordDelimiter(oe,H+q.length):this.__isRecordDelimiter(_t,oe,H+q.length);if(Q!==null&&this.__isEscape(oe,H,ne)&&this.__isQuote(oe,H+Q.length))H+=Q.length-1;else if(!_t||ti||Nl||cs||as){this.state.quoting=!1,this.state.wasQuoting=!0,H+=q.length-1;continue}else if(g===!1){let Gu=this.__error(new Et("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(_t)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Gu!==void 0)return Gu}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(q),H+=q.length-1}else if(this.state.field.length!==0){if(g===!1){let _t=this.__infoField(),as=Object.keys(vg).map(ti=>vg[ti].equals(this.state.field.toString())?ti:!1).filter(Boolean)[0],cs=this.__error(new Et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(_t.column)} at line ${_t.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,as?`(${as} bom)`:void 0],this.options,_t,{field:this.state.field}));if(cs!==void 0)return cs}}else{this.state.quoting=!0,H+=q.length-1;continue}if(this.state.quoting===!1){let _t=this.__isRecordDelimiter(ne,oe,H);if(_t!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),H+=_t-1;continue}if(x===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,H+=_t-1;continue}this.info.bytes=this.state.bufBytesStart+H;let ti=this.__onField();if(ti!==void 0)return ti;this.info.bytes=this.state.bufBytesStart+H+_t;let Nl=this.__onRecord(o);if(Nl!==void 0)return Nl;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,H+=_t-1;continue}if(this.state.commenting)continue;if(P!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(P,oe,H,ne)!==0){this.state.comm
`)}i(sgt,"_buildMessageForResponseErrors");var ogt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(sgt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},igt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],agt=["query","method","url"],oxe=/\/api\/v3\/?$/;function cgt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(agt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>igt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),o=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return oxe.test(o)&&(s.url=o.replace(oxe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new ogt(s,c,a.data)}return a.data.data})}i(cgt,"graphql");function H4(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>cgt(r,s,o),"newApi"),{defaults:H4.bind(null,r),endpoint:r.endpoint})}i(H4,"withDefaults");var Bfr=H4(xx,{headers:{"user-agent":`octokit-graphql.js/${ngt} ${Gd()}`},method:"POST",url:"/graphql"});function ixe(t){return H4(t,{method:"POST",url:"/graphql"})}i(ixe,"withCustomRequest");var z4="(?:[a-zA-Z0-9_-]+)",axe="\\.",cxe=new RegExp(`^${z4}${axe}${z4}${axe}${z4}$`),lgt=cxe.test.bind(cxe);async function ugt(t){let e=lgt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(ugt,"auth");function dgt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(dgt,"withAuthorizationPrefix");async function pgt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=dgt(t),e(s)}i(pgt,"hook");var lxe=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(ugt.bind(null,e),{hook:pgt.bind(null,e)})},"createTokenAuth2");var V4="7.0.6";var uxe=i(()=>{},"noop"),mgt=console.warn.bind(console),fgt=console.error.bind(console);function Agt(t={}){return typeof t.debug!="function"&&(t.debug=uxe),typeof t.info!="function"&&(t.info=uxe),typeof t.warn!="function"&&(t.warn=mgt),typeof t.error!="function"&&(t.error=fgt),t}i(Agt,"createLogger");var dxe=`octokit-core.js/${V4} ${Gd()}`,KP=class{static{i(this,"Octokit")}static VERSION=V4;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new MIe.Collection,n={baseUrl:xx.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${dxe}`:dxe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=xx.defaults(n),this.graphql=ixe(this.request).defaults(n),this.log=Agt(e.log),this.hook=r,e.authStrategy){let{authStrategy:o,...a}=e,c=o(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let o=lxe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,g=!1;for(let E of a)if(E.remote||E.path.endsWith(u)&&E.content===d){c.push({title:p,message:m,file:E.path,startLine:f}),g=!0;break}g||G(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function Ixe(){return{registry:aa("registry"),username:aa("username"),password:aa("password"),scope:aa("scope"),ecr:aa("ecr"),logout:moe("logout"),registryAuth:aa("registry-auth")}}i(Ixe,"getInputs");function xxe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=uge(t.registryAuth).map(r=>{No(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:tv(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:tv(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(xxe,"getAuthList");function tv(t,e){if(kgt()||!e||e==="")return"";let r=nY.default.join(ev.configDir,"config",t==="docker.io"?"registry-1.docker.io":t);return e.startsWith("@")?r+=e:r=nY.default.join(r,e),r}i(tv,"scopeToConfigDir");function kgt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?qd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(kgt,"scopeDisabled");var mMe=D(iOe(),1),fMe=D(jOe(),1),Y9=D(_u(),1);var ZOe=D(require("net"),1),eMe=D(require("tls"),1),tMe=D(bm(),1),rMe=require("events");var JOe=D(require("net"),1),KOe=D(require("http"),1),XOe=require("https");var Bl=Symbol("AgentBaseInternalState"),jL=class extends KOe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Bl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new JOe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?XOe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},o=this.getName(s),a=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(o,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Bl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Bl].currentSocket;if(this[Bl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Bl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Bl]&&(this[Bl].defaultPort=e)}get protocol(){return this[Bl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bl]&&(this[Bl].protocol=e)}};var z9=require("url");var Wy=(0,tMe.default)("http-proxy-agent"),N0=class extends jL{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new z9.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?sFt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new z9.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Wy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Wy("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;if(n.username||n.password){let m=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(m).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let m of Object.keys(o))c+=`${m}: ${o[m]}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",oFt),r.secureEndpoint?(T0("Upgrading socket connection to TLS"),V9.connect({...lMe(cMe(r),"host","path","port"),socket:s})):s;s.destroy();let p=new Qp.Socket({writable:!1});return p.readable=!0,e.once("socket",m=>{T0("Replaying proxy buffer for failed request"),(0,uMe.default)(m.listenerCount("data")>0),m.push(d),m.push(null)}),p}};P0.protocols=["http","https"];function oFt(t){t.resume()}i(oFt,"resume");function lMe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(lMe,"omit");var W9=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,iFt=/public\.ecr\.aws|ecr-public\.aws\.com/,AMe=i(t=>W9.test(t)||XL(t),"isECR"),XL=i(t=>iFt.test(t),"isPubECR"),aFt=i(t=>{if(XL(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(W9);return e?e[4]:""},"getRegion"),cFt=i(t=>{if(XL(t))return[];let e=t.match(W9);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)},"getAccountIDs"),hMe=i(async(t,e,r)=>{let n=aFt(t),s=cFt(t),o={};s.length>0&&(G(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(G(`Using http proxy ${c}`),a=new N0(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(G(`Using https proxy ${u}`),l=new P0(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(XL(t)){Ke(`AWS Public ECR detected with ${n} region`);let m=await new fMe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Y9.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!m.authorizationData||!m.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let g=Buffer.from(m.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return No(g[0]),No(g[1]),[{registry:"public.ecr.aws",username:g[0],password:g[1]}]}else{Ke(`AWS ECR detected with ${n} region`);let m=await new mMe.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Y9.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(m.authorizationData)||!m.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let f=[];for(let g of m.authorizationData){let x=Buffer.from(g.authorizationToken||"","base64").toString("utf-8").split(":",2);No(x[0]),No(x[1]),f.push({registry:g.proxyEndpoint||"",username:x[0],password:x[1]})}return f}},"getRegistriesData");async function j9(t){/true/i.test(t.ecr)||t.ecr=="auto"&&AMe(t.registry)?await dFt(t.registry,t.username,t.password,t.scope):await uFt(t.registry,t.username,t.password,t.scope)}i(j9,"login");async function gMe(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),Ke(`Alternative config dir: ${e}`)),await $d.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&Dr(n.stderr.trim())})}i(gMe,"logout");async function uFt(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 yMe(t,e,r,n)}i(uFt,"loginStandard");async function dFt(t,e,r,n){Ke("Retrieving registries data through AWS SDK...");let s=await hMe(t,e,r);for(let o of s)await yMe(o.registry,o.username,o.password,n)}i(dFt,"loginECR");async function yMe(t,e,r,n){let s,o=tv(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),Ke(`Logging into ${t} (scope ${n})...`)):Ke(`Logging into ${t}...`),await $d.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());Ke("Login Succeeded!")})}i(yMe,"loginExec");var EMe=process.env.STATE_regis