varaHe=Object.create;varYy=Object.defineProperty;varcHe=Object.getOwnPropertyDescriptor;varlHe=Object.getOwnPropertyNames;varuHe=Object.getPrototypeOf,dHe=Object.prototype.hasOwnProperty;vari=(t,e)=>Yy(t,"name",{value:e,configurable:!0});varg=(t,e)=>()=>(t&&(e=t(t=0)),e);varI=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(varrine)Yy(t,r,{get:e[r],enumerable:!0})},NK=(t,e,r,n)=>{if(e&&typeofe=="object"||typeofe=="function")for(letsoflHe(e))!dHe.call(t,s)&&s!==r&&Yy(t,s,{get:()=>e[s],enumerable:!(n=cHe(e,s))||n.enumerable});returnt};varR=(t,e,r)=>(r=t!=null?aHe(uHe(t)):{},NK(e||!t||!t.__esModule?Yy(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>NK(Yy({},"__esModule",{value:!0}),t);varOK=I(Fm=>{"use strict";varg$t=require("net"),gHe=require("tls"),qM=require("http"),DK=require("https"),yHe=require("events"),y$t=require("assert"),EHe=require("util");Fm.httpOverHttp=CHe;Fm.httpsOverHttp=IHe;Fm.httpOverHttps=wHe;Fm.httpsOverHttps=SHe;functionCHe(t){vare=newAl(t);returne.request=qM.request,e}i(CHe,"httpOverHttp");functionIHe(t){vare=newAl(t);returne.request=qM.request,e.createSocket=kK,e.defaultPort=443,e}i(IHe,"httpsOverHttp");functionwHe(t){vare=newAl(t);returne.request=DK.request,e}i(wHe,"httpOverHttps");functionSHe(t){vare=newAl(t);returne.request=DK.request,e.createSocket=kK,e.defaultPort=443,e}i(SHe,"httpsOverHttps");functionAl(t){vare=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||qM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(varc=LK(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(Al,"TunnelingAgent");EHe.inherits(Al,yHe.EventEmitter);Al.prototype.addRequest=i(function(e,r,n,s){varo=this,a=GM({request:e},o.options,LK(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");Al.prototype.createSocket=i(function(e,r){varn=this,s={};n.sockets.push(s);varo=GM({},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")),Iu("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,f,m){process.nextTick(function(){u(p,f,m)})}i(l,"onUpgrade");functionu(p,f,m){if(a.removeAllListeners(),f.removeAllListeners(),p.statusCode!==200){Iu("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();varA=newError("tunneling socket could not be established, statusCode="+p.statusCode);A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}if(m.length>0){Iu("got illegal response body from proxy"),f.destroy();varA=newError("got illegal response body from proxy");A.code="ECONNRESET",e.request.emit("error",A),n.removeSocket(s);return}returnIu("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");functiond(p){a.removeAllListeners(),Iu(`tunneling socket could not be established, cause=%s
`);f.push(h),o+=h.byteLength,A&&(o=null),s=t,n=i(async function*(){for(let y of f)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data;boundary=${l}`}else if($7(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(iE.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:q3e(t)}if((typeof s=="string"||iE.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(!Y7(r)){let f=new Uint8Array(d);f.byteLength&&u.enqueue(f)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:o},a]}i(K7,"extractBody");function eVe(t,e=!1){return t instanceof ReadableStream&&(WF(!iE.isDisturbed(t),"The body has already been consumed."),WF(!t.locked,"The stream is locked.")),K7(t,e)}i(eVe,"safelyExtractBody");function tVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(tVe,"cloneBody");function rVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(rVe,"throwIfAborted");function nVe(t){return{blob(){return Zm(this,r=>{let n=V7(this);return n===null?n="":n&&(n=K3e(n)),new Y3e([r],{type:n})},t)},arrayBuffer(){return Zm(this,r=>new Uint8Array(r).buffer,t)},text(){return Zm(this,W7,t)},json(){return Zm(this,oVe,t)},formData(){return Zm(this,r=>{let n=V7(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=X3e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new z7;return o[eA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new z7;for(let[a,c]of s)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Zm(this,r=>new Uint8Array(r),t)}}}i(nVe,"bodyMixinMethods");function sVe(t){Object.assign(t.prototype,nVe(t))}i(sVe,"mixinBody");async function Zm(t,e,r){if(W3e.brandCheck(t,r),X7(t))throw new TypeError("Body is unusable: Body has already been read");rVe(t[eA]);let n=$3e(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[eA].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await z3e(t[eA].body,o,s),n.promise)}i(Zm,"consumeBody");function X7(t){let e=t[eA].body;return e!=null&&(e.stream.locked||iE.isDisturbed(e.stream))}i(X7,"bodyUnusable");function oVe(t){return JSON.parse(W7(t))}i(oVe,"parseJSONFromBytes");function V7(t){let e=t[eA].headersList,r=V3e(e);return r==="failure"?null:r}i(V7,"bodyMimeType");Z7.exports={extractBody:K7,safelyExtractBody:eVe,cloneBody:tVe,mixinBody:sVe,streamRegistry:j7,hasFinalizationRegistry:J7,bodyUnusable:X7}});var AZ=I((dzt,mZ)=>{"use strict";var de=require("node:assert"),ye=ze(),{channels:eZ}=Gm(),JF=vF(),{RequestContentLengthMismatchError:Cp,ResponseContentLengthMismatchError:tZ,RequestAbortedError:lZ,HeadersTimeoutError:iVe,HeadersOverflowError:aVe,SocketError:rA,InformationalError:nA,BodyTimeoutError:cVe,HTTPParserError:lVe,ResponseExceededMaxSizeError:uVe}=ot(),{kUrl:uZ,kReset:Es,kClient:Ib,kParser:Pt,kBlocking:lE,kRunning:Nr,kPending:dZ,kSize:rZ,kWriting:Su,kQueue:Ni,kNoRef:aE,kKeepAliveDefaultTimeout:dVe,kHostHeader:pVe,kPendingIdx:fVe,kRunningIdx:Oo,kError:Vn,kPipelining:wb,kSocket:wp,kKeepAliveTimeoutValue:xb,kMaxHeadersSize:jF,kKeepAliveMaxTimeout:mVe,kKeepAliveTimeoutThreshold:AVe,kHeadersTimeout:hVe,kBodyTimeout:gVe,kStrictContentLength:ZF,kMaxRequests:nZ,kCounter:yVe,kMaxResponseSize:EVe,kOnError:sZ,kResume:Il,kHTTPContext:pZ}=Ft(),Js=jX(),oZ=Buffer.alloc(0),yb=Buffer[Symbol.species],Eb=ye.addListener,CVe=ye.removeAllListeners,Sp=Symbol("kIdleSocketValidation"),Ip=Symbol("kIdleSocketValidationTimeout"),nU=Symbol("kSocketUsed"),KF;async function IVe(){let t=process.env.JEST_WORKER_ID?_F():vo
`}return eZ.sendHeaders.hasSubscribers&&eZ.sendHeaders.publish({request:e,headers:h,socket:m}),!l||f===0?aZ(A,null,t,e,m,d,h,p):ye.isBuffer(l)?aZ(A,l,t,e,m,d,h,p):ye.isBlobLike(l)?typeof l.stream=="function"?cZ(A,l.stream(),t,e,m,d,h,p):TVe(A,l,t,e,m,d,h,p):ye.isStream(l)?NVe(A,l,t,e,m,d,h,p):ye.isIterable(l)?cZ(A,l,t,e,m,d,h,p):de(!1),!0}i(RVe,"writeH1");function NVe(t,e,r,n,s,o,a,c){de(o!==0||r[Nr]===0,"stream body cannot be pipelined");let l=!1,u=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(A){if(!l)try{!u.write(A)&&this.pause&&this.pause()}catch(h){ye.destroy(this,h)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let A=new lZ;queueMicrotask(()=>m(A))}},"onClose"),m=i(function(A){if(!l){if(l=!0,de(s.destroyed||s[Su]&&r[Nr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!A)try{u.end()}catch(h){A=h}u.destroy(A),A&&(A.code!=="UND_ERR_INFO"||A.message!=="reset")?ye.destroy(e,A):ye.destroy(e)}},"onFinished");e.on("data",d).on("end",m).on("error",m).on("close",f),e.resume&&e.resume(),s.on("drain",p).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(f)}i(NVe,"writeStream");function aZ(t,e,r,n,s,o,a,c){try{e?ye.isBuffer(e)&&(de(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length:${o}\r
`,"latin1"):(de(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Il]()}catch(l){t(l)}}i(aZ,"writeBuffer");async function TVe(t,e,r,n,s,o,a,c){de(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Cp;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[Es]=!0),r[Il]()}catch(l){t(l)}}i(TVe,"writeBlob");async function cZ(t,e,r,n,s,o,a,c){de(o!==0||r[Nr]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let f=l;l=null,f()}}i(u,"onDrain");let d=i(()=>new Promise((f,m)=>{de(l===null),s[Vn]?m(s[Vn]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new bb({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[Vn])throw s[Vn];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(cZ,"writeIterable");var bb=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[Su]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Vn])throw r[Vn];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[ZF])throw new Cp;process.emitWarning(new Cp)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Es]=!0),s===null?r.write(`${l}transfer-encoding:chunked\r
`,"latin1"),r!==null&&s!==r){if(n[ZF])throw new Cp;process.emitWarning(new Cp)}e[Pt].timeout&&e[Pt].timeoutType===sA&&e[Pt].timeout.refresh&&e[Pt].timeout.refresh(),n[Il]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Su]=!1,e&&(de(n[Nr]<=1,"pipeline should only contain this request"),s(e))}};mZ.exports=SVe});var SZ=I((fzt,wZ)=>{"use strict";var Mo=require("node:assert"),{pipeline:vVe}=require("node:stream"),Ke=ze(),{RequestContentLengthMismatchError:sU,RequestAbortedError:hZ,SocketError:uE,InformationalError:oU}=ot(),{kUrl:Bb,kReset:Nb,kClient:oA,kRunning:Tb,kPending:PVe,kQueue:xu,kPendingIdx:iU,kRunningIdx:Ti,kError:Pi,kSocket:jr,kStrictContentLength:QVe,kOnError:aU,kMaxConcurrentStreams:IZ,kHTTP2Session:vi,kResume:bu,kSize:_Ve,kHTTPContext:DVe}=Ft(),wl=Symbol("open streams"),gZ,yZ=!1,Rb;try{Rb=require("node:http2")}catch{Rb={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kVe,HTTP2_HEADER_METHOD:LVe,HTTP2_HEADER_PATH:OVe,HTTP2_HEADER_SCHEME:MVe,HTTP2_HEADER_CONTENT_LENGTH:FVe,HTTP2_HEADER_EXPECT:UVe,HTTP2_HEADER_STATUS:qVe}}=Rb;function GVe(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(GVe,"parseH2Headers");async function HVe(t,e){t[jr]=e,yZ||(yZ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Rb.connect(t[Bb],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[IZ]});r[wl]=0,r[oA]=t,r[jr]=e,Ke.addListener(r,"error",zVe),Ke.addListener(r,"frameError",VVe),Ke.addListener(r,"end",WVe),Ke.addListener(r,"goaway",YVe),Ke.addListener(r,"close",function(){let{[oA]:s}=this,{[jr]:o}=s,a=this[jr][Pi]||this[Pi]||new uE("closed",Ke.getSocketInfo(o));if(s[vi]=null,s.destroyed){Mo(s[PVe]===0);let c=s[xu].splice(s[Ti]);for(let l=0;l<c.length;l++){let u=c[l];Ke.errorRequest(s,u,a)}}}),r.unref(),t[vi]=r,e[vi]=r,Ke.addListener(e,"error",function(s){Mo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Pi]=s,this[oA][aU](s)}),Ke.addListener(e,"end",function(){Ke.destroy(this,new uE("other side closed",Ke.getSocketInfo(this)))}),Ke.addListener(e,"close",function(){let s=this[Pi]||new uE("closed",Ke.getSocketInfo(this));t[jr]=null,this[vi]!=null&&this[vi].destroy(s),t[iU]=t[Ti],Mo(t[Tb]===0),t.emit("disconnect",t[Bb],[t],s),t[bu]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jVe(t,...s)},resume(){$Ve(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(HVe,"connectH2");function $Ve(t){let e=t[jr];e?.destroyed===!1&&(t[_Ve]===0&&t[IZ]===0?(e.unref(),t[vi].unref()):(e.ref(),t[vi].ref()))}i($Ve,"resumeH2");function zVe(t){Mo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[jr][Pi]=t,this[oA][aU](t)}i(zVe,"onHttp2SessionError");function VVe(t,e,r){if(r===0){let n=new oU(`HTTP/2:"frameError"received-type${t},code${e}`);this[jr][Pi]=n,this[oA][aU](n)}}i(VVe,"onHttp2FrameError");function WVe(){let t=new uE("other side closed",Ke.getSocketInfo(this[jr]));this.destroy(t),Ke.destroy(this[jr],t)}i(WVe,"onHttp2SessionEnd");function YVe(t){let e=this[Pi]||new uE(`HTTP/2:"GOAWAY"framereceivedwithcode${t}`,Ke.getSocketInfo(this)),r=this[oA];if(r[jr]=null,r[DVe]=null,this[vi]!=null&&(this[vi].destroy(e),this[vi]=null),Ke.destroy(this[jr],e),r[Ti]<r[xu].length){let n=r[xu][r[Ti]];r[xu][r[Ti]++]=null,Ke.errorRequest(r,n,e),r[iU]=r[Ti]}Mo(r[Tb]===0),r.emit("disconnect",r[Bb],[r],e),r[bu]()}i(YVe,"onHTTP2GoAway");function JVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(JVe,"shouldSendContentLength");function jVe(t,e){let r=t[vi],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Ke.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let p={};for(let b=0;b<u.length;b+=2){let N=u[b+0],P=u[b+1];if(Array.isArray(P))for(let Q=0;Q<P.length;Q++)p[N]?p[N]+=`,${P[Q]}`:p[N]=P[Q];else p[N]=P}let f,{hostname:m,port:A}=t[Bb];p[kVe]=o||`${m}
`);if(f===-1){rR("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),y=+h[1],E=h.slice(2).join(" "),w={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),Q=w[N];typeof Q=="string"?w[N]=[Q,P]:Array.isArray(Q)?Q.push(P):w[N]=P}rR("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:y,statusText:E,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(ust,"parseProxyResponse");th.parseProxyResponse=ust});var wde=I(Ko=>{"use strict";var dst=Ko&&Ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),pst=Ko&&Ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cde=Ko&&Ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&dst(e,t,r);return pst(e,t),e},Ide=Ko&&Ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.HttpsProxyAgent=void 0;var nR=Cde(require("net")),gde=Cde(require("tls")),fst=Ide(require("assert")),mst=Ide(of()),Ast=Ade(),hst=require("url"),gst=hde(),kC=(0,mst.default)("https-proxy-agent"),yde=i(t=>t.servername===void 0&&t.host&&!nR.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),sR=class extends Ast.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new hst.URL(e):e,this.proxyHeaders=r?.headers??{},kC("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ede(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(kC("Creating `tls.Socket`: %o",this.connectOpts),s=gde.connect(yde(this.connectOpts))):(kC("Creating `net.Socket`: %o",this.connectOpts),s=nR.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=nR.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT${a}:${r.port}HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}:${o[f]}\r
`)+4,e.outputData[0].data=e._header+n.substring(s),rh("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(rh("Creating `tls.Socket`: %o",this.connectOpts),o=Qst.connect(this.connectOpts)):(rh("Creating `net.Socket`: %o",this.connectOpts),o=Pst.connect(this.connectOpts)),await(0,Dst.once)(o,"connect"),o}};oR.protocols=["http","https"];Xo.HttpProxyAgent=oR;function Lst(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Lst,"omit")});var Zde=I(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});ER.state=void 0;ER.state={instrumenterImplementation:void 0}});var hpe=I(xR=>{"use strict";Object.defineProperty(xR,"__esModule",{value:!0});xR.state=void 0;xR.state={operationRequestMap:new WeakMap}});var Yme=I(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var rut=require("os"),nut=require("util");function sut(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(sut,"_interopDefaultLegacy");var out=sut(nut);function iut(t,...e){process.stderr.write(`${out.default.format(t,...e)}${rut.EOL}`)}i(iut,"log");var Mme=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ume,F3=[],U3=[],HN=[];Mme&&q3(Mme);var qme=Object.assign(t=>Gme(t),{enable:q3,enabled:G3,disable:aut,log:iut});function q3(t){Ume=t,F3=[],U3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?U3.push(new RegExp(`^${n.substr(1)}$`)):F3.push(new RegExp(`^${n}$`));for(let n of HN)n.enabled=G3(n.namespace)}i(q3,"enable");function G3(t){if(t.endsWith("*"))return!0;for(let e of U3)if(e.test(t))return!1;for(let e of F3)if(e.test(t))return!0;return!1}i(G3,"enabled");function aut(){let t=Ume||"";return q3(""),t}i(aut,"disable");function Gme(t){let e=Object.assign(r,{enabled:G3(t),destroy:cut,log:qme.log,namespace:t,extend:lut});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t}${n[0]}`),e.log(...n))}return i(r,"debug"),HN.push(e),e}i(Gme,"createDebugger");function cut(){let t=HN.indexOf(this);return t>=0?(HN.splice(t,1),!0):!1}i(cut,"destroy");function lut(t){let e=Gme(`${this.namespace}:${t}`);return e.log=this.log,e}i(lut,"extend");var wI=qme,Hme=new Set,qN=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,$N,zN=wI("azure");zN.log=(...t)=>{wI.log(...t)};var H3=["verbose","info","warning","error"];qN&&(Wme(qN)?$me(qN):console.error(`AZURE_LOG_LEVELsettounknownloglevel'${qN}';loggingisnotenabled.Acceptablevalues:${H3.join(", ")}.`));function $me(t){if(t&&!Wme(t))throw new Error(`Unknownloglevel'${t}'.Acceptablevalues:${H3.join(",")}`);$N=t;let e=[];for(let r of Hme)Vme(r)&&e.push(r.namespace);wI.enable(e.join(","))}i($me,"setLogLevel");function uut(){return $N}i(uut,"getLogLevel");var Fme={verbose:400,info:300,warning:200,error:100};function dut(t){let e=zN.extend(t);return zme(zN,e),{error:GN(e,"error"),warning:GN(e,"warning"),info:GN(e,"info"),verbose:GN(e,"verbose")}}i(dut,"createClientLogger");function zme(t,e){e.log=(...r)=>{t.log(...r)}}i(zme,"patchLogMethod");function GN(t,e){let r=Object.assign(t.extend(e),{level:e});if(zme(t,r),Vme(r)){let n=wI.disable();wI.enable(n+","+r.namespace)}return Hme.add(r),r}i(GN,"createLogger");function Vme(t){return!!($N&&Fme[t.level]<=Fme[$N])}i(Vme,"shouldEnable");function Wme(t){return H3.includes(t)}i(Wme,"isAzureLogLevel");Ch.AzureLogger=zN;Ch.createClientLogger=dut;Ch.getLogLevel=uut;Ch.setLogLevel=$me});var V3=I(xI=>{"use strict";Object.defineProperty(xI,"__esModule",{value:!0});var Ih=new WeakMap,VN=new WeakMap,SI=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Ih.set(this,[]),VN.set(this,!1)}get aborted(){if(!VN.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return VN.get(this)}static get none(){return new t}addEventListener(e,r){if(!Ih.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Ih.get(this).push(r)}removeEventListener(e,r){if(!Ih.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Ih.get(this),s=n.indexOf(r);s>-
Seehttps://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(JEt,"logUnexpecedPropertyAccessOnce");function jEt(){Object.keys(Lv).forEach(function(t){delete Lv[t]})}i(jEt,"resetLoggedProperties")});var Mv=I(xc=>{"use strict";xc.__esModule=!0;xc.HandlebarsEnvironment=QW;function lCe(t){return t&&t.__esModule?t:{default:t}}i(lCe,"_interopRequireDefault");var Ff=ds(),KEt=wo(),vW=lCe(KEt),XEt=BW(),ZEt=oCe(),eCt=NW(),Ov=lCe(eCt),tCt=TW(),rCt="4.7.9";xc.VERSION=rCt;var nCt=8;xc.COMPILER_REVISION=nCt;var sCt=7;xc.LAST_COMPATIBLE_COMPILER_REVISION=sCt;var oCt={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"};xc.REVISION_CHANGES=oCt;var PW="[object Object]";function QW(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},XEt.registerDefaultHelpers(this),ZEt.registerDefaultDecorators(this)}i(QW,"HandlebarsEnvironment");QW.prototype={constructor:QW,logger:Ov.default,log:Ov.default.log,registerHelper:i(function(e,r){if(Ff.toString.call(e)===PW){if(r)throw new vW.default("Arg not supported with multiple helpers");Ff.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(Ff.toString.call(e)===PW)Ff.extend(this.partials,e);else{if(typeof r>"u")throw new vW.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(Ff.toString.call(e)===PW){if(r)throw new vW.default("Arg not supported with multiple decorators");Ff.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){tCt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var iCt=Ov.default.log;xc.log=iCt;xc.createFrame=Ff.createFrame;xc.logger=Ov.default});var dCe=I((Fv,uCe)=>{"use strict";Fv.__esModule=!0;function _W(t){this.string=t}i(_W,"SafeString");_W.prototype.toString=_W.prototype.toHTML=function(){return""+this.string};Fv.default=_W;uCe.exports=Fv.default});var pCe=I(DW=>{"use strict";DW.__esModule=!0;DW.wrapHelper=aCt;function aCt(t,e){if(typeof t!="function")return t;var r=i(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}i(aCt,"wrapHelper")});var yCe=I(Ad=>{"use strict";Ad.__esModule=!0;Ad.checkRevision=fCt;Ad.template=mCt;Ad.wrapProgram=Uv;Ad.resolvePartial=ACt;Ad.invokePartial=hCt;Ad.noop=hCe;function cCt(t){return t&&t.__esModule?t:{default:t}}i(cCt,"_interopRequireDefault");function lCt(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(lCt,"_interopRequireWildcard");var uCt=ds(),Zh=lCt(uCt),dCt=wo(),Zl=cCt(dCt),eu=Mv(),fCe=BW(),pCt=pCe(),mCe=TW();function fCt(t){var e=t&&t[0]||1,r=eu.COMPILER_REVISION;if(!(e>=eu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=eu.COMPILER_REVISION))if(e<eu.LAST_COMPATIBLE_COMPILER_REVISION){var n=eu.REVISION_CHANGES[r],s=eu.REVISION_CHANGES[e];throw new Zl.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Zl.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(fCt,"checkRevision");function mCt(t,e){if(!e)throw new Zl.default("No environment passed to template");if(!t||!t.main)throw new Zl.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=Zh.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.res
Expecting`+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Ze="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Ze,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:D})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch(Q[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(Q[1]),b=null,N?(b=N,N=null):(f=this.lexer.yyleng,d=this.lexer.yytext,p=this.lexer.yylineno,y=this.lexer.yylloc,m>0&&m--);break;case 2:if(oe=this.productions_[Q[1]][1],Ie.$=c[c.length-oe],Ie._$={first_line:l[l.length-(oe||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(oe||1)].first_column,last_column:l[l.length-1].last_column},E&&(Ie._$.range=[l[l.length-(oe||1)].range[0],l[l.length-1].range[1]]),ae=this.performAction.call(Ie,d,f,p,this.yy,Q[1],c,l),typeof ae<"u")return ae;oe&&(a=a.slice(0,-1*oe*2),c=c.slice(0,-1*oe),l=l.slice(0,-1*oe)),a.push(this.productions_[Q[1]][0]),c.push(Ie.$),l.push(Ie._$),De=u[a[a.length-2]][a[a.length-1]],a.push(De);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(o,a){if(this.yy.parser)this.yy.parser.parseError(o,a);else throw new Error(o)},"parseError"),setInput:i(function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(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){var a=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;var l=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);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column: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(){return this._more=!0,this},"more"),less:i(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),f=0;f<p.length&&(c=this._input.match(this.rules[p[f]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=f,!this.options.flex)));f++);return a?(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||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`.Unrecognizedtext.
Moreinformationcanbefoundat:https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var lSt,uSt,Fwe,Uwe=g(()=>{lSt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),uSt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Fwe=i(t=>({applyToStack:i(e=>{e.add(lSt(),uSt)},"applyToStack")}),"getLongPollPlugin")});function Cd(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var qwe=g(()=>{i(Cd,"setCredentialFeature")});var Gwe,LY,Hwe=g(()=>{Gwe=require("node:stream"),LY=i(t=>t?.body instanceof Gwe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var Jf,Id,wd,$we,zwe,xP=g(()=>{Jf=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),Id=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),wd=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>$we[m.step]-$we[f.step]||zwe[m.priority||"normal"]-zwe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(A=>{let h=Jf(A.name,A.aliases);if(h.includes(p)){f=!0;for(let y of h)n.delete(y);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByName"),a=i(p=>{let f=!1,m=i(A=>{if(A.middleware===p){f=!0;for(let h of Jf(A.name,A.aliases))n.delete(h);return!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByReference"),c=i(p=>(t.forEach(f=>{p.add(f.middleware,{...f})}),e.forEach(f=>{p.addRelativeTo(f.middleware,{...f})}),p.identifyOnResolve?.(d.identifyOnResolve()),p),"cloneTo"),l=i(p=>{let f=[];return p.before.forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f.push(p),p.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?f.push(m):f.push(...l(m))}),f},"expandRelativeMiddlewareList"),u=i((p=!1)=>{let f=[],m=[],A={};return t.forEach(y=>{let E={...y,before:[],after:[]};for(let w of Jf(E.name,E.aliases))A[w]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let w of Jf(E.name,E.aliases))A[w]=E;m.push(E)}),m.forEach(y=>{if(y.toMiddleware){let E=A[y.toMiddleware];if(E===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${Id(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&E.after.push(y),y.relation==="before"&&E.before.push(y)}}),s(f).map(l).reduce((y,E)=>(y.push(...E),y),[])},"getMiddlewareList"),d={add:i((p,f={})=>{let{name:m,override:A,aliases:h}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=Jf(m,h);if(E.length>0){if(E.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${Id(m,h)}'`);for(let w of E){let x=t.findIndex(N=>N.name===w||N.aliases?.some(P=>P===w));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${Id(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${Id(m,h)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let w of E)n.add(w)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:A,aliases:h}=f,y={middleware:p,...f},E=Jf(m,h);if(E.length>0){if(E.some(w=>n.has(w))){if(!A)throw new Error(`Duplicate middleware name '${Id(m,h)}'`);for(let w of E){let x=e.findIndex(N=>N.name===w||N.aliases?.some(P=>P===w));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${Id(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${Id(m,h)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let w of E)n.add(w)}e.push(y)},"addRelativeTo"),clone:i(()=>c(wd()),"clone"),use:i(p=>{p.applyToStack(d)},"use"),remove:i(p=>typeof p=="string"?o(p):a(p),"remove"),removeByTag:i(p=>{let f=!1,m=i(A=>{let{tags:h,name:y,aliases:E}=A;if(h&&h.includes(p)){let w=Jf(y,E);for(let x of w)n.delete(x);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(wd());return f.use(p),f.identifyOnResolve(r||f.identifyOnRes
`),"stackTraceWarning"),wg={warn:console.warn}});function Bo(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`${vSt[n]},${l}${E8[r]}${e}${u}:${d}:${p}GMT`}var vSt,E8,PSt,Nxe,QSt,bg,_St,DSt,kSt,Rd,Bg,Ow,LSt,OSt,MSt,y8,FSt,USt,qSt,Dc,GSt,HSt,xg,Txe=g(()=>{g8();vSt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],E8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Bo,"dateToUtcString");PSt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Nxe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=PSt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Bd(xg(n)),p=Dc(s,"month",1,12),f=Dc(o,"day",1,31);return Ow(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),QSt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),bg=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=QSt.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=Bd(xg(n)),f=Dc(s,"month",1,12),m=Dc(o,"day",1,31),A=Ow(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&A.setTime(A.getTime()-HSt(d)),A},"parseRfc3339DateTimeWithOffset"),_St=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$/),DSt=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$/),kSt=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})$/),Rd=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=_St.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Ow(Bd(xg(o)),y8(s),Dc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=DSt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return MSt(Ow(LSt(o),y8(s),Dc(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=kSt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Ow(Bd(xg(u)),y8(n),Dc(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Bg=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Lw(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"),Ow=i((t,e,r,n)=>{let s=e-1;return USt(t,s,r),new Date(Date.UTC(t,s,r,Dc(n.hours,"hour",0,23),Dc(n.minutes,"minute",0,59),Dc(n.seconds,"seconds",0,60),GSt(n.fractionalMilliseconds)))},"buildDate"),LSt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Bd(xg(t));return r<e?r+100:r},"parseTwoDigitYear"),OSt=50*365*24*60*60*1e3,MSt=i(t=>t.getTime()-new Date().getTime()>OSt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),y8=i(t=>{let e=E8.indexOf(t);if(e<0)throw new TypeError(`Invalidmonth:${t}`);return e+1},"parseMonthByShortName"),FSt=[31,28,31,30,31,30,31,31,30,31,30,31],USt=i((t,e,r)=>{let n=FSt[e];if(e===1&&qSt(t)&&(n=29),r>n)throw new TypeError(`Invaliddayfor${E8[e]}in${t}:${r}`)},"validateDayOfMonth"),qSt=i(t=>t%4===0&&(t%100!==0|
`+c}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(c):n.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(sn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:B8(/^x-[\w-]+-request-?id$/,u),extendedRequestId:B8(/^x-[\w-]+-id-2$/,u),cfId:B8(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),B8=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Ro,Fw=g(()=>{Ro=class t extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(e,r=!0){let n,s=!0;typeof r=="boolean"?(n=void 0,s=r):r!=null&&typeof r=="object"&&(n=r.logger,s=r.tryNextLink??!0),super(e),this.tryNextLink=s,Object.setPrototypeOf(this,t.prototype),n?.debug?.(`@smithy/property-provider${s?"->":"(!)"}${e}`)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}});var Td,KP=g(()=>{Fw();Td=class t extends Ro{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var XP,qxe=g(()=>{Fw();XP=class t extends Ro{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var ZP,N8=g(()=>{Fw();ZP=i((...t)=>async()=>{if(t.length===0)throw new Ro("No providers in chain");let e;for(let r of t)try{return await r()}catch(n){if(e=n,n?.tryNextLink)continue;throw n}throw e},"chain")});var eQ,T8=g(()=>{eQ=i(t=>()=>Promise.resolve(t),"fromValue")});var Tg,tQ=g(()=>{Tg=i((t,e,r)=>{let n,s,o,a=!1,c=i(async()=>{s||(s=t());try{n=await s,o=!0,a=!1}finally{s=void 0}return n},"coalesceProvider");return e===void 0?async l=>((!o||l?.forceRefresh)&&(n=await c()),n):async l=>((!o||l?.forceRefresh)&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(e(n)&&await c(),n))},"memoize")});var on,rQ=g(()=>{on=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannotload${r}"${e}".Expected"true"or"false",got${t[e]}.`)}},"booleanSelector")});var Gxe,Hxe=g(()=>{Gxe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannotload${r}'${e}'.Expectednumber,got'${t[e]}'.`);return n},"numberSelector")});var Lr,nQ=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Lr||(Lr={}))});var $xe,zxe,v8,JSt,Oc,vg=g(()=>{$xe=require("node:os"),zxe=require("node:path"),v8={},JSt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Oc=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${zxe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=JSt();return v8[s]||(v8[s]=(0,$xe.homedir)()),v8[s]},"getHomeDir")});var P8,Q8,sQ,_8=g(()=>{P8="AWS_PROFILE",Q8="default",sQ=i(t=>t.profile||process.env[P8]||Q8,"getProfileName")});var Vxe,Wxe,oQ,D8=g(()=>{Vxe=require("node:crypto"),Wxe=require("node:path");vg();oQ=i(t=>{let r=(0,Vxe.createHash)("sha1").update(t).digest("hex");return(0,Wxe.join)(Oc(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var Yxe,Uw,Jxe,k8=g(()=>{Yxe=require("node:fs/promises");D8();Uw={},Jxe=i(async t=>{if(Uw[t])return Uw[t];let e=oQ(t),r=await(0,Yxe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Mc,jxe=g(()=>{Mc="."});var L8,Kxe,Xxe=g(()=>{L8=R(Rc()),Kxe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(L8.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===L8.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var Zxe,jSt,iQ,O8=g(()=>{Zxe=require("node:path");vg();jSt="AWS_CONFIG_FILE",iQ=i(()=>process.env[jSt]||(0,Zxe.join)(Oc(),".aws","config"),"getConfigFilepath")});var ebe,KSt,tbe,rbe=g(()=>{ebe=require("node:path");vg();KSt="AWS_SHARED_CREDENTIALS_FILE",tbe=i(()=>process.env[KSt]||(0,ebe.join)(Oc(),".aws","credentials"),"getCredentialsFilepath")});var nbe,XSt
`)}p.push(null)}),p}var vBe,QBe=g(()=>{vBe=require("node:stream");TBe();sa();i(PBe,"getAwsChunkedEncodingStream")});async function _Be(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 DBe=g(()=>{i(_Be,"headStream")});var kBe,LBe,QJ,OBe=g(()=>{kBe=require("node:stream");Mw();DBe();sa();LBe=i((t,e)=>Yr(t)?_Be(t,e):new Promise((r,n)=>{let s=new QJ;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=Lc(this.buffers);r(o)})}),"headStream"),QJ=class extends kBe.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 MBe,FBe=g(()=>{MBe=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")});async function _J(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function DJ(t){let e=[],r=t.getReader(),n=0;for(;;){let{done:s,value:o}=await r.read();if(o&&(e.push(o),n+=o.length),s)break}return Lc(e,n)}var UBe,kJ=g(()=>{Mw();sa();UBe=i(async t=>vd(t)?_J(t):DJ(t),"streamCollector");i(_J,"collectBlob");i(DJ,"collectReadableStream")});var qBe,HBe,GBe,$Be=g(()=>{NJ();x8();FBe();kJ();sa();qBe="The stream has already been transformed.",HBe=i(t=>{if(!GBe(t)&&!Yr(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(qBe);return e=!0,await UBe(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 QQ(o);if(s==="hex")return hi(o);if(s===void 0||s==="utf8"||s==="utf-8")return MBe(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(qBe);if(e=!0,GBe(t))return n(t);if(Yr(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),GBe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var zBe,DQ,LJ,OJ=g(()=>{zBe=require("node:stream");Mw();kJ();sa();DQ=i(t=>vd(t)?_J(t):Yr(t)?DJ(t):new Promise((e,r)=>{let n=new LJ,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=Lc(this.bufferedBytes);e(o)})}),"streamCollector"),LJ=class extends zBe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var kQ,VBe,LQ,WBe=g(()=>{kQ=require("node:stream");bd();$Be();OJ();VBe="The stream has already been transformed.",LQ=i(t=>{if(!(t instanceof kQ.Readable))try{return HBe(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(VBe);return e=!0,await DQ(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?na(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(VBe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof kQ.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,kQ.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function YBe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var JBe=g(()=>{i(YBe,"splitStream")});async function jBe(t){if(Yr(t)||vd(t))return YBe(t);let e=new MJ.PassThrough,r=new MJ.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var MJ,KBe=g(()=>{MJ=require("node:stream");JBe();sa();i(jBe,"splitStream")});var sm={};Mr(sm,{ChecksumStream:()=>Lg,Hash:()=>TQ,LazyJsonString:()=>kr,NumericValue:()=>je,Uint8ArrayBlobAdapter:()=>nm,_parseEpochTimestamp:()=>Nd,_parseRfc3339DateTimeWithOffset:()=>zP,_parseRfc7231DateTime:()=>VP,calculateBodyLength:()=>kc,concatBytes:()=>Lc,copyDocumentWithTransform:()=>mxe,createBufferedReadable:()=>BBe,createChecksumStream:()=>IBe,dateToUtcString:()=>Bo,deserializerMiddleware:()=>jP,deserializerMiddlewareOption:()=>xJ,expectBoolean:()=>gxe,expectByte:()=>MP,expectFloat32:()=>kw,expectInt:()=>yxe,expectInt32:()=>LP,expectLong:()=>Ig,expectNonNull:()=>Exe,expectNumber:()=>Cg,expectObject:()=>A8,expectShort:()=>OP,expectString:()=>Cxe,expectUnion:()=>UP,fromArrayBuffer:()=>na,fromBase64:()=>pr,fromHex:()=>JP,fromString:()=>xd,fromUtf8:()=>Wr,generateIdempotencyToken:()=>Qo,getAwsChunkedEncodingStream:()=>PBe,getSerdePlugin:()=>aBe,handleFloat:()=>wxe,hasOwn:()=>Ce,headStream:()=>LBe,isArrayBuffer:()=>_P,isBlob:()=>vd,isReadableStream:()=>Yr,limitedParseDouble:()=>GP,limitedParseFloat:()=>Sxe,limitedParseFloat32:()=>xxe,logger:()=>wg,nv:()=>YP,parseBoolean:()=>hxe,parseEpochTimestamp:()=>Bg,parseRfc3339DateTime:()=>Nxe,parseRfc3339DateTimeWithOffset:()=>bg,parseRfc7231DateTime:()=>Rd,quoteHeader:()=>$P,sdkStreamMixin:()=>LQ,serializerMiddleware:()=>NQ,serializerMiddlewareOption:()=>bJ,splitEvery:()=>WP,splitHeader:()=>Rg,splitStream:()=>jBe,streamCollector:()=>DQ,strictParseByte:()=>HP,strictParseDouble:()=>Lw,strictParseFloat:()=>Ixe,strictParseFloat32:()=>qP,strictPar
`));return r(s)},"httpAuthSchemeMiddleware")});var y_,la,xNe=g(()=>{g_();y_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},la=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(lm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),y_)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var E_,q5,bNe=g(()=>{g_();E_={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},q5=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(lm(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),E_)},"applyToStack")}),"getHttpAuthSchemePlugin")});var BNe=g(()=>{g_();xNe();bNe()});var nbt,sbt,iS,G5=g(()=>{me();ke();nbt=i(t=>e=>{throw e},"defaultErrorHandler"),sbt=i((t,e)=>{},"defaultSuccessHandler"),iS=i(t=>(e,r)=>async n=>{if(!Ve.isInstance(n.request))return e(n);let o=Rt(r).selectedHttpAuthScheme;if(!o)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:l}=o,u=await e({...n,request:await l.sign(n.request,c,a)}).catch((l.errorHandler||nbt)(a));return(l.successHandler||sbt)(u.response,a),u},"httpSigningMiddleware")});var C_,ua,RNe=g(()=>{G5();C_={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},ua=i(t=>({applyToStack:i(e=>{e.addRelativeTo(iS(t),C_)},"applyToStack")}),"getHttpSigningPlugin")});var NNe=g(()=>{G5();RNe()});var Ii,TNe=g(()=>{Ii=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function vNe(t,e,r,n,s){return i(async function*(a,c,...l){let u=c,d=a.startingToken??u[r],p=!0,f;for(;p;){if(u[r]=d,s&&(u[s]=u[s]??a.pageSize),a.client instanceof t)f=await obt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalidclient,expectedinstanceof${t.name}`);yield f;let m=d;d=ibt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var obt,ibt,PNe=g(()=>{obt=i(async(t,e,r,n=o=>o,...s)=>{let o=new t(r);return o=n(o)??o,await e.send(o,...s)},"makePagedClientRequest");i(vNe,"createPaginator");ibt=i((t,e)=>{let r=t,n=e.split(".");for(let s of n){if(!r||typeof r!="object")return;r=r[s]}return r},"get")});function QNe(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}var _Ne=g(()=>{i(QNe,"setFeature")});var Do,DNe=g(()=>{ke();Do=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!Ce(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var H5,ty,kNe=g(()=>{me();H5=R(Rc()),ty=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(e,r,n){if(!n)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!n.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!n.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let s=Ve.clone(e);if(n.in===H5.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===H5.HttpApiKeyAuthLocation.HEADER)s.headers[n.name]=n.scheme?`${n.scheme}${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+n.in+"`");return s}}});var ry,LNe=g(()=>{me();ry=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ve.clone(e);if(!r.token)throw new Error("request could n
${um(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let r=[];for(let o of e.split("/"))o?.length!==0&&o!=="."&&(o===".."?r.pop():r.push(o));let n=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return L_(n).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){let r=gbt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},oy={},M_=[],F_=i((t,e,r)=>`${t}/${e}/${r}/${Sj}`,"createScope"),XTe=i(async(t,e,r,n,s)=>{let o=await DTe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${um(o)}:${e.sessionToken}`;if(a in oy)return oy[a];for(M_.push(a);M_.length>JTe;)delete oy[M_.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,Sj])c=await DTe(t,c,l);return oy[a]=c},"getSigningKey"),Ebt=i(()=>{M_.length=0,Object.keys(oy).forEach(t=>{delete oy[t]})},"clearCredentialCache"),DTe=i((t,e,r)=>{let n=new t(e);return n.update(gS(r)),n.digest()},"hmac"),Aj=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in $Te||e?.has(o)||zTe.test(o)||VTe.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].trim().replace(/\s+/g," "))}return n},"getCanonicalHeaders"),U_=i(async({headers:t,body:e},r)=>{for(let n in t)if(iy(t,n)&&n.toLowerCase()===q_)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||dbt(e)){let n=new r;return n.update(gS(e)),um(await n.digest())}return YTe},"getPayloadHash"),ZTe=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(iy(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),eve=i((t,e={})=>{let{headers:r,query:n={}}=kTe.clone(t);for(let s in r){if(!iy(r,s))continue;let o=s.toLowerCase();(o.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(o)||e.hoistableHeaders?.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},"moveHeadersToQuery"),hj=i(t=>{t=kTe.clone(t);for(let e in t.headers)iy(t.headers,e)&&qTe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),gj=class extends G_{static{i(this,"SignatureV4")}headerFormatter=new fj;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a})}async presign(e,r={}){let{signingDate:n=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:l,signingRegion:u,signingService:d}=r,p=await this.credentialProvider();this.validateResolvedCredentials(p);let f=u??await this.regionProvider(),{longDate:m,shortDate:A}=this.formatDate(n);if(s>jTe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let h=F_(A,f,d??this.service),y=eve(hj(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[Cj]=p.sessionToken),y.query[LTe]=O_,y.query[OTe]=`${p.accessKeyId}/${h}`,y.query[yj]=m,y.query[FTe]=s.toString(10);let E=Aj(y,o,c);return y.query[MTe]=this.getCanonicalHeaderList(E),y.query[Ej]=await this.getSignature(m,h,this.getSigningKey(p,f,A,d),this.createCanonicalRequest(y,E,await U_(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:s,signingRegion:o,signingService:a,eventStreamCredentials:c}){let l=o??await this.regionProvider(),{shortDate:u,longDate:d}=this.formatDate(n),p=F_(u,l,a??this.service),f=await U_({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let A=um(await m.digest()),h=[WTe,d,p,s,A,f].join(`
-EKScontainerhost169.254.170.23or[fd00:ec2::23]`,{logger:e})}},"checkUrl");function w0t(t){return new A0t({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(w0t,"createGetRequest");async function S0t(t,e){let n=await h0t(t.body).transformToString();if(t.statusCode===200){let s=JSON.parse(n);if(typeof s.AccessKeyId!="string"||typeof s.SecretAccessKey!="string"||typeof s.Token!="string"||typeof s.Expiration!="string")throw new dm("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:g0t(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new dm(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new dm(`Serverrespondedwithstatus:${t.statusCode}`,{logger:e})}i(S0t,"getCredentials");var x0t=i((t,e,r)=>async()=>{for(let n=0;n<e;++n)try{return await t()}catch{await new Promise(o=>setTimeout(o,r))}return await t()},"retryWrapper"),b0t="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B0t="http://169.254.170.2",R0t="AWS_CONTAINER_CREDENTIALS_FULL_URI",N0t="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",T0t="AWS_CONTAINER_AUTHORIZATION_TOKEN",v0t=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[b0t],n=t.awsContainerCredentialsFullUri??process.env[R0t],s=t.awsContainerAuthorizationToken??process.env[T0t],o=t.awsContainerAuthorizationTokenFile??process.env[N0t],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("awsContainerCredentialsRelativeUri will take precedence.")),s&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationTokenFile will take precedence.")),r)e=`${B0t}${r}`;else if(n)e=n;else throw new dm(`NoHTTPcredentialproviderhostprovided.
`),this.z=this.x.length}parse(){let e=this,{z:r}=e;for(;e.i<r&&(e.trim(),!(e.i>=r));)if(e.isNext("<?"))e.readTo("?>"),e.trim();else if(e.isNext("<!--"))e.readTo("-->"),e.trim();else if(e.isNext("<!DOCTYPE",!1))e.skipDoctype(),e.trim();else if(e.x[e.i]==="<"){let n=e.parseTag();return{[n.tag]:n.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(e,r=!0){let n=this;return r?n.x.startsWith(e,n.i):n.x.toLowerCase().startsWith(e.toLowerCase(),n.i)}readTo(e){let r=this,n=r.x.indexOf(e,r.i);if(n===-1)throw new Error(`@aws-sdkXMLparseerror:expected"${e}"notfound.`);let s=r.x.slice(r.i,n);return r.i=n+e.length,s}trim(){let e=this;for(;e.i<e.z&&`\r
>/?`.includes(e.x[e.i]);)d+=e.x[e.i++];if(e.trim(),e.x[e.i]!=="=")break;++e.i,e.trim(),d==="__proto__"&&y6(s),s[d]=e.readAttrValue(),n=!0}if(e.i>=e.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(e.x[e.i]==="/"){if(++e.i,e.i>=e.z||e.x[e.i]!==">")throw new Error("@aws-sdkXMLparseerror:expected>attheendofself-closingtag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdkXMLparseerror:expected>attheendofopeningtag.");++e.i;let o=[],a=[],c=!1;for(;e.i<e.z&&!e.isNext("</");)if(e.x[e.i]==="<")e.isNext("<!--")?e.readTo("-->"):e.isNext("<![CDATA[")?(e.i+=9,o.push(e.readTo("]]>"))):e.isNext("<?")?e.readTo("?>"):(c=!0,a.push(e.parseTag()));else{let d="";for(;e.i<e.z&&e.x[e.i]!=="<";)d+=e.x[e.i++];o.push(e.decodeEntities(d))}if(!e.isNext("</"))throw new Error(`@aws-sdk XML parse error: missing closing tag </${r}>.`);e.i+=2;let l=e.readTo(">").trim();if(l!==r)throw new Error(`@aws-sdk XML parse error: mismatched tags <${r}> and </${l}>.`);if(!n&&o.length===0&&!c)return{tag:r,value:""};if(!n&&!c){let d=o.length===1?o[0]:o.join("");return d.trim()===""&&d.includes(`
`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&y6(u),d.tag in u?Array.isArray(u[d.tag])?u[d.tag].push(d.value):u[d.tag]=[u[d.tag],d.value]:u[d.tag]=d.value;for(let[d,p]of Object.entries(s))d==="__proto__"&&y6(u),u[d]=p;return{tag:r,value:u}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let e=this;e.i+=9;let r=0;for(;e.i<e.z;){let n=e.x[e.i];if(n==="[")++r;else if(n==="]")--r;else if(n===">"&&r===0){++e.i;return}++e.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(e){return e.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(r,n,s,o)=>n?String.fromCharCode(parseInt(n,16)):s?String.fromCharCode(parseInt(s,10)):t.ENTITIES[o]??"")}};TD.XmlNode=E6;TD.XmlText=ND;TD.parseXML=dBt});var EPe,Zd,PD=g(()=>{EPe=R(vD());Se();me();Je();xe();ha();uD();vS();Zd=class extends mr{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Ld(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=L.of(e),o=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(o).find(u=>!!u.getMemberTraits().eventPayload)){let u={},d=Object.keys(o)[0];return o[d].isBlobSchema()?u[d]=r:u[d]=this.read(o[d],r),u}let c=(this.serdeContext?.utf8Encoder??Kt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=L.of(e);if(n.isUnitSchema())return;let s=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(r))return this.readSchema(n,[r]);if(r==null)return r;if(typeof r=="object"){let o=!!s.xmlFlattened;if(n.isListSchema()){let c=n.getValueSchema(),l=[],u=c.getMergedTraits().xmlName??"member",d=o?r:(r[0]??r)[u];if(d==null)return l;let p=Array.isArray(d)?d:[d];for(let f of p)l.push(this.readSchema(c,f));return l}let a={};if(n.isMapSchema()){let c=n.getKeySchema(),l=n.getValueSchema(),u;o?u=Array.isArray(r)?r:[r]:u=Array.isArray(r.entry)?r.entry:[r.entry];let d=c.getMergedTraits().xmlName??"key",p=l.getMergedTraits().xmlName??"value";for(let f of u){let m=f[d],A=f[p];m==="__proto__"&&xi(a),a[m]=this.readSchema(l,A)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new jd(r,a));for(let[u,d]of n.structIterator()){let p=d.getMergedTraits(),f=p.httpPayload?p.xmlName??d.getName():d.getMemberTraits().xmlName??u;c&&l.mark(f),r[f]!=null&&(a[u]=this.readSchema(d,r[f]))}return c&&l.writeUnknown(),a}if(n.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols-xmldeserializerunhandledschematypefor${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,EPe.parseXML)(e)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:e}),a}let n="#text",s=Object.keys(r)[0],o=r[s];return o[n]&&(o[s]=o[n],delete o[n]),Zf(o)}return{}}}});var Sy,I6=g(()=>{me();Je();xe();xe();ha();Sy=class extends mr{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=L.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Tt)(r)));else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema())r!=null?(this.writeKey(n),this.writeValue(String(r))):s.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(Qo()));else if(s.isBigIntegerSchema())r!=null&&(this.writeKey(n),this.writeValue(String(r)));else if(s.isBigDecimalSchema())r!=null&&(this.writeKey(n),this.writeValue(r instanceof je?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),cn(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Bo(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(s.isDocumentSchema())Array.isArray(r)?this.write(79,r,n):r instanceof Date?t
Reference:https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),oNt=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=tNt({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await rNt(t))[l];if(!d)throw new Ia(`Profile ${l} was not found.`,{logger:t.logger});if(!g_e(d))throw new Ia(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await nNt(t))[d.sso_session],w=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new Ia("Conflicting SSO region"+w,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new Ia("Conflicting SSO start_url"+w,{tryNextLink:!1,logger:t.logger});d.sso_region=E.sso_region,d.sso_start_url=E.sso_start_url}let{sso_start_url:p,sso_account_id:f,sso_region:m,sso_role_name:A,sso_session:h}=y_e(d,t.logger);return h_e({ssoStartUrl:p,ssoSession:h,ssoAccountId:f,ssoRegion:m,ssoRoleName:A,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 Ia('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return h_e({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");KD.fromSSO=oNt;KD.isSsoProfile=g_e;KD.validateSsoProfile=y_e});var K6=I(ZD=>{var{SignatureV4:iNt,signatureV4aContainer:E_e}=xj(),tx={CrtSignerV4:null},J6="X-Amz-S3session-Token",C_e=J6.toLowerCase(),XD=class extends iNt{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=I_e(r);e.headers[C_e]=r.sessionToken;let o=this;return w_e(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=I_e(r);return delete e.headers[C_e],e.headers[J6]=r.sessionToken,e.query=e.query??{},e.query[J6]=r.sessionToken,w_e(this,s),this.presign(e,n)}};function I_e(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(I_e,"getCredentialsWithoutSessionToken");function w_e(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(w_e,"setSingleOverride");var j6=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof tx.CrtSignerV4=="function"?"crt":typeof E_e.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new XD(e),this.signerOptions=e}async sign(e,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(e,r):this.sigv4Signer.sign(e,r)}async signWithCredentials(e,r,n={}){if(n.signingRegion==="*"){let s=this.getSigv4aSigner(),o=tx.CrtSignerV4;if(o&&s instanceof o)return s.signWithCredentials(e,r,n);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,r,n)}async presign(e,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=tx.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT de
`),Zke=!0)),new Ek("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Qvt(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 Ek("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=Y6();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=Kke();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=O9();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=F9();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await kvt(t))()),async()=>{throw new Ek("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],eLe),"defaultProvider"),Fvt=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),eLe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");Ck.credentialsTreatedAsExpired=eLe;Ck.credentialsWillNeedRefresh=Fvt;Ck.defaultProvider=Mvt});var j1e=I(C=>{var{awsEndpointFunctions:Uvt,emitWarningIfUnsupportedVersion:qvt,createDefaultUserAgentProvider:Gvt,NODE_APP_ID_CONFIG_OPTIONS:Hvt,getAwsRegionExtensionConfiguration:$vt,resolveAwsRegionExtensionConfiguration:zvt,resolveUserAgentConfig:Vvt,resolveHostHeaderConfig:Wvt,getUserAgentPlugin:Yvt,getHostHeaderPlugin:Jvt,getLoggerPlugin:jvt,getRecursionDetectionPlugin:Kvt}=(gt(),Z(fa)),{getHttpAuthSchemeEndpointRuleSetPlugin:Xvt,DefaultIdentityProviderConfig:Zvt,getHttpSigningPlugin:ePt,createPaginator:vm}=(hs(),Z($5)),{normalizeProvider:iLe,getSmithyContext:tPt,ServiceException:rPt,NoOpLogger:nPt,emitWarningIfUnsupportedVersion:sPt,loadConfigsForDefaultMode:oPt,getDefaultExtensionConfiguration:iPt,resolveDefaultRuntimeConfig:aPt,Client:aLe,makeBuilder:cPt,createWaiter:mO,checkExceptions:cLe,WaiterState:Qy,createAggregatedClient:lPt}=(Se(),Z(Eg)),{Command:uPt}=(Se(),Z(Eg));C.$Command=uPt;C.__Client=aLe;var{resolveDefaultsModeConfig:dPt,loadConfig:Rm,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:pPt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:fPt,NODE_REGION_CONFIG_OPTIONS:mPt,NODE_REGION_CONFIG_FILE_OPTIONS:APt,resolveRegionConfig:hPt}=(ht(),Z(To)),{BinaryDecisionDiagram:gPt,EndpointCache:yPt,decideEndpoint:EPt,customEndpointFunctions:CPt,resolveEndpointConfig:IPt,getEndpointPlugin:wPt}=(vt(),Z(wJ)),{parseUrl:SPt,getHttpHandlerExtensionConfiguration:xPt,resolveHttpHandlerRuntimeConfig:bPt,getContentLengthPlugin:BPt}=(me(),Z(Ud)),{DEFAULT_RETRY_MODE:RPt,NODE_RETRY_MODE_CONFIG_OPTIONS:NPt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:TPt,resolveRetryConfig:vPt,getRetryPlugin:PPt}=(_o(),Z(N5)),{TypeRegistry:lLe,getSchemaSerdePlugin:QPt}=(Je(),Z(r8)),{resolveAwsSdkSigV4Config:_Pt,AwsSdkSigV4Signer:DPt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:kPt}=(Gn(),Z(H_)),{defaultProvider:LPt}=q9(),{toUtf8:OPt,fromUtf8:MPt,toBase64:FPt,fromBase64:UPt,calculateBodyLength:qPt}=(xe(),Z(sm)),{streamCollector:GPt,NodeHttpHandler:HPt}=fu(),{AwsJson1_1Protocol:$Pt}=(Am(),Z(R6)),{Sha256:zPt}=(uu(),Z(WJ)),VPt=i(async(t,e,r)=>({operation:tPt(e).operation,region:await iLe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function WPt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(WPt,"createAwsAuthSigv4HttpAuthOption");var YPt=i(t=>{let e=[];switch(t.operation){default:e.push(WPt(t))}return e},"defaultECRHttpAuthSchemeProvider"),JPt=i(t=>{let e=_Pt(t);return Object.assign(e,{authSchemePreference:iLe(t.authSchemePreference??[])})},"resolv
ErrorMessage:${a.message}`)})).result)===null||r===void 0?void 0:r.value;if(!o)throw new Error("Response json body do not have ID Token field");return o})}static getIDToken(e){return poe(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}T(`IDtokenurlis${r}`);let n=yield t.getCall(r);return _n(n),n}catch(r){throw new Error(`Errormessage:${r.message}`)}})}};var moe=require("os"),KE=require("fs");var A2=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())})},{access:k9e,appendFile:L9e,writeFile:O9e}=KE.promises,foe="GITHUB_STEP_SUMMARY";var h2=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return A2(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[foe];if(!e)throw new Error(`Unabletofindenvironmentvariablefor$${foe}.Checkifyourruntimeenvironmentsupportsjobsummaries.`);try{yield k9e(e,KE.constants.R_OK|KE.constants.W_OK)}catch{throw new Error(`Unabletoaccesssummaryfile:'${e}'.Checkifthefilehascorrectread/writepermissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>`${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){returnA2(this,void0,void0,function*(){letr=!!e?.overwrite,n=yieldthis.filePath();returnyield(r?O9e:L9e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnA2(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(moe.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",f=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});returnthis.wrap(p,l,f)}).join("");returnthis.wrap("tr",o)}).join(""),n=this.wrap("table",r);returnthis.addRaw(n).addEOL()}addDetails(e,r){letn=this.wrap("details",this.wrap("summary",e)+r);returnthis.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));returnthis.addRaw(c).addEOL()}addHeading(e,r){letn=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);returnthis.addRaw(o).addEOL()}addSeparator(){lete=this.wrap("hr",null);returnthis.addRaw(e).addEOL()}addBreak(){lete=this.wrap("br",null);returnthis.addRaw(e).addEOL()}addQuote(e,r){letn=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);returnthis.addRaw(s).addEOL()}addLink(e,r){letn=this.wrap("a",e,{href:r});returnthis.addRaw(n).addEOL()}},KVt=newh2;varB2=R(require("os"),1);varb2=require("string_decoder");varZE=R(require("os"),1),x2=R(require("events"),1),Roe=R(require("child_process"),1),Noe=R(require("path"),1);varwoe=require("assert"),so=R(require("path"),1);varXE=R(require("fs"),1),Uu=R(require("path"),1);varg2=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())})},{chmod:y2,copyFile:hoe,lstat:$0,mkdir:goe,o
${fnt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function MB(t){return t instanceof rs?!0:ef(t)&&t.name==="RestError"}i(MB,"isRestError");function Bs(t,e){return Buffer.from(t,e)}i(Bs,"stringToUint8Array");var FB=R(require("node:http"),1),UB=R(require("node:https"),1),Jq=R(require("node:zlib"),1),Lue=require("node:stream");var Jo=QC("ts-http-runtime");var mnt={};function _C(t){return t&&typeof t.pipe=="function"}i(_C,"isReadableStream");function kue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(kue,"isStreamComplete");function Oue(t){return t&&typeof t.byteLength=="number"}i(Oue,"isArrayBuffer");var qB=class extends Lue.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},jq=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Ha("The operation was aborted. Request has already been canceled.");n=i(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new qi;Jo.info(`requestto'${u.sanitizeUrl(e.url)}'timedout.canceling...`),r.abort()},e.timeout));let o=e.headers.get("Accept-Encoding"),a=o?.includes("gzip")||o?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=ynt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let A=e.onUploadProgress,h=new qB(A);h.on("error",y=>{Jo.error("Error in upload progress",y)}),_C(c)?c.pipe(h):h.end(c),c=h}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=Ant(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?hnt(u,d):u;let m=e.onDownloadProgress;if(m){let A=new qB(m);A.on("error",h=>{Jo.error("Error in download progress",h)}),l.pipe(A),l=A}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await gnt(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();_C(c)&&(u=kue(c));let d=Promise.resolve();_C(l)&&(d=kue(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Jo.warning("Error when cleaning up abortListener on httpRequest",p)})}}}makeRequest(e,r,n){let s=new URL(e.url),o=s.protocol!=="https:";if(o&&!e.allowInsecureConnection)throw new Error(`Cannotconnectto${e.url}whileallowInsecureConnectionisfalse.`);let c={agent:e.agent??this.getOrCreateAgent(e,o),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=o?FB.default.request(c,l):UB.default.request(c,l);d.once("error",p=>{u(new rs(p.message,{code:p.code??rs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new Ha("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&_C(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Oue(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Jo.error("Unrecognized body type",n),u(new rs("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?FB.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new FB.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return UB.default.globalAgent;let s=e.tlsSettings??mnt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Jo.info("No cached TLS Agent exi
`;return e}i(Yst,"encodeHeaders");function Jst(t){return t instanceof Uint8Array?t.byteLength:uR(t)?t.size===-1?void 0:t.size:void 0}i(Jst,"getLength");function jst(t){let e=0;for(let r of t){let n=Jst(r);if(n===void 0)return;e+=n}return e}i(jst,"getTotalLength");async function Kst(t,e,r){let n=[Bs(`--${r}`,"utf-8"),...e.flatMap(o=>[Bs(`\r
`,"utf-8")],s=jst(n);s&&t.headers.set("Content-Length",s),t.body=await qde(n)}i(Kst,"buildRequestBody");var LC="multipartPolicy",Xst=70,Zst=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function eot(t){if(t.length>Xst)throw new Error(`Multipartboundary"${t}"exceedsmaximumlengthof70characters`);if(Array.from(t).some(e=>!Zst.has(e)))throw new Error(`Multipartboundary"${t}"containsinvalidcharacters`)}i(eot,"assertValidBoundary");function pR(){return{name:LC,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Gotmultipartrequestbody,butcontent-typeheaderwasnotmultipart:${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipartboundarywasspecifiedas${a}intheheader,butgot${r}intherequestbody`);return r??=a,r?eot(r):r=Wst(),t.headers.set("Content-Type",`${o};boundary=${r}`),await Kst(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(pR,"multipartPolicy");function fR(){return OB()}i(fR,"createEmptyPipeline");var Gde=DB({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),m7t=Gde.logger;function Va(t){return Gde.createClientLogger(t)}i(Va,"createClientLogger");var Wa=Va("core-rest-pipeline");function mG(t={}){return HB({logger:Wa.info,...t})}i(mG,"logPolicy");var AG=$B;function hG(t={}){return zB(t)}i(hG,"redirectPolicy");var mR=R(require("node:os"),1),AR=R(require("node:process"),1);function Hde(){return"User-Agent"}i(Hde,"getHeaderName");async function $de(t){if(AR.default&&AR.default.versions){let e=`${mR.default.type()}${mR.default.release()};${mR.default.arch()}`,r=AR.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($de,"setPlatformSpecificData");var hR="1.22.2";function cot(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(cot,"getUserAgentString");function zde(){return Hde()}i(zde,"getUserAgentHeaderName");async function gR(t){let e=new Map;e.set("core-rest-pipeline",hR),await $de(e);let r=cot(e);return t?`${t}${r}`:r}i(gR,"getUserAgentValue");var Vde=zde(),Wde="userAgentPolicy";function gG(t={}){let e=gR(t.userAgentPrefix);return{name:Wde,async sendRequest(r,n){return r.headers.has(Vde)||r.headers.set(Vde,await e),n(r)}}}i(gG,"userAgentPolicy");var fo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function yG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new fo(s??"The operation was aborted."))}i(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}i(l,"removeListeners");function u(){r?.(),l(),c()}if(i(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),o(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}i(yG,"createAbortablePromise");var fot="The delay was aborted.";function OC(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return yG(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??fot})}i(OC,"delay");function Xu(t){if(ef(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknownerror${e}`}}i(Xu,"getErrorMessage");function Yde(t){return ef(t)}i(Yde,"isError");function nh(){return Zp()}i(nh,"randomUUID");var lt=nf;var Jde=Symbol("rawContent");function CG(t){return typeof t[Jde]=="function"}i(CG,"hasRawContent");function jde(t){return CG(t)?t[Jde]():t}i(jde,"getRawContent");var yR=LC;function IG(){let t=pR();return{name:yR,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)CG(n.body)&&(n.body=jde(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(IG,"multipartPolicy");var wG=VB;function SG(){return WB()}i(SG,"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--),!Oit(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Ir("InvalidTag",p,ns(t,o))}let u=Qit(t,o);if(u===!1)return Ir("InvalidAttr","Attributes for '"+l+"' have open quote.",ns(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 f=kpe(d,e);if(f===!0)n=!0;else return Ir(f.err.code,f.err.msg,ns(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ir("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ns(t,a));if(r.length===0)return Ir("InvalidTag","Closing tag '"+l+"' has not been opened.",ns(t,a));{let p=r.pop();if(l!==p.tagName){let f=ns(t,p.tagStartPos);return Ir("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ns(t,a))}r.length==0&&(s=!0)}}else return Ir("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ns(t,o));else{let p=kpe(d,e);if(p!==!0)return Ir(p.err.code,p.err.msg,ns(t,o-d.length+p.err.line));if(s===!0)return Ir("InvalidXml","Multiple possible root nodes found.",ns(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=Dpe(t,o);continue}else if(t[o+1]==="?"){if(o=_pe(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=kit(t,o);if(p==-1)return Ir("InvalidChar","char '&' is not expected.",ns(t,o));o=p}else if(s===!0&&!Qpe(t[o]))return Ir("InvalidXml","Extra text at the end",ns(t,o));t[o]==="<"&&o--}}else{if(Qpe(t[o]))continue;return Ir("InvalidChar","char '"+t[o]+"' is not expected.",ns(t,o))}if(n){if(r.length==1)return Ir("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ns(t,r[0].tagStartPos));if(r.length>0)return Ir("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ir("InvalidXml","Start tag expected.",1);return!0}i(PR,"validate");function Qpe(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Qpe,"isWhiteSpace");function _pe(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 Ir("InvalidXml","XML declaration allowed only at the start of the document.",ns(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(_pe,"readPI");function Dpe(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(Dpe,"readCommentAndCDATA");var vit='"',Pit="'";function Qit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===vit||t[e]===Pit)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(Qit,"readAttributeStr");var _it=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function kpe(t,e){let r=TR(t,_it),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ir("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",JC(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ir("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",JC(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ir("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",JC(r[s]));let o=r[s][2];if(!Lit(o))return Ir("InvalidAttr","Attribute '"+o+"' is an invalid name.",JC(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Ir("InvalidAttr","Attribute '"+o+"' is repeated.",JC(r[s]))}return!0}i(kpe,"validateAttributeString");function Dit(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(Dit,"validateNumberAmpersand");function kit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Dit(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(kit,"validateAmpersand");function Ir(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Ir,"getErrorObject");function Lit(t){return YG(t)}i(Lit,"validateAttrName");function Oit(t){return YG(t)}i(Oit,"validateTagName");function ns(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(ns,"getLineNumberForPosition");function JC(t){return t.startIndex+t[1].length}i(JC,"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"},Ope={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 vs("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new XC(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=lh(t,">",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let m=p.indexOf(":");m!==-1&&(p=p.substr(m+1))}p=rH(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpairedtagcannotbeusedasclosingtag:</${p}>`);f&&s.unpairedTagsSet.has(f)&&(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=nH(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let f=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),o.setXmlVersion(Number(f)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let f=new vs(d.tagName);f.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(f[":@"]=p),this.addChild(r,f,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=lh(t,"-->",c+4,"Comment is not closed.");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=lh(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,f),c=d+2}else{let d=nH(t,c,s.removeNSPrefix);if(!d){let P=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${P}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,A=d.attrExpPresent,h=d.closeIndex;if({tagName:p,tagExp:m}=rH(s.transformTagName,p,m,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 y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),A=p!==m);let w=null,x={},b;b=iat(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&A&&(w=this.buildAttributesMap(m,this.matcher,p),w&&(x=oat(w,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let P="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let J=this.readStopNodeData(t,f,h+1);if(!J)throw new Error(`Unexpected end of ${f}`);c=J.i,P=J.tagContent}let Q=new vs(p);w&&(Q[":@"]=w),Q.add(s.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(E){({tagName:p,tagExp:m}=rH(s.transformTagName,p,m,s));let P=new vs(p);w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let P=new vs(p);w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let P=new vs(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximumnestedtagsexceeded");this.tagsNodeStack.push(r),w&&(P[":@"]=w),this.addChild(r,P,this.readonlyMatcher,N),r=P}n="",c=h}}}else n+=t[c];return e.child},"parseXml"
`}),n}getCanonicalizedResourceString(e){let r=$R(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=zR(e.url),o={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();o[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(o[c])}`}return n}};var sr=class extends ff{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nI(e,r,this)}computeHMACSHA256(e){return(0,mfe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Ur=Va("storage-common");var Zo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Zo||(Zo={}));var sd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Zo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Fat=new fo("The operation was aborted."),sI=class extends Ka{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=sd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:sd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):sd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:sd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:sd.maxRetryDelayInMs):sd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:sd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:sd.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),o=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;o||(s.url=HR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=nd(s.url,Ml.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Ur.info(`RetryPolicy:=====>Try=${n}${o?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(o,n,a))return a;r=r||!o&&a.status===404}catch(c){if(Ur.error(`RetryPolicy:Caughterror,message:${c.message},code:${c.code}`),!this.shouldRetry(o,n,a,c))throw c}return await this.delay(o,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return Ur.info(`RetryPolicy:Attempt(s)${r}>=maxTries${this.retryOptions.maxTries},nofurthertry.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Ur.info(`RetryPolicy:Networkerror${a}found,willretry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Ur.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Ur.info(`RetryPolicy:Willretryforstatuscode${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ne.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(Ur.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Zo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Zo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Ur.info(`RetryPolicy:Delayfor${s}ms`),VR(s,n,Fat)}};var oI=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new sI(e,r,this.retryOptions)}};var Uat="storageBrowserPolicy";function Afe(){return{name:Uat,async sendRequest(t,e){return lt||((t.method==="GET"||t.method==="HEAD")&&(t.url=nd(t.url,Ml.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ne.COOKIE),t.headers.delete(Ne.CONTENT_LENGTH)),e(t)}}}i(Afe,"storageBrowserPolicy");var qat="StorageCorrectContentLengthPolicy";function hfe(){function t(e){e.body&&(
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=$R(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=zR(o.url),u={};if(l){let d=[];for(let p in l)if(Object.prototype.hasOwnProperty.call(l,p)){let f=p.toLowerCase();u[f]=l[p],d.push(f)}d.sort();for(let p of d)c+=`
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new Wi(t.version,o,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(Jlt,"generateBlobSASQueryParameters20150405");function jlt(t,e){if(t=wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vi(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:new Wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(jlt,"generateBlobSASQueryParameters20181109");function Klt(t,e){if(t=wf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Vi(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:new Wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:o}}i(Klt,"generateBlobSASQueryParameters20201206");function Xlt(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Vi(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:new Wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:o}}i(Xlt,"generateBlobSASQueryParametersUDK20181109");function Zlt(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Vi(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:new Wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:o}}i(Zlt,"generateBlobSASQueryParametersUDK20200210");function eut(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Vi(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:new Wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:o}}i(eut,"generateBlobSASQueryParametersUDK20201206");function tut(t,e){if(t=wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=mc.parse(t.permissions.toString()).toString():s=Ac.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ut(t.startsOn,!1):"",t.expiresOn?ut(t.expiresOn,!1):"",If(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ut(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ut(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Vi(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:new Wi(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:o}}i(tut,"generateBlobSASQueryParametersUDK20250705");function If(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(If,"getCanonicalName");function wf(t){let e=t.version?t.version:jR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(wf,"SASSignatureValuesSanityCheckAndAutofill");var yI=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=nh()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Gi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Gi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>le(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Gi||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Gi||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=le(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.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"}};Sh.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Bf=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"}};Bf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NI=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Xut=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())})},oV=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);he(`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 PAe(t,e,r){return Xut(this,void 0,void 0,function*(){var n;let s=new Wl(t),o=s.getBlockBlobClient(),a=new oV((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(),T(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield o.uploadFile(e,c);if(l._response.status>=400)throw new tT(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Er(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(PAe,"uploadCacheArchiveSDK");var _Ae=R(require("buffer"),1),hc=R(require("fs"),1),DAe=R(require("stream"),1),kAe=R(require("util"),1);var rT=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 nT(t){return t?t>=200&&t<300:!1}i(nT,"isSuccessStatusCode");function Zut(t){return t?t>=500:!0}i(Zut,"isServerErrorStatusCode");function edt(t){return t?[mt.BadGateway,mt.ServiceUnavailable,mt.GatewayTimeout].includes(t):!1}i(edt,"isRetryableStatusCode");function tdt(t){return rT(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(tdt,"sleep");function QAe(t,e,r){return rT(this,arguments,void 0,function*(n,s,o,a=RB,c=NB,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(A){l&&(p=l(A)),m=!0,u=A.message}if(p&&(f=o(p),!Zut(f)))return p;if(f&&(m=edt(f),u=`Cache service responded with ${f}`),T(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!m){T(`${n} - Error is not retryable`);break}yield tdt(c),d++}throw Error(`${n} failed: ${u}`)})}i(QAe,"retry");function TI(t,e){return rT(this,arguments,void 0,function*(r,n,s=RB,o=NB){return yield QAe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Ga)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(TI,"retryTypedResponse");function xh(t,e){return rT(this,arguments,void 0,function*(r,n,s=RB,o=NB){return yield QAe(r,n,a=>a.message.statusCode,s,o)})}i(xh,"retryHttpClientResponse");var si=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(
Othercacheswithsimilarkey:`);for(let c of o?.artifactCaches||[])T(`CacheKey:${c?.cacheKey},CacheVersion:${c?.cacheVersion},CacheScope:${c?.scope},CacheCreated:${c?.creationTime}`)}}})}i(ldt,"printCachesListForDiagnostics");function uV(t,e,r){return Ds(this,void 0,void 0,function*(){let n=new YAe.URL(t),s=FAe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield OAe(t,e,s):s.concurrentBlobDownloads?yield LAe(t,e,s):yield oT(t,e):yield oT(t,e)})}i(uV,"downloadCache");function jAe(t,e,r){return Ds(this,void 0,void 0,function*(){let n=lV(),s=YA(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield TI("reserveCache",()=>Ds(this,void 0,void 0,function*(){return n.postJson(PI("caches"),o)}))})}i(jAe,"reserveCache");function WAe(t,e){return`bytes${t}-${e}/*`}i(WAe,"getContentRange");function udt(t,e,r,n,s){return Ds(this,void 0,void 0,function*(){T(`Uploadingchunkofsize${s-n+1}bytesatoffset${n}withcontentrange:${WAe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":WAe(n,s)},a=yield xh(`uploadChunk(start:${n},end:${s})`,()=>Ds(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!nT(a.message.statusCode))throw new Error(`Cacheservicerespondedwith${a.message.statusCode}duringuploadchunk.`)})}i(udt,"uploadChunk");function ddt(t,e,r,n){return Ds(this,void 0,void 0,function*(){let s=qa(r),o=PI(`caches/${e.toString()}`),a=bh.openSync(r,"r"),c=iV(n),l=Lq("uploadConcurrency",c.uploadConcurrency),u=Lq("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Ds(this,void 0,void 0,function*(){for(;p<s;){let f=Math.min(s-p,u),m=p,A=p+f-1;p+=u,yield udt(t,o,()=>bh.createReadStream(r,{fd:a,start:m,end:A,autoClose:!1}).on("error",h=>{throw new Error(`Cacheuploadfailedbecausefilereadfailedwith${h.message}`)}),m,A)}})))}finally{bh.closeSync(a)}})}i(ddt,"uploadFile");function pdt(t,e,r){return Ds(this,void 0,void 0,function*(){let n={size:r};return yield TI("commitCache",()=>Ds(this,void 0,void 0,function*(){return t.postJson(PI(`caches/${e.toString()}`),n)}))})}i(pdt,"commitCache");function dV(t,e,r,n){return Ds(this,void 0,void 0,function*(){if(iV(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield PAe(r,e,n)}else{let o=lV();T("Upload cache"),yield ddt(o,t,e,n),T("Commiting cache");let a=qa(e);he(`CacheSize:~${Math.round(a/(1024*1024))}MB(${a}B)`);let c=yield pdt(o,t,a);if(!nT(c.statusCode))throw new Error(`Cacheservicerespondedwith${c.statusCode}duringcommitcache.`);he("Cache saved successfully")}})}i(dV,"saveCache");var $he=R(Ohe(),1),br=R(xr(),1),Eo=R(xr(),1),Pf=R(xr(),1),Qf=R(xr(),1),_f=R(xr(),1);var o4=R(xr(),1),i4=R(xr(),1),qhe=R(xr(),1),Ghe=R(xr(),1),Hhe=R(xr(),1);var r4=R(xr(),1),n4=R(xr(),1),Mhe=R(xr(),1),Fhe=R(xr(),1),Uhe=R(xr(),1);var s4=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,Fhe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Mhe.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(`Unknownfield${c}(wiretype${l})for${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?n4.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,r4.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,r4.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?n4.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VT=new s4;var a4=class extends Hhe.Me
`));let n=yield w4(r,"create");yield S4(n,t)})}i(b4,"createTar");var qh=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())})},ji=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Df=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},B4="cache write denied:",jT=class t extends Df{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Yhe=TB,KT=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},XT=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Jhe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}i(Jhe,"checkPaths");function R4(t){if(t.length>512)throw new ji(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new ji(`KeyValidationError:${t}cannotcontaincommas.`)}i(R4,"checkKey");function N4(){return vI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(N4,"isFeatureAvailable");function jhe(t,e,r,n){return qh(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=vI();T(`Cacheserviceversion:${u}`),Jhe(s);let d=cV();if(!qAe(d)){he(`Cacherestoreskipped:theeffectivecache-mode'${d}'doesnotpermitreads.`),T(`Skippedrestoreforpaths[${s.join(", ")}]withprimarykey'${o}'.`);return}return u==="v2"?yield Rft(s,o,a,c,l):yield Bft(s,o,a,c,l)})}i(jhe,"restoreCache");function Bft(t,e,r,n){return qh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)R4(m);let p=yield TC(),f="";try{let m;try{m=yield JAe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(h){let y=(u=h?.message)!==null&&u!==void 0?u:"";throw y.includes(Yhe)?new KT(y):h}if(!m?.archiveLocation)return;if(c?.lookupOnly)return he("Lookup only - skipping download"),m.cacheKey;f=WI.join(yield RC(),Ju(p)),T(`ArchivePath:${f}`),yield uV(m.archiveLocation,f,c),Vp()&&(yield VI(f,p));let A=qa(f);return he(`CacheSize:~${Math.round(A/(1024*1024))}MB(${A}B)`),yield x4(f,p),he("Cache restored successfully"),m.cacheKey}catch(m){let A=m;if(A.name===ji.name)throw m;A instanceof Ga&&typeof A.statusCode=="number"&&A.statusCode>=500?MA(`Failedtorestore:${m.message}`):Er(`Failedtorestore:${m.message}`)}finally{try{yield NC(f)}catch(m){T(`Failedtodeletearchive:${m}`)}}})}i(Bft,"restoreCacheV1");function Rft(t,e,r,n){return qh(this,arguments,void 0,function*(s,o,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[o,...a];if(T("Resolved Keys:"),T(JSON.stringify(d)),d.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)R4(f);let p="";try{let f=I4(),m=yield TC(),A={key:o,restoreKeys:a,version:YA(s,m,l)},h;try{h=yield f.GetCacheEntryDownloadURL(A)}catch(w){let x=(u=w?.message)!==null&&u!==void 0?u:"";throw x.includes(Yhe)?new KT(x):w}if(!h.ok){T(`Cachenotfoundforversion${A.version}ofkeys:${d.join(", ")}`);return}if(A.key!==h.matchedKey?he(`Cachehitforrestore-key:${h.matchedKey}`):he(`Cachehitfor:${h.matchedKey}`),c?.lookupOnly)return he("Lookup only - skipping download"),h.matchedKey;p=WI.join(yield RC(),Ju(m)),T(`Archivepath:${p}`),T(`Startingdownloadofarchiveto:
`),u="",d=!1,p=0,f=!1;for(let m of l){let A=0;for(;A<a&&m.charCodeAt(A)===32;)A++;if(n<0||A>=m.length){p++;continue}let h=m.slice(a),y=h.charCodeAt(0);o?y===32||y===9?(f=!0,u+=`
`)}i(Uwt,"_buildMessageForResponseErrors");var qwt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(Uwt(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},Gwt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Hwt=["query","method","url"],Ewe=/\/api\/v3\/?$/;function $wt(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(Hwt.includes(a))return Promise.reject(new Error(`[@octokit/graphql]"${a}"cannotbeusedasvariablename`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>Gwt.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 Ewe.test(o)&&(s.url=o.replace(Ewe,"/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 qwt(s,c,a.data)}return a.data.data})}i($wt,"graphql");function RY(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>$wt(r,s,o),"newApi"),{defaults:RY.bind(null,r),endpoint:r.endpoint})}i(RY,"withDefaults");var UIr=RY(Iw,{headers:{"user-agent":`octokit-graphql.js/${Fwt}${Ed()}`},method:"POST",url:"/graphql"});function Cwe(t){return RY(t,{method:"POST",url:"/graphql"})}i(Cwe,"withCustomRequest");var NY="(?:[a-zA-Z0-9_-]+)",Iwe="\\.",wwe=new RegExp(`^${NY}${Iwe}${NY}${Iwe}${NY}$`),zwt=wwe.test.bind(wwe);async function Vwt(t){let e=zwt(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(Vwt,"auth");function Wwt(t){return t.split(/\./).length===3?`bearer${t}`:`token${t}`}i(Wwt,"withAuthorizationPrefix");async function Ywt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=Wwt(t),e(s)}i(Ywt,"hook");var Swe=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(Vwt.bind(null,e),{hook:Ywt.bind(null,e)})},"createTokenAuth2");var TY="7.0.6";var xwe=i(()=>{},"noop"),Jwt=console.warn.bind(console),jwt=console.error.bind(console);function Kwt(t={}){return typeof t.debug!="function"&&(t.debug=xwe),typeof t.info!="function"&&(t.info=xwe),typeof t.warn!="function"&&(t.warn=Jwt),typeof t.error!="function"&&(t.error=jwt),t}i(Kwt,"createLogger");var bwe=`octokit-core.js/${TY}${Ed()}`,IP=class{static{i(this,"Octokit")}static VERSION=TY;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 XIe.Collection,n={baseUrl:Iw.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}${bwe}`:bwe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Iw.defaults(n),this.graphql=Cwe(this.request).defaults(n),this.log=Kwt(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=Swe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)
Moreinfo:${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let h of a)if(h.remote||h.path.endsWith(u)&&h.content===d){c.push({title:p,message:f,file:h.path,startLine:m}),A=!0;break}A||T(`Buildx.convertWarningsToGitHubAnnotations:skippingwarningwithoutmatchingDockerfile${u}:${p}`)}return c}};function kwe(){return{registry:Mi("registry"),username:Mi("username"),password:Mi("password"),scope:Mi("scope"),ecr:Mi("ecr"),logout:Doe("logout"),registryAuth:Mi("registry-auth")}}i(kwe,"getInputs");function Lwe(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=bge(t.registryAuth).map(r=>{r.password&&_n(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:SP(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:SP(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(Lwe,"getAuthList");function SP(t,e){if(cSt()||!e||e==="")return"";let r=Yf.default.resolve(wP.configDir,"config"),n=Yf.default.resolve(r,t==="docker.io"?"registry-1.docker.io":t);if(!Dwe(r,n))throw new Error(`Invalidregistry'${t}':resolvedconfigpathescapestheBuildxconfigdirectory`);let s=e.split("@");if(s.length>2)throw new Error(`Invalidscope'${e}':scopecancontainatmostone@separator`);let[o,a]=s;if(a!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(a))throw new Error(`Invalidscope'${e}':scopeactionsmustbelowercasenamesseparatedbycommas`);let c=a===void 0?"":`@${a}`;if(o==="")return`${n}${c}`;let l=Yf.default.resolve(n,o);if(!Dwe(n,l))throw new Error(`Invalidscope'${e}':resolvedconfigpathescapestheBuildxconfigdirectory`);return`${l}${c}`}i(SP,"scopeToConfigDir");function Dwe(t,e){let r=Yf.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${Yf.default.sep}`)&&!Yf.default.isAbsolute(r)}i(Dwe,"isChildPath");function cSt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?gd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(cSt,"scopeDisabled");var $Ge=R(j1e(),1),zGe=R(NGe(),1),SK=R(fu(),1);var QGe=R(require("net"),1),_Ge=R(require("tls"),1),DGe=R(of(),1),kGe=require("events");var TGe=R(require("net"),1),vGe=R(require("http"),1),PGe=require("https");var pl=Symbol("AgentBaseInternalState"),PM=class extends vGe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[pl]={}}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 TGe.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)?PGe.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[pl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[pl].currentSocket;if(this[pl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[pl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[pl]&&(this[pl].defaultPort=e)}get protocol(){return this[pl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[pl]&&(this[pl].protocol=e)}};var CK=require("url");function QM(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`ExpectedNegotiateschemebutgot"${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,o=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(o||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate${c}`}}}}i(QM,"createNegotiateAuth");var Wy=(0,DGe.default)("http-proxy-agent"),Ux=class extends PM{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new CK.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=QM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);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?qHt(r,"headers","onProxyAuth","negotiate"):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 CK.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(f===-1){DM("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
`),A=m.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let h=A.split(" "),y=+h[1],E=h.slice(2).join(" "),w={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`InvalidheaderfromproxyCONNECTresponse:"${x}"`));let N=x.slice(0,b).toLowerCase(),P=x.slice(b+1).trimStart(),Q=w[N];typeof Q=="string"?w[N]=[Q,P]:Array.isArray(Q)?Q.push(P):w[N]=P}DM("got proxy server response: %o %o",A,w),a(),e({connect:{statusCode:y,statusText:E,headers:w},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(IK,"parseProxyResponse");var Mm=(0,GGe.default)("https-proxy-agent"),kM=i(t=>t.servername===void 0&&t.host&&!ml.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Gx=class extends _M{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new HGe.URL(e):e,this.proxyHeaders=r?.headers??{},Mm("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=QM():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?wK(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Mm("Creating `tls.Socket`: %o",this.connectOpts),s=qx.connect(kM(this.connectOpts))):(Mm("Creating `net.Socket`: %o",this.connectOpts),s=ml.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ml.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT${a}:${r.port}HTTP/1.1\r
`;if(n.username||n.password){let f=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic${Buffer.from(f).toString("base64")}`}o.Host=`${a}:${r.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let f of Object.keys(o))c+=`${f}:${o[f]}\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;a["Proxy-Authorization"]=`Basic${Buffer.from(p).toString("base64")}`}Object.assign(a,n),a.Host=`${c}:${r.port}`,a["Proxy-Connection"]||(a["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(a))l+=`${p}:${a[p]}\r
`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",UGe),r.secureEndpoint?(Mm("Upgrading socket connection to TLS"),qx.connect({...wK(kM(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxyauthenticationfailedwithstatus${d.statusCode}afterretry`)}};Gx.protocols=["http","https"];function UGe(t){setImmediate(()=>{t.resume()})}i(UGe,"resume");function wK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(wK,"omit");var xK=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,GHt=/public\.ecr\.aws|ecr-public\.aws\.com/,VGe=i(t=>xK.test(t)||LM(t),"isECR"),LM=i(t=>GHt.test(t),"isPubECR"),HHt=i(t=>{if(LM(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(xK);return e?e[4]:""},"getRegion"),$Ht=i(t=>{if(LM(t))return[];let e=t.match(xK);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"),WGe=i(async(t,e,r)=>{let n=HHt(t),s=$Ht(t),o={};s.length>0&&(T(`RequestingAWSECRauthtokenfor${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Usinghttpproxy${c}`),a=new Ux(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Usinghttpsproxy${u}`),l=new Gx(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(LM(t)){he(`AWSPublicECRdetectedwith${n}region`);let f=await new zGe.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new SK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!f.authorizationData||!f.authorizationData.authorizationToken)throw new Error("Could not retrieve an authorization token from AWS Public ECR");let A=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return _n(A[0]),_n(A[1]),[{registry:"public.ecr.aws",username:A[0],password:A[1]}]}else{he(`AWSECRdetectedwith${n}region`);let f=await new $Ge.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new SK.NodeHttpHandler({httpAgent:a,httpsAgent:l})}).getAuthorizationToken(o);if(!Array.isArray(f.authorizationData)||!f.authorizationData.length)throw new Error("Could not retrieve an authorization token from AWS ECR");let m=[];for(let A of f.authorizationData){let y=Buffer.from(A.authorizationToken||"","base64").toString("utf-8").split(":",2);_n(y[0]),_n(y[1]),m.push({registry:A.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var YGe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function VHt(t){return typeof t=="string"&&YGe.test(t)}i(VHt,"validate");var bK=VHt;var WHt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),YHt=300,JGe=300,jGe=21600,KGe=5,XGe=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&WHt.has(t),"isDockerHubOIDC"),ZGe=i(async(t,e)=>{let r=process.env.DOCKERHUB_OIDC_CONNECTIONID?.trim();if(!r)throw new Error("DOCKERHUB_OIDC_CONNECTIONID is required for Docker Hub OIDC login");if(!bK(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=JHt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;he(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),he("Retrieving GitHub OIDC token for Docker Hub");let a=await Ooe(o),c=new ao("github.com/docker/login-action",[],{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=new URLSearchParams;l.set("grant_type","urn:ietf:params:oauth:grant-type:token-exchange"),l.set("subject_token_type","urn:ietf:params:oauth:token-type:id_token"),l.set("subject_token",a),l.set("connection_id",r),l.set("expires_in",n.toString()),he("Exchangi